rokaki 0.8.4 → 0.9.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: 7b14c1377cb6ea9d8aa3571f310ffc884f027c495067e08adfce02caf1f7d0d2
4
- data.tar.gz: 5326391f9ed786eb26f9cb5573d2afc78862e72b5ab64f8b88f26b8ff18fdcfe
3
+ metadata.gz: 231b27e39d8bc7c95a1b3d217bd28cf9129fa9463e949b7d8626ea5213fefdbc
4
+ data.tar.gz: b533f1aae5281fbf5403b81dd81d2ac483a231eb419510abb3df7348017b24a5
5
5
  SHA512:
6
- metadata.gz: a5c2e4a0b0fea5a627db0136291654aa6df25e6a2f548ba3c42fc1ebc8b3e427c3fcc53e0488c1df6e99f8bb6fd44e752c3ccdabe1f4be506a5fd7d53878cf3c
7
- data.tar.gz: 79934522b0dba27889946208f47a8b2d769362016ae914ce99c7796c0b6899f6de8d96e25569e9ecc5086f0b0aeae23f0a6e21b6fe410db022eb89d6c6c15dd7
6
+ metadata.gz: 726dd3cea7f2f9e6c83c1456503bd16d2b71a844514a7740873b86f0122602a598ca059ebb1a6609104e029ab913723d812e9ea041b9fcd280cf48cea87c42cb
7
+ data.tar.gz: c3b130ad1a46c837e932868f57372b794e7cd1ed6d1c5d1aaf852391fb7cf4a82b228306a2c710a88b6ecd0d2f85697c4c019e769f50beec3bad4c1bd6dc6ff3
@@ -0,0 +1,70 @@
1
+ # For most projects, this workflow file will not need changing; you simply need
2
+ # to commit it to your repository.
3
+ #
4
+ # You may wish to alter this file to override the set of languages analyzed,
5
+ # or to provide custom queries or build logic.
6
+ #
7
+ # ******** NOTE ********
8
+ # We have attempted to detect the languages in your repository. Please check
9
+ # the `language` matrix defined below to confirm you have the correct set of
10
+ # supported CodeQL languages.
11
+ #
12
+ name: "CodeQL"
13
+
14
+ on:
15
+ push:
16
+ branches: [ master ]
17
+ pull_request:
18
+ # The branches below must be a subset of the branches above
19
+ branches: [ master ]
20
+ schedule:
21
+ - cron: '17 0 * * 5'
22
+
23
+ jobs:
24
+ analyze:
25
+ name: Analyze
26
+ runs-on: ubuntu-latest
27
+ permissions:
28
+ actions: read
29
+ contents: read
30
+ security-events: write
31
+
32
+ strategy:
33
+ fail-fast: false
34
+ matrix:
35
+ language: [ 'ruby' ]
36
+ # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
37
+ # Learn more about CodeQL language support at https://git.io/codeql-language-support
38
+
39
+ steps:
40
+ - name: Checkout repository
41
+ uses: actions/checkout@v2
42
+
43
+ # Initializes the CodeQL tools for scanning.
44
+ - name: Initialize CodeQL
45
+ uses: github/codeql-action/init@v1
46
+ with:
47
+ languages: ${{ matrix.language }}
48
+ # If you wish to specify custom queries, you can do so here or in a config file.
49
+ # By default, queries listed here will override any specified in a config file.
50
+ # Prefix the list here with "+" to use these queries and those in the config file.
51
+ # queries: ./path/to/local/query, your-org/your-repo/queries@main
52
+
53
+ # Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
54
+ # If this step fails, then you should remove it and run the build manually (see below)
55
+ - name: Autobuild
56
+ uses: github/codeql-action/autobuild@v1
57
+
58
+ # ℹ️ Command-line programs to run using the OS shell.
59
+ # 📚 https://git.io/JvXDl
60
+
61
+ # ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
62
+ # and modify them (or add more) to build your code if your project
63
+ # uses a compiled language
64
+
65
+ #- run: |
66
+ # make bootstrap
67
+ # make release
68
+
69
+ - name: Perform CodeQL Analysis
70
+ uses: github/codeql-action/analyze@v1
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.7.4
1
+ 3.3.0
data/Gemfile.lock CHANGED
@@ -1,36 +1,45 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rokaki (0.8.3.1)
4
+ rokaki (0.9.0)
5
5
  activesupport
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
- activemodel (6.1.3)
11
- activesupport (= 6.1.3)
12
- activerecord (6.1.3)
13
- activemodel (= 6.1.3)
14
- activesupport (= 6.1.3)
15
- activesupport (6.1.3)
10
+ activemodel (7.1.3.2)
11
+ activesupport (= 7.1.3.2)
12
+ activerecord (7.1.3.2)
13
+ activemodel (= 7.1.3.2)
14
+ activesupport (= 7.1.3.2)
15
+ timeout (>= 0.4.0)
16
+ activesupport (7.1.3.2)
17
+ base64
18
+ bigdecimal
16
19
  concurrent-ruby (~> 1.0, >= 1.0.2)
