gemnasium-parser 0.1.5 → 0.1.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |gem|
4
4
  gem.name = "gemnasium-parser"
5
- gem.version = "0.1.5"
5
+ gem.version = "0.1.6"
6
6
 
7
7
  gem.authors = "Steve Richert"
8
8
  gem.email = "steve.richert@gmail.com"
@@ -94,6 +94,7 @@ module Gemnasium
94
94
  end
95
95
 
96
96
  def clean!(match, opts)
97
+ opts["group"] ||= opts.delete("groups")
97
98
  opts["group"] ||= groups(match)
98
99
  groups = Array(opts["group"]).flatten.compact
99
100
  runtime = groups.empty? || !(groups & Parser.runtime_groups).empty?
@@ -112,6 +112,11 @@ describe Gemnasium::Parser::Gemfile do
112
112
  dependency.groups.should == [:development, :test]
113
113
  end
114
114
 
115
+ it "recognizes :groups" do
116
+ content(%(gem "rake", :groups => [:development, :test]))
117
+ dependency.groups.should == [:development, :test]
118
+ end
119
+
115
120
  it "parses gems in a group" do
116
121
  content(<<-EOF)
117
122
  gem "rake"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gemnasium-parser
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-04-21 00:00:00.000000000 Z
12
+ date: 2012-07-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake
@@ -77,15 +77,21 @@ required_ruby_version: !ruby/object:Gem::Requirement
77
77
  - - ! '>='
78
78
  - !ruby/object:Gem::Version
79
79
  version: '0'
80
+ segments:
81
+ - 0
82
+ hash: 2307865923813949579
80
83
  required_rubygems_version: !ruby/object:Gem::Requirement
81
84
  none: false
82
85
  requirements:
83
86
  - - ! '>='
84
87
  - !ruby/object:Gem::Version
85
88
  version: '0'
89
+ segments:
90
+ - 0
91
+ hash: 2307865923813949579
86
92
  requirements: []
87
93
  rubyforge_project:
88
- rubygems_version: 1.8.21
94
+ rubygems_version: 1.8.24
89
95
  signing_key:
90
96
  specification_version: 3
91
97
  summary: Safely parse Gemfiles and gemspecs