bundler-stats 2.1.0 → 2.1.1

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: ce461ba8ff653585236394b5427033c2a5c8411d3a47d880a39f8d48925c0723
4
- data.tar.gz: '058da5ce7a60f9ac7fc3e2f37fd56ac86466665bbea1cd95af61ce37db2ebd66'
3
+ metadata.gz: 2c2cbaee0909835a5e655b3b148edd0448425beb1540f52f8b5e491440d66b7d
4
+ data.tar.gz: ca93d96c36ef79c6007ca752b2d8a747145dd5b075de83044d3080665dbbb19b
5
5
  SHA512:
6
- metadata.gz: c44cc31e39f9be21950ef7a5c1146f30d22ba40314b267cc1621397c8259ea024cb96f9f79e139d7fbe4c9650e66d4b1b484e5e8d8e41092f9f4c286a0b13438
7
- data.tar.gz: 44f2713ef76cab6726489481ba5322acee80feb571177608fa8267d920ce67992650da9ee2bcb2d32973ffdc70fa1851d009e347e526f0648bce93dcb1ed6f45
6
+ metadata.gz: 292b5afa7e530edc6a58fdb38a3f2c752f9e87c489c2e1c139562a80d9dcc177cf31473667a3a0329d99fb0b177bc3854e96a89fd1a4496ec7cab01e1564a30f
7
+ data.tar.gz: cf28a1e2379ebdaad08bdfe8e519b2faa924851964f60f006ac66a8175469680d0af16213faccf2199671e5238c275321fafb91084d790d8887bbc7162d71b6b
@@ -0,0 +1,27 @@
1
+ name: CI
2
+
3
+ on:
4
+ push:
5
+ branches: [ master ]
6
+ pull_request:
7
+ branches: [ master ]
8
+
9
+ jobs:
10
+ test:
11
+ strategy:
12
+ matrix:
13
+ os: [ubuntu-latest, macos-latest]
14
+ ruby-version: [3.0, 2.7, 2.6, 2.5, 2.4, 2.3]
15
+ runs-on: ${{ matrix.os }}
16
+
17
+ steps:
18
+ - uses: actions/checkout@v2
19
+ - name: Set up Ruby ${{ matrix.ruby-version }}
20
+ uses: ruby/setup-ruby@v1
21
+ with:
22
+ ruby-version: ${{ matrix.ruby-version }}
23
+ bundler-cache: true
24
+ - name: Install dependencies
25
+ run: bundle install
26
+ - name: Run tests
27
+ run: bundle exec rspec
data/.gitignore CHANGED
@@ -1 +1,2 @@
1
1
  Gemfile.lock
2
+ bundler-stats-*.gem
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ 2.7.3
data/CHANGELOG.md CHANGED
@@ -1,6 +1,22 @@
1
1
  Changelog
2
2
  =============
3
3
 
4
+ ## [2.1.1] - 2021-11-30
5
+
6
+ ### Changed
7
+ - Symlink isn't the recommended way to alias a command. Patterned current
8
+ solution after bundle-audit. Boy that naming convention was unfortunate.
9
+ - Pin down dependencies a bit.
10
+
11
+ ### Added
12
+ - Moved to Github test workflow, by @etagwerker.
13
+ - New default ruby version to be most current non-3 ruby.
14
+ - Build artifacts now ignored.
15
+ - Moved to a real spec_helper so tests can be filtered during runs if desired.
16
+
17
+ ### Fixed
18
+ - Failing test from previous version.
19
+
4
20
  ## [2.1.0] - 2021-11-29
5
21
 
6
22
  ### Changed
