static_collection 0.3.0 → 0.3.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: d9702583ac4a75df196900dfa228b1fabb8b3be1c72cb240a762c2ea26bd97af
4
- data.tar.gz: 62e6ba2fc5d8e0def40807a610a8978c7fc9dd36f7c09444ae617c50171ce55f
3
+ metadata.gz: c35ba8c77c61ddfaf666a7b9a0be2a0ba9580ec568e6fbc7c5269590d300607b
4
+ data.tar.gz: a85d58e434c5d0dc7506016376d65b93e9715c55077ca7698cf637ab5eee76d5
5
5
  SHA512:
6
- metadata.gz: b66f23e970a022386861381d227f44012bab41753413221ca046ca4e71c4197ff586ea1703693ac07f3e09a610f55bbf9d7059fc4abfb1b3119596d1fd193fa3
7
- data.tar.gz: df7b82357ce70721b8e4b347dd3ba09cd8d39ce4541cc515075fd1d3b8a4fde845970762b00f2bfb46c39816c497df34bd945e7b37a2f2e7ab82a9767ed743db
6
+ metadata.gz: 6639c1ad20a1ab0311597e4ef172b83b42ed15e5261948090314097f3b5464c4ceed9eda7516f162915409d70eb41c7d42586a4c50585c8f8eba7aa5b81b8e23
7
+ data.tar.gz: 9dcbf439545dfbe7f5de03d6415ed1205dab7a221e4637400b8260b0f1b6028bf5ae44fcde78ee0e0f77abf48cda4241da07a19a6b1a8561e944b4177fe97b79
@@ -11,7 +11,7 @@ jobs:
11
11
  runs-on: ubuntu-20.04
12
12
  strategy:
13
13
  matrix:
14
- ruby-version: [2.7.5, 3.0.3, 3.1.0]
14
+ ruby-version: [2.7.5, 3.0.3, 3.1.0, 3.2.0]
15
15
  steps:
16
16
  - uses: actions/checkout@v2
17
17
  - name: Set up Ruby ${{ matrix.ruby-version }}
@@ -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@v4
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/.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/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.1)
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.2)
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.0)
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.17.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)
25
+ rack (3.0.4.1)
26
+ rainbow (3.1.1)
26
27
  rake (10.5.0)
27
- regexp_parser (2.2.0)
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)
@@ -1,3 +1,3 @@
1
1
  module StaticCollection
2
- VERSION = "0.3.0".freeze
2
+ VERSION = "0.3.1".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,23 +3,23 @@ $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 = '>= 2.7.5'
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"
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.1
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-02-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -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,7 +146,7 @@ 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: 2.7.5
148
150
  required_rubygems_version: !ruby/object:Gem::Requirement
149
151
  requirements:
150
152
  - - ">="