litestack 0.4.2 → 0.4.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (55) hide show
  1. checksums.yaml +4 -4
  2. data/.standard.yml +3 -1
  3. data/BENCHMARKS.md +3 -3
  4. data/CAVEATS.md +20 -0
  5. data/CHANGELOG.md +40 -1
  6. data/FILESYSTEMS.md +55 -0
  7. data/Gemfile +2 -0
  8. data/README.md +8 -4
  9. data/ROADMAP.md +6 -6
  10. data/assets/litestack_advantage.png +0 -0
  11. data/bench/bench.rb +2 -0
  12. data/bench/bench_cache_rails.rb +33 -2
  13. data/bench/bench_cache_raw.rb +36 -12
  14. data/bench/bench_jobs_rails.rb +3 -3
  15. data/bench/bench_jobs_raw.rb +3 -3
  16. data/bin/liteboard +16 -13
  17. data/gemfiles/rails70.gemfile +5 -0
  18. data/gemfiles/rails71.gemfile +5 -0
  19. data/gemfiles/rails71.gemfile.lock +264 -0
  20. data/lib/active_job/queue_adapters/litejob_adapter.rb +11 -3
  21. data/lib/active_record/connection_adapters/litedb_adapter.rb +8 -0
  22. data/lib/active_support/cache/litecache.rb +40 -7
  23. data/lib/generators/litestack/install/install_generator.rb +2 -2
  24. data/lib/generators/litestack/install/templates/cable.yml +0 -3
  25. data/lib/litestack/liteboard/liteboard.rb +15 -19
  26. data/lib/litestack/liteboard/views/litecable.erb +1 -1
  27. data/lib/litestack/litecable.rb +1 -1
  28. data/lib/litestack/litecache.rb +51 -19
  29. data/lib/litestack/litecache.sql.yml +7 -5
  30. data/lib/litestack/litedb.rb +5 -1
  31. data/lib/litestack/litejob.rb +1 -1
  32. data/lib/litestack/litejobqueue.rb +24 -14
  33. data/lib/litestack/litemetric.rb +7 -6
  34. data/lib/litestack/litemetric.sql.yml +1 -1
  35. data/lib/litestack/litemetric_collector.sql.yml +1 -1
  36. data/lib/litestack/litequeue.rb +17 -2
  37. data/lib/litestack/litequeue.sql.yml +38 -5
  38. data/lib/litestack/litescheduler.rb +9 -4
  39. data/lib/litestack/litesearch/index.rb +11 -10
  40. data/lib/litestack/litesearch/model.rb +61 -3
  41. data/lib/litestack/litesearch/schema.rb +7 -2
  42. data/lib/litestack/litesearch/schema_adapters/backed_adapter.rb +69 -25
  43. data/lib/litestack/litesearch/schema_adapters.rb +4 -4
  44. data/lib/litestack/litesearch.rb +2 -2
  45. data/lib/litestack/litesupport.rb +9 -7
  46. data/lib/litestack/railtie.rb +4 -2
  47. data/lib/litestack/version.rb +1 -1
  48. data/lib/litestack.rb +15 -15
  49. data/lib/railties/rails/commands/dbconsole.rb +5 -5
  50. data/lib/sequel/adapters/litedb.rb +9 -1
  51. data/lib/sequel/adapters/shared/litedb.rb +2 -2
  52. data/scripts/build_metrics.rb +2 -2
  53. data/scripts/test_cable.rb +1 -1
  54. metadata +105 -56
  55. data/Gemfile.lock +0 -92
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: litestack
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mohamed Hassan
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2023-11-11 00:00:00.000000000 Z
10
+ date: 2024-05-21 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: sqlite3
@@ -16,169 +15,216 @@ dependencies:
16
15
  requirements:
17
16
  - - ">="
18
17
  - !ruby/object:Gem::Version
19
- version: '0'
18
+ version: 1.6.0
19
+ - - "<"
20
+ - !ruby/object:Gem::Version
21
+ version: 2.0.0
20
22
  type: :runtime
21
23
  prerelease: false
22
24
  version_requirements: !ruby/object:Gem::Requirement
23
25
  requirements:
24
26
  - - ">="
25
27
  - !ruby/object:Gem::Version
26
- version: '0'
28
+ version: 1.6.0
29
+ - - "<"
30
+ - !ruby/object:Gem::Version
31
+ version: 2.0.0
27
32
  - !ruby/object:Gem::Dependency
28
33
  name: oj
29
34
  requirement: !ruby/object:Gem::Requirement
30
35
  requirements:
31
- - - ">="
36
+ - - "~>"
32
37
  - !ruby/object:Gem::Version
