raes 0.2.0 → 0.2.1

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: 1dffe3c6d3ae48ba6766d5805ae068d9bbb4a10a0f6134b8088c780d87cdafe6
4
- data.tar.gz: aff12b845de5928976f25775531951d3ddc1bca1d925f6e1b056535d599fd31e
3
+ metadata.gz: 4791a22f8ccf6a76394e80553cc84d9c19e886ce9877c7727a0784d828b6f7a2
4
+ data.tar.gz: 7f1f19c2efc5e157008c92d94322f6551acddc69963e564698e9a1e9773f94e0
5
5
  SHA512:
6
- metadata.gz: 5f2253c2b756dd88e3dcb49b48d3ee04e07e1e554b8d8dd2828bfedfd71d5a56264531770d3f7b829f41ede39d3f7d5c127aed3e5e735ebcb73b2fbc88485f63
7
- data.tar.gz: 42ff96ce8da20cec8252bdf74a9363bb960338f0a5bc494d9df3515ad2eb77f6a4652b5a0a5ea52a60c1314e4d2b92b71f43a827ce2a55e867079865a409dfac
6
+ metadata.gz: 461b9e88954ab5056c80a8b051c74fcdd8c5b9bb6f3a1986ce959ac0d8b68a88dd261489119c4544147c18fdf1342b02aca6677d7b52ea3adab6e32162725084
7
+ data.tar.gz: ae00555bf5342322c17406aceddfb76de0de561f85f42e4841889e4972a411dd6947b13b5539ff1c6146924f11d1d4b310968856a67d2fba10db9d82e7e10bfd
@@ -3,14 +3,13 @@
3
3
  module Raes
4
4
  class StatelessJob < ApplicationJob
5
5
  def perform(name, payload)
6
- ActiveRecord::Base.uncached do
7
- klass = name.constantize
8
- if klass.instance_method(:initialize).arity.zero?
9
- klass.call
10
- else
11
- klass.call(payload.symbolize_keys)
12
- end
6
+ klass = name.constantize
7
+ if klass.instance_method(:initialize).arity.zero?
8
+ klass.call
9
+ else
10
+ klass.call(payload.symbolize_keys)
13
11
  end
12
+
14
13
  GC.start
15
14
  end
16
15
  end
@@ -3,9 +3,7 @@
3
3
  module Raes
4
4
  class SubscribeJob < ApplicationJob
5
5
  def perform(action)
6
- ActiveRecord::Base.uncached do
7
- Reducer.call(action)
8
- end
6
+ Reducer.call(action)
9
7
  GC.start
10
8
  end
11
9
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Raes
4
- VERSION = '0.2.0'
4
+ VERSION = '0.2.1'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: raes
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - ogom
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-11-28 00:00:00.000000000 Z
11
+ date: 2020-12-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails