Hello community,

here is the log from the commit of package rubygem-simple_oauth for 
openSUSE:Factory checked in at 2015-02-11 16:46:11
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-simple_oauth (Old)
 and      /work/SRC/openSUSE:Factory/.rubygem-simple_oauth.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "rubygem-simple_oauth"

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/rubygem-simple_oauth/rubygem-simple_oauth.changes    
    2012-12-10 10:58:56.000000000 +0100
+++ 
/work/SRC/openSUSE:Factory/.rubygem-simple_oauth.new/rubygem-simple_oauth.changes
   2015-02-11 16:46:14.000000000 +0100
@@ -1,0 +2,5 @@
+Mon Feb  9 10:04:39 UTC 2015 - [email protected]
+
+- updated to version 0.3.1
+
+-------------------------------------------------------------------

Old:
----
  simple_oauth-0.2.0.gem

New:
----
  gem2rpm.yml
  simple_oauth-0.3.1.gem

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

Other differences:
------------------
++++++ rubygem-simple_oauth.spec ++++++
--- /var/tmp/diff_new_pack.Xw4hBa/_old  2015-02-11 16:46:15.000000000 +0100
+++ /var/tmp/diff_new_pack.Xw4hBa/_new  2015-02-11 16:46:15.000000000 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package rubygem-simple_oauth
 #
-# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -16,63 +16,41 @@
 #
 
 
+#
+# This file was generated with a gem2rpm.yml and not just plain gem2rpm.
+# All sections marked as MANUAL, license headers, summaries and descriptions
+# can be maintained in that file. Please consult this file before editing any
+# of those fields
+#
+
 Name:           rubygem-simple_oauth
-Version:        0.2.0
+Version:        0.3.1
 Release:        0
 %define mod_name simple_oauth
 %define mod_full_name %{mod_name}-%{version}
-
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
-BuildRequires:  ruby-macros >= 1
+BuildRequires:  %{rubygem gem2rpm}
+BuildRequires:  %{ruby}
+BuildRequires:  ruby-macros >= 5
 Url:            https://github.com/laserlemon/simple_oauth
-Source:         %{mod_full_name}.gem
+Source:         http://rubygems.org/gems/%{mod_full_name}.gem
+Source1:        gem2rpm.yml
 Summary:        Simply builds and verifies OAuth headers
 License:        MIT
 Group:          Development/Languages/Ruby
 
 %description
-Simply builds and verifies OAuth headers
-
-%package doc
-Summary:        RDoc documentation for %{mod_name}
-Group:          Development/Languages/Ruby
-Requires:       %{name} = %{version}
-
-%description doc
-Documentation generated at gem installation time.
-Usually in RDoc and RI formats.
-
-%package testsuite
-Summary:        Test suite for %{mod_name}
-Group:          Development/Languages/Ruby
-Requires:       %{name} = %{version}
-
-%description testsuite
-Test::Unit or RSpec files, useful for developers.
+Simply builds and verifies OAuth headers.
 
 %prep
-#gem_unpack
-#if you need patches, apply them here and replace the # with a % sign in the 
surrounding lines
-#gem_build
 
 %build
 
 %install
-%gem_install -f
+%gem_install \
+  --doc-files="LICENSE.md README.md" \
+  -f
 
-%files
-%defattr(-,root,root,-)
-%{_libdir}/ruby/gems/%{rb_ver}/cache/%{mod_full_name}.gem
-%{_libdir}/ruby/gems/%{rb_ver}/gems/%{mod_full_name}/
-%exclude %{_libdir}/ruby/gems/%{rb_ver}/gems/%{mod_full_name}/spec
-%{_libdir}/ruby/gems/%{rb_ver}/specifications/%{mod_full_name}.gemspec
-
-%files doc
-%defattr(-,root,root,-)
-%doc %{_libdir}/ruby/gems/%{rb_ver}/doc/%{mod_full_name}/
-
-%files testsuite
-%defattr(-,root,root,-)
-%{_libdir}/ruby/gems/%{rb_ver}/gems/%{mod_full_name}/spec
+%gem_packages
 
 %changelog

++++++ gem2rpm.yml ++++++
# ---
# ## used by gem2rpm
# :summary: this is a custom summary
# ## used by gem2rpm
# :description: |-
#   this is a custom description
#
#   it can be multiline
# ## used by gem2rpm
# :license: MIT or Ruby
# ## used by gem2rpm and gem_packages
# :version_suffix: -x_y
# ## used by gem2rpm and gem_packages
# :disable_docs: true
# ## used by gem2rpm
# :disable_automatic_rdoc_dep: true
# ## used by gem2rpm
# :preamble: |-
#   BuildRequires: foobar
#   Requires: foobar
# ## used by gem2rpm
# :patches:
#   foo.patch: -p1
#   bar.patch: 
# ## used by gem2rpm
:sources:
# - foo.desktop
# - bar.desktop
# :gem_install_args: '....'
# ## used by gem2rpm
# :pre_install: |-
#   %if 0%{?use_system_libev}
#   export USE_VENDORED_LIBEV="no"
#   %endif
# ## used by gem2rpm
# :post_install: |-
#   # delete custom files here or do other fancy stuff
#   install -D -m 0644 %{S:1} %{buildroot}%{_bindir}/gem2rpm-opensuse
# ## used by gem2rpm
# :testsuite_command: |-
#   (pushd %{buildroot}%{gem_base}/gems/%{mod_full_name} && rake test)
# ## used by gem2rpm
# :filelist: |-
#   /usr/bin/gem2rpm-opensuse
# ## used by gem2rpm
# :scripts:
#   :post: |-
#     /bin/echo foo
# ## used by gem_packages
# :main:
#   :preamble: |-
#     Requires: util-linux
#     Recommends: pwgen
#   :filelist: |-
#     /usr/bin/gem2rpm-opensuse
# ## used by gem_packages
# :custom:
#   apache:
#     :preamble: |-
#       Requires: .....
#     :filelist: |-
#       /etc/apache2/conf.d/passenger.conf
#     :summary: Custom summary is optional
#     :description: |-
#       Custom description is optional
#
#       bar
#     :post: |-
#       /bin/echo foo
#
++++++ simple_oauth-0.2.0.gem -> simple_oauth-0.3.1.gem ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/.gitignore new/.gitignore
--- old/.gitignore      1970-01-01 01:00:00.000000000 +0100
+++ new/.gitignore      2014-12-29 00:35:36.000000000 +0100
@@ -1,9 +1,10 @@
 *.rbc
