static_collection 0.3.0 → 0.3.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
  SHA256:
3
- metadata.gz: d9702583ac4a75df196900dfa228b1fabb8b3be1c72cb240a762c2ea26bd97af
4
- data.tar.gz: 62e6ba2fc5d8e0def40807a610a8978c7fc9dd36f7c09444ae617c50171ce55f
3
+ metadata.gz: 98017f3d39c6af6afaaaeb5ddd30dc586c09c9a5a1ad3ccb5c894e123959947c
4
+ data.tar.gz: df0fbf27a32cde5538df55003b59f9320926ffbe0e323e050e52ce3f09b9ba4c
5
5
  SHA512:
6
- metadata.gz: b66f23e970a022386861381d227f44012bab41753413221ca046ca4e71c4197ff586ea1703693ac07f3e09a610f55bbf9d7059fc4abfb1b3119596d1fd193fa3
7
- data.tar.gz: df7b82357ce70721b8e4b347dd3ba09cd8d39ce4541cc515075fd1d3b8a4fde845970762b00f2bfb46c39816c497df34bd945e7b37a2f2e7ab82a9767ed743db
6
+ metadata.gz: 531a720c36212eae51f9319ae20802d868c68ebc5a9f4345017cf04f2f8eb98b2496f552301793efdb51a5500512b2dac3064f81ce6034673722497715ae2bc0
7
+ data.tar.gz: 6b389bb60c43c02215583508ddf1e08037b8971674a996bfbe9b8c1f3addfd45d536aa05b79a1a3eefcadc744a8ececa9a2864333a826b03eb3b9052115b868e
@@ -8,12 +8,12 @@ concurrency:
8
8
  jobs:
9
9
  build:
10
10
  name: Build
11
- runs-on: ubuntu-20.04
11
+ runs-on: ubuntu-22.04
12
12
  strategy:
13
13
  matrix:
14
- ruby-version: [2.7.5, 3.0.3, 3.1.0]
14
+ ruby-version: [3.0.6, 3.1.4, 3.2.2]
15
15
  steps:
16
- - uses: actions/checkout@v2
16
+ - uses: actions/checkout@v3
17
17
  - name: Set up Ruby ${{ matrix.ruby-version }}
18
18
  uses: ruby/setup-ruby@v1
19
19
  with:
@@ -30,9 +30,9 @@ jobs:
30
30
  name: Release
31
31
  if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master'
32
32
  needs: build
33
- runs-on: ubuntu-20.04
33
+ runs-on: ubuntu-22.04
34
34
  steps:
35
- - uses: actions/checkout@v2
35
+ - uses: actions/checkout@v3
36
36
  - uses: ruby/setup-ruby@v1
37
37
  with:
38
38
  bundler-cache: true
@@ -0,0 +1,20 @@
1
+ name: 'Close stale PRs'
2
+ on:
3
+ schedule:
4
+ - cron: '30 6 1 * *' # 6:30 am UTC: 1:30 am EST on 1st day of the month
5
+
6
+ jobs:
7
+ stale:
8
+ runs-on: ubuntu-latest
9
+ steps:
10
+ - uses: actions/stale@v8
11
+ with:
12
+ days-before-stale: 30
13
+ days-before-close: 30
14
+ stale-pr-message: >
15
+ This issue has been automatically marked as stale because it has not had
16
+ recent activity. It will be closed if no further activity occurs.
17
+ close-pr-message: >
18
+ This issue has been automatically closed because it has had no activity
19
+ for over 90 days. Please re-open if you feel this was done in error.
20
+ exempt-pr-labels: 'dependabot,depfu,dependencies,security'
data/.gitignore CHANGED
@@ -11,3 +11,4 @@
11
11
  .rspec_status
12
12
 
13
13
  *.gem
14
+ vendor
data/.rubocop.yml CHANGED
@@ -1,3 +1,5 @@
1
+ inherit_from: .rubocop_todo.yml
2
+
1
3
  inherit_gem:
2
4
  ws-style:
3
5
  - default.yml
data/.rubocop_todo.yml ADDED
@@ -0,0 +1,16 @@
1
+ # This configuration was generated by
2
+ # `rubocop --auto-gen-config`
3
+ # on 2023-02-02 21:48:38 UTC using RuboCop version 1.44.1.
4
+ # The point is for the user to remove these configuration records
5
+ # one by one as the offenses are removed from the code base.
6
+ # Note that changes in the inspected code, or installation of new
7
+ # versions of RuboCop, may require this file to be generated again.
8
+
9
+ # Offense count: 1
10
+ # Configuration parameters: EnforcedStyle, AllowedGems, Include.
11
+ # SupportedStyles: Gemfile, gems.rb, gemspec
12
+ # AllowedGems: bundler
13
+ # Include: **/*.gemspec, **/Gemfile, **/gems.rb
14
+ Gemspec/DevelopmentDependencies:
15
+ Exclude:
16
+ - 'static_collection.gemspec'
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.7.5
1
+ 3.0.6
data/Gemfile.lock CHANGED
@@ -1,75 +1,80 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- static_collection (0.3.0)
4
+ static_collection (0.3.2)
5
5
  activesupport (>= 4)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
