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 +4 -4
- data/lib/repo_dependency_graph.rb +2 -1
- data/lib/repo_dependency_graph/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0885a841f3292f9cd8c108d6f8a5c182aad4f0a9
|
4
|
+
data.tar.gz: fb2f65de34f76899bcf4abe7a2f07dc9d1ff8e09
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|