repo_dependency_graph 0.2.3 → 0.2.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fb59e1916c243ff730dbbfda7cf85e123d40b65a
4
- data.tar.gz: 2af07b696b991a261f79b8ff22d258658e7d57ab
3
+ metadata.gz: 0885a841f3292f9cd8c108d6f8a5c182aad4f0a9
4
+ data.tar.gz: fb2f65de34f76899bcf4abe7a2f07dc9d1ff8e09
5
5
  SHA512:
6
- metadata.gz: a8a1debd00fc8296736d624c6fddccd32cffe0ba2a7e7ca75a3f1cf967b1f8d0319fe50e423629104cefd2d11a8aafac29dcfcc9123c1945400b80f37938d3a7
7
- data.tar.gz: cbe7ffb8ee34637d53342b3e645a86071fa3c70fa3d3992a14ed85c94fcbdd495124b452cfc7b81779bd528c9a5d9b29278128aa3063b3be1d305839c0cea422
6
+ metadata.gz: fdd0a854a3193accc6e1e7e3ef5edb825819c9163206197319eefb633a52ca3017a42bf99fc42ba7e43ae5bfb1305425cd631eb98b70a043f08d245e61ec913f
7
+ data.tar.gz: 52bada96648d0cc1e8c3ffaf76d5d6ddd6aa1b563c1ec652eb6d01bfff76cb71db8fbb466de38ea391ac80cac4554a559c6e29f6cd1bc15b2c2e30261decb8b1
@@ -72,12 +72,13 @@ module RepoDependencyGraph
72
72
  end
73
73
 
74
74
  def load_gemspec(repo_name, content)
75
- eval content.
75
+ content = content.
76
76
  gsub(/^\s*(require|require_relative) .*$/, "").
77
77
  gsub(/([a-z\d]+::)+version(::[a-z]+)?/i){|x| x =~ /^Gem::Version$/i ? x : '"1.2.3"' }.
78
78
  gsub(/^\s*\$(:|LOAD_PATH).*/, "").
79
79
  gsub(/(File|IO)\.read\(['"]VERSION.*?\)/, '"1.2.3"').
80
80
  gsub(/(File|IO)\.read\(.*?\)/, '\' VERSION = "1.2.3"\'')
81
+ eval content
81
82
  rescue StandardError, SyntaxError
82
83
  $stderr.puts "Error parsing #{repo_name} gemspec:\n#{content}\n\n#{$!}"
83
84
  nil
@@ -1,3 +1,3 @@
1
1
  module RepoDependencyGraph
2
- VERSION = "0.2.3"
2
+ VERSION = "0.2.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: repo_dependency_graph
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Grosser