- activesupport (7.0.0)
10
+ activesupport (7.0.4.3)
11
11
  concurrent-ruby (~> 1.0, >= 1.0.2)
12
12
  i18n (>= 1.6, < 2)
13
13
  minitest (>= 5.1)
14
14
  tzinfo (~> 2.0)
15
15
  ast (2.4.2)
16
- concurrent-ruby (1.1.9)
17
- diff-lcs (1.4.4)
18
- i18n (1.8.11)
16
+ concurrent-ruby (1.2.2)
17
+ diff-lcs (1.5.0)
18
+ i18n (1.12.0)
19
19
  concurrent-ruby (~> 1.0)
20
- minitest (5.15.0)
21
- parallel (1.21.0)
22
- parser (3.0.3.2)
20
+ json (2.6.3)
21
+ minitest (5.18.0)
22
+ parallel (1.22.1)
23
+ parser (3.2.0.0)
23
24
  ast (~> 2.4.1)
24
- rack (2.2.3)
25
- rainbow (3.0.0)
26
- rake (10.5.0)
27
- regexp_parser (2.2.0)
25
+ rack (3.0.7)
26
+ rainbow (3.1.1)
27
+ rake (13.0.6)
28
+ regexp_parser (2.6.2)
28
29
  rexml (3.2.5)
29
- rspec (3.10.0)
30
- rspec-core (~> 3.10.0)
31
- rspec-expectations (~> 3.10.0)
32
- rspec-mocks (~> 3.10.0)
33
- rspec-core (3.10.1)
34
- rspec-support (~> 3.10.0)
35
- rspec-expectations (3.10.1)
30
+ rspec (3.12.0)
31
+ rspec-core (~> 3.12.0)
32
+ rspec-expectations (~> 3.12.0)
33
+ rspec-mocks (~> 3.12.0)
34
+ rspec-core (3.12.0)
35
+ rspec-support (~> 3.12.0)
36
+ rspec-expectations (3.12.2)
36
37
  diff-lcs (>= 1.2.0, < 2.0)
37
- rspec-support (~> 3.10.0)
38
+ rspec-support (~> 3.12.0)
38
39
  rspec-its (1.3.0)
39
40
  rspec-core (>= 3.0.0)
40
41
  rspec-expectations (>= 3.0.0)
41
- rspec-mocks (3.10.2)
42
+ rspec-mocks (3.12.3)
42
43
  diff-lcs (>= 1.2.0, < 2.0)
43
- rspec-support (~> 3.10.0)
44
- rspec-support (3.10.2)
45
- rubocop (1.24.1)
44
+ rspec-support (~> 3.12.0)
45
+ rspec-support (3.12.0)
46
+ rubocop (1.44.1)
47
+ json (~> 2.3)
46
48
  parallel (~> 1.10)
47
- parser (>= 3.0.0.0)
49
+ parser (>= 3.2.0.0)
48
50
  rainbow (>= 2.2.2, < 4.0)
49
51
  regexp_parser (>= 1.8, < 3.0)
50
- rexml
51
- rubocop-ast (>= 1.15.1, < 2.0)
52
+ rexml (>= 3.2.5, < 4.0)
53
+ rubocop-ast (>= 1.24.1, < 2.0)
52
54
  ruby-progressbar (~> 1.7)
53
- unicode-display_width (>= 1.4.0, < 3.0)
54
- rubocop-ast (1.15.1)
55
- parser (>= 3.0.1.1)
56
- rubocop-performance (1.13.0)
55
+ unicode-display_width (>= 2.4.0, < 3.0)
56
+ rubocop-ast (1.24.1)
57
+ parser (>= 3.1.1.0)
58
+ rubocop-capybara (2.17.0)
59
+ rubocop (~> 1.41)
60
+ rubocop-performance (1.15.2)
57
61
  rubocop (>= 1.7.0, < 2.0)
58
62
  rubocop-ast (>= 0.4.0)
59
- rubocop-rails (2.13.0)
63
+ rubocop-rails (2.17.4)
60
64
  activesupport (>= 4.2.0)
61
65
  rack (>= 1.1)
62
- rubocop (>= 1.7.0, < 2.0)
63
- rubocop-rspec (2.7.0)
64
- rubocop (~> 1.19)
65
- rubocop-vendor (0.7.1)
66
+ rubocop (>= 1.33.0, < 2.0)
67
+ rubocop-rspec (2.18.1)
68
+ rubocop (~> 1.33)
69
+ rubocop-capybara (~> 2.17)
70
+ rubocop-vendor (0.8.10)
66
71
  rubocop (>= 0.53.0)
67
72
  ruby-progressbar (1.11.0)
68
- tzinfo (2.0.4)
73
+ tzinfo (2.0.6)
69
74
  concurrent-ruby (~> 1.0)
