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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d4b7f4086dad12b6185922496da34ef75aec713e6cc2c0faaf9ec74bb3457929
4
- data.tar.gz: cb0155935157cec20a44011c952b07b318c9bbb619bcc9dbd238516c47ef2495
3
+ metadata.gz: e9b249077bec33766801d78d56f56cb2b9e7f5f844bd8a87a362bcd602751aa2
4
+ data.tar.gz: d8be829bd6120a5ced51cbdb49e2e4f31a0ae558504ef4f2c31bb48e65b6823f
5
5
  SHA512:
6
- metadata.gz: 4db2f35732d03288d12a7b524b9a8ba319dd685292dfae65f512eeb8b095b7dc8c067dd887e3625381e94087bdebfceba0693c6f2ad391e6e9d5fa33fceea383
7
- data.tar.gz: 8d023123a7ebcfe1ed58a809f1fd786adfcf3212fc01f44a21e22d2e9bc306f68e1d8d1680fef3d400708207c7abd5e656fb1646e88c52ef5c06b2e038b0b796
6
+ metadata.gz: f5f4daf1c716600d8c61a6376d03a9b0d27aa93488a7c18d08ea37415dc818bf60a406c7221ce755907f40bb82d409d07f272a9c281917ed6c131685ec873e6d
7
+ data.tar.gz: 967efe9ec3808d7fcacd635eeb31fb10159eb0a01786189a05bf07626755eb436bd12c5046616d950195f9a8990e0855b8ee89768a37df80d5afcb62e3920138
checksums.yaml.gz.sig CHANGED
@@ -1,2 +1,3 @@
1
- Ëm��t�P�cQ!۟=�@�}[{XJR����J�����db���>ř!H�UB�������G9,��R��!|��4$'.R���j>�w���x�r��&�;N#�]p�Υ|�����G7�9�S�����3�)&:.o>�,xȜ����.�˳e8S��W
2
- "Ij�ô0Z����5X��'�E,%o@���D��
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
- filename = "#{name}/#{name}.gemspec"
73
- gemspec = File.join(dir, filename)
72
+ gemspec = File.join(dir, "#{name}/#{name}.gemspec")
74
73
 
75
- if File.exists? gemspec then
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 do |x|
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.0
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: 2022-03-06 00:00:00.000000000 Z
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.2.22
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