active_recall 2.0.1 → 2.1.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: 1be7449fff68fa72825e50fd75ac16c5e66c289b8478aa6b5777492a6d15f84c
4
- data.tar.gz: 60a2523b2e4ea54a3cceebc442be03a36bfae90a8047d77bc96df17fe3f12e2c
3
+ metadata.gz: 1145dd0124d31f1cd1d200170e3956b20818e73bd2d1fedb4ceacf4f82a8f4ba
4
+ data.tar.gz: b4b8e2c1d1edd66cc0c756200b525aec806468c7f95626c257bd95f369d56037
5
5
  SHA512:
6
- metadata.gz: 04fc13601da77c775765ff7e465010a9227d367dcfe4e7dd2eac0b7faf92461d2377ce106b1b03b1c14538e36ce9ab3c63d906b46fa1885f6eec784547aa3231
7
- data.tar.gz: 3c663fbd9f5f5d14b040eefd4ad7dbe0c8ba58fcd2b5c90445658c3512c1c80a86da8bd91601ad219eb1043764cb5d221f9a35e2f45d5d7feb53398a20f1dc00
6
+ metadata.gz: e94584e1041b5f695ab3ec0d24a87a7c3a4abf200fb11c7951917f98cbd84f9e24225b52a6c45d393fe31beb76e08a9ac683266cd191f7ec5cacd78644b8ed68
7
+ data.tar.gz: 6979b3ac85b8cd12751566161bfa2d55ca5832fc82693a92469f3844ec481d86c4bda05fc709fcbb2ea8f3dbc84959a8d342a683ce6e936a05ab235c278a66df
@@ -19,8 +19,6 @@ jobs:
19
19
  - macos
20
20
  - ubuntu
21
21
  ruby:
22
- - 3.0
23
- - 3.1
24
22
  - 3.2
25
23
  - 3.3
26
24
  allow_failures:
@@ -40,11 +38,9 @@ jobs:
40
38
  bundler-cache: true
41
39
  - name: Install Appraisal Dependencies
42
40
  run: bundle exec appraisal install
43
- - name: Test with Rails 6.0
44
- run: bundle exec appraisal rails-6-0 rake spec
45
- - name: Test with Rails 6.1
46
- run: bundle exec appraisal rails-6-1 rake spec
47
- - name: Test with Rails 7.0
48
- run: bundle exec appraisal rails-7-0 rake spec
49
41
  - name: Test with Rails 7.0
50
42
  run: bundle exec appraisal rails-7-0 rake spec
43
+ - name: Test with Rails 7.1
44
+ run: bundle exec appraisal rails-7-1 rake spec
45
+ - name: Test with Rails 8.0
46
+ run: bundle exec appraisal rails-8-0 rake spec
data/.gitignore CHANGED
@@ -13,5 +13,6 @@ rdoc
13
13
  spec/reports
14
14
  test/tmp
15
15
  test/version_tmp
16
- tmp
17
16
  .idea/
17
+ .DS_Store
18
+ tmp
data/Appraisals CHANGED
@@ -1,15 +1,14 @@
1
- appraise 'rails-6-0' do
2
- gem 'rails', '~> 6.0'
1
+ appraise "rails-7-0" do
2
+ gem "rails", "~> 7.0"
3
+ gem "sqlite3", "~> 1.4"
3
4
  end
4
5
 
5
- appraise 'rails-6-1' do
6
- gem 'rails', '~> 6.1'
6
+ appraise "rails-7-1" do
7
+ gem "rails", "~> 7.1"
8
+ gem "sqlite3", "~> 1.4"
7
9
  end
8
10
 
9
- appraise 'rails-7-0' do
10
- gem 'rails', '~> 7.0'
11
- end
12
-
13
- appraise 'rails-7-1' do
14
- gem 'rails', '~> 7.1'
11
+ appraise "rails-8-0" do
12
+ gem "rails", "~> 8.0"
13
+ gem "sqlite3", ">= 2.1"
15
14
  end
data/Gemfile.lock CHANGED
@@ -1,9 +1,9 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- active_recall (2.0.1)
5
- activerecord (>= 6.0, <= 7.2)
6
- activesupport (>= 6.0, <= 7.2)
4
+ active_recall (2.1.0)
5
+ activerecord (>= 7.0, < 9.0)
6
+ activesupport (>= 7.0, < 9.0)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
@@ -86,6 +86,7 @@ GEM
86
86
  bundler
87
87
  rake
88
88
  thor (>= 0.14.0)
89
+ ast (2.4.2)
89
90
  base64 (0.2.0)
90
91
  bigdecimal (3.1.6)
