static_collection 0.3.0 → 0.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.github/workflows/main.yml +5 -5
- data/.github/workflows/stale.yml +20 -0
- data/.gitignore +1 -0
- data/.rubocop.yml +2 -0
- data/.rubocop_todo.yml +16 -0
- data/.ruby-version +1 -1
- data/Gemfile.lock +47 -42
- data/lib/static_collection/version.rb +1 -1
- data/lib/static_collection.rb +1 -1
- data/static_collection.gemspec +12 -12
- metadata +8 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 98017f3d39c6af6afaaaeb5ddd30dc586c09c9a5a1ad3ccb5c894e123959947c
|
|
4
|
+
data.tar.gz: df0fbf27a32cde5538df55003b59f9320926ffbe0e323e050e52ce3f09b9ba4c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 531a720c36212eae51f9319ae20802d868c68ebc5a9f4345017cf04f2f8eb98b2496f552301793efdb51a5500512b2dac3064f81ce6034673722497715ae2bc0
|
|
7
|
+
data.tar.gz: 6b389bb60c43c02215583508ddf1e08037b8971674a996bfbe9b8c1f3addfd45d536aa05b79a1a3eefcadc744a8ececa9a2864333a826b03eb3b9052115b868e
|
data/.github/workflows/main.yml
CHANGED
|
@@ -8,12 +8,12 @@ concurrency:
|
|
|
8
8
|
jobs:
|
|
9
9
|
build:
|
|
10
10
|
name: Build
|
|
11
|
-
runs-on: ubuntu-
|
|
11
|
+
runs-on: ubuntu-22.04
|
|
12
12
|
strategy:
|
|
13
13
|
matrix:
|
|
14
|
-
ruby-version: [
|
|
14
|
+
ruby-version: [3.0.6, 3.1.4, 3.2.2]
|
|
15
15
|
steps:
|
|
16
|
-
- uses: actions/checkout@
|
|
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-
|
|
33
|
+
runs-on: ubuntu-22.04
|
|
34
34
|
steps:
|
|
35
|
-
- uses: actions/checkout@
|
|
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
data/.rubocop.yml
CHANGED
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
|
-
|
|
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.
|
|
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.
|
|
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.
|
|
17
|
-
diff-lcs (1.
|
|
18
|
-
i18n (1.
|
|
16
|
+
concurrent-ruby (1.2.2)
|
|
17
|
+
diff-lcs (1.5.0)
|
|
18
|
+
i18n (1.12.0)
|
|
19
19
|
concurrent-ruby (~> 1.0)
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
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 (
|
|
25
|
-
rainbow (3.
|
|
26
|
-
rake (
|
|
27
|
-
regexp_parser (2.2
|
|
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.
|
|
30
|
-
rspec-core (~> 3.
|
|
31
|
-
rspec-expectations (~> 3.
|
|
32
|
-
rspec-mocks (~> 3.
|
|
33
|
-
rspec-core (3.
|
|
34
|
-
rspec-support (~> 3.
|
|
35
|
-
rspec-expectations (3.
|
|
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.
|
|
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.
|
|
42
|
+
rspec-mocks (3.12.3)
|
|
42
43
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
43
|
-
rspec-support (~> 3.
|
|
44
|
-
rspec-support (3.
|
|
45
|
-
rubocop (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.
|
|
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.
|
|
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 (>=
|
|
54
|
-
rubocop-ast (1.
|
|
55
|
-
parser (>= 3.
|
|
56
|
-
rubocop-
|
|
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.
|
|
63
|
+
rubocop-rails (2.17.4)
|
|
60
64
|
activesupport (>= 4.2.0)
|
|
61
65
|
rack (>= 1.1)
|
|
62
|
-
rubocop (>= 1.
|
|
63
|
-
rubocop-rspec (2.
|
|
64
|
-
rubocop (~> 1.
|
|
65
|
-
|
|
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.
|
|
73
|
+
tzinfo (2.0.6)
|
|
69
74
|
concurrent-ruby (~> 1.0)
|
|
70
|
-
unicode-display_width (2.
|
|
71
|
-
ws-style (6.
|
|
72
|
-
rubocop (>= 1.
|
|
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 (~>
|
|
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.
|
|
96
|
+
2.2.33
|
data/lib/static_collection.rb
CHANGED
|
@@ -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 }
|
data/static_collection.gemspec
CHANGED
|
@@ -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
|
|
7
|
-
spec.version
|
|
8
|
-
spec.authors
|
|
9
|
-
spec.email
|
|
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
|
|
12
|
-
spec.description
|
|
13
|
-
spec.homepage
|
|
14
|
-
spec.license
|
|
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 = '>=
|
|
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
|
|
22
|
-
spec.executables
|
|
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", "~>
|
|
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.
|
|
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:
|
|
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: '
|
|
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: '
|
|
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:
|
|
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.
|
|
156
|
+
rubygems_version: 3.2.33
|
|
155
157
|
signing_key:
|
|
156
158
|
specification_version: 4
|
|
157
159
|
summary: Run queries against static data.
|