Skip to content
This repository
Browse code

Merge pull request #29 from wpeterson/ruby_compat_1.8

Fix Ruby 1.8.7 Compatibility and Gem Dependencies
  • Loading branch information...
commit e8dfc73600b39d03c635b0e368c478a9efcf0bc7 2 parents 5f55b94 + ccd80c7
Ben Johnson authored

Showing 1 changed file with 18 additions and 6 deletions. Show diff stats Hide diff stats

  1. 24  settingslogic.gemspec
24  settingslogic.gemspec
@@ -44,21 +44,33 @@ Gem::Specification.new do |s|
44 44
     s.specification_version = 3
45 45
 
46 46
     if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
47  
-      s.add_runtime_dependency(%q<rake>, [">= 0"])
48  
-      s.add_runtime_dependency(%q<jeweler>, [">= 0"])
49  
-      s.add_runtime_dependency(%q<rspec>, [">= 0"])
50  
-      s.add_runtime_dependency(%q<ruby-debug19>, [">= 0"])
  47
+      s.add_development_dependency(%q<rake>, [">= 0"])
  48
+      s.add_development_dependency(%q<jeweler>, [">= 0"])
  49
+      s.add_development_dependency(%q<rspec>, [">= 0"])
  50
+      if RUBY_VERSION < "1.9"
  51
+        s.add_development_dependency(%q<ruby-debug>, [">= 0"])
  52
+      else
  53
+        s.add_development_dependency(%q<ruby-debug19>, [">= 0"])
  54
+      end
51 55
     else
52 56
       s.add_dependency(%q<rake>, [">= 0"])
53 57
       s.add_dependency(%q<jeweler>, [">= 0"])
54 58
       s.add_dependency(%q<rspec>, [">= 0"])
55  
-      s.add_dependency(%q<ruby-debug19>, [">= 0"])
  59
+      if RUBY_VERSION < "1.9"
  60
+        s.add_dependency(%q<ruby-debug>, [">= 0"])
  61
+      else
  62
+        s.add_dependency(%q<ruby-debug19>, [">= 0"])
  63
+      end
56 64
     end
57 65
   else
58 66
     s.add_dependency(%q<rake>, [">= 0"])
59 67
     s.add_dependency(%q<jeweler>, [">= 0"])
60 68
     s.add_dependency(%q<rspec>, [">= 0"])
61  
-    s.add_dependency(%q<ruby-debug19>, [">= 0"])
  69
+    if RUBY_VERSION < "1.9"
  70
+      s.add_dependency(%q<ruby-debug>, [">= 0"])
  71
+    else
  72
+      s.add_dependency(%q<ruby-debug19>, [">= 0"])
  73
+    end
62 74
   end
63 75
 end
64 76
 

0 notes on commit e8dfc73

Please sign in to comment.
Something went wrong with that request. Please try again.