20
+ connection_pool (>= 2.2.5)
21
+ drb
17
22
  i18n (>= 1.6, < 2)
18
23
  minitest (>= 5.1)
24
+ mutex_m
19
25
  tzinfo (~> 2.0)
20
- zeitwerk (~> 2.3)
26
+ base64 (0.2.0)
27
+ bigdecimal (3.1.7)
21
28
  byebug (11.1.3)
22
29
  coderay (1.1.3)
23
- concurrent-ruby (1.1.8)
24
- database_cleaner (1.8.5)
25
- database_cleaner-active_record (1.8.0)
26
- activerecord
27
- database_cleaner (~> 1.8.0)
28
- diff-lcs (1.3)
29
- factory_bot (6.0.2)
30
+ concurrent-ruby (1.2.3)
31
+ connection_pool (2.4.1)
32
+ database_cleaner-active_record (2.1.0)
33
+ activerecord (>= 5.a)
34
+ database_cleaner-core (~> 2.0.0)
35
+ database_cleaner-core (2.0.1)
36
+ diff-lcs (1.5.1)
37
+ drb (2.2.1)
38
+ factory_bot (6.4.6)
30
39
  activesupport (>= 5.0.0)
31
- ffi (1.15.3)
32
- formatador (0.3.0)
33
- guard (2.18.0)
40
+ ffi (1.16.3)
41
+ formatador (1.1.0)
42
+ guard (2.18.1)
34
43
  formatador (>= 0.2.4)
35
44
  listen (>= 2.7, < 4.0)
36
45
  lumberjack (>= 1.0.12, < 2.0)
@@ -44,51 +53,70 @@ GEM
44
53
  guard (~> 2.1)
45
54
  guard-compat (~> 1.1)
46
55
  rspec (>= 2.99.0, < 4.0)
47
- i18n (1.8.9)
56
+ i18n (1.14.4)
48
57
  concurrent-ruby (~> 1.0)
49
- listen (3.5.1)
58
+ listen (3.9.0)
50
59
  rb-fsevent (~> 0.10, >= 0.10.3)
51
60
  rb-inotify (~> 0.9, >= 0.9.10)
52
- lumberjack (1.2.8)
53
- method_source (1.0.0)
54
- minitest (5.14.4)
61
+ lumberjack (1.2.10)
62
+ method_source (1.1.0)
63
+ minitest (5.22.3)
64
+ mutex_m (0.2.0)
55
65
  nenv (0.3.0)
56
66
  notiffany (0.1.3)
57
67
  nenv (~> 0.1)
58
68
  shellany (~> 0.0)
59
- pg (1.2.3)
60
- pry (0.13.1)
69
+ pg (1.5.6)
70
+ pry (0.14.2)
61
71
  coderay (~> 1.1)
62
72
  method_source (~> 1.0)
63
- pry-byebug (3.9.0)
73
+ pry-byebug (3.10.1)
64
74
  byebug (~> 11.0)
65
- pry (~> 0.13.0)
66
- rake (13.0.1)
67
- rb-fsevent (0.11.0)
75
+ pry (>= 0.13, < 0.15)
76
+ rake (13.2.1)
77
+ rb-fsevent (0.11.2)
68
78
  rb-inotify (0.10.1)
69
79
  ffi (~> 1.0)
70
- rspec (3.9.0)
71
- rspec-core (~> 3.9.0)
72
- rspec-expectations (~> 3.9.0)
73
- rspec-mocks (~> 3.9.0)
74
- rspec-core (3.9.2)
75
- rspec-support (~> 3.9.3)
76
- rspec-expectations (3.9.2)
80
+ rspec (3.13.0)
81
+ rspec-core (~> 3.13.0)
82
+ rspec-expectations (~> 3.13.0)
83
+ rspec-mocks (~> 3.13.0)
84
+ rspec-core (3.13.0)
85
+ rspec-support (~> 3.13.0)
86
+ rspec-expectations (3.13.0)
77
87
  diff-lcs (>= 1.2.0, < 2.0)
