bundler-stats 1.3.3 → 1.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/bin/bundler-stats +1 -0
- data/lib/bundler/stats/cli.rb +5 -1
- data/lib/bundler/stats/tree.rb +3 -0
- data/lib/bundler/stats/version.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
2
|
+
SHA1:
|
|
3
|
+
metadata.gz: eee76f69e73d6036e090b2bee0eba231f835ebc2
|
|
4
|
+
data.tar.gz: '09f8d3089540158fd2a06e8bd53ff0fbd2154bfd'
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 83527495fddca9076679e2a409854e33c08654307aed35e0ca29daefef1f48726bfb8287430d5fab681f7401c0664ec6a86309560fee8442c0da805105fd132e
|
|
7
|
+
data.tar.gz: 6710d3f9948e9c4721fc11767bd736184776db218db45895f019df84c66a8837ba75d6401d86f1bb79e8de523f8de5f167e758f57b5e4f688124cad688bda3aa
|
data/bin/bundler-stats
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
bundle-stats
|
data/lib/bundler/stats/cli.rb
CHANGED
|
@@ -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 "
|
|
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
|
|
data/lib/bundler/stats/tree.rb
CHANGED
|
@@ -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),
|
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.
|
|
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.
|
|
140
|
+
rubygems_version: 2.5.2.3
|
|
139
141
|
signing_key:
|
|
140
142
|
specification_version: 4
|
|
141
143
|
summary: Dependency investigation for Bundler
|