91
92
  builder (3.2.4)
@@ -105,6 +106,9 @@ GEM
105
106
  irb (1.11.1)
106
107
  rdoc
107
108
  reline (>= 0.4.2)
109
+ json (2.7.2)
110
+ language_server-protocol (3.17.0.3)
111
+ lint_roller (1.1.0)
108
112
  loofah (2.22.0)
109
113
  crass (~> 1.0.2)
110
114
  nokogiri (>= 1.12.0)
@@ -133,6 +137,10 @@ GEM
133
137
  racc (~> 1.4)
134
138
  nokogiri (1.16.0-x86_64-linux)
135
139
  racc (~> 1.4)
140
+ parallel (1.24.0)
141
+ parser (3.3.1.0)
142
+ ast (~> 2.4.1)
143
+ racc
136
144
  racc (1.7.3)
137
145
  rack (3.0.8)
138
146
  rack-session (2.0.0)
@@ -171,10 +179,13 @@ GEM
171
179
  rake (>= 12.2)
172
180
  thor (~> 1.0, >= 1.2.2)
173
181
  zeitwerk (~> 2.6)
182
+ rainbow (3.1.1)
174
183
  rake (12.3.3)
175
184
  rdoc (6.2.0)
185
+ regexp_parser (2.9.0)
176
186
  reline (0.4.2)
177
187
  io-console (~> 0.5)
188
+ rexml (3.2.6)
178
189
  rspec (3.8.0)
179
190
  rspec-core (~> 3.8.0)
180
191
  rspec-expectations (~> 3.8.0)
@@ -188,12 +199,44 @@ GEM
188
199
  diff-lcs (>= 1.2.0, < 2.0)
189
200
  rspec-support (~> 3.8.0)
190
201
  rspec-support (3.8.2)
202
+ rubocop (1.62.1)
203
+ json (~> 2.3)
204
+ language_server-protocol (>= 3.17.0)
205
+ parallel (~> 1.10)
206
+ parser (>= 3.3.0.2)
207
+ rainbow (>= 2.2.2, < 4.0)
208
+ regexp_parser (>= 1.8, < 3.0)
209
+ rexml (>= 3.2.5, < 4.0)
210
+ rubocop-ast (>= 1.31.1, < 2.0)
211
+ ruby-progressbar (~> 1.7)
212
+ unicode-display_width (>= 2.4.0, < 3.0)
213
+ rubocop-ast (1.31.2)
214
+ parser (>= 3.3.0.4)
215
+ rubocop-performance (1.20.2)
216
+ rubocop (>= 1.48.1, < 2.0)
217
+ rubocop-ast (>= 1.30.0, < 2.0)
218
+ ruby-progressbar (1.13.0)
191
219
  ruby2_keywords (0.0.5)
192
- sqlite3 (1.4.2)
220
+ sqlite3 (2.5.0)
221
+ mini_portile2 (~> 2.8.0)
222
+ sqlite3 (2.5.0-x86_64-linux-gnu)
223
+ standard (1.35.1)
224
+ language_server-protocol (~> 3.17.0.2)
225
+ lint_roller (~> 1.0)
226
+ rubocop (~> 1.62.0)
227
+ standard-custom (~> 1.0.0)
228
+ standard-performance (~> 1.3)
229
+ standard-custom (1.0.2)
230
+ lint_roller (~> 1.0)
231
+ rubocop (~> 1.50)
232
+ standard-performance (1.3.1)
233
+ lint_roller (~> 1.1)
234
+ rubocop-performance (~> 1.20.2)
193
235
  thor (1.3.0)
194
236
  timeout (0.4.1)
195
237
  tzinfo (2.0.6)
196
238
  concurrent-ruby (~> 1.0)
239
+ unicode-display_width (2.5.0)
197
240
  webrick (1.8.1)
198
241
  websocket-driver (0.7.6)
199
242
  websocket-extensions (>= 0.1.0)
@@ -207,11 +250,12 @@ PLATFORMS
207
250
  DEPENDENCIES
208
251
  active_recall!
209
252
  appraisal
210
- rails (>= 6.0, <= 7.2)
253
+ rails (>= 7.0, < 9.0)
211
254
  rake (>= 12.0)
212
255
  rdoc
213
256
  rspec (>= 3.0)
214
- sqlite3
257
+ sqlite3 (~> 2.1)
258
+ standard
215
259
 
216
260
  BUNDLED WITH
217
261
  2.4.14
@@ -32,13 +32,14 @@ Gem::Specification.new do |spec|
32
32
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
33
33
  spec.require_paths = ["lib"]
34
34
 
