jason-rails 0.8.0 → 0.8.2

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: 592a7eab8028ae28815abbf0d401d98b2ceabc0009f30713f68795da21adb165
4
- data.tar.gz: 315f5088e258dcab9755dc92f4de03f3f2f016cf6698d3619f022c1e7d601e9d
3
+ metadata.gz: 980ecb1d6691b029e8b510d1800d3a1f3e2c5a0d0e94fa45e2eb8e7f8a0c7c47
4
+ data.tar.gz: 9d9765a4499d3abc897e0c90ae48d93d5fd40f458624bc31e73cc72dc3539233
5
5
  SHA512:
6
- metadata.gz: a33fdc1d57462a97b7dd571222ff314cc77338e5172fcfc662f3e1fd5f008deed299abcd870900d0b50805944af822b462f6adee46953895499ce49f69df6680
7
- data.tar.gz: 8ec1a59761856754f09bb7b6431d3d45d319daf9d4c7f030b8c7c2301c28ab2d0393952c4d7339a4d6310da2689c3cba8c71048deed931e0d3c4b0cf5c2fc2f1
6
+ metadata.gz: a618412c7002299fb45b740008dfa4fabaeceaa3880bce31fb53de9ea8a1d72154d882fbdd9f1bed66965b18158f8dff7862926ad78c4fc73a9cf88e3dd28851
7
+ data.tar.gz: 9cfbf230f08ec1efffa9907c4e0c48c996ccbbc7eb67a6c4a0e03358a11b935942dfa2e4f101aa50e66ddba79bac89586c2ff92898076b0cc0e6abe9ddc95704
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## v0.8.2
2
+ - Don't rebuild cache during schema change detection - just wipe it and let cold cache handling work as intended
3
+
4
+ ## v0.8.1
5
+ - Allow setting the Sidekiq queue name for Jason payloads
6
+
1
7
  ## v0.8.0
2
8
  - Cold cache handling:
3
9
  - Expiry is now set on all cached models of one week
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- jason-rails (0.7.5)
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.0)
95
+ mini_mime (1.1.2)
96
96
  mini_portile2 (2.5.0)
97
97
  minitest (5.14.3)
98
- nio4r (2.5.7)
98
+ nio4r (2.5.8)
99
99
  nokogiri (1.11.1)
100
100
  mini_portile2 (~> 2.5.0)
101
101
  racc (~> 1.4)
@@ -1,5 +1,8 @@
1
1
  class Jason::OutboundMessageQueueWorker
2
- include Sidekiq::Worker if defined?(Sidekiq) # Even if not using Pusher, this gets autoloaded
2
+ if defined?(Sidekiq) # Even if not using Pusher, this gets autoloaded
3
+ include Sidekiq::Worker
4
+ sidekiq_options queue: Jason.sidekiq_queue
5
+ end
3
6
 
4
7
  def perform
5
8
  batch = get_batch
data/client/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jamesr2323/jason",
3
- "version": "0.7.5",
3
+ "version": "0.8.1",
4
4
  "module": "./lib/index.js",
5
5
  "types": "./lib/index.d.ts",
6
6
  "scripts": {
data/lib/jason/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Jason
2
- VERSION = "0.8.0"
2
+ VERSION = "0.8.2"
3
3
  end
data/lib/jason.rb CHANGED
@@ -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 "Rebuilding cache for #{model}"
53
+ puts "Wiping cache for #{model}"
54
54
 
55
- # This is necessary to ensure all Rails methods have been added to model before we attempt to cache.
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.0
4
+ version: 0.8.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Rees
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-01-18 00:00:00.000000000 Z
11
+ date: 2022-10-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails