Skip to content

Commit

Permalink
Update compatibility for Ruby 2.4 and latest gems
Browse files Browse the repository at this point in the history
  • Loading branch information
felipecsl committed Jul 5, 2017
1 parent f73d482 commit eff7a2b
Show file tree
Hide file tree
Showing 4 changed files with 72 additions and 47 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ group :development, :test do
gem 'vcr'
gem 'fakeweb'
gem 'coveralls', require: false
end
end
92 changes: 47 additions & 45 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
GEM
remote: http://rubygems.org/
specs:
activesupport (4.2.6)
activesupport (5.1.2)
concurrent-ruby (~> 1.0, >= 1.0.2)
i18n (~> 0.7)
json (~> 1.7, >= 1.7.7)
minitest (~> 5.1)
thread_safe (~> 0.3, >= 0.3.4)
tzinfo (~> 1.1)
addressable (2.4.0)
builder (3.2.2)
coveralls (0.8.13)
json (~> 1.8)
simplecov (~> 0.11.0)
concurrent-ruby (1.0.5)
coveralls (0.8.21)
json (>= 1.8, < 3)
simplecov (~> 0.14.1)
term-ansicolor (~> 1.3)
thor (~> 0.19.1)
tins (~> 1.6.0)
thor (~> 0.19.4)
tins (~> 1.6)
descendants_tracker (0.0.4)
thread_safe (~> 0.3, >= 0.3.1)
diff-lcs (1.2.5)
diff-lcs (1.3)
docile (1.1.5)
domain_name (0.5.20160310)
domain_name (0.5.20170404)
unf (>= 0.0.5, < 1.0.0)
fakeweb (1.3.0)
faraday (0.9.2)
Expand All @@ -34,9 +34,9 @@ GEM
oauth2
hashie (3.4.3)
highline (1.7.8)
http-cookie (1.0.2)
http-cookie (1.0.3)
domain_name (~> 0.5)
i18n (0.7.0)
i18n (0.8.4)
jeweler (2.0.1)
builder
bundler (>= 1.0)
Expand All @@ -46,28 +46,30 @@ GEM
nokogiri (>= 1.5.10)
rake
rdoc
json (1.8.3)
json (1.8.6)
jwt (1.5.1)
mechanize (2.7.4)
mechanize (2.7.5)
domain_name (~> 0.5, >= 0.5.1)
http-cookie (~> 1.0)
mime-types (>= 1.17.2, < 3)
mime-types (>= 1.17.2)
net-http-digest_auth (~> 1.1, >= 1.1.1)
net-http-persistent (~> 2.5, >= 2.5.2)
nokogiri (~> 1.6)
ntlm-http (~> 0.1, >= 0.1.1)
webrobots (>= 0.0.9, < 0.2)
mime-types (2.99.1)
mini_portile2 (2.0.0)
minitest (5.8.4)
mime-types (3.1)
mime-types-data (~> 3.2015)
mime-types-data (3.2016.0521)
mini_portile2 (2.2.0)
minitest (5.10.2)
multi_json (1.11.2)
multi_xml (0.5.5)
multipart-post (2.0.0)
net-http-digest_auth (1.4)
net-http-digest_auth (1.4.1)
net-http-persistent (2.9.4)
netrc (0.11.0)
nokogiri (1.6.7.2)
mini_portile2 (~> 2.0.0.rc2)
nokogiri (1.8.0)
mini_portile2 (~> 2.2.0)
ntlm-http (0.1.1)
oauth2 (1.1.0)
faraday (>= 0.8, < 0.10)
Expand All @@ -76,41 +78,41 @@ GEM
multi_xml (~> 0.5)
rack (>= 1.2, < 3)
rack (1.6.4)
rake (11.1.2)
rake (12.0.0)
rdoc (4.2.2)
json (~> 1.4)
rest-client (1.8.0)
rest-client (2.0.2)
http-cookie (>= 1.0.2, < 2.0)
mime-types (>= 1.16, < 3.0)
netrc (~> 0.7)
rspec (3.4.0)
rspec-core (~> 3.4.0)
rspec-expectations (~> 3.4.0)
rspec-mocks (~> 3.4.0)
rspec-core (3.4.4)
rspec-support (~> 3.4.0)
rspec-expectations (3.4.0)
mime-types (>= 1.16, < 4.0)
netrc (~> 0.8)
rspec (3.6.0)
rspec-core (~> 3.6.0)
rspec-expectations (~> 3.6.0)
rspec-mocks (~> 3.6.0)
rspec-core (3.6.0)
rspec-support (~> 3.6.0)
rspec-expectations (3.6.0)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.4.0)
rspec-mocks (3.4.1)
rspec-support (~> 3.6.0)
rspec-mocks (3.6.0)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.4.0)
rspec-support (3.4.1)
simplecov (0.11.2)
rspec-support (~> 3.6.0)
rspec-support (3.6.0)
simplecov (0.14.1)
docile (~> 1.1.0)
json (~> 1.8)
json (>= 1.8, < 3)
simplecov-html (~> 0.10.0)
simplecov-html (0.10.0)
term-ansicolor (1.3.2)
simplecov-html (0.10.1)
term-ansicolor (1.6.0)
tins (~> 1.0)
thor (0.19.1)
thor (0.19.4)
thread_safe (0.3.5)
tins (1.6.0)
tzinfo (1.2.2)
tins (1.15.0)
tzinfo (1.2.3)
thread_safe (~> 0.1)
unf (0.1.4)
unf_ext
unf_ext (0.0.7.2)
unf_ext (0.0.7.4)
vcr (3.0.1)
webrobots (0.1.2)
yard (0.8.7.6)
Expand All @@ -132,4 +134,4 @@ DEPENDENCIES
yard

BUNDLED WITH
1.11.2
1.15.1
7 changes: 7 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@ require 'jeweler'
require 'rspec/core/rake_task'
require 'yard'

module TempFixForRakeLastComment
def last_comment
last_description
end
end
Rake::Application.send :include, TempFixForRakeLastComment

Jeweler::Tasks.new do |gem|
# gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
gem.name = "wombat"
Expand Down
18 changes: 17 additions & 1 deletion spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,23 @@

Coveralls.wear!

# Temporary patch until this lands
# https://github.com/chrisk/fakeweb/commit/9cd9aae80adecef3d415ce152a0524ee49e3ee69
module FakeWeb
class StubSocket
def closed?
@closed ||= true
@closed ||= false
@closed
end

def close
@closed = true
end
end
end

VCR.configure do |c|
c.cassette_library_dir = 'fixtures/vcr_cassettes'
c.hook_into :fakeweb
end
end

0 comments on commit eff7a2b

Please sign in to comment.