bundler-stats 1.3.3 → 1.3.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
- SHA256:
3
- metadata.gz: 00521574e50038905fce9c0f58c700220922c38ff91ce987448e2372121333ff
4
- data.tar.gz: 76632e66f4e00c8cc0a00e4ae755fddbd29361526067140c3610b5023042008d
2
+ SHA1:
3
+ metadata.gz: eee76f69e73d6036e090b2bee0eba231f835ebc2
4
+ data.tar.gz: '09f8d3089540158fd2a06e8bd53ff0fbd2154bfd'
5
5
  SHA512:
6
- metadata.gz: 88b9b171219491c7590c41758137200a2c07e85456f4d21aaa00ea786b8c6574622ca872e133cf39bfc05603cb2372bd9a6dda67841b114f0c080abb4b471898
7
- data.tar.gz: 8fb71219134a7722f93811d61d29aef329a39cfd67a9d52a5a282de1dc708a3eada49321347e087fa8b4df73db16a2396cdf15acc9b34511ad69dde966a2b0f6
6
+ metadata.gz: 83527495fddca9076679e2a409854e33c08654307aed35e0ca29daefef1f48726bfb8287430d5fab681f7401c0664ec6a86309560fee8442c0da805105fd132e
7
+ data.tar.gz: 6710d3f9948e9c4721fc11767bd736184776db218db45895f019df84c66a8837ba75d6401d86f1bb79e8de523f8de5f167e758f57b5e4f688124cad688bda3aa
data/bin/bundler-stats ADDED
@@ -0,0 +1 @@
1
+ bundle-stats
@@ -92,7 +92,11 @@ module Bundler
92
92
  dependers = stats[:top_level_dependencies] # they do the depending
93
93
  say "bundle-stats for #{target}"
94
94
  say ""
95
- say "depended upon by (#{stats[:top_level_dependencies].count})\n"
95
+ say "Depended upon by #{stats[:top_level_dependencies].count}\n"
96
+
97
+ if stats[:resolved_version]
98
+ say "Resolved version is #{stats[:resolved_version]}"
99
+ end
96
100
  if dependers.count > 0
97
101
  max_name_length = dependers.map { |gem| gem[:name].length }.max
98
102
 
@@ -25,7 +25,10 @@ class Bundler::Stats::Tree
25
25
 
26
26
  def version_requirements(target)
27
27
  transitive_dependencies = transitive_dependencies(target)
28
+ resolved_version = @tree[target].version if @tree.has_key?(target)
29
+
28
30
  { name: target,
31
+ resolved_version: resolved_version,
29
32
  total_dependencies: transitive_dependencies.count,
30
33
  first_level_dependencies: first_level_dependencies(target).count,
31
34
  top_level_dependencies: reverse_dependencies_with_versions(target),
@@ -1,5 +1,5 @@
1
1
  module Bundler
2
2
  module Stats
3
- VERSION = '1.3.3'
3
+ VERSION = '1.3.4'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bundler-stats
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.3
4
+ version: 1.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joseph Mastey
@@ -85,6 +85,7 @@ description: Looks through your lockfile and tries to identify problematic use o
85
85
  email: jmmastey@gmail.com
86
86
  executables:
87
87
  - bundle-stats
88
+ - bundler-stats
88
89
  extensions: []
89
90
  extra_rdoc_files:
90
91
  - CHANGELOG.md
@@ -100,6 +101,7 @@ files:
100
101
  - MIT-LICENSE
101
102
  - README.md
102
103
  - bin/bundle-stats
104
+ - bin/bundler-stats
103
105
  - bundler-stats.gemspec
104
106
  - lib/bundler/stats.rb
105
107
  - lib/bundler/stats/calculator.rb
@@ -135,7 +137,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
135
137
  version: '0'
136
138
  requirements: []
137
139
  rubyforge_project:
138
- rubygems_version: 2.7.3
140
+ rubygems_version: 2.5.2.3
139
141
  signing_key:
140
142
  specification_version: 4
141
143
  summary: Dependency investigation for Bundler