From f4666eab778f8255bf3401e2a88db9dba5fd124c Mon Sep 17 00:00:00 2001 From: Tadej Murovec Date: Wed, 13 Nov 2013 23:33:35 +0000 Subject: [PATCH] Fix gem install on versions < 1.9. * nokogiri ~> 1.5.10 * mime-types ~> 1.24 --- Gemfile.lock | 20 +++++++++++--------- git-whistles.gemspec | 5 +++++ 2 files changed, 16 insertions(+), 9 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index 73925d9..3658205 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -2,6 +2,8 @@ PATH remote: . specs: git-whistles (0.7.7) + mime-types (~> 1.24) + nokogiri (~> 1.5.10) pivotal-tracker (~> 0.5.6) term-ansicolor @@ -12,17 +14,16 @@ GEM coderay (1.0.9) crack (0.4.1) safe_yaml (~> 0.9.0) - happymapper (0.4.0) + happymapper (0.4.1) libxml-ruby (~> 2.0) libxml-ruby (2.7.0) method_source (0.8.2) - mime-types (1.24) - mini_portile (0.5.1) - nokogiri (1.6.0) - mini_portile (~> 0.5.0) - nokogiri-happymapper (0.5.7) + mime-types (1.25) + nokogiri (1.5.10) + nokogiri-happymapper (0.5.8) nokogiri (~> 1.5) - pivotal-tracker (0.5.10) + pivotal-tracker (0.5.12) + builder builder crack happymapper (>= 0.3.2) @@ -30,6 +31,7 @@ GEM nokogiri (>= 1.5.5) nokogiri-happymapper (>= 0.5.4) rest-client (~> 1.6.0) + rest-client (~> 1.6.0) pry (0.9.12.2) coderay (~> 1.0.5) method_source (~> 0.8) @@ -39,11 +41,11 @@ GEM rake (10.1.0) rest-client (1.6.7) mime-types (>= 1.16) - safe_yaml (0.9.5) + safe_yaml (0.9.7) slop (3.4.6) term-ansicolor (1.2.2) tins (~> 0.8) - tins (0.9.0) + tins (0.13.1) PLATFORMS ruby diff --git a/git-whistles.gemspec b/git-whistles.gemspec index 4031169..9654c8a 100644 --- a/git-whistles.gemspec +++ b/git-whistles.gemspec @@ -20,6 +20,11 @@ Gem::Specification.new do |gem| gem.add_development_dependency "pry" gem.add_development_dependency "pry-nav" + if RUBY_VERSION < "1.9" + gem.add_dependency "nokogiri", "~> 1.5.10" + gem.add_dependency "mime-types", "~> 1.24" + end + gem.add_dependency "pivotal-tracker", "~> 0.5.6" gem.add_dependency "term-ansicolor"