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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2c2cbaee0909835a5e655b3b148edd0448425beb1540f52f8b5e491440d66b7d
4
- data.tar.gz: ca93d96c36ef79c6007ca752b2d8a747145dd5b075de83044d3080665dbbb19b
3
+ metadata.gz: fad76aec2c17866fce619ae8dbdaa4e580a58f1c0d89c53681a35dba5e266998
4
+ data.tar.gz: 27d5b7a9ac01d7f7c0856cd2422b127d18fcd4de1cda1b2bcb0bf5c596528ad6
5
5
  SHA512:
6
- metadata.gz: 292b5afa7e530edc6a58fdb38a3f2c752f9e87c489c2e1c139562a80d9dcc177cf31473667a3a0329d99fb0b177bc3854e96a89fd1a4496ec7cab01e1564a30f
7
- data.tar.gz: cf28a1e2379ebdaad08bdfe8e519b2faa924851964f60f006ac66a8175469680d0af16213faccf2199671e5238c275321fafb91084d790d8887bbc7162d71b6b
6
+ metadata.gz: 57c12161cd51c19804cfd15fb17903c1a1a9a82fe1347cd303230f5979539c7306165b926d5db4e65434d43c19c9a8649afbe0c30ee58a41cfebc2cdc653b250
7
+ data.tar.gz: ee3ffeaa9580d4866a8fb11a947274ecd70e926cfdd3db83147a04500ab2a76e15ce89384268911e7e45587d483501d81d44d13e5733fe4c79f5746820887563
@@ -11,7 +11,7 @@ jobs:
11
11
  strategy:
12
12
  matrix:
13
13
  os: [ubuntu-latest, macos-latest]
14
- ruby-version: [3.0, 2.7, 2.6, 2.5, 2.4, 2.3]
14
+ ruby-version: [3.1, 3.0, 2.7, 2.6, 2.5, 2.4, 2.3]
15
15
  runs-on: ${{ matrix.os }}
16
16
 
17
17
  steps:
data/CHANGELOG.md CHANGED
@@ -1,6 +1,13 @@
1
1
  Changelog
2
2
  =============
3
3
 
4
+ ## [2.2.0] - 2022-02-09
5
+
6
+ ### Added
7
+ - Support for gems.rb and gems.locked files.
8
+ - Proper exit codes from thor when errors occur
9
+ - Looser dependency on thor
10
+
4
11
  ## [2.1.1] - 2021-11-30
5
12
 
6
13
  ### 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", "~> 0.19"
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"
@@ -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
- return (cwd + "Gemfile") if File.exist?(cwd + "Gemfile")
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
- return (cwd + "Gemfile.lock") if File.exist?(cwd + "Gemfile.lock")
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
@@ -1,5 +1,5 @@
1
1
  module Bundler
2
2
  module Stats
3
- VERSION = '2.1.1'
3
+ VERSION = '2.2.0'
4
4
  end
5
5
  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.1.1
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: 2021-11-30 00:00:00.000000000 Z
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.19'
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.19'
52
+ version: '2.0'
47
53
  - !ruby/object:Gem::Dependency
48
54
  name: rspec
49
55
  requirement: !ruby/object:Gem::Requirement