-.bundle
 .DS_Store
+.bundle
 .yardoc
+Gemfile.lock
 coverage
 doc
-Gemfile.lock
+measurement
 pkg
 rdoc
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/.rspec new/.rspec
--- old/.rspec  1970-01-01 01:00:00.000000000 +0100
+++ new/.rspec  2014-12-29 00:35:36.000000000 +0100
@@ -1,3 +1,2 @@
 --color
---fail-fast
 --order random
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/.rubocop.yml new/.rubocop.yml
--- old/.rubocop.yml    1970-01-01 01:00:00.000000000 +0100
+++ new/.rubocop.yml    2014-12-29 00:35:36.000000000 +0100
@@ -0,0 +1,57 @@
+Metrics/AbcSize:
+  Max: 16
+
+Metrics/BlockNesting:
+  Max: 1
+
+Metrics/LineLength:
+  AllowURI: true
+  Enabled: false
+
+Metrics/MethodLength:
+  CountComments: false
+  Max: 7
+
+Metrics/ParameterLists:
+  Max: 4
+  CountKeywordArgs: true
+
+Style/AccessModifierIndentation:
+  EnforcedStyle: outdent
+
+Style/CollectionMethods:
+  PreferredMethods:
+    map:      'collect'
+    reduce:   'inject'
+    find:     'detect'
+    find_all: 'select'
+
+Style/Documentation:
+  Enabled: false
+
+Style/DotPosition:
+  EnforcedStyle: trailing
+
+Style/DoubleNegation:
+  Enabled: false
+
+Style/EachWithObject:
+  Enabled: false
+
+Style/Encoding:
+  Enabled: false
+
+Style/HashSyntax:
+  EnforcedStyle: hash_rockets
+
+Style/Lambda:
+  Enabled: false
+
+Style/RaiseArgs:
+  EnforcedStyle: compact
+
+Style/SpaceInsideHashLiteralBraces:
+  EnforcedStyle: no_space
+
+Style/TrailingComma:
+  EnforcedStyleForMultiline: 'comma'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/.travis.yml new/.travis.yml
--- old/.travis.yml     1970-01-01 01:00:00.000000000 +0100
+++ new/.travis.yml     2014-12-29 00:35:36.000000000 +0100
@@ -1,10 +1,21 @@
 language: ruby
+env:
+  global:
+    - JRUBY_OPTS="$JRUBY_OPTS --debug"
 rvm:
-  - rbx-18mode
-  - rbx-19mode
-  - jruby-18mode
-  - jruby-19mode
   - 1.8.7
-  - 1.9.2
   - 1.9.3
+  - 2.0.0
+  - 2.1
+  - jruby-18mode
+  - jruby-19mode
+  - jruby-head
+  - rbx-2
   - ruby-head
+matrix:
+  allow_failures:
+    - rvm: jruby-head
+    - rvm: rbx-2
+    - rvm: ruby-head
+  fast_finish: true
+sudo: false
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/.yardopts new/.yardopts
--- old/.yardopts       1970-01-01 01:00:00.000000000 +0100
+++ new/.yardopts       2014-12-29 00:35:36.000000000 +0100
@@ -1,4 +1,5 @@
 --markup markdown
 -
-HISTORY.md
+CONTRIBUTING.md
 LICENSE.md
+README.md
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Gemfile new/Gemfile
--- old/Gemfile 1970-01-01 01:00:00.000000000 +0100
+++ new/Gemfile 2014-12-29 00:35:36.000000000 +0100
@@ -1,7 +1,17 @@
 source 'https://rubygems.org'
 