33
- version: '0'
38
+ version: '3'
34
39
  type: :runtime
35
40
  prerelease: false
36
41
  version_requirements: !ruby/object:Gem::Requirement
37
42
  requirements:
38
- - - ">="
43
+ - - "~>"
39
44
  - !ruby/object:Gem::Version
40
- version: '0'
45
+ version: '3'
41
46
  - !ruby/object:Gem::Dependency
42
47
  name: rack
43
48
  requirement: !ruby/object:Gem::Requirement
44
49
  requirements:
45
- - - ">="
50
+ - - "~>"
46
51
  - !ruby/object:Gem::Version
47
- version: '0'
52
+ version: '3'
48
53
  type: :runtime
49
54
  prerelease: false
50
55
  version_requirements: !ruby/object:Gem::Requirement
51
56
  requirements:
52
- - - ">="
57
+ - - "~>"
53
58
  - !ruby/object:Gem::Version
54
- version: '0'
59
+ version: '3'
55
60
  - !ruby/object:Gem::Dependency
56
- name: hanami-router
61
+ name: rackup
57
62
  requirement: !ruby/object:Gem::Requirement
58
63
  requirements:
59
- - - ">="
64
+ - - "~>"
60
65
  - !ruby/object:Gem::Version
61
- version: '0'
66
+ version: '2'
62
67
  type: :runtime
63
68
  prerelease: false
64
69
  version_requirements: !ruby/object:Gem::Requirement
65
70
  requirements:
66
- - - ">="
71
+ - - "~>"
67
72
  - !ruby/object:Gem::Version
68
- version: '0'
73
+ version: '2'
69
74
  - !ruby/object:Gem::Dependency
70
75
  name: tilt
71
76
  requirement: !ruby/object:Gem::Requirement
72
77
  requirements:
73
- - - ">="
78
+ - - "~>"
74
79
  - !ruby/object:Gem::Version
75
- version: '0'
80
+ version: '2'
76
81
  type: :runtime
77
82
  prerelease: false
78
83
  version_requirements: !ruby/object:Gem::Requirement
79
84
  requirements:
80
- - - ">="
85
+ - - "~>"
81
86
  - !ruby/object:Gem::Version
82
- version: '0'
87
+ version: '2'
83
88
  - !ruby/object:Gem::Dependency
84
89
  name: erubi
85
90
  requirement: !ruby/object:Gem::Requirement
86
91
  requirements:
87
- - - ">="
92
+ - - "~>"
88
93
  - !ruby/object:Gem::Version
89
- version: '0'
94
+ version: '1'
90
95
  type: :runtime
91
96
  prerelease: false
92
97
  version_requirements: !ruby/object:Gem::Requirement
93
98
  requirements:
94
- - - ">="
99
+ - - "~>"
95
100
  - !ruby/object:Gem::Version
96
- version: '0'
101
+ version: '1'
97
102
  - !ruby/object:Gem::Dependency
98
103
  name: rake
99
104
  requirement: !ruby/object:Gem::Requirement
100
105
  requirements:
101
- - - ">="
106
+ - - "~>"
102
107
  - !ruby/object:Gem::Version
103
- version: '0'
108
+ version: '13'
104
109
  type: :development
105
110
  prerelease: false
106
111
  version_requirements: !ruby/object:Gem::Requirement
107
112
  requirements:
108
- - - ">="
113
+ - - "~>"
109
114
  - !ruby/object:Gem::Version
110
- version: '0'
115
+ version: '13'
111
116
  - !ruby/object:Gem::Dependency
112
- name: railties
117
+ name: activerecord
113
118
  requirement: !ruby/object:Gem::Requirement
114
119
  requirements:
115
- - - ">="
120
+ - - "~>"
116
121
  - !ruby/object:Gem::Version
117
- version: '0'
122
+ version: '7'
118
123
  type: :development
119
124
  prerelease: false
120
125
  version_requirements: !ruby/object:Gem::Requirement
121
126
  requirements:
122
- - - ">="
127
+ - - "~>"
123
128
  - !ruby/object:Gem::Version
124
- version: '0'
129
+ version: '7'
125
130
  - !ruby/object:Gem::Dependency
126
- name: minitest
131
+ name: activejob
127
132
  requirement: !ruby/object:Gem::Requirement
128
133
  requirements:
129
- - - ">="
134
+ - - "~>"
130
135
  - !ruby/object:Gem::Version
131
- version: '0'
136
+ version: '7'
132
137
  type: :development
133
138
  prerelease: false
134
139
  version_requirements: !ruby/object:Gem::Requirement
135
140
  requirements:
