Browse files

Finally use the gemspec to define dependencies

Just stick with the standard.
  • Loading branch information...
1 parent a4f8fc4 commit 37cb0e0fa81c80cb7219a9a61b757409b981d1e7 @koraktor committed Jul 18, 2011
Showing with 26 additions and 41 deletions.
  1. +1 −19 Gemfile
  2. +14 −8 Gemfile.lock
  3. +11 −14 metior.gemspec
View
20 Gemfile
@@ -1,21 +1,3 @@
source :rubygems
-gem 'hashery', '~> 1.4.0', :platforms => [:jruby, :ruby_18]
-
-group :git do
- gem 'grit', '~> 2.4.1'
-end
-
-group :github do
- gem 'octokit', '~> 0.6.4'
-end
-
-group :development do
- gem 'rake', '~> 0.9.1'
- gem 'yard', '~> 0.7.1'
-end
-
-group :test do
- gem 'mocha', '~> 0.9.12', :require => false
- gem 'shoulda', '~> 2.11.3'
-end
+gemspec
View
22 Gemfile.lock
@@ -1,9 +1,17 @@
+PATH
+ remote: .
+ specs:
+ metior (0.1.4)
+ grit (~> 2.4.1)
+ hashery (~> 1.4.0)
+ octokit (~> 0.6.4)
+
GEM
remote: http://rubygems.org/
specs:
addressable (2.2.6)
diff-lcs (1.1.2)
- faraday (0.7.3)
+ faraday (0.7.4)
addressable (~> 2.2.6)
multipart-post (~> 1.1.0)
rack (< 2, >= 1.1.0)
@@ -25,18 +33,16 @@ GEM
hashie (~> 1.0.0)
multi_json (~> 1.0.2)
rack (1.3.0)
- rake (0.9.1)
+ rake (0.9.2)
shoulda (2.11.3)
- yard (0.7.1)
+ yard (0.7.2)
PLATFORMS
ruby
DEPENDENCIES
- grit (~> 2.4.1)
- hashery (~> 1.4.0)
+ metior!
mocha (~> 0.9.12)
- octokit (~> 0.6.4)
- rake (~> 0.9.1)
+ rake (~> 0.9.2)
shoulda (~> 2.11.3)
- yard (~> 0.7.1)
+ yard (~> 0.7.2)
View
25 metior.gemspec
@@ -12,19 +12,16 @@ Gem::Specification.new do |s|
s.summary = 'A source code history analyzer API'
s.description = 'Metior is a source code history analyzer that provides various statistics about a source code repository and its change over time.'
- Bundler.with_clean_env do
- ENV['BUNDLE_GEMFILE'] = File.expand_path(File.dirname(__FILE__) + '/Gemfile')
- gemfile, lockfile = Bundler.default_gemfile, Bundler.default_lockfile
- Bundler::Definition.build(gemfile, lockfile, nil).dependencies.each do |dep|
- if dep.groups.include?(:development) || dep.groups.include?(:test)
- s.add_development_dependency(dep.name, dep.requirement.to_s)
- else
- s.add_dependency(dep.name, dep.requirement.to_s)
- end
- end
- end
+ s.add_dependency 'grit', '~> 2.4.1'
+ s.add_dependency 'hashery', '~> 1.4.0' if RUBY_VERSION.match(/^1\.8/)
+ s.add_dependency 'octokit', '~> 0.6.4'
- s.files = `git ls-files`.split("\n")
- s.test_files = `git ls-files -- test/*`.split("\n")
- s.require_paths = [ 'lib' ]
+ s.add_development_dependency 'mocha', '~> 0.9.12'
+ s.add_development_dependency 'rake', '~> 0.9.2'
+ s.add_development_dependency 'shoulda', '~> 2.11.3'
+ s.add_development_dependency 'yard', '~> 0.7.2'
+
+ s.files = `git ls-files`.split("\n")
+ s.test_files = `git ls-files -- test/*`.split("\n")
+ s.require_paths = [ 'lib' ]
end

0 comments on commit 37cb0e0

Please sign in to comment.