35
- spec.add_development_dependency 'appraisal'
36
- spec.add_development_dependency "rails", ">= 6.0", "<= 7.2"
35
+ spec.add_development_dependency "appraisal"
36
+ spec.add_development_dependency "rails", ">= 7.0", "< 9.0"
37
37
  spec.add_development_dependency "rake", ">= 12.0"
38
38
  spec.add_development_dependency "rdoc"
39
39
  spec.add_development_dependency "rspec", ">= 3.0"
40
- spec.add_development_dependency "sqlite3"
41
- spec.add_runtime_dependency "activerecord", ">= 6.0", "<= 7.2"
42
- spec.add_runtime_dependency "activesupport", ">= 6.0", "<= 7.2"
43
- spec.required_ruby_version = ">= 3.0"
40
+ spec.add_development_dependency "sqlite3", "~> 2.1"
41
+ spec.add_development_dependency "standard"
42
+ spec.add_runtime_dependency "activerecord", ">= 7.0", "< 9.0"
43
+ spec.add_runtime_dependency "activesupport", ">= 7.0", "< 9.0"
44
+ spec.required_ruby_version = ">= 3.2"
44
45
  end
data/bin/flatten ADDED
@@ -0,0 +1,54 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'fileutils'
4
+
5
+ app_root = Dir.pwd
6
+ app_name = File.basename(app_root)
7
+
8
+ # Create tmp directory
9
+ tmp_dir = File.join(app_root, 'tmp')
10
+ FileUtils.mkdir_p(tmp_dir)
11
+
12
+ # Define directories and file patterns to include in the search, excluding specific files and directories
13
+ include_patterns = [
14
+ File.join(app_root, 'bin', '**', '*'),
15
+ File.join(app_root, 'lib', '**', '*'),
16
+ File.join(app_root, 'spec', '**', '*'),
17
+ File.join(app_root, '.github', '**', '*'),
18
+ File.join(app_root, '*.{md,rss,json,rb,gemspec,lock,yml,gitignore,rspec,tool-versions,Appraisals,Rakefile}')
19
+ ]
20
+
21
+ # Find all matching files
22
+ files = include_patterns.flat_map { |pattern| Dir.glob(pattern, File::FNM_DOTMATCH) }
23
+ files.select! { |f| File.file?(f) }
24
+
25
+ # Exclude the gemfiles directory and the top-level Gemfile.lock
26
+ files.reject! do |file|
27
+ file.start_with?(File.join(app_root, 'gemfiles')) || file == File.join(app_root, 'Gemfile.lock')
28
+ end
29
+
30
+ # Output file
31
+ output_file = File.join(tmp_dir, "#{app_name}_flat_file.txt")
32
+
33
+ File.open(output_file, 'w') do |file|
34
+ files.each do |file_path|
35
+ relative_path = file_path.sub("#{app_root}/", '')
36
+ extension = File.extname(file_path).delete_prefix('.')
37
+
38
+ file.puts "#{relative_path}:"
39
+
40
+ content = File.read(file_path)
41
+ if extension == 'md'
42
+ file.puts content
43
+ else
44
+ file.puts "```#{extension}"
45
+ file.puts content
46
+ file.puts "```"
47
+ end
48
+
49
+ file.puts ""
50
+ end
51
+ end
52
+
53
+ # Print the path to the generated flat file
54
+ puts "Flat file created at: #{output_file}"
data/bin/lint ADDED
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ standardrb --fix
@@ -3,5 +3,6 @@
3
3
  source "https://rubygems.org"
4
4
 
5
5
  gem "rails", "~> 7.0"
6
+ gem "sqlite3", "~> 1.4"
6
7
 
7
8
  gemspec path: "../"
@@ -1,9 +1,9 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- active_recall (2.0.1)
5
- activerecord (>= 6.0, <= 7.2)
6
- activesupport (>= 6.0, <= 7.2)
4
+ active_recall (2.1.0)
5
+ activerecord (>= 7.0, < 9.0)
6
+ activesupport (>= 7.0, < 9.0)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
@@ -86,6 +86,7 @@ GEM
86
86
  bundler
87
87
  rake
88
88
  thor (>= 0.14.0)
89
+ ast (2.4.2)
89
90
  base64 (0.2.0)
90
91
  bigdecimal (3.1.6)
91
92
  builder (3.2.4)
@@ -105,6 +106,9 @@ GEM
105
106
  irb (1.11.1)
106
107
  rdoc
107
108
  reline (>= 0.4.2)
109
+ json (2.7.2)
110
+ language_server-protocol (3.17.0.3)
111
+ lint_roller (1.1.0)
108
112
  loofah (2.22.0)