136
- - - ">="
141
+ - - "~>"
137
142
  - !ruby/object:Gem::Version
138
- version: '0'
143
+ version: '7'
139
144
  - !ruby/object:Gem::Dependency
140
- name: rack
145
+ name: railties
146
+ requirement: !ruby/object:Gem::Requirement
147
+ requirements:
148
+ - - "~>"
149
+ - !ruby/object:Gem::Version
150
+ version: '7'
151
+ type: :development
152
+ prerelease: false
153
+ version_requirements: !ruby/object:Gem::Requirement
154
+ requirements:
155
+ - - "~>"
156
+ - !ruby/object:Gem::Version
157
+ version: '7'
158
+ - !ruby/object:Gem::Dependency
159
+ name: minitest
141
160
  requirement: !ruby/object:Gem::Requirement
142
161
  requirements:
143
162
  - - "~>"
144
163
  - !ruby/object:Gem::Version
145
- version: '3.0'
164
+ version: '5'
146
165
  type: :development
147
166
  prerelease: false
148
167
  version_requirements: !ruby/object:Gem::Requirement
149
168
  requirements:
150
169
  - - "~>"
151
170
  - !ruby/object:Gem::Version
152
- version: '3.0'
171
+ version: '5'
153
172
  - !ruby/object:Gem::Dependency
154
173
  name: simplecov
155
174
  requirement: !ruby/object:Gem::Requirement
156
175
  requirements:
157
- - - ">="
176
+ - - "~>"
158
177
  - !ruby/object:Gem::Version
159
- version: '0'
178
+ version: '0.2'
160
179
  type: :development
161
180
  prerelease: false
162
181
  version_requirements: !ruby/object:Gem::Requirement
163
182
  requirements:
164
- - - ">="
183
+ - - "~>"
165
184
  - !ruby/object:Gem::Version
166
- version: '0'
185
+ version: '0.2'
167
186
  - !ruby/object:Gem::Dependency
168
187
  name: standard
169
188
  requirement: !ruby/object:Gem::Requirement
170
189
  requirements:
171
- - - ">="
190
+ - - "~>"
172
191
  - !ruby/object:Gem::Version
173
- version: '0'
192
+ version: '1'
174
193
  type: :development
175
194
  prerelease: false
176
195
  version_requirements: !ruby/object:Gem::Requirement
177
196
  requirements:
178
- - - ">="
197
+ - - "~>"
198
+ - !ruby/object:Gem::Version
199
+ version: '1'
200
+ - !ruby/object:Gem::Dependency
201
+ name: sequel
202
+ requirement: !ruby/object:Gem::Requirement
203
+ requirements:
204
+ - - "~>"
205
+ - !ruby/object:Gem::Version
206
+ version: '5'
207
+ type: :development
208
+ prerelease: false
209
+ version_requirements: !ruby/object:Gem::Requirement
210
+ requirements:
211
+ - - "~>"
212
+ - !ruby/object:Gem::Version
213
+ version: '5'
214
+ - !ruby/object:Gem::Dependency
215
+ name: debug
216
+ requirement: !ruby/object:Gem::Requirement
217
+ requirements:
218
+ - - "~>"
219
+ - !ruby/object:Gem::Version
220
+ version: '1'
221
+ type: :development
222
+ prerelease: false
223
+ version_requirements: !ruby/object:Gem::Requirement
224
+ requirements:
225
+ - - "~>"
179
226
  - !ruby/object:Gem::Version
180
- version: '0'
181
- description:
227
+ version: '1'
182
228
  email:
183
229
  - oldmoe@gmail.com
184
230
  executables:
@@ -188,9 +234,10 @@ extra_rdoc_files: []
188
234
  files:
189
235
  - ".standard.yml"
190
236
  - BENCHMARKS.md
237
+ - CAVEATS.md
191
238
  - CHANGELOG.md
239
+ - FILESYSTEMS.md
192
240
  - Gemfile
193
- - Gemfile.lock
194
241
  - LICENSE.txt
195
242
  - README.md
196
243
  - ROADMAP.md
@@ -206,6 +253,7 @@ files:
206
253
  - assets/litejob_logo_teal.png
207
254
  - assets/litemetric_logo_teal.png
208
255
  - assets/litesearch_logo_teal.png
256
+ - assets/litestack_advantage.png
209
257
  - assets/litestack_logo_teal.png
210
258
  - assets/litestack_logo_teal_large.png
211
259
  - assets/topic_page.png
@@ -219,6 +267,9 @@ files:
219
267
  - bench/skjob.rb
220
268
  - bench/uljob.rb
221
269
  - bin/liteboard