-platforms :jruby do
-  gem 'jruby-openssl', '~> 0.7'
+gem 'jruby-openssl', :platforms => :jruby
+gem 'rake'
+
+group :test do
+  gem 'backports'
+  gem 'coveralls'
+  gem 'mime-types', '~> 1.25', :platforms => [:jruby, :ruby_18]
+  gem 'rest-client', '~> 1.6.0', :platforms => [:jruby, :ruby_18]
+  gem 'rspec', '>= 2.14'
+  gem 'rubocop', '>= 0.28', :platforms => [:ruby_19, :ruby_20, :ruby_21]
+  gem 'simplecov', '>= 0.9'
+  gem 'yardstick'
 end
 
 gemspec
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/LICENSE new/LICENSE
--- old/LICENSE 1970-01-01 01:00:00.000000000 +0100
+++ new/LICENSE 1970-01-01 01:00:00.000000000 +0100
@@ -1,22 +0,0 @@
-Copyright (c) 2010 Steve Richert, Erik Michaels-Ober
-
-MIT License
-
-Permission is hereby granted, free of charge, to any person obtaining
-a copy of this software and associated documentation files (the
-"Software"), to deal in the Software without restriction, including
-without limitation the rights to use, copy, modify, merge, publish,
-distribute, sublicense, and/or sell copies of the Software, and to
-permit persons to whom the Software is furnished to do so, subject to
-the following conditions:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/LICENSE.md new/LICENSE.md
--- old/LICENSE.md      1970-01-01 01:00:00.000000000 +0100
+++ new/LICENSE.md      2014-12-29 00:35:36.000000000 +0100
@@ -0,0 +1,20 @@
+Copyright (c) 2010-2013 Steve Richert, Erik Michaels-Ober
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/README.md new/README.md
--- old/README.md       1970-01-01 01:00:00.000000000 +0100
+++ new/README.md       2014-12-29 00:35:36.000000000 +0100
@@ -1,4 +1,16 @@
-# simple_oauth [![Build 
Status](https://secure.travis-ci.org/laserlemon/simple_oauth.png)](http://travis-ci.org/laserlemon/simple_oauth)
 [![Dependency 
Status](https://gemnasium.com/laserlemon/simple_oauth.png)](https://gemnasium.com/laserlemon/simple_oauth)
+# simple_oauth
+
+[![Gem Version](http://img.shields.io/gem/v/simple_oauth.svg)][gem]
+[![Build 
Status](http://img.shields.io/travis/laserlemon/simple_oauth.svg)][travis]
+[![Dependency 
Status](http://img.shields.io/gemnasium/laserlemon/simple_oauth.svg)][gemnasium]
+[![Code 
Climate](http://img.shields.io/codeclimate/github/laserlemon/simple_oauth.svg)][codeclimate]
+[![Coverage 
Status](http://img.shields.io/coveralls/laserlemon/simple_oauth.svg)][coveralls]
+
+[gem]: https://rubygems.org/gems/simple_oauth
+[travis]: http://travis-ci.org/laserlemon/simple_oauth
+[gemnasium]: https://gemnasium.com/laserlemon/simple_oauth
+[codeclimate]: https://codeclimate.com/github/laserlemon/simple_oauth
+[coveralls]: https://coveralls.io/r/laserlemon/simple_oauth
 
 Simply builds and verifies OAuth headers
 
@@ -8,14 +20,13 @@
 implementations:
 
 * Ruby 1.8.7
-* Ruby 1.9.2
 * Ruby 1.9.3
-* Ruby head
-* [JRuby](http://www.jruby.org/)
+* Ruby 2.0.0
+* Ruby 2.1
+* [JRuby](http://jruby.org/)
 * [Rubinius](http://rubini.us/)
 
-If something doesn't work on one of these interpreters, it should be considered
-a bug.
+If something doesn't work on one of these interpreters, it's a bug.
 
 This library may inadvertently work (or seem to work) on other Ruby
 implementations, however support will only be provided for the versions listed
@@ -24,10 +35,10 @@
 If you would like this library to support another Ruby version, you may
 volunteer to be a maintainer. Being a maintainer entails making sure all tests
 run and pass on that implementation. When something breaks on your
-implementation, you will be personally responsible for providing patches in a
-timely fashion. If critical issues for a particular implementation exist at the
-time of a major release, support for that Ruby version may be dropped.
+implementation, you will be responsible for providing patches in a timely
+fashion. If critical issues for a particular implementation exist at the time
+of a major release, support for that Ruby version may be dropped.
 
 ## Copyright
-Copyright (c) 2010 Steve Richert, Erik Michaels-Ober.
-See [LICENSE](https://github.com/laserlemon/simple_oauth/blob/master/LICENSE) 
for details.
+Copyright (c) 2010-2013 Steve Richert, Erik Michaels-Ober. See
+[LICENSE](LICENSE.md) for details.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Rakefile new/Rakefile
--- old/Rakefile        1970-01-01 01:00:00.000000000 +0100
+++ new/Rakefile        2014-12-29 00:35:36.000000000 +0100
@@ -3,4 +3,25 @@
 
 RSpec::Core::RakeTask.new(:spec)
 
-task :default => :spec
+task :test => :spec
+
+begin
+  require 'rubocop/rake_task'
+  RuboCop::RakeTask.new
+rescue LoadError
+  task :rubocop do
+    $stderr.puts 'RuboCop is disabled'
+  end
+end
+
+require 'yardstick/rake/measurement'
+Yardstick::Rake::Measurement.new do |measurement|
+  measurement.output = 'measurement/report.txt'
+end
+
+require 'yardstick/rake/verify'
+Yardstick::Rake::Verify.new do |verify|
+  verify.threshold = 47
+end
+
+task :default => [:spec, :rubocop, :verify_measurements]
Files old/checksums.yaml.gz and new/checksums.yaml.gz differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/simple_oauth/header.rb 
new/lib/simple_oauth/header.rb
--- old/lib/simple_oauth/header.rb      1970-01-01 01:00:00.000000000 +0100
+++ new/lib/simple_oauth/header.rb      2014-12-29 00:35:36.000000000 +0100
@@ -6,6 +6,9 @@
 module SimpleOAuth
   class Header
     ATTRIBUTE_KEYS = [:callback, :consumer_key, :nonce, :signature_method, 
:timestamp, :token, :verifier, :version] unless defined? 
::SimpleOAuth::Header::ATTRIBUTE_KEYS
+
+    IGNORED_KEYS = [:consumer_secret, :token_secret, :signature] unless 
defined? ::SimpleOAuth::Header::IGNORED_KEYS
+
     attr_reader :method, :params, :options
 
     class << self
@@ -14,33 +17,32 @@
           :nonce => OpenSSL::Random.random_bytes(16).unpack('H*')[0],
           :signature_method => 'HMAC-SHA1',
           :timestamp => Time.now.to_i.to_s,
-          :version => '1.0'
+          :version => '1.0',
         }
       end
 
       def parse(header)
         header.to_s.sub(/^OAuth\s/, '').split(/,\s*/).inject({}) do 
|attributes, pair|
           match = pair.match(/^(\w+)\=\"([^\"]*)\"$/)
-          attributes.merge(match[1].sub(/^oauth_/, '').to_sym => 
decode(match[2]))
+          attributes.merge(match[1].sub(/^oauth_/, '').to_sym => 
unescape(match[2]))
         end
       end
 
       def escape(value)
         uri_parser.escape(value.to_s, /[^a-z0-9\-\.\_\~]/i)
       end
-      alias encode escape
+      alias_method :encode, :escape
 
       def unescape(value)
         uri_parser.unescape(value.to_s)
       end
-      alias decode unescape
+      alias_method :decode, :unescape
 
     private
 
       def uri_parser
         @uri_parser ||= URI.const_defined?(:Parser) ? URI::Parser.new : URI
       end
-
     end
 
     def initialize(method, url, params, oauth = {})
@@ -78,11 +80,17 @@
   private
 
     def normalized_attributes
-      signed_attributes.sort_by{|k,v| k.to_s }.map{|k,v| 
%(#{k}="#{self.class.encode(v)}") }.join(', ')
+      signed_attributes.sort_by { |k, _| k.to_s }.collect { |k, v| 
%(#{k}="#{self.class.escape(v)}") }.join(', ')
     end
 
     def attributes
-      ATTRIBUTE_KEYS.inject({}){|a,k| options[k] ? a.merge(:"oauth_#{k}" => 
options[k]) : a }
+      matching_keys, extra_keys = options.keys.partition { |key| 
ATTRIBUTE_KEYS.include?(key) }
+      extra_keys -= IGNORED_KEYS
+      if options[:ignore_extra_keys] || extra_keys.empty?
+        Hash[options.select { |key, _| matching_keys.include?(key) }.collect { 
|key, value| [:"oauth_#{key}", value] }]
+      else
+        fail "SimpleOAuth: Found extra option keys not matching 
ATTRIBUTE_KEYS:\n  [#{extra_keys.collect(&:inspect).join(', ')}]"
+      end
     end
 
     def signature
@@ -94,16 +102,16 @@
     end
 
     def secret
-      options.values_at(:consumer_secret, :token_secret).map{|v| 
self.class.encode(v) }.join('&')
+      options.values_at(:consumer_secret, :token_secret).collect { |v| 
self.class.escape(v) }.join('&')
     end
     alias_method :plaintext_signature, :secret
 
     def signature_base
-      [method, url, normalized_params].map{|v| self.class.encode(v) }.join('&')
+      [method, url, normalized_params].collect { |v| self.class.escape(v) 
}.join('&')
     end
 
     def normalized_params
-      signature_params.map{|p| p.map{|v| self.class.encode(v) } }.sort.map{|p| 
p.join('=') }.join('&')
+      signature_params.collect { |p| p.collect { |v| self.class.escape(v) } 
}.sort.collect { |p| p.join('=') }.join('&')
     end
 
     def signature_params
@@ -111,7 +119,7 @@
     end
 
     def url_params
-      CGI.parse(@uri.query || '').inject([]){|p,(k,vs)| p + vs.sort.map{|v| 
[k, v] } }
+      CGI.parse(@uri.query || '').inject([]) { |p, (k, vs)| p + 
vs.sort.collect { |v| [k, v] } }
     end
 
     def rsa_sha1_signature
@@ -121,6 +129,5 @@
     def private_key
       OpenSSL::PKey::RSA.new(options[:consumer_secret])
     end
-
   end
 end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/metadata new/metadata
--- old/metadata        1970-01-01 01:00:00.000000000 +0100
+++ new/metadata        2014-12-29 00:35:36.000000000 +0100
@@ -1,8 +1,7 @@
 --- !ruby/object:Gem::Specification
 name: simple_oauth
 version: !ruby/object:Gem::Version
-  prerelease: 
-  version: 0.2.0
+  version: 0.3.1
 platform: ruby
 authors:
 - Steve Richert
@@ -10,56 +9,22 @@
 autorequire: 
 bindir: bin
 cert_chain: []
-date: 2012-12-02 00:00:00.000000000 Z
+date: 2014-12-28 00:00:00.000000000 Z
 dependencies:
 - !ruby/object:Gem::Dependency
-  version_requirements: !ruby/object:Gem::Requirement
-    requirements:
-    - - ! '>='
-      - !ruby/object:Gem::Version
-        version: '0'
-    none: false
-  name: rake
-  type: :development
-  prerelease: false
+  name: bundler
   requirement: !ruby/object:Gem::Requirement
     requirements:
-    - - ! '>='
-      - !ruby/object:Gem::Version
-        version: '0'
-    none: false
-- !ruby/object:Gem::Dependency
-  version_requirements: !ruby/object:Gem::Requirement
-    requirements:
-    - - ! '>='
+    - - "~>"
       - !ruby/object:Gem::Version
-        version: '2'
-    none: false
-  name: rspec
+        version: '1.0'
   type: :development
   prerelease: false
-  requirement: !ruby/object:Gem::Requirement
-    requirements:
-    - - ! '>='
-      - !ruby/object:Gem::Version
-        version: '2'
-    none: false
-- !ruby/object:Gem::Dependency
   version_requirements: !ruby/object:Gem::Requirement
     requirements:
-    - - ! '>='
-      - !ruby/object:Gem::Version
-        version: '0'
-    none: false
-  name: simplecov
-  type: :development
-  prerelease: false
-  requirement: !ruby/object:Gem::Requirement
-    requirements:
-    - - ! '>='
+    - - "~>"
       - !ruby/object:Gem::Version
-        version: '0'
-    none: false
+        version: '1.0'
 description: Simply builds and verifies OAuth headers
 email:
 - [email protected]
@@ -68,47 +33,42 @@
 extensions: []
 extra_rdoc_files: []
 files:
-- .gemtest
-- .gitignore
-- .rspec
-- .travis.yml
-- .yardopts
+- ".gitignore"
+- ".rspec"
+- ".rubocop.yml"
+- ".travis.yml"
+- ".yardopts"
 - CONTRIBUTING.md
 - Gemfile
-- LICENSE
+- LICENSE.md
 - README.md
 - Rakefile
 - lib/simple_oauth.rb
 - lib/simple_oauth/header.rb
 - simple_oauth.gemspec
-- spec/helper.rb
-- spec/simple_oauth/header_spec.rb
-- spec/support/fixtures/rsa-private-key
-- spec/support/rsa.rb
 homepage: https://github.com/laserlemon/simple_oauth
 licenses:
 - MIT
+metadata: {}
 post_install_message: 
 rdoc_options: []
 require_paths:
 - lib
 required_ruby_version: !ruby/object:Gem::Requirement
   requirements:
-  - - ! '>='
+  - - ">="
     - !ruby/object:Gem::Version
       version: '0'
-  none: false
 required_rubygems_version: !ruby/object:Gem::Requirement
   requirements:
-  - - ! '>='
+  - - ">="
     - !ruby/object:Gem::Version
       version: '0'
-  none: false
 requirements: []
 rubyforge_project: 
-rubygems_version: 1.8.23
+rubygems_version: 2.4.5
 signing_key: 
-specification_version: 3
+specification_version: 4
 summary: Simply builds and verifies OAuth headers
 test_files: []
 has_rdoc: 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/simple_oauth.gemspec new/simple_oauth.gemspec
--- old/simple_oauth.gemspec    1970-01-01 01:00:00.000000000 +0100
+++ new/simple_oauth.gemspec    2014-12-29 00:35:36.000000000 +0100
@@ -1,21 +1,15 @@
-# encoding: utf-8
-
 Gem::Specification.new do |spec|
+  spec.add_development_dependency 'bundler', '~> 1.0'
   spec.name    = 'simple_oauth'
-  spec.version = '0.2.0'
+  spec.version = '0.3.1'
 
-  spec.authors     = ["Steve Richert", "Erik Michaels-Ober"]
-  spec.email       = ['[email protected]', '[email protected]']
+  spec.authors     = ['Steve Richert', 'Erik Michaels-Ober']
+  spec.email       = %w([email protected] [email protected])
   spec.description = 'Simply builds and verifies OAuth headers'
   spec.summary     = spec.description
   spec.homepage    = 'https://github.com/laserlemon/simple_oauth'
-  spec.licenses    = ['MIT']
-
-  spec.add_development_dependency 'rake'
-  spec.add_development_dependency 'rspec', '>= 2'
-  spec.add_development_dependency 'simplecov'
+  spec.licenses    = %w(MIT)
 
-  spec.files         = `git ls-files`.split($\)
-  spec.test_files    = spec.files.grep(/^test\//)
-  spec.require_paths = ["lib"]
+  spec.files         = `git ls-files -z`.split("\x0").reject { |f| 
f.start_with?('spec/') }
+  spec.require_paths = %w(lib)
 end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/spec/helper.rb new/spec/helper.rb
--- old/spec/helper.rb  1970-01-01 01:00:00.000000000 +0100
+++ new/spec/helper.rb  1970-01-01 01:00:00.000000000 +0100
@@ -1,21 +0,0 @@
-unless ENV['CI']
-  require 'simplecov'
-  SimpleCov.start do
-    add_filter 'spec'
-  end
-end
-
-require 'simple_oauth'
-require 'rspec'
-
-def uri_parser
-  @uri_parser ||= URI.const_defined?(:Parser) ? URI::Parser.new : URI
-end
-
-RSpec.configure do |config|
-  config.expect_with :rspec do |c|
-    c.syntax = :expect
-  end
-end
-
-Dir[File.expand_path('../support/**/*.rb', __FILE__)].each{|f| require f }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/spec/simple_oauth/header_spec.rb 
new/spec/simple_oauth/header_spec.rb
--- old/spec/simple_oauth/header_spec.rb        1970-01-01 01:00:00.000000000 
+0100
+++ new/spec/simple_oauth/header_spec.rb        1970-01-01 01:00:00.000000000 
+0100
@@ -1,372 +0,0 @@
-# encoding: utf-8
-
-require 'helper'
-
-describe SimpleOAuth::Header do
-  describe ".default_options" do
-    let(:default_options){ SimpleOAuth::Header.default_options }
-
-    it "is different every time" do
-      expect(SimpleOAuth::Header.default_options).not_to eq default_options
-    end
-
-    it "is used for new headers" do
-      SimpleOAuth::Header.stub(:default_options => default_options)
-      header = SimpleOAuth::Header.new(:get, 
'https://api.twitter.com/1/statuses/friendships.json', {})
-      expect(header.options).to eq default_options
-    end
-
-    it "includes a signature method and an OAuth version" do
-      expect(default_options[:signature_method]).not_to be_nil
-      expect(default_options[:version]).not_to be_nil
-    end
-  end
-
-  describe ".escape" do
-    it "escapes (most) non-word characters" do
-      [' ', '!', '@', '#', '$', '%', '^', '&'].each do |character|
-        escaped = SimpleOAuth::Header.escape(character)
-        expect(escaped).not_to eq character
-        expect(escaped).to eq uri_parser.escape(character, /.*/)
-      end
-    end
-
-    it "does not escape - . or ~" do
-      ['-', '.', '~'].each do |character|
-        escaped = SimpleOAuth::Header.escape(character)
-        expect(escaped).to eq character
-      end
-    end
-
-    def self.test_special_characters
-      it "escapes non-ASCII characters" do
-        expect(SimpleOAuth::Header.escape('é')).to eq '%C3%A9'
-      end
-
-      it "escapes multibyte characters" do
-        expect(SimpleOAuth::Header.escape('あ')).to eq '%E3%81%82'
-      end
-    end
-
-    if RUBY_VERSION >= '1.9'
-      test_special_characters
-    else
-      %w(n N e E s S u U).each do |kcode|
-        describe %(when $KCODE = "#{kcode}") do
-          original_kcode = $KCODE
-          begin
-            $KCODE = kcode
-            test_special_characters
-          ensure
-            $KCODE = original_kcode
-          end
-        end
-      end
-    end
-  end
-
-  describe ".unescape" do
-    pending
-  end
-
-  describe ".parse" do
-    let(:header){ SimpleOAuth::Header.new(:get, 
'https://api.twitter.com/1/statuses/friends.json', {}) }
-    let(:parsed_options){ SimpleOAuth::Header.parse(header) }
-
-    it "returns a hash" do
-      expect(parsed_options).to be_a(Hash)
-    end
-
-    it "includes the options used to build the header" do
-      expect(parsed_options.reject{|k,_| k == :signature }).to eq 
header.options
-    end
-
-    it "includes a signature" do
-      expect(header.options).not_to have_key(:signature)
-      expect(parsed_options).to have_key(:signature)
-      expect(parsed_options[:signature]).not_to be_nil
-    end
-
-    it "handles optional 'linear white space'" do
-      parsed_header_with_spaces = SimpleOAuth::Header.parse 'OAuth 
oauth_consumer_key="abcd", oauth_nonce="oLKtec51GQy", 
oauth_signature="efgh%26mnop", oauth_signature_method="PLAINTEXT", 
oauth_timestamp="1286977095", oauth_token="ijkl", oauth_version="1.0"'
-      expect(parsed_header_with_spaces).to be_a_kind_of(Hash)
-      expect(parsed_header_with_spaces.keys.size).to eq 7
-
-      parsed_header_with_tabs = SimpleOAuth::Header.parse 'OAuth 
oauth_consumer_key="abcd", oauth_nonce="oLKtec51GQy",  
oauth_signature="efgh%26mnop",  oauth_signature_method="PLAINTEXT", 
oauth_timestamp="1286977095", oauth_token="ijkl", oauth_version="1.0"'
-      expect(parsed_header_with_tabs).to be_a_kind_of(Hash)
-      expect(parsed_header_with_tabs.keys.size).to eq 7
-
-      parsed_header_with_spaces_and_tabs = SimpleOAuth::Header.parse 'OAuth 
oauth_consumer_key="abcd",  oauth_nonce="oLKtec51GQy",   
oauth_signature="efgh%26mnop",   oauth_signature_method="PLAINTEXT",  
oauth_timestamp="1286977095",  oauth_token="ijkl",  oauth_version="1.0"'
-      expect(parsed_header_with_spaces_and_tabs).to be_a_kind_of(Hash)
-      expect(parsed_header_with_spaces_and_tabs.keys.size).to eq 7
-
-      parsed_header_without_spaces = SimpleOAuth::Header.parse 'OAuth 
oauth_consumer_key="abcd",oauth_nonce="oLKtec51GQy",oauth_signature="efgh%26mnop",oauth_signature_method="PLAINTEXT",oauth_timestamp="1286977095",oauth_token="ijkl",oauth_version="1.0"'
-      expect(parsed_header_without_spaces).to be_a_kind_of(Hash)
-      expect(parsed_header_without_spaces.keys.size).to eq 7
-    end
-  end
-
-  describe "#initialize" do
-    let(:header){ SimpleOAuth::Header.new(:get, 
'HTTPS://api.TWITTER.com:443/1/statuses/friendships.json?foo=bar#anchor', {}) }
-
-    it "stringifies and uppercases the request method" do
-      expect(header.method).to eq 'GET'
-    end
-
-    it "downcases the scheme and authority" do
-      expect(header.url).to match %r(^https://api\.twitter\.com/)
-    end
-
-    it "ignores the query and fragment" do
-      expect(header.url).to match %r(/1/statuses/friendships\.json$)
-    end
-  end
-
-  describe "#valid?" do
-    context "using the HMAC-SHA1 signature method" do
-      it "requires consumer and token secrets" do
-        secrets = {:consumer_secret => 'CONSUMER_SECRET', :token_secret => 
'TOKEN_SECRET'}
-        header = SimpleOAuth::Header.new(:get, 
'https://api.twitter.com/1/statuses/friends.json', {}, secrets)
-        parsed_header = SimpleOAuth::Header.new(:get, 
'https://api.twitter.com/1/statuses/friends.json', {}, header)
-        expect(parsed_header).not_to be_valid
-        expect(parsed_header).to be_valid(secrets)
-      end
-    end
-
-    context "using the RSA-SHA1 signature method" do
-      it "requires an identical private key" do
-        secrets = {:consumer_secret => rsa_private_key}
-        header = SimpleOAuth::Header.new(:get, 
'https://api.twitter.com/1/statuses/friends.json', {}, 
secrets.merge(:signature_method => 'RSA-SHA1'))
-        parsed_header = SimpleOAuth::Header.new(:get, 
'https://api.twitter.com/1/statuses/friends.json', {}, header)
-        expect{ parsed_header.valid? }.to raise_error(TypeError)
-        expect(parsed_header).to be_valid(secrets)
-      end
-    end
-
-    context "using the RSA-SHA1 signature method" do
-      it "requires consumer and token secrets" do
-        secrets = {:consumer_secret => 'CONSUMER_SECRET', :token_secret => 
'TOKEN_SECRET'}
-        header = SimpleOAuth::Header.new(:get, 
'https://api.twitter.com/1/statuses/friends.json', {}, 
secrets.merge(:signature_method => 'PLAINTEXT'))
-        parsed_header = SimpleOAuth::Header.new(:get, 
'https://api.twitter.com/1/statuses/friends.json', {}, header)
-        expect(parsed_header).not_to be_valid
-        expect(parsed_header).to be_valid(secrets)
-      end
-    end
-  end
-
-  describe "#normalized_attributes" do
-    let(:header){ SimpleOAuth::Header.new(:get, 
'https://api.twitter.com/1/statuses/friends.json', {}) }
-    let(:normalized_attributes){ header.send(:normalized_attributes) }
-
-    it "returns a sorted-key, quoted-value and comma-separated list" do
-      header.stub(:signed_attributes => {:d => 1, :c => 2, :b => 3, :a => 4})
-      expect(normalized_attributes).to eq 'a="4", b="3", c="2", d="1"'
-    end
-
-    it "URI encodes its values" do
-      header.stub(:signed_attributes => {1 => '!', 2 => '@', 3 => '#', 4 => 
'$'})
-      expect(normalized_attributes).to eq '1="%21", 2="%40", 3="%23", 4="%24"'
-    end
-  end
-
-  describe "#signed_attributes" do
-    it "includes the OAuth signature" do
-      header = SimpleOAuth::Header.new(:get, 
'https://api.twitter.com/1/statuses/friends.json', {})
-      expect(header.send(:signed_attributes)).to have_key(:oauth_signature)
-    end
-  end
-
-  describe "#attributes" do
-    let(:header) do
-      options = {}
-      SimpleOAuth::Header::ATTRIBUTE_KEYS.each{|k| options[k] = k.to_s.upcase }
-      options[:other] = 'OTHER'
-      SimpleOAuth::Header.new(:get, 
'https://api.twitter.com/1/statuses/friendships.json', {}, options)
-    end
-    let(:attributes){ header.send(:attributes) }
-
-    it "prepends keys with 'oauth_'" do
-      expect(attributes.keys).to be_all{|k| k.to_s =~ /^oauth_/ }
-    end
-
-    it "excludes keys not included in the list of valid attributes" do
-      expect(attributes.keys).to be_all{|k| k.is_a?(Symbol) }
-      expect(attributes).not_to have_key(:oauth_other)
-    end
-
-    it "preserves values for valid keys" do
-      expect(attributes.size).to eq SimpleOAuth::Header::ATTRIBUTE_KEYS.size
-      expect(attributes).to be_all{|k,v| k.to_s == "oauth_#{v.downcase}" }
-    end
-  end
-
-  describe "#signature" do
-    context "calls the appropriate signature method" do
-      specify "when using HMAC-SHA1" do
-        header = SimpleOAuth::Header.new(:get, 
'https://api.twitter.com/1/statuses/friends.json', {}, :signature_method => 
'HMAC-SHA1')
-        
header.should_receive(:hmac_sha1_signature).once.and_return('HMAC_SHA1_SIGNATURE')
-        expect(header.send(:signature)).to eq 'HMAC_SHA1_SIGNATURE'
-      end
-
-      specify "when using RSA-SHA1" do
-        header = SimpleOAuth::Header.new(:get, 
'https://api.twitter.com/1/statuses/friends.json', {}, :signature_method => 
'RSA-SHA1')
-        
header.should_receive(:rsa_sha1_signature).once.and_return('RSA_SHA1_SIGNATURE')
-        expect(header.send(:signature)).to eq 'RSA_SHA1_SIGNATURE'
-      end
-
-      specify "when using PLAINTEXT" do
-        header = SimpleOAuth::Header.new(:get, 
'https://api.twitter.com/1/statuses/friends.json', {}, :signature_method => 
'PLAINTEXT')
-        
header.should_receive(:plaintext_signature).once.and_return('PLAINTEXT_SIGNATURE')
-        expect(header.send(:signature)).to eq 'PLAINTEXT_SIGNATURE'
-      end
-    end
-  end
-
-  describe "#hmac_sha1_signature" do
-    it "reproduces a successful Twitter GET" do
-      options = {
-        :consumer_key => '8karQBlMg6gFOwcf8kcoYw',
-        :consumer_secret => '3d0vcHyUiiqADpWxolW8nlDIpSWMlyK7YNgc5Qna2M',
-        :nonce => '547fed103e122eecf84c080843eedfe6',
-        :signature_method => 'HMAC-SHA1',
-        :timestamp => '1286830180',
-        :token => '201425800-Sv4sTcgoffmHGkTCue0JnURT8vrm4DiFAkeFNDkh',
-        :token_secret => 'T5qa1tF57tfDzKmpM89DHsNuhgOY4NT6DlNLsTFcuQ'
-      }
-      header = SimpleOAuth::Header.new(:get, 
'https://api.twitter.com/1/statuses/friends.json', {}, options)
-      expect(header.to_s).to eq 'OAuth 
oauth_consumer_key="8karQBlMg6gFOwcf8kcoYw", 
oauth_nonce="547fed103e122eecf84c080843eedfe6", 
oauth_signature="i9CT6ahDRAlfGX3hKYf78QzXsaw%3D", 
oauth_signature_method="HMAC-SHA1", oauth_timestamp="1286830180", 
oauth_token="201425800-Sv4sTcgoffmHGkTCue0JnURT8vrm4DiFAkeFNDkh", 
oauth_version="1.0"'
-    end
-
-    it "reproduces a successful Twitter POST" do
-      options = {
-        :consumer_key => '8karQBlMg6gFOwcf8kcoYw',
-        :consumer_secret => '3d0vcHyUiiqADpWxolW8nlDIpSWMlyK7YNgc5Qna2M',
-        :nonce => 'b40a3e0f18590ecdcc0e273f7d7c82f8',
-        :signature_method => 'HMAC-SHA1',
-        :timestamp => '1286830181',
-        :token => '201425800-Sv4sTcgoffmHGkTCue0JnURT8vrm4DiFAkeFNDkh',
-        :token_secret => 'T5qa1tF57tfDzKmpM89DHsNuhgOY4NT6DlNLsTFcuQ'
-      }
-      header = SimpleOAuth::Header.new(:post, 
'https://api.twitter.com/1/statuses/update.json', {:status => 'hi, again'}, 
options)
-      expect(header.to_s).to eq 'OAuth 
oauth_consumer_key="8karQBlMg6gFOwcf8kcoYw", 
oauth_nonce="b40a3e0f18590ecdcc0e273f7d7c82f8", 
oauth_signature="mPqSFKejrWWk3ZT9bTQjhO5b2xI%3D", 
oauth_signature_method="HMAC-SHA1", oauth_timestamp="1286830181", 
oauth_token="201425800-Sv4sTcgoffmHGkTCue0JnURT8vrm4DiFAkeFNDkh", 
oauth_version="1.0"'
-    end
-  end
-
-  describe "#secret" do
-    let(:header){ SimpleOAuth::Header.new(:get, 
'https://api.twitter.com/1/statuses/friendships.json', {}) }
-    let(:secret){ header.send(:secret) }
-
-    it "combines the consumer and token secrets with an ampersand" do
-      header.stub(:options => {:consumer_secret => 'CONSUMER_SECRET', 
:token_secret => 'TOKEN_SECRET'})
-      expect(secret).to eq 'CONSUMER_SECRET&TOKEN_SECRET'
-    end
-
-    it "URI encodes each secret value before combination" do
-      header.stub(:options => {:consumer_secret => 'CONSUM#R_SECRET', 
:token_secret => 'TOKEN_S#CRET'})
-      expect(secret).to eq 'CONSUM%23R_SECRET&TOKEN_S%23CRET'
-    end
-  end
-
-  describe "#signature_base" do
-    let(:header){ SimpleOAuth::Header.new(:get, 
'https://api.twitter.com/1/statuses/friendships.json', {}) }
-    let(:signature_base){ header.send(:signature_base) }
-
-    it "combines the request method, URL and normalized parameters using 
ampersands" do
-      header.stub(:method => 'METHOD', :url => 'URL', :normalized_params => 
'NORMALIZED_PARAMS')
-      expect(signature_base).to eq 'METHOD&URL&NORMALIZED_PARAMS'
-    end
-
-    it "URI encodes each value before combination" do
-      header.stub(:method => 'ME#HOD', :url => 'U#L', :normalized_params => 
'NORMAL#ZED_PARAMS')
-      expect(signature_base).to eq 'ME%23HOD&U%23L&NORMAL%23ZED_PARAMS'
-    end
-  end
-
-  describe "#normalized_params" do
-    let(:header) do
-      header = SimpleOAuth::Header.new(:get, 
'https://api.twitter.com/1/statuses/friendships.json', {})
-      header.stub(:signature_params => [['A', '4'], ['B', '3'], ['B', '2'], 
['C', '1'], ['D[]', '0 ']])
-      header
-    end
-    let(:signature_params){ header.send(:signature_params) }
-    let(:normalized_params){ header.send(:normalized_params) }
-
-    it "joins key/value pairs with equal signs and ampersands" do
-      expect(normalized_params).to be_a(String)
-      parts = normalized_params.split('&')
-      expect(parts.size).to eq signature_params.size
-      pairs = parts.map{|p| p.split('=') }
-      expect(pairs).to be_all{|p| p.size == 2 }
-    end
-  end
-
-  describe "#signature_params" do
-    let(:header){ SimpleOAuth::Header.new(:get, 
'https://api.twitter.com/1/statuses/friendships.json', {}) }
-    let(:signature_params){ header.send(:signature_params) }
-
-    it "combines OAuth header attributes, body parameters and URL parameters 
into an flattened array of key/value pairs" do
-      header.stub(
-        :attributes => {:attribute => 'ATTRIBUTE'},
-        :params => {'param' => 'PARAM'},
-        :url_params => [['url_param', '1'], ['url_param', '2']]
-      )
-      expect(signature_params).to eq [
-        [:attribute, 'ATTRIBUTE'],
-        ['param', 'PARAM'],
-        ['url_param', '1'],
-        ['url_param', '2']
-      ]
-    end
-  end
-
-  describe "#url_params" do
-    it "returns an empty array when the URL has no query parameters" do
-      header = SimpleOAuth::Header.new(:get, 
'https://api.twitter.com/1/statuses/friendships.json', {})
-      expect(header.send(:url_params)).to eq []
-    end
-
-    it "returns an array of key/value pairs for each query parameter" do
-      header = SimpleOAuth::Header.new(:get, 
'https://api.twitter.com/1/statuses/friendships.json?test=TEST', {})
-      expect(header.send(:url_params)).to eq [['test', 'TEST']]
-    end
-
-    it "sorts values for repeated keys" do
-      header = SimpleOAuth::Header.new(:get, 
'https://api.twitter.com/1/statuses/friendships.json?test=3&test=1&test=2', {})
-      expect(header.send(:url_params)).to eq [['test', '1'], ['test', '2'], 
['test', '3']]
-    end
-  end
-
-  describe "#rsa_sha1_signature" do
-    it "reproduces a successful OAuth example GET" do
-      options = {
-        :consumer_key => 'dpf43f3p2l4k3l03',
-        :consumer_secret => rsa_private_key,
-        :nonce => '13917289812797014437',
-        :signature_method => 'RSA-SHA1',
-        :timestamp => '1196666512'
-      }
-      header = SimpleOAuth::Header.new(:get, 
'http://photos.example.net/photos', {:file => 'vacaction.jpg', :size => 
'original'}, options)
-      expect(header.to_s).to eq 'OAuth oauth_consumer_key="dpf43f3p2l4k3l03", 
oauth_nonce="13917289812797014437", 
oauth_signature="jvTp%2FwX1TYtByB1m%2BPbyo0lnCOLIsyGCH7wke8AUs3BpnwZJtAuEJkvQL2%2F9n4s5wUmUl4aCI4BwpraNx4RtEXMe5qg5T1LVTGliMRpKasKsW%2F%2Fe%2BRinhejgCuzoH26dyF8iY2ZZ%2F5D1ilgeijhV%2FvBka5twt399mXwaYdCwFYE%3D",
 oauth_signature_method="RSA-SHA1", oauth_timestamp="1196666512", 
oauth_version="1.0"'
-    end
-  end
-
-  describe "#private_key" do
-    pending
-  end
-
-  describe "#plaintext_signature" do
-    it "reproduces a successful OAuth example GET" do
-      options = {
-        :consumer_key => 'abcd',
-        :consumer_secret => 'efgh',
-        :nonce => 'oLKtec51GQy',
-        :signature_method => 'PLAINTEXT',
-        :timestamp => '1286977095',
-        :token => 'ijkl',
-        :token_secret => 'mnop'
-      }
-      header = SimpleOAuth::Header.new(:get, 
'http://host.net/resource?name=value', {:name => 'value'}, options)
-      expect(header.to_s).to eq 'OAuth oauth_consumer_key="abcd", 
oauth_nonce="oLKtec51GQy", oauth_signature="efgh%26mnop", 
oauth_signature_method="PLAINTEXT", oauth_timestamp="1286977095", 
oauth_token="ijkl", oauth_version="1.0"'
-    end
-  end
-end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/spec/support/fixtures/rsa-private-key 
new/spec/support/fixtures/rsa-private-key
--- old/spec/support/fixtures/rsa-private-key   1970-01-01 01:00:00.000000000 
+0100
+++ new/spec/support/fixtures/rsa-private-key   1970-01-01 01:00:00.000000000 
+0100
@@ -1,16 +0,0 @@
------BEGIN PRIVATE KEY-----
-MIICdgIBADANBgkqhkiG9w0BAQEFAASCAmAwggJcAgEAAoGBALRiMLAh9iimur8V
-A7qVvdqxevEuUkW4K+2KdMXmnQbG9Aa7k7eBjK1S+0LYmVjPKlJGNXHDGuy5Fw/d
-7rjVJ0BLB+ubPK8iA/Tw3hLQgXMRRGRXXCn8ikfuQfjUS1uZSatdLB81mydBETlJ
-hI6GH4twrbDJCR2Bwy/XWXgqgGRzAgMBAAECgYBYWVtleUzavkbrPjy0T5FMou8H
-X9u2AC2ry8vD/l7cqedtwMPp9k7TubgNFo+NGvKsl2ynyprOZR1xjQ7WgrgVB+mm
-uScOM/5HVceFuGRDhYTCObE+y1kxRloNYXnx3ei1zbeYLPCHdhxRYW7T0qcynNmw
-rn05/KO2RLjgQNalsQJBANeA3Q4Nugqy4QBUCEC09SqylT2K9FrrItqL2QKc9v0Z
-zO2uwllCbg0dwpVuYPYXYvikNHHg+aCWF+VXsb9rpPsCQQDWR9TT4ORdzoj+Nccn
-qkMsDmzt0EfNaAOwHOmVJ2RVBspPcxt5iN4HI7HNeG6U5YsFBb+/GZbgfBT3kpNG
-WPTpAkBI+gFhjfJvRw38n3g/+UeAkwMI2TJQS4n8+hid0uus3/zOjDySH3XHCUno
-cn1xOJAyZODBo47E+67R4jV1/gzbAkEAklJaspRPXP877NssM5nAZMU0/O/NGCZ+
-3jPgDUno6WbJn5cqm8MqWhW1xGkImgRk+fkDBquiq4gPiT898jusgQJAd5Zrr6Q8
-AO/0isr/3aa6O6NLQxISLKcPDk2NOccAfS/xOtfOz4sJYM3+Bs4Io9+dZGSDCA54
-Lw03eHTNQghS0A==
------END PRIVATE KEY-----
\ No newline at end of file
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/spec/support/rsa.rb new/spec/support/rsa.rb
--- old/spec/support/rsa.rb     1970-01-01 01:00:00.000000000 +0100
+++ new/spec/support/rsa.rb     1970-01-01 01:00:00.000000000 +0100
@@ -1,11 +0,0 @@
-module RSAHelpers
-  PRIVATE_KEY_PATH = File.expand_path('../fixtures/rsa-private-key', __FILE__)
-
-  def rsa_private_key
-    @rsa_private_key ||= File.read(PRIVATE_KEY_PATH)
-  end
-end
-
-RSpec.configure do |config|
-  config.include RSAHelpers
-end

-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to