data/README.md CHANGED
@@ -154,7 +154,7 @@ Credits
154
154
  Thanks to the many kind people at [RailsCamp East
155
155
  2016](http://east.railscamp.com) for the help, the ideas, and the support.
156
156
 
157
- Thanks to Isaac Bowen for being pedantic about speeling.
157
+ Also, many other folks for their feature / fix contributions. ❤️
158
158
 
159
159
  License
160
160
  -------
data/bin/bundle-stats CHANGED
@@ -1,6 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
-
4
3
  require 'rubygems'
5
4
 
6
5
  lib_dir = File.expand_path(File.join(File.dirname(__FILE__),'..','lib'))
data/bin/bundler-stats ADDED
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ load File.expand_path('../bundle-stats', __FILE__)
@@ -15,7 +15,7 @@ Gem::Specification.new do |gem|
15
15
  gem.licenses = "MIT"
16
16
  gem.authors = "Joseph Mastey"
17
17
  gem.email = "jmmastey@gmail.com"
18
- gem.homepage = ""
18
+ gem.homepage = "http://github.com/jmmastey/bundler-stats"
19
19
 
20
20
  gem.metadata = {
21
21
  "homepage_uri" => "http://github.com/jmmastey/bundler-stats",
@@ -35,12 +35,12 @@ Gem::Specification.new do |gem|
35
35
 
36
36
  gem.require_paths = %w[ext lib].select { |dir| File.directory?(dir) }
37
37
 
38
- gem.add_dependency "bundler", ">= 1.9"
38
+ gem.add_dependency "bundler", ">= 1.9", "< 3"
39
39
  gem.add_dependency "thor", "~> 0.19"
40
40
 
41
41
  gem.add_development_dependency "rspec", "~> 3.4"
42
42
  gem.add_development_dependency "guard", "~> 2.13"
43
- gem.add_development_dependency "guard-rspec"
43
+ gem.add_development_dependency "guard-rspec", "< 5"
44
44
  gem.add_development_dependency "pry", "~> 0.10"
45
- gem.add_development_dependency "rb-readline"
45
+ gem.add_development_dependency "rb-readline", "< 1"
46
46
  end
@@ -1,5 +1,5 @@
1
1
  module Bundler
2
2
  module Stats
3
- VERSION = '2.1.0'
3
+ VERSION = '2.1.1'
4
4
  end
5
5
  end
@@ -1,5 +1,4 @@
1
- require 'bundler'
2
- require 'bundler/stats'
1
+ require 'spec_helper'
3
2
 
4
3
  describe Bundler::Stats::Calculator do
5
4
  subject { described_class }
@@ -79,11 +78,11 @@ describe Bundler::Stats::Calculator do
79
78
  context "#gem_stats" do
80
79
  let(:partial_sorted_result) do
81
80
  [
82
- ["will_paginate", 0],
83
81
  ["rolify", 0],
84
82
  ["rubocop-rspec", 0],
85
83
  ["spring", 0],
86
84
  ["state_machine", 0],
85
+ ["will_paginate", 0]
87
86
  ]
88
87
  end
89
88
 
@@ -1,5 +1,4 @@
1
- require 'bundler'
2
- require 'bundler/stats'
1
+ require 'spec_helper'
3
2
 
4
3
  describe Bundler::Stats::Printer do
5
4
  subject { described_class }
@@ -1,5 +1,4 @@
1
- require 'bundler'
2
- require 'bundler/stats'
1
+ require 'spec_helper'
3
2
 
4
3
  LazyLazySpec = Struct.new(:name, :dependencies)
5
4
  FakeLockfileParser = Struct.new(:specs)
@@ -1,5 +1,4 @@
1
- require 'bundler'
2
- require 'bundler/stats'
1
+ require 'spec_helper'
3
2
 
4
3
  describe Bundler::Stats::Tree do
5
4
  subject { described_class }
@@ -0,0 +1,11 @@
1
+ require 'bundler'
2
+ require 'bundler/stats'
3
+
4
+ RSpec.configure do |config|
5
+ config.filter_run :focus
6
+ config.run_all_when_everything_filtered = true
7
+
8
+ config.expect_with :rspec do |expectations|
9
+ expectations.syntax = :expect
10
+ end
11
+ 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.0
4
+ version: 2.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joseph Mastey
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-11-29 00:00:00.000000000 Z
11
+ date: 2021-11-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -17,6 +17,9 @@ dependencies:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '1.9'
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: '3'
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -24,6 +27,9 @@ dependencies:
24
27
  - - ">="
25
28
  - !ruby/object:Gem::Version
26
29
  version: '1.9'
30
+ - - "<"
31
+ - !ruby/object:Gem::Version
32
+ version: '3'
27
33
  - !ruby/object:Gem::Dependency
28
34
  name: thor
29
35
  requirement: !ruby/object:Gem::Requirement
@@ -70,16 +76,16 @@ dependencies:
70
76
  name: guard-rspec
71
77
  requirement: !ruby/object:Gem::Requirement
72
78
  requirements:
73
- - - ">="
79
+ - - "<"
74
80
  - !ruby/object:Gem::Version
75
- version: '0'
81
+ version: '5'
76
82
  type: :development
77
83
  prerelease: false
78
84
  version_requirements: !ruby/object:Gem::Requirement
79
85
  requirements:
80
- - - ">="
86
+ - - "<"
81
87
  - !ruby/object:Gem::Version
82
- version: '0'
88
+ version: '5'
83
89
  - !ruby/object:Gem::Dependency
84
90
  name: pry
85
91
  requirement: !ruby/object:Gem::Requirement
@@ -98,16 +104,16 @@ dependencies:
98
104
  name: rb-readline
99
105
  requirement: !ruby/object:Gem::Requirement
100
106
  requirements:
101
- - - ">="
107
+ - - "<"
102
108
  - !ruby/object:Gem::Version
103
- version: '0'
109
+ version: '1'
104
110
  type: :development
105
111
  prerelease: false
106
112
  version_requirements: !ruby/object:Gem::Requirement
107
113
  requirements:
108
- - - ">="
114
+ - - "<"
109
115
  - !ruby/object:Gem::Version
110
- version: '0'
116
+ version: '1'
111
117
  description: Looks through your lockfile and tries to identify problematic use of
112
118
  dependencies
113
119
  email: jmmastey@gmail.com
@@ -120,9 +126,10 @@ extra_rdoc_files:
120
126
  - CODE_OF_CONDUCT.md
121
127
  - README.md
122
128
  files:
129
+ - ".github/workflows/main.yml"
123
130
  - ".gitignore"
124
131
  - ".rspec"
125
- - ".travis.yml"
132
+ - ".ruby-version"
126
133
  - CHANGELOG.md
127
134
  - CODE_OF_CONDUCT.md
128
135
  - Gemfile
@@ -143,16 +150,17 @@ files:
143
150
  - spec/lib/bundler/stats/printer_spec.rb
144
151
  - spec/lib/bundler/stats/remover_spec.rb
145
152
  - spec/lib/bundler/stats/tree_spec.rb
153
+ - spec/spec_helper.rb
146
154
  - spec/test_gemfile
147
155
  - spec/test_gemfile.lock
148
- homepage: ''
156
+ homepage: http://github.com/jmmastey/bundler-stats
149
157
  licenses:
150
158
  - MIT
151
159
  metadata:
152
160
  homepage_uri: http://github.com/jmmastey/bundler-stats
153
161
  changelog_uri: https://github.com/jmmastey/bundler-stats/blob/master/CHANGELOG.md
154
162
  source_code_uri: http://github.com/jmmastey/bundler-stats
155
- post_install_message:
163
+ post_install_message:
156
164
  rdoc_options: []
157
165
  require_paths:
158
166
  - lib
@@ -167,8 +175,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
167
175
  - !ruby/object:Gem::Version
168
176
  version: '0'
169
177
  requirements: []
170
- rubygems_version: 3.0.3
171
- signing_key:
178
+ rubygems_version: 3.1.6
179
+ signing_key:
172
180
  specification_version: 4
173
181
  summary: Dependency investigation for Bundler
174
182
  test_files: []
data/.travis.yml DELETED
@@ -1,9 +0,0 @@
1
- language: ruby
2
- script: bundle exec rspec
3
- rvm:
4
- - 2.3
5
- - 2.4
6
- - 2.5
7
- - 2.6
8
- - 2.7
9
- - 3.0
data/bin/bundler-stats DELETED
@@ -1 +0,0 @@
1
- bin/bundle-stats