bundler-stats 1.1.1 → 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +6 -0
- data/lib/bundler/stats/cli.rb +10 -8
- data/lib/bundler/stats/version.rb +1 -1
- data/spec/lib/bundler/stats/calculator_spec.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 938cc883c899ced2f83512b07d11ac9b97d7bea0
|
4
|
+
data.tar.gz: 6aadcc724187b269df2049dec35e2c3477a4dc5e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b249f9632fbd0e06be054acdd145adf1626d88f5e29426554689b32c6f6b8eb42ea6e7206b3afecab351ca5e518428f64424a4ea300815e1224182e304355bc6
|
7
|
+
data.tar.gz: b048cd40b941975f3b6cc344c2e8c3432818cce73f04282901dfc947924eb0dcdea0ddb09ae91f4e50943e91e1a53846f2837ba1dd4ea9eddb40aed852830bbe
|
data/.travis.yml
ADDED
data/lib/bundler/stats/cli.rb
CHANGED
@@ -87,15 +87,17 @@ module Bundler
|
|
87
87
|
def draw_versions(stats, target)
|
88
88
|
say "bundle-stats for #{target}"
|
89
89
|
say ""
|
90
|
-
say "depended upon by (#{stats[:top_level_dependencies].count})
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
90
|
+
say "depended upon by (#{stats[:top_level_dependencies].count})\n"
|
91
|
+
if stats[:top_level_dependencies].count > 0
|
92
|
+
say "+------------------------------|-------------------+"
|
93
|
+
say "| Name | Required Version |"
|
94
|
+
say "+------------------------------|-------------------+"
|
95
|
+
stats[:top_level_dependencies].each do |stat_line|
|
96
|
+
say "| %-28s | %-17s |" % [stat_line[:name], stat_line[:version]]
|
97
|
+
end
|
98
|
+
say "+------------------------------|-------------------+"
|
99
|
+
say ""
|
96
100
|
end
|
97
|
-
say "+------------------------------|-------------------+"
|
98
|
-
say ""
|
99
101
|
end
|
100
102
|
|
101
103
|
def build_calculator(options)
|
@@ -115,7 +115,7 @@ describe Bundler::Stats::Calculator do
|
|
115
115
|
versions = calculator.versions("depth-two")
|
116
116
|
|
117
117
|
expect(versions).to be_a(Hash)
|
118
|
-
expect(versions[:top_level_dependencies].map
|
118
|
+
expect(versions[:top_level_dependencies].map { |dep| dep[:name] }).to include("depth-one")
|
119
119
|
end
|
120
120
|
end
|
121
121
|
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.1.
|
4
|
+
version: 1.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Joseph Mastey
|
@@ -92,6 +92,7 @@ extra_rdoc_files:
|
|
92
92
|
- README.md
|
93
93
|
files:
|
94
94
|
- ".gitignore"
|
95
|
+
- ".travis.yml"
|
95
96
|
- CHANGELOG.md
|
96
97
|
- CODE_OF_CONDUCT.md
|
97
98
|
- Gemfile
|