bundler-stats 2.1.1 → 2.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/main.yml +1 -1
- data/CHANGELOG.md +7 -0
- data/bundler-stats.gemspec +1 -1
- data/lib/bundler/stats/cli.rb +12 -4
- data/lib/bundler/stats/version.rb +1 -1
- metadata +12 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fad76aec2c17866fce619ae8dbdaa4e580a58f1c0d89c53681a35dba5e266998
|
4
|
+
data.tar.gz: 27d5b7a9ac01d7f7c0856cd2422b127d18fcd4de1cda1b2bcb0bf5c596528ad6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 57c12161cd51c19804cfd15fb17903c1a1a9a82fe1347cd303230f5979539c7306165b926d5db4e65434d43c19c9a8649afbe0c30ee58a41cfebc2cdc653b250
|
7
|
+
data.tar.gz: ee3ffeaa9580d4866a8fb11a947274ecd70e926cfdd3db83147a04500ab2a76e15ce89384268911e7e45587d483501d81d44d13e5733fe4c79f5746820887563
|
data/.github/workflows/main.yml
CHANGED
data/CHANGELOG.md
CHANGED
data/bundler-stats.gemspec
CHANGED
@@ -36,7 +36,7 @@ Gem::Specification.new do |gem|
|
|
36
36
|
gem.require_paths = %w[ext lib].select { |dir| File.directory?(dir) }
|
37
37
|
|
38
38
|
gem.add_dependency "bundler", ">= 1.9", "< 3"
|
39
|
-
gem.add_dependency "thor", "
|
39
|
+
gem.add_dependency "thor", ">= 0.19.0", "< 2.0"
|
40
40
|
|
41
41
|
gem.add_development_dependency "rspec", "~> 3.4"
|
42
42
|
gem.add_development_dependency "guard", "~> 2.13"
|
data/lib/bundler/stats/cli.rb
CHANGED
@@ -59,6 +59,10 @@ module Bundler
|
|
59
59
|
|
60
60
|
private
|
61
61
|
|
62
|
+
def self.exit_on_failure?
|
63
|
+
true
|
64
|
+
end
|
65
|
+
|
62
66
|
def draw_stats(gem_stats, summary)
|
63
67
|
max_name_length = gem_stats.map { |gem| gem[:name].length }.max
|
64
68
|
|
@@ -129,19 +133,23 @@ module Bundler
|
|
129
133
|
def gemfile_path
|
130
134
|
cwd = Pathname.new("./")
|
131
135
|
until cwd.realdirpath.root? do
|
132
|
-
|
136
|
+
%w(gems.rb Gemfile).each do |gemfile|
|
137
|
+
return (cwd + gemfile) if File.exist?(cwd + gemfile)
|
138
|
+
end
|
133
139
|
cwd = cwd.parent
|
134
140
|
end
|
135
|
-
raise ArgumentError, "Couldn't find Gemfile in this directory or parents"
|
141
|
+
raise ArgumentError, "Couldn't find gems.rb nor Gemfile in this directory or parents"
|
136
142
|
end
|
137
143
|
|
138
144
|
def lockfile_path
|
139
145
|
cwd = Pathname.new(".")
|
140
146
|
until cwd.realdirpath.root? do
|
141
|
-
|
147
|
+
%w(gems.locked Gemfile.lock).each do |lockfile|
|
148
|
+
return (cwd + lockfile) if File.exist?(cwd + lockfile)
|
149
|
+
end
|
142
150
|
cwd = cwd.parent
|
143
151
|
end
|
144
|
-
raise ArgumentError, "Couldn't find Gemfile in this directory or parents"
|
152
|
+
raise ArgumentError, "Couldn't find gems.locked nor Gemfile.lock in this directory or parents"
|
145
153
|
end
|
146
154
|
end
|
147
155
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bundler-stats
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Joseph Mastey
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-02-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -34,16 +34,22 @@ dependencies:
|
|
34
34
|
name: thor
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
36
36
|
requirements:
|
37
|
-
- - "
|
37
|
+
- - ">="
|
38
|
+
- !ruby/object:Gem::Version
|
39
|
+
version: 0.19.0
|
40
|
+
- - "<"
|
38
41
|
- !ruby/object:Gem::Version
|
39
|
-
version: '0
|
42
|
+
version: '2.0'
|
40
43
|
type: :runtime
|
41
44
|
prerelease: false
|
42
45
|
version_requirements: !ruby/object:Gem::Requirement
|
43
46
|
requirements:
|
44
|
-
- - "
|
47
|
+
- - ">="
|
48
|
+
- !ruby/object:Gem::Version
|
49
|
+
version: 0.19.0
|
50
|
+
- - "<"
|
45
51
|
- !ruby/object:Gem::Version
|
46
|
-
version: '0
|
52
|
+
version: '2.0'
|
47
53
|
- !ruby/object:Gem::Dependency
|
48
54
|
name: rspec
|
49
55
|
requirement: !ruby/object:Gem::Requirement
|