78
- rspec-support (~> 3.9.0)
79
- rspec-mocks (3.9.1)
88
+ rspec-support (~> 3.13.0)
89
+ rspec-mocks (3.13.0)
80
90
  diff-lcs (>= 1.2.0, < 2.0)
81
- rspec-support (~> 3.9.0)
82
- rspec-support (3.9.3)
91
+ rspec-support (~> 3.13.0)
92
+ rspec-support (3.13.1)
83
93
  shellany (0.0.1)
84
- sqlite3 (1.4.2)
85
- thor (1.1.0)
86
- tzinfo (2.0.4)
94
+ sqlite3 (2.0.1-aarch64-linux-gnu)
95
+ sqlite3 (2.0.1-aarch64-linux-musl)
96
+ sqlite3 (2.0.1-arm-linux-gnu)
97
+ sqlite3 (2.0.1-arm-linux-musl)
98
+ sqlite3 (2.0.1-arm64-darwin)
99
+ sqlite3 (2.0.1-x86-linux-gnu)
100
+ sqlite3 (2.0.1-x86-linux-musl)
101
+ sqlite3 (2.0.1-x86_64-darwin)
102
+ sqlite3 (2.0.1-x86_64-linux-gnu)
103
+ sqlite3 (2.0.1-x86_64-linux-musl)
104
+ thor (1.3.1)
105
+ timeout (0.4.1)
106
+ tzinfo (2.0.6)
87
107
  concurrent-ruby (~> 1.0)
88
- zeitwerk (2.4.2)
89
108
 
90
109
  PLATFORMS
91
- ruby
110
+ aarch64-linux-gnu
111
+ aarch64-linux-musl
112
+ arm-linux-gnu
113
+ arm-linux-musl
114
+ arm64-darwin
115
+ x86-linux-gnu
116
+ x86-linux-musl
117
+ x86_64-darwin
118
+ x86_64-linux-gnu
119
+ x86_64-linux-musl
92
120
 
93
121
  DEPENDENCIES
94
122
  activerecord
@@ -106,4 +134,4 @@ DEPENDENCIES
106
134
  sqlite3
107
135
 
108
136
  BUNDLED WITH
109
- 2.2.3
137
+ 2.5.3
data/README.md CHANGED
@@ -419,7 +419,17 @@ filterable.results
419
419
 
420
420
  ## Development
421
421
 
422
- After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
422
+ ### Ruby setup
423
+ After checking out the repo, run `bin/setup` to install dependencies.
424
+
425
+ ### Setting up the test database
426
+
427
+ ```
428
+ docker pull postgres
429
+ docker run --name rokaki-postgres -e POSTGRES_USER=rokaki -e POSTGRES_PASSWORD=rokaki -d -p 5432:5432 postgres
430
+ ```
431
+
432
+ Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
423
433
 
424
434
  To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
425
435
 
@@ -85,11 +85,11 @@ module Rokaki
85
85
  end
86
86
  end
87
87
 
88
- def deep_map(keys, value)
88
+ def deep_map(keys, value, &block)
89
89
  if value.is_a? Hash
90
90
  value.keys.map do |key|
91
91
  _keys = keys.dup << key
92
- deep_map(_keys, value[key], &Proc.new)
92
+ deep_map(_keys, value[key], &block)
93
93
  end
94
94
  end
95
95
 
@@ -99,7 +99,7 @@ module Rokaki
99
99
  _keys = keys.dup << av
100
100
  yield _keys
101
101
  else
102
- deep_map(keys, av, &Proc.new)
102
+ deep_map(keys, av, &block)
103
103
  end
104
104
  end
105
105
  end
@@ -1,3 +1,3 @@
1
1
  module Rokaki
2
- VERSION = "0.8.4"
2
+ VERSION = "0.9.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rokaki
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.4
4
+ version: 0.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steve Martin
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-07-20 00:00:00.000000000 Z
11
+ date: 2024-04-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -199,6 +199,7 @@ executables: []
199
199
  extensions: []
200
200
  extra_rdoc_files: []
201
201
  files:
202
+ - ".github/workflows/codeql-analysis.yml"
202
203
  - ".gitignore"
203
204
  - ".rspec"
204
205
  - ".ruby-version"
@@ -244,7 +245,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
244
245
  - !ruby/object:Gem::Version
245
246
  version: '0'
246
247
  requirements: []
247
- rubygems_version: 3.1.6
248
+ rubygems_version: 3.5.3
248
249
  signing_key:
249
250
  specification_version: 4
250
251
  summary: A web request filtering library