gems_deplevel 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +3 -2
- data/lib/gems_deplevel.rb +5 -8
- data.tar.gz.sig +0 -0
- metadata +3 -3
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e9b249077bec33766801d78d56f56cb2b9e7f5f844bd8a87a362bcd602751aa2
|
4
|
+
data.tar.gz: d8be829bd6120a5ced51cbdb49e2e4f31a0ae558504ef4f2c31bb48e65b6823f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f5f4daf1c716600d8c61a6376d03a9b0d27aa93488a7c18d08ea37415dc818bf60a406c7221ce755907f40bb82d409d07f272a9c281917ed6c131685ec873e6d
|
7
|
+
data.tar.gz: 967efe9ec3808d7fcacd635eeb31fb10159eb0a01786189a05bf07626755eb436bd12c5046616d950195f9a8990e0855b8ee89768a37df80d5afcb62e3920138
|
checksums.yaml.gz.sig
CHANGED
@@ -1,2 +1,3 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
��6`�
|
2
|
+
|
3
|
+
���хA2�u.��~�o"�&q]�Vɾ&OEga�c�<���$��P,i�������1Z�� �6���D�Ow��eK��_w-̽V���O�$E��������ŏ�kZ {�42���`D��&���"i�Ӗ�l���1�z�����Hw�T����G�� �A���zH����z*�_�8
|
data/lib/gems_deplevel.rb
CHANGED
@@ -69,10 +69,9 @@ class GemsDepLevel
|
|
69
69
|
|
70
70
|
gems = names.map do |name|
|
71
71
|
|
72
|
-
|
73
|
-
gemspec = File.join(dir, filename)
|
72
|
+
gemspec = File.join(dir, "#{name}/#{name}.gemspec")
|
74
73
|
|
75
|
-
if File.
|
74
|
+
if File.exist? gemspec then
|
76
75
|
|
77
76
|
s = File.read gemspec
|
78
77
|
dependencies = s.scan(/add_runtime_dependency\(['"]([^'"]+)/)
|
@@ -92,6 +91,8 @@ class GemsDepLevel
|
|
92
91
|
|
93
92
|
private
|
94
93
|
|
94
|
+
# the return value is passed back through gemtally
|
95
|
+
#
|
95
96
|
def scan(gem, h, gemtally=Hash.new(0), level=0)
|
96
97
|
|
97
98
|
if @debug then
|
@@ -104,12 +105,8 @@ class GemsDepLevel
|
|
104
105
|
|
105
106
|
gemtally[gem] = level if gemtally[gem] <= level
|
106
107
|
|
107
|
-
h[gem].each
|
108
|
-
scan(x, h, gemtally, level+1)
|
109
|
-
end
|
108
|
+
h[gem].each {|x| scan(x, h, gemtally, level+1) }
|
110
109
|
|
111
110
|
end
|
112
111
|
|
113
|
-
|
114
112
|
end
|
115
|
-
|
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gems_deplevel
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -35,7 +35,7 @@ cert_chain:
|
|
35
35
|
nKgF6Ie+ZheTbRhj8524w8BLfATiXyCpfv1kx/P0D+2ObCPBSUe8BEK6P2oyAAYm
|
36
36
|
ztLaT0+fn8qN1xLaamkdpzfU
|
37
37
|
-----END CERTIFICATE-----
|
38
|
-
date:
|
38
|
+
date: 2023-01-19 00:00:00.000000000 Z
|
39
39
|
dependencies:
|
40
40
|
- !ruby/object:Gem::Dependency
|
41
41
|
name: gems
|
@@ -103,7 +103,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
103
103
|
- !ruby/object:Gem::Version
|
104
104
|
version: '0'
|
105
105
|
requirements: []
|
106
|
-
rubygems_version: 3.
|
106
|
+
rubygems_version: 3.4.4
|
107
107
|
signing_key:
|
108
108
|
specification_version: 4
|
109
109
|
summary: Returns the dependency depth level for a gem's transitive dependencies
|
metadata.gz.sig
CHANGED
Binary file
|