gemnasium-parser 0.1.7 → 0.1.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/CHANGELOG.md ADDED
@@ -0,0 +1,13 @@
1
+ ## 0.1.8 (Nov 18, 2012)
2
+
3
+ Bugfixes:
4
+
5
+ - support :github option and exclude gems that use it
6
+ - add CHANGELOG
7
+
8
+ ## 0.1.7 (Oct 17, 2012)
9
+
10
+ Bugfixes:
11
+
12
+ - fix pattern to allow gem's name with a period
13
+
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |gem|
4
4
  gem.name = "gemnasium-parser"
5
- gem.version = "0.1.7"
5
+ gem.version = "0.1.8"
6
6
 
7
7
  gem.authors = "Steve Richert"
8
8
  gem.email = "steve.richert@gmail.com"
@@ -66,13 +66,17 @@ module Gemnasium
66
66
  end
67
67
 
68
68
  def exclude?(match, opts)
69
- git?(match, opts) || path?(match, opts)
69
+ git?(match, opts) || github?(match, opts) || path?(match, opts)
70
70
  end
71
71
 
72
72
  def git?(match, opts)
73
73
  opts["git"] || in_git_block?(match)
74
74
  end
75
75
 
76
+ def github?(match, opts)
77
+ opts["github"]
78
+ end
79
+
76
80
  def in_git_block?(match)
77
81
  git_matches.any?{|m| in_block?(match, m) }
78
82
  end
@@ -194,6 +194,11 @@ describe Gemnasium::Parser::Gemfile do
194
194
  dependencies.size.should == 0
195
195
  end
196
196
 
197
+ it "ignores gems with a github option" do
198
+ content(%(gem "rails", :github => "rails/rails"))
199
+ dependencies.size.should == 0
200
+ end
201
+
197
202
  it "ignores gems with a path option" do
198
203
  content(%(gem "rails", :path => "vendor/rails"))
199
204
  dependencies.size.should == 0
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.7
4
+ version: 0.1.8
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-10-17 00:00:00.000000000 Z
12
+ date: 2012-11-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake
16
- requirement: &70295486928120 !ruby/object:Gem::Requirement
16
+ requirement: &70260988742040 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 0.8.7
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *70295486928120
24
+ version_requirements: *70260988742040
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rspec
27
- requirement: &70295486927640 !ruby/object:Gem::Requirement
27
+ requirement: &70260988741400 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,7 +32,7 @@ dependencies:
32
32
  version: '2.4'
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *70295486927640
35
+ version_requirements: *70260988741400
36
36
  description: Safely parse Gemfiles and gemspecs
37
37
  email: steve.richert@gmail.com
38
38
  executables: []
@@ -41,6 +41,7 @@ extra_rdoc_files: []
41
41
  files:
42
42
  - .gitignore
43
43
  - .travis.yml
44
+ - CHANGELOG.md
44
45
  - Gemfile
45
46
  - LICENSE
46
47
  - README.md
@@ -67,12 +68,18 @@ required_ruby_version: !ruby/object:Gem::Requirement
67
68
  - - ! '>='
68
69
  - !ruby/object:Gem::Version
69
70
  version: '0'
71
+ segments:
72
+ - 0
73
+ hash: 1898758315162998836
70
74
  required_rubygems_version: !ruby/object:Gem::Requirement
71
75
  none: false
72
76
  requirements:
73
77
  - - ! '>='
74
78
  - !ruby/object:Gem::Version
75
79
  version: '0'
80
+ segments:
81
+ - 0
82
+ hash: 1898758315162998836
76
83
  requirements: []
77
84
  rubyforge_project:
78
85
  rubygems_version: 1.8.10