109
113
  crass (~> 1.0.2)
110
114
  nokogiri (>= 1.12.0)
@@ -129,6 +133,10 @@ GEM
129
133
  nio4r (2.7.0)
130
134
  nokogiri (1.16.0-arm64-darwin)
131
135
  racc (~> 1.4)
136
+ parallel (1.24.0)
137
+ parser (3.3.1.0)
138
+ ast (~> 2.4.1)
139
+ racc
132
140
  psych (5.1.2)
133
141
  stringio
134
142
  racc (1.7.3)
@@ -169,11 +177,14 @@ GEM
169
177
  rake (>= 12.2)
170
178
  thor (~> 1.0, >= 1.2.2)
171
179
  zeitwerk (~> 2.6)
180
+ rainbow (3.1.1)
172
181
  rake (13.1.0)
173
182
  rdoc (6.6.2)
174
183
  psych (>= 4.0.0)
184
+ regexp_parser (2.9.0)
175
185
  reline (0.4.2)
176
186
  io-console (~> 0.5)
187
+ rexml (3.2.6)
177
188
  rspec (3.12.0)
178
189
  rspec-core (~> 3.12.0)
179
190
  rspec-expectations (~> 3.12.0)
@@ -187,13 +198,43 @@ GEM
187
198
  diff-lcs (>= 1.2.0, < 2.0)
188
199
  rspec-support (~> 3.12.0)
189
200
  rspec-support (3.12.1)
201
+ rubocop (1.62.1)
202
+ json (~> 2.3)
203
+ language_server-protocol (>= 3.17.0)
204
+ parallel (~> 1.10)
205
+ parser (>= 3.3.0.2)
206
+ rainbow (>= 2.2.2, < 4.0)
207
+ regexp_parser (>= 1.8, < 3.0)
208
+ rexml (>= 3.2.5, < 4.0)
209
+ rubocop-ast (>= 1.31.1, < 2.0)
210
+ ruby-progressbar (~> 1.7)
211
+ unicode-display_width (>= 2.4.0, < 3.0)
212
+ rubocop-ast (1.31.2)
213
+ parser (>= 3.3.0.4)
214
+ rubocop-performance (1.20.2)
215
+ rubocop (>= 1.48.1, < 2.0)
216
+ rubocop-ast (>= 1.30.0, < 2.0)
217
+ ruby-progressbar (1.13.0)
190
218
  ruby2_keywords (0.0.5)
191
- sqlite3 (1.7.1-arm64-darwin)
219
+ sqlite3 (1.7.3-arm64-darwin)
220
+ standard (1.35.1)
221
+ language_server-protocol (~> 3.17.0.2)
222
+ lint_roller (~> 1.0)
223
+ rubocop (~> 1.62.0)
224
+ standard-custom (~> 1.0.0)
225
+ standard-performance (~> 1.3)
226
+ standard-custom (1.0.2)
227
+ lint_roller (~> 1.0)
228
+ rubocop (~> 1.50)
229
+ standard-performance (1.3.1)
230
+ lint_roller (~> 1.1)
231
+ rubocop-performance (~> 1.20.2)
192
232
  stringio (3.1.0)
193
233
  thor (1.3.0)
194
234
  timeout (0.4.1)
195
235
  tzinfo (2.0.6)
196
236
  concurrent-ruby (~> 1.0)
237
+ unicode-display_width (2.5.0)
197
238
  webrick (1.8.1)
198
239
  websocket-driver (0.7.6)
199
240
  websocket-extensions (>= 0.1.0)
@@ -210,7 +251,8 @@ DEPENDENCIES
210
251
  rake (>= 12.0)
211
252
  rdoc
212
253
  rspec (>= 3.0)
213
- sqlite3
254
+ sqlite3 (~> 1.4)
255
+ standard
214
256
 
215
257
  BUNDLED WITH
216
258
  2.4.14
@@ -3,5 +3,6 @@
3
3
  source "https://rubygems.org"
4
4
 
5
5
  gem "rails", "~> 7.1"
6
+ gem "sqlite3", "~> 1.4"
6
7
 
7
8
  gemspec path: "../"
@@ -1,9 +1,9 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- active_recall (2.0.1)
5
- activerecord (>= 6.0, <= 7.2)
6
- activesupport (>= 6.0, <= 7.2)
4
+ active_recall (2.1.0)
5
+ activerecord (>= 7.0, < 9.0)
6
+ activesupport (>= 7.0, < 9.0)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
@@ -86,6 +86,7 @@ GEM
86
86
  bundler
87
87
  rake
88
88
  thor (>= 0.14.0)
