Permalink
Browse files

Move dependencies into the gemspec.

  • Loading branch information...
1 parent c2ccff2 commit 3cef6a0fee47b7e2f825ef4a225a3f4b025f8138 @lazyatom lazyatom committed Apr 6, 2012
Showing with 16 additions and 8 deletions.
  1. +1 −5 Gemfile
  2. +7 −1 Gemfile.lock
  3. +2 −2 Rakefile
  4. +6 −0 printer.gemspec
View
@@ -1,7 +1,3 @@
source :rubygems
-gem "serialport"
-
-group :test do
- gem "mocha"
-end
+gemspec
View
@@ -1,3 +1,9 @@
+PATH
+ remote: .
+ specs:
+ printer (0.1.0)
+ serialport (~> 1.0.4)
+
GEM
remote: http://rubygems.org/
specs:
@@ -11,4 +17,4 @@ PLATFORMS
DEPENDENCIES
mocha
- serialport
+ printer!
View
@@ -39,10 +39,10 @@ spec = Gem::Specification.new do |s|
# If you want to depend on other gems, add them here, along with any
# relevant versions
- # s.add_dependency("some_other_gem", "~> 0.1.0")
+ s.add_dependency("serialport", "~> 1.0.4")
# If your tests use any gems, include them here
- # s.add_development_dependency("mocha") # for example
+ s.add_development_dependency("mocha") # for example
end
# This task actually builds the gem. We also regenerate a static
View
@@ -18,8 +18,14 @@ Gem::Specification.new do |s|
s.specification_version = 3
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
+ s.add_runtime_dependency(%q<serialport>, ["~> 1.0.4"])
+ s.add_development_dependency(%q<mocha>, [">= 0"])
else
+ s.add_dependency(%q<serialport>, ["~> 1.0.4"])
+ s.add_dependency(%q<mocha>, [">= 0"])
end
else
+ s.add_dependency(%q<serialport>, ["~> 1.0.4"])
+ s.add_dependency(%q<mocha>, [">= 0"])
end
end

0 comments on commit 3cef6a0

Please sign in to comment.