Skip to content

Commit

Permalink
Avoid gem build error
Browse files Browse the repository at this point in the history
* Use more specific version requirements.
* Use `>=` instead of `==` for Ruby version check.

Fixes:

    ERROR:  Error installing
    /Users/croaky/github.com/thoughtbot/suspenders/pkg/suspenders-1.13.0.gem:
            suspenders requires Ruby version = 2.1.2.
  • Loading branch information
mjankowski authored and Dan Croak committed Jun 11, 2014
1 parent c42bda3 commit 2ce4c8d
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 36 deletions.
58 changes: 26 additions & 32 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ GEM
thread_safe (~> 0.1)
tzinfo (~> 1.1)
arel (5.0.1.20140414130214)
aruba (0.5.3)
aruba (0.5.4)
childprocess (>= 0.3.6)
cucumber (>= 1.1.1)
rspec-expectations (>= 2.7.0)
Expand All @@ -47,28 +47,25 @@ GEM
bourbon (4.0.2)
sass (~> 3.3)
thor
builder (3.1.4)
capybara (2.2.0)
builder (3.2.2)
capybara (2.3.0)
mime-types (>= 1.16)
nokogiri (>= 1.3.3)
rack (>= 1.0.0)
rack-test (>= 0.5.4)
xpath (~> 2.0)
childprocess (0.3.9)
childprocess (0.5.3)
ffi (~> 1.0, >= 1.0.11)
cucumber (1.3.3)
cucumber (1.3.15)
builder (>= 2.1.2)
diff-lcs (>= 1.1.3)
gherkin (~> 2.12.0)
multi_json (~> 1.7.5)
multi_test (~> 0.0.1)
diff-lcs (1.2.4)
gherkin (~> 2.12)
multi_json (>= 1.7.5, < 2.0)
multi_test (>= 0.1.1)
diff-lcs (1.2.5)
erubis (2.7.0)
ffi (1.9.0)
ffi (1.9.0-x86-mingw32)
gherkin (2.12.0)
multi_json (~> 1.3)
gherkin (2.12.0-x86-mingw32)
ffi (1.9.3)
gherkin (2.12.2)
multi_json (~> 1.3)
hike (1.2.3)
i18n (0.6.9)
Expand All @@ -77,14 +74,12 @@ GEM
mime-types (~> 1.16)
treetop (~> 1.4.8)
mime-types (1.25.1)
mini_portile (0.5.2)
mini_portile (0.6.0)
minitest (5.3.4)
multi_json (1.7.9)
multi_test (0.0.1)
nokogiri (1.6.1)
mini_portile (~> 0.5.0)
nokogiri (1.6.1-x86-mingw32)
mini_portile (~> 0.5.0)
multi_json (1.10.1)
multi_test (0.1.1)
nokogiri (1.6.2.1)
mini_portile (= 0.6.0)
polyglot (0.3.5)
rack (1.5.2)
rack-test (0.6.2)
Expand All @@ -105,14 +100,14 @@ GEM
rake (>= 0.8.7)
thor (>= 0.18.1, < 2.0)
rake (10.3.2)
rspec (2.14.1)
rspec-core (~> 2.14.0)
rspec-expectations (~> 2.14.0)
rspec-mocks (~> 2.14.0)
rspec-core (2.14.7)
rspec-expectations (2.14.0)
rspec (2.99.0)
rspec-core (~> 2.99.0)
rspec-expectations (~> 2.99.0)
rspec-mocks (~> 2.99.0)
rspec-core (2.99.0)
rspec-expectations (2.99.0)
diff-lcs (>= 1.1.3, < 2.0)
rspec-mocks (2.14.4)
rspec-mocks (2.99.0)
sass (3.3.8)
sprockets (2.12.1)
hike (~> 1.2)
Expand All @@ -136,11 +131,10 @@ GEM

PLATFORMS
ruby
x86-mingw32

DEPENDENCIES
aruba (~> 0.5.2)
capybara
aruba (~> 0.5)
capybara (~> 2.2, >= 2.2.0)
cucumber (~> 1.2)
rspec
rspec (~> 2.0)
suspenders!
8 changes: 4 additions & 4 deletions suspenders.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ require 'suspenders/version'
require 'date'

Gem::Specification.new do |s|
s.required_ruby_version = Suspenders::RUBY_VERSION
s.required_ruby_version = ">= #{Suspenders::RUBY_VERSION}"
s.authors = ['thoughtbot']
s.date = Date.today.strftime('%Y-%m-%d')

Expand All @@ -31,8 +31,8 @@ rush to build something amazing; don't use it if you like missing deadlines.
s.add_dependency 'bundler', '~> 1.3'
s.add_dependency 'rails', Suspenders::RAILS_VERSION

s.add_development_dependency 'aruba', '~> 0.5.2'
s.add_development_dependency 'aruba', '~> 0.5'
s.add_development_dependency 'cucumber', '~> 1.2'
s.add_development_dependency 'rspec'
s.add_development_dependency 'capybara'
s.add_development_dependency 'rspec', '~> 2.0'
s.add_development_dependency 'capybara', '~> 2.2', '>= 2.2.0'
end

0 comments on commit 2ce4c8d

Please sign in to comment.