89
+ ast (2.4.2)
89
90
  base64 (0.2.0)
90
91
  bigdecimal (3.1.6)
91
92
  builder (3.2.4)
@@ -105,6 +106,9 @@ GEM
105
106
  irb (1.11.1)
106
107
  rdoc
107
108
  reline (>= 0.4.2)
109
+ json (2.7.2)
110
+ language_server-protocol (3.17.0.3)
111
+ lint_roller (1.1.0)
108
112
  loofah (2.22.0)
109
113
  crass (~> 1.0.2)
110
114
  nokogiri (>= 1.12.0)
@@ -129,6 +133,10 @@ GEM
129
133
  nio4r (2.7.0)
130
134
  nokogiri (1.16.0-arm64-darwin)
131
135
  racc (~> 1.4)
136
+ parallel (1.24.0)
137
+ parser (3.3.1.0)
138
+ ast (~> 2.4.1)
139
+ racc
132
140
  psych (5.1.2)
133
141
  stringio
134
142
  racc (1.7.3)
@@ -169,11 +177,14 @@ GEM
169
177
  rake (>= 12.2)
170
178
  thor (~> 1.0, >= 1.2.2)
171
179
  zeitwerk (~> 2.6)
180
+ rainbow (3.1.1)
172
181
  rake (13.1.0)
173
182
  rdoc (6.6.2)
174
183
  psych (>= 4.0.0)
184
+ regexp_parser (2.9.0)
175
185
  reline (0.4.2)
176
186
  io-console (~> 0.5)
187
+ rexml (3.2.6)
177
188
  rspec (3.12.0)
178
189
  rspec-core (~> 3.12.0)
179
190
  rspec-expectations (~> 3.12.0)
@@ -187,13 +198,43 @@ GEM
187
198
  diff-lcs (>= 1.2.0, < 2.0)
188
199
  rspec-support (~> 3.12.0)
189
200
  rspec-support (3.12.1)
201
+ rubocop (1.62.1)
202
+ json (~> 2.3)
203
+ language_server-protocol (>= 3.17.0)
204
+ parallel (~> 1.10)
205
+ parser (>= 3.3.0.2)
206
+ rainbow (>= 2.2.2, < 4.0)
207
+ regexp_parser (>= 1.8, < 3.0)
208
+ rexml (>= 3.2.5, < 4.0)
209
+ rubocop-ast (>= 1.31.1, < 2.0)
210
+ ruby-progressbar (~> 1.7)
211
+ unicode-display_width (>= 2.4.0, < 3.0)
212
+ rubocop-ast (1.31.2)
213
+ parser (>= 3.3.0.4)
214
+ rubocop-performance (1.20.2)
215
+ rubocop (>= 1.48.1, < 2.0)
216
+ rubocop-ast (>= 1.30.0, < 2.0)
217
+ ruby-progressbar (1.13.0)
190
218
  ruby2_keywords (0.0.5)
191
- sqlite3 (1.7.1-arm64-darwin)
219
+ sqlite3 (1.7.3-arm64-darwin)
220
+ standard (1.35.1)
221
+ language_server-protocol (~> 3.17.0.2)
222
+ lint_roller (~> 1.0)
223
+ rubocop (~> 1.62.0)
224
+ standard-custom (~> 1.0.0)
225
+ standard-performance (~> 1.3)
226
+ standard-custom (1.0.2)
227
+ lint_roller (~> 1.0)
228
+ rubocop (~> 1.50)
229
+ standard-performance (1.3.1)
230
+ lint_roller (~> 1.1)
231
+ rubocop-performance (~> 1.20.2)
192
232
  stringio (3.1.0)
193
233
  thor (1.3.0)
194
234
  timeout (0.4.1)
195
235
  tzinfo (2.0.6)
196
236
  concurrent-ruby (~> 1.0)
237
+ unicode-display_width (2.5.0)
197
238
  webrick (1.8.1)
198
239
  websocket-driver (0.7.6)
199
240
  websocket-extensions (>= 0.1.0)
@@ -210,7 +251,8 @@ DEPENDENCIES
210
251
  rake (>= 12.0)
211
252
  rdoc
212
253
  rspec (>= 3.0)
213
- sqlite3
254
+ sqlite3 (~> 1.4)
255
+ standard
214
256
 
215
257
  BUNDLED WITH
216
258
  2.4.14
@@ -2,6 +2,7 @@
2
2
 
3
3
  source "https://rubygems.org"
4
4
 
5
- gem "rails", "~> 6.0"
5
+ gem "rails", "~> 8.0"
6
+ gem "sqlite3", ">= 2.1"
6
7
 
7
8
  gemspec path: "../"