gemnasium-parser 0.1.8 → 0.1.9
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +6 -0
- data/gemnasium-parser.gemspec +1 -1
- data/lib/gemnasium/parser.rb +6 -2
- data/spec/gemnasium/parser_spec.rb +9 -0
- metadata +8 -8
data/CHANGELOG.md
CHANGED
data/gemnasium-parser.gemspec
CHANGED
data/lib/gemnasium/parser.rb
CHANGED
@@ -7,11 +7,15 @@ module Gemnasium
|
|
7
7
|
extend Configuration
|
8
8
|
|
9
9
|
def self.gemfile(content)
|
10
|
-
|
10
|
+
# Remove CR chars "\r" from content since it breaks Patterns matching
|
11
|
+
# TODO: Find something cleaner than this workaround
|
12
|
+
Gemnasium::Parser::Gemfile.new(content.gsub("\r",''))
|
11
13
|
end
|
12
14
|
|
13
15
|
def self.gemspec(content)
|
14
|
-
|
16
|
+
# Remove CR chars "\r" from content since it breaks Patterns matching
|
17
|
+
# TODO: Find something cleaner than this workaround
|
18
|
+
Gemnasium::Parser::Gemspec.new(content.gsub("\r",''))
|
15
19
|
end
|
16
20
|
end
|
17
21
|
end
|
@@ -10,6 +10,11 @@ describe Gemnasium::Parser do
|
|
10
10
|
it "returns a Gemfile" do
|
11
11
|
Gemnasium::Parser.gemfile("").should be_a(Gemnasium::Parser::Gemfile)
|
12
12
|
end
|
13
|
+
|
14
|
+
it "removes CR chars from content" do
|
15
|
+
Gemnasium::Parser.gemfile("\r").content.match("\r").should be_nil
|
16
|
+
end
|
17
|
+
|
13
18
|
end
|
14
19
|
|
15
20
|
describe ".gemspec" do
|
@@ -21,5 +26,9 @@ describe Gemnasium::Parser do
|
|
21
26
|
it "returns a Gemspec" do
|
22
27
|
Gemnasium::Parser.gemspec("").should be_a(Gemnasium::Parser::Gemspec)
|
23
28
|
end
|
29
|
+
|
30
|
+
it "removes CR chars from content" do
|
31
|
+
Gemnasium::Parser.gemspec("\r").content.match("\r").should be_nil
|
32
|
+
end
|
24
33
|
end
|
25
34
|
end
|
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.9
|
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-11-
|
12
|
+
date: 2012-11-19 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|
16
|
-
requirement: &
|
16
|
+
requirement: &70359026665040 !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: *70359026665040
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: rspec
|
27
|
-
requirement: &
|
27
|
+
requirement: &70359026664500 !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: *70359026664500
|
36
36
|
description: Safely parse Gemfiles and gemspecs
|
37
37
|
email: steve.richert@gmail.com
|
38
38
|
executables: []
|
@@ -70,7 +70,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
70
70
|
version: '0'
|
71
71
|
segments:
|
72
72
|
- 0
|
73
|
-
hash:
|
73
|
+
hash: -109464191575146336
|
74
74
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
75
75
|
none: false
|
76
76
|
requirements:
|
@@ -79,7 +79,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
79
79
|
version: '0'
|
80
80
|
segments:
|
81
81
|
- 0
|
82
|
-
hash:
|
82
|
+
hash: -109464191575146336
|
83
83
|
requirements: []
|
84
84
|
rubyforge_project:
|
85
85
|
rubygems_version: 1.8.10
|