rokaki 0.8.3.1 → 0.9.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8f2a62792073dd9728a44158d6f30dc4f0f8119316bda3a3846c16fc2abc57f7
4
- data.tar.gz: 80e9bfc7b677b7e291996c5bda1fc6652ddfbb592b31083446ef992755f00404
3
+ metadata.gz: 231b27e39d8bc7c95a1b3d217bd28cf9129fa9463e949b7d8626ea5213fefdbc
4
+ data.tar.gz: b533f1aae5281fbf5403b81dd81d2ac483a231eb419510abb3df7348017b24a5
5
5
  SHA512:
6
- metadata.gz: 6570c3b380c66092b3a583b1c94a51f8364f06d936522cc72676e23c3aa1717b4b89cc65c0d3ed6e6d67291b3c7e1c3c83d8254acd7df8f9971700b314a71aa0
7
- data.tar.gz: 913e7bf304da343a4dce4d061dbcdaa37c2f26d7a396e590e393a224a4ac7c30c439f8d085de1a865828c9931f1bcf99dc66b32c8494e8481dcc6c5539d03ea6
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 ADDED
@@ -0,0 +1 @@
1
+ 3.3.0
data/Gemfile.lock CHANGED
@@ -1,42 +1,51 @@
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.0.3.2)
11
- activesupport (= 6.0.3.2)
12
- activerecord (6.0.3.2)
13
- activemodel (= 6.0.3.2)
14
- activesupport (= 6.0.3.2)
15
- activesupport (6.0.3.2)
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)
17
- i18n (>= 0.7, < 2)
18
- minitest (~> 5.1)
19
- tzinfo (~> 1.1)
20
- zeitwerk (~> 2.2, >= 2.2.2)
20
+ connection_pool (>= 2.2.5)
21
+ drb
22
+ i18n (>= 1.6, < 2)
23
+ minitest (>= 5.1)
24
+ mutex_m
25
+ tzinfo (~> 2.0)
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.6)
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.13.1)
32
- formatador (0.2.5)
33
- guard (2.16.2)
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)
37
46
  nenv (~> 0.1)
38
47
  notiffany (~> 0.0)
39
- pry (>= 0.9.12)
48
+ pry (>= 0.13.0)
40
49
  shellany (~> 0.0)
41
50
  thor (>= 0.18.1)
42
51
  guard-compat (1.2.1)
@@ -44,52 +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.3)
56
+ i18n (1.14.4)
48
57
  concurrent-ruby (~> 1.0)
49
- listen (3.2.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.6)
53
- method_source (1.0.0)
54
- minitest (5.14.1)
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.10.4)
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.0.1)
86
- thread_safe (0.3.6)
87
- tzinfo (1.2.7)
88
- thread_safe (~> 0.1)
89
- zeitwerk (2.3.0)
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)
107
+ concurrent-ruby (~> 1.0)
90
108
 
91
109
  PLATFORMS
92
- 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
93
120
 
94
121
  DEPENDENCIES
95
122
  activerecord
@@ -107,4 +134,4 @@ DEPENDENCIES
107
134
  sqlite3
108
135
 
109
136
  BUNDLED WITH
110
- 2.1.4
137
+ 2.5.3
data/README.md CHANGED
@@ -1,5 +1,4 @@
1
1
  # Rokaki
2
- ## You know, for air.
3
2
 
4
3
  [![Gem Version](https://badge.fury.io/rb/rokaki.svg)](https://badge.fury.io/rb/rokaki)
5
4
 
@@ -420,7 +419,17 @@ filterable.results
420
419
 
421
420
  ## Development
422
421
 
423
- 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.
424
433
 
425
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).
426
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.3.1"
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.3.1
4
+ version: 0.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steve Martin
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-06-28 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,8 +199,10 @@ executables: []
199
199
  extensions: []
200
200
  extra_rdoc_files: []
201
201
  files:
202
+ - ".github/workflows/codeql-analysis.yml"
202
203
  - ".gitignore"
203
204
  - ".rspec"
205
+ - ".ruby-version"
204
206
  - ".travis.yml"
205
207
  - CODE_OF_CONDUCT.md
206
208
  - Gemfile
@@ -228,7 +230,7 @@ licenses:
228
230
  - MIT
229
231
  metadata:
230
232
  homepage_uri: https://github.com/tevio/rokaki
231
- post_install_message:
233
+ post_install_message:
232
234
  rdoc_options: []
233
235
  require_paths:
234
236
  - lib
@@ -243,8 +245,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
243
245
  - !ruby/object:Gem::Version
244
246
  version: '0'
245
247
  requirements: []
246
- rubygems_version: 3.1.2
247
- signing_key:
248
+ rubygems_version: 3.5.3
249
+ signing_key:
248
250
  specification_version: 4
249
251
  summary: A web request filtering library
250
252
  test_files: []