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.
@@ -1,3 +1,9 @@
1
+ ## 0.1.9 (Nov 19, 2012)
2
+
3
+ Bugfixes:
4
+
5
+ - remove CR chars from content before parsing since it breaks patterns matching
6
+
1
7
  ## 0.1.8 (Nov 18, 2012)
2
8
 
3
9
  Bugfixes:
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |gem|
4
4
  gem.name = "gemnasium-parser"
5
- gem.version = "0.1.8"
5
+ gem.version = "0.1.9"
6
6
 
7
7
  gem.authors = "Steve Richert"
8
8
  gem.email = "steve.richert@gmail.com"
@@ -7,11 +7,15 @@ module Gemnasium
7
7
  extend Configuration
8
8
 
9
9
  def self.gemfile(content)
10
- Gemnasium::Parser::Gemfile.new(content)
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
- Gemnasium::Parser::Gemspec.new(content)
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.8
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-18 00:00:00.000000000 Z
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: &70260988742040 !ruby/object:Gem::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: *70260988742040
24
+ version_requirements: *70359026665040
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rspec
27
- requirement: &70260988741400 !ruby/object:Gem::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: *70260988741400
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: 1898758315162998836
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: 1898758315162998836
82
+ hash: -109464191575146336
83
83
  requirements: []
84
84
  rubyforge_project:
85
85
  rubygems_version: 1.8.10