gemnasium-parser 0.1.7 → 0.1.8
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +13 -0
- data/gemnasium-parser.gemspec +1 -1
- data/lib/gemnasium/parser/gemfile.rb +5 -1
- data/spec/gemnasium/parser/gemfile_spec.rb +5 -0
- metadata +13 -6
data/CHANGELOG.md
ADDED
data/gemnasium-parser.gemspec
CHANGED
@@ -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.
|
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-
|
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: &
|
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: *
|
24
|
+
version_requirements: *70260988742040
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: rspec
|
27
|
-
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: *
|
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
|