70
- unicode-display_width (2.1.0)
71
- ws-style (6.12.3)
72
- rubocop (>= 1.23)
75
+ unicode-display_width (2.4.2)
76
+ ws-style (6.14.4)
77
+ rubocop (>= 1.36)
73
78
  rubocop-performance (>= 1.10.2)
74
79
  rubocop-rails (>= 2.9.1)
75
80
  rubocop-rspec (>= 2.2.0)
@@ -80,7 +85,7 @@ PLATFORMS
80
85
 
81
86
  DEPENDENCIES
82
87
  bundler (~> 2.0)
83
- rake (~> 10.0)
88
+ rake (~> 13.0)
84
89
  rspec (~> 3.0)
85
90
  rspec-its (~> 1.2)
86
91
  rubocop (~> 1.2)
@@ -88,4 +93,4 @@ DEPENDENCIES
88
93
  ws-style
89
94
 
90
95
  BUNDLED WITH
91
- 2.2.32
96
+ 2.2.33
@@ -1,3 +1,3 @@
1
1
  module StaticCollection
2
- VERSION = "0.3.0".freeze
2
+ VERSION = "0.3.2".freeze
3
3
  end
@@ -21,7 +21,7 @@ module StaticCollection
21
21
  end
22
22
  define_singleton_method("find_all_by_#{attribute_name}") do |value|
23
23
  ActiveSupport::Deprecation.warn(
24
- "find_all_by_#{attribute_name} is deprecated for StaticCollection, "\
24
+ "find_all_by_#{attribute_name} is deprecated for StaticCollection, " \
25
25
  "use where(#{attribute_name}: [value])",
26
26
  )
27
27
  all.select { |instance| instance.send(attribute_name) == value }
@@ -3,29 +3,29 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
3
  require 'static_collection/version'
4
4
 
5
5
  Gem::Specification.new do |spec|
6
- spec.name = "static_collection"
7
- spec.version = StaticCollection::VERSION
8
- spec.authors = ["Peter Graham"]
9
- spec.email = ["peter@wealthsimple.com"]
6
+ spec.name = "static_collection"
7
+ spec.version = StaticCollection::VERSION
8
+ spec.authors = ["Peter Graham"]
9
+ spec.email = ["peter@wealthsimple.com"]
10
10
 
11
- spec.summary = 'Run queries against static data.'
12
- spec.description = 'Rubygem for running basic queries against static data.'
13
- spec.homepage = "https://github.com/wealthsimple/static_collection"
14
- spec.license = "MIT"
11
+ spec.summary = 'Run queries against static data.'
12
+ spec.description = 'Rubygem for running basic queries against static data.'
13
+ spec.homepage = "https://github.com/wealthsimple/static_collection"
14
+ spec.license = "MIT"
15
15
 
16
- spec.required_ruby_version = '>= 2.7.3'
16
+ spec.required_ruby_version = '>= 3.0'
17
17
 
18
18
  spec.files = `git ls-files -z`.split("\x0").reject do |f|
19
19
  f.match(%r{^(test|spec|features)/})
20
20
  end
21
- spec.bindir = "exe"
22
- spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
21
+ spec.bindir = "exe"
22
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
23
23
  spec.require_paths = ["lib"]
24
24
 
25
25
  spec.add_dependency "activesupport", ">= 4"
26
26
 
27
27
  spec.add_development_dependency "bundler", "~> 2.0"
28
- spec.add_development_dependency "rake", "~> 10.0"
28
+ spec.add_development_dependency "rake", "~> 13.0"
29
29
  spec.add_development_dependency "rspec", "~> 3.0"
30
30
  spec.add_development_dependency "rspec-its", "~> 1.2"
31
31
  spec.add_development_dependency "rubocop", "~> 1.2"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: static_collection
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Graham
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-01-04 00:00:00.000000000 Z
11
+ date: 2023-04-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -44,14 +44,14 @@ dependencies:
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '10.0'
47
+ version: '13.0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '10.0'
54
+ version: '13.0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rspec
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -117,9 +117,11 @@ extra_rdoc_files: []
117
117
  files:
118
118
  - ".github/CODEOWNERS"
119
119
  - ".github/workflows/main.yml"
120
+ - ".github/workflows/stale.yml"
120
121
  - ".gitignore"
121
122
  - ".rspec"
122
123
  - ".rubocop.yml"
124
+ - ".rubocop_todo.yml"
123
125
  - ".ruby-version"
124
126
  - Gemfile
125
127
  - Gemfile.lock
@@ -144,14 +146,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
144
146
  requirements:
145
147
  - - ">="
146
148
  - !ruby/object:Gem::Version
147
- version: 2.7.3
149
+ version: '3.0'
148
150
  required_rubygems_version: !ruby/object:Gem::Requirement
149
151
  requirements:
150
152
  - - ">="
151
153
  - !ruby/object:Gem::Version
152
154
  version: '0'
153
155
  requirements: []
154
- rubygems_version: 3.1.6
156
+ rubygems_version: 3.2.33
155
157
  signing_key:
156
158
  specification_version: 4
157
159
  summary: Run queries against static data.