Hello community,

here is the log from the commit of package rubygem-rest-client for 
openSUSE:Factory checked in at 2017-06-08 15:01:07
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-rest-client (Old)
 and      /work/SRC/openSUSE:Factory/.rubygem-rest-client.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "rubygem-rest-client"

Thu Jun  8 15:01:07 2017 rev:10 rq:497689 version:2.0.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/rubygem-rest-client/rubygem-rest-client.changes  
2017-04-11 09:32:28.308650349 +0200
+++ 
/work/SRC/openSUSE:Factory/.rubygem-rest-client.new/rubygem-rest-client.changes 
    2017-06-08 15:01:08.638766206 +0200
@@ -1,0 +2,11 @@
+Tue May 23 10:16:18 UTC 2017 - co...@suse.com
+
+- updated to version 2.0.2
+ see installed history.md
+
+  # 2.0.2
+  
+  - Suppress the header override warning introduced in 2.0.1 if the value is 
the
+    same. There's no conflict if the value is unchanged. (#578)
+
+-------------------------------------------------------------------

Old:
----
  rest-client-2.0.1.gem

New:
----
  rest-client-2.0.2.gem

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ rubygem-rest-client.spec ++++++
--- /var/tmp/diff_new_pack.bOWW59/_old  2017-06-08 15:01:09.362664042 +0200
+++ /var/tmp/diff_new_pack.bOWW59/_new  2017-06-08 15:01:09.362664042 +0200
@@ -24,7 +24,7 @@
 #
 
 Name:           rubygem-rest-client
-Version:        2.0.1
+Version:        2.0.2
 Release:        0
 %define mod_name rest-client
 %define mod_full_name %{mod_name}-%{version}

++++++ rest-client-2.0.1.gem -> rest-client-2.0.2.gem ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/.travis.yml new/.travis.yml
--- old/.travis.yml     2017-02-19 16:17:30.000000000 +0100
+++ new/.travis.yml     2017-04-24 00:16:40.000000000 +0200
@@ -17,6 +17,8 @@
   - "jruby-9.1.5.0"
   - "jruby-head"
 
+cache: bundler
+
 script:
   bundle exec rake test
 
@@ -44,10 +46,3 @@
   fast_finish: true
 
 sudo: false
-
-
-# Use Java 8 for jruby to fix some Java 7 bugs.
-addons:
-  apt:
-    packages:
-      - oracle-java8-set-default
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/README.md new/README.md
--- old/README.md       2017-02-19 16:17:30.000000000 +0100
+++ new/README.md       2017-04-24 00:16:40.000000000 +0200
@@ -762,13 +762,12 @@
 Have a look at rest-client-components: 
http://github.com/crohr/rest-client-components
 
 ## Credits
-
-|||
-|---------------------|---------------------------------------------------------|
-| REST Client Team    | Andy Brody                                             
 |
-| Creator             | Adam Wiggins                                           
 |
-| Maintainers Emeriti | Lawrence Leonard Gilbert, Matthew Manning, Julien 
Kirch |
-| Major contributions | Blake Mizerany, Julien Kirch                           
 |
+| | |
+|-------------------------|---------------------------------------------------------|
+| **REST Client Team**    | Andy Brody                                         
     |
+| **Creator**             | Adam Wiggins                                       
     |
+| **Maintainers Emeriti** | Lawrence Leonard Gilbert, Matthew Manning, Julien 
Kirch |
+| **Major contributions** | Blake Mizerany, Julien Kirch                       
     |
 
 A great many generous folks have contributed features and patches.
 See AUTHORS for the full list.
Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/history.md new/history.md
--- old/history.md      2017-02-19 16:17:30.000000000 +0100
+++ new/history.md      2017-04-24 00:16:40.000000000 +0200
@@ -1,3 +1,8 @@
+# 2.0.2
+
+- Suppress the header override warning introduced in 2.0.1 if the value is the
+  same. There's no conflict if the value is unchanged. (#578)
+
 # 2.0.1
 
 - Warn if auto-generated headers from the payload, such as Content-Type,
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/restclient/request.rb 
new/lib/restclient/request.rb
--- old/lib/restclient/request.rb       2017-02-19 16:17:30.000000000 +0100
+++ new/lib/restclient/request.rb       2017-04-24 00:16:40.000000000 +0200
@@ -373,7 +373,7 @@
         # x-www-form-urlencoded but a Content-Type application/json was
         # also supplied by the user.
         payload_headers.each_pair do |key, val|
