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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f16c01414ce8872063a0967261434b263cf33cc4
4
- data.tar.gz: 9c3141f3ee4ef9fc9299114060c64f2879c86701
3
+ metadata.gz: 938cc883c899ced2f83512b07d11ac9b97d7bea0
4
+ data.tar.gz: 6aadcc724187b269df2049dec35e2c3477a4dc5e
5
5
  SHA512:
6
- metadata.gz: 5824c292cbd18a970e2f60841359f3a5f8f5af57ca9f5f2d6138025cfa81663201eeedec0b091381d3e3235aba61e3a78a289a9a47cf85207ef628d0e00a9ac3
7
- data.tar.gz: ae234d332204c9c9bd643b71fd15a73fc048301868e0085a5c9502c16a34ff4e19d8aae8a0fa1fcc12be97c555c77ee96debefd6e54cf344c32d00e727e0f78f
6
+ metadata.gz: b249f9632fbd0e06be054acdd145adf1626d88f5e29426554689b32c6f6b8eb42ea6e7206b3afecab351ca5e518428f64424a4ea300815e1224182e304355bc6
7
+ data.tar.gz: b048cd40b941975f3b6cc344c2e8c3432818cce73f04282901dfc947924eb0dcdea0ddb09ae91f4e50943e91e1a53846f2837ba1dd4ea9eddb40aed852830bbe
data/.travis.yml ADDED
@@ -0,0 +1,6 @@
1
+ language: ruby
2
+ script: bundle exec rspec
3
+ rvm:
4
+ - 2.3
5
+ - 2.4
6
+ - 2.5
@@ -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}):\n"
91
- say "+------------------------------|-------------------+"
92
- say "| Name | Required Version |"
93
- say "+------------------------------|-------------------+"
94
- stats[:top_level_dependencies].each do |stat_line|
95
- say "| %-28s | %-17s |" % [stat_line[:name], stat_line[:version]]
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)
@@ -1,6 +1,6 @@
1
1
  module Bundler
2
2
  module Stats
3
3
  # bundler-stats version
4
- VERSION = '1.1.1'
4
+ VERSION = '1.1.2'
5
5
  end
6
6
  end
@@ -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(&:name)).to include("depth-one")
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.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