jason-rails 0.8.1 → 0.8.3
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/CHANGELOG.md +6 -0
- data/Gemfile.lock +3 -3
- data/app/controllers/jason/pusher_controller.rb +1 -1
- data/client/package.json +1 -1
- data/lib/jason/version.rb +1 -1
- data/lib/jason.rb +3 -6
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9ff1433058a6e3161db56c679cadfcf087a128c0f0b935ee5ac8a1219848c44e
|
4
|
+
data.tar.gz: 1d8c542e14dbe8eab26540f8ca33a9e4dde6518cccc0e87b4350389fcbc9c4c0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 914c935aa960e708a60c309412a503b11e61d6e6f3f0a6011d71021e2a3ed7dcdf5648ac2bfbd5e7bc6ca895005a1e59b38627ab82dc6e8307817f26d8aa908b
|
7
|
+
data.tar.gz: e342c97211c88fd28ad01bf79fadebfd498595f9d467438d90fb85e7589938e2d629eb624a50a7fbe2501e62f13706b72ea8c7a65b4021305c6ad66e6e7b4bbc
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
jason-rails (0.
|
4
|
+
jason-rails (0.8.1)
|
5
5
|
connection_pool (>= 2.2.3)
|
6
6
|
jsondiff
|
7
7
|
rails (>= 5)
|
@@ -92,10 +92,10 @@ GEM
|
|
92
92
|
mimemagic (0.3.10)
|
93
93
|
nokogiri (~> 1)
|
94
94
|
rake
|
95
|
-
mini_mime (1.1.
|
95
|
+
mini_mime (1.1.2)
|
96
96
|
mini_portile2 (2.5.0)
|
97
97
|
minitest (5.14.3)
|
98
|
-
nio4r (2.5.
|
98
|
+
nio4r (2.5.8)
|
99
99
|
nokogiri (1.11.1)
|
100
100
|
mini_portile2 (~> 2.5.0)
|
101
101
|
racc (~> 1.4)
|
data/client/package.json
CHANGED
data/lib/jason/version.rb
CHANGED
data/lib/jason.rb
CHANGED
@@ -40,7 +40,7 @@ module Jason
|
|
40
40
|
return if $PROGRAM_NAME == '-e' || ActiveRecord::Base.connection.migration_context.needs_migration?
|
41
41
|
|
42
42
|
# Check if the schema has changed since last time app was started. If so, do some work to ensure cache contains the correct data
|
43
|
-
got_lock = $redis_jason.set('jason:schema:lock', nx: true, ex: 3600) # Basic lock mechanism for multi-process environments
|
43
|
+
got_lock = $redis_jason.set('jason:schema:lock', '1', nx: true, ex: 3600) # Basic lock mechanism for multi-process environments
|
44
44
|
return if !got_lock
|
45
45
|
|
46
46
|
previous_schema = JSON.parse($redis_jason.get('jason:last_schema') || '{}')
|
@@ -50,12 +50,9 @@ module Jason
|
|
50
50
|
puts "Config changed for #{model}"
|
51
51
|
puts "Old config was #{previous_schema[model]}"
|
52
52
|
puts "New config is #{config}"
|
53
|
-
puts "
|
53
|
+
puts "Wiping cache for #{model}"
|
54
54
|
|
55
|
-
|
56
|
-
Rails.configuration.after_initialize do
|
57
|
-
model.classify.constantize.cache_all
|
58
|
-
end
|
55
|
+
$redis_jason.del("jason:cache:#{model}")
|
59
56
|
puts "Done"
|
60
57
|
end
|
61
58
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jason-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Rees
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-01-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|