-          if headers.include?(key)
+          if headers.include?(key) && headers[key] != val
             warn("warning: Overriding #{key.inspect} header " +
                  "#{headers.fetch(key).inspect} with #{val.inspect} " +
                  "due to payload")
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/restclient/version.rb 
new/lib/restclient/version.rb
--- old/lib/restclient/version.rb       2017-02-19 16:17:30.000000000 +0100
+++ new/lib/restclient/version.rb       2017-04-24 00:16:40.000000000 +0200
@@ -1,5 +1,5 @@
 module RestClient
-  VERSION_INFO = [2, 0, 1] unless defined?(self::VERSION_INFO)
+  VERSION_INFO = [2, 0, 2] unless defined?(self::VERSION_INFO)
   VERSION = VERSION_INFO.map(&:to_s).join('.') unless defined?(self::VERSION)
 
   def self.version
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/metadata new/metadata
--- old/metadata        2017-02-19 16:17:30.000000000 +0100
+++ new/metadata        2017-04-24 00:16:40.000000000 +0200
@@ -1,14 +1,14 @@
 --- !ruby/object:Gem::Specification
 name: rest-client
 version: !ruby/object:Gem::Version
-  version: 2.0.1
+  version: 2.0.2
 platform: ruby
 authors:
 - REST Client Team
 autorequire: 
 bindir: bin
 cert_chain: []
-date: 2017-02-19 00:00:00.000000000 Z
+date: 2017-04-23 00:00:00.000000000 Z
 dependencies:
 - !ruby/object:Gem::Dependency
   name: webmock
@@ -244,7 +244,7 @@
       version: '0'
 requirements: []
 rubyforge_project: 
-rubygems_version: 2.5.1
+rubygems_version: 2.6.11
 signing_key: 
 specification_version: 4
 summary: Simple HTTP and REST client for Ruby, inspired by microframework 
syntax for
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/spec/integration/httpbin_spec.rb 
new/spec/integration/httpbin_spec.rb
--- old/spec/integration/httpbin_spec.rb        2017-02-19 16:17:30.000000000 
+0100
+++ new/spec/integration/httpbin_spec.rb        2017-04-24 00:16:40.000000000 
+0200
@@ -13,7 +13,8 @@
   def default_httpbin_url
     # add a hack to work around java/jruby bug
     # java.lang.RuntimeException: Could not generate DH keypair with backtrace
-    if ['jruby-19mode', 'jruby-9.0.5.0'].include?(ENV['TRAVIS_RUBY_VERSION'])
+    # Also (2017-04-09) Travis Jruby versions have a broken CA keystore
+    if ENV['TRAVIS_RUBY_VERSION'] =~ /\Ajruby-/
       'http://httpbin.org/'
     else
       'https://httpbin.org/'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/spec/unit/request_spec.rb 
new/spec/unit/request_spec.rb
--- old/spec/unit/request_spec.rb       2017-02-19 16:17:30.000000000 +0100
+++ new/spec/unit/request_spec.rb       2017-04-24 00:16:40.000000000 +0200
@@ -280,6 +280,13 @@
     }).to match(/warning: Overriding "Content-Length" header/i)
   end
 
+  it "does not warn when overriding user header with header derived from 
payload if those header values were identical" do
+    expect(fake_stderr {
+      RestClient::Request.new(method: :post, url: 'example.com',
+                              payload: {'foo' => '123456'}, headers: { 
'Content-Type' => 'application/x-www-form-urlencoded' })
+    }).not_to match(/warning: Overriding "Content-Type" header/i)
+  end
+
   it 'does not warn for a normal looking payload' do
     expect(fake_stderr {
       RestClient::Request.new(method: :post, url: 'example.com', payload: 
'payload')


Reply via email to