270
+ - gemfiles/rails70.gemfile
271
+ - gemfiles/rails71.gemfile
272
+ - gemfiles/rails71.gemfile.lock
222
273
  - lib/action_cable/subscription_adapter/litecable.rb
223
274
  - lib/active_job/queue_adapters/litejob_adapter.rb
224
275
  - lib/active_record/connection_adapters/litedb_adapter.rb
@@ -280,7 +331,6 @@ metadata:
280
331
  homepage_uri: https://github.com/oldmoe/litestack
281
332
  source_code_uri: https://github.com/oldmoe/litestack
282
333
  changelog_uri: https://github.com/oldmoe/litestack/CHANEGELOG.md
283
- post_install_message:
284
334
  rdoc_options: []
285
335
  require_paths:
286
336
  - lib
@@ -296,8 +346,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
296
346
  - !ruby/object:Gem::Version
297
347
  version: '0'
298
348
  requirements: []
299
- rubygems_version: 3.4.20
300
- signing_key:
349
+ rubygems_version: 3.6.0.dev
301
350
  specification_version: 4
302
351
  summary: A SQLite based, lightning fast, super efficient and dead simple to setup
303
352
  and use database, cache and job queue for Ruby and Rails applications!
data/Gemfile.lock DELETED
@@ -1,92 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- litestack (0.4.1)
5
- erubi
6
- hanami-router
7
- oj
8
- rack
9
- sqlite3
10
- tilt
11
-
12
- GEM
13
- remote: https://rubygems.org/
14
- specs:
15
- ast (2.4.2)
16
- docile (1.4.0)
17
- erubi (1.12.0)
18
- hanami-router (0.6.2)
19
- hanami-utils (~> 0.7)
20
- http_router (~> 0.11)
21
- hanami-utils (0.9.2)
22
- http_router (0.11.2)
23
- rack (>= 1.0.0)
24
- url_mount (~> 0.2.1)
25
- json (2.6.3)
26
- language_server-protocol (3.17.0.3)
27
- lint_roller (1.1.0)
28
- minitest (5.19.0)
29
- oj (3.15.1)
30
- parallel (1.23.0)
31
- parser (3.2.2.3)
32
- ast (~> 2.4.1)
33
- racc
34
- racc (1.7.1)
35
- rack (3.0.8)
36
- rainbow (3.1.1)
37
- rake (13.0.6)
38
- regexp_parser (2.8.1)
39
- rexml (3.2.6)
40
- rubocop (1.52.1)
41
- json (~> 2.3)
42
- parallel (~> 1.10)
43
- parser (>= 3.2.2.3)
44
- rainbow (>= 2.2.2, < 4.0)
45
- regexp_parser (>= 1.8, < 3.0)
46
- rexml (>= 3.2.5, < 4.0)
47
- rubocop-ast (>= 1.28.0, < 2.0)
48
- ruby-progressbar (~> 1.7)
49
- unicode-display_width (>= 2.4.0, < 3.0)
50
- rubocop-ast (1.29.0)
51
- parser (>= 3.2.1.0)
52
- rubocop-performance (1.18.0)
53
- rubocop (>= 1.7.0, < 2.0)
54
- rubocop-ast (>= 0.4.0)
55
- ruby-progressbar (1.13.0)
56
- simplecov (0.22.0)
57
- docile (~> 1.1)
58
- simplecov-html (~> 0.11)
59
- simplecov_json_formatter (~> 0.1)
60
- simplecov-html (0.12.3)
61
- simplecov_json_formatter (0.1.4)
62
- sqlite3 (1.6.3-arm64-darwin)
63
- standard (1.30.1)
64
- language_server-protocol (~> 3.17.0.2)
65
- lint_roller (~> 1.0)
66
- rubocop (~> 1.52.0)
67
- standard-custom (~> 1.0.0)
68
- standard-performance (~> 1.1.0)
69
- standard-custom (1.0.2)
70
- lint_roller (~> 1.0)
71
- rubocop (~> 1.50)
72
- standard-performance (1.1.2)
73
- lint_roller (~> 1.1)
74
- rubocop-performance (~> 1.18.0)
75
- tilt (2.2.0)
76
- unicode-display_width (2.4.2)
77
- url_mount (0.2.1)
78
- rack
79
-
80
- PLATFORMS
81
- arm64-darwin-21
82
-
83
- DEPENDENCIES
84
- litestack!
85
- minitest (~> 5.0)
86
- rack (~> 3.0)
87
- rake (~> 13.0)
88
- simplecov
89
- standard (~> 1.3)
90
-
91
- BUNDLED WITH
92
- 2.4.8