nexaas-async-collector 2.0.0 → 2.0.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
  SHA1:
3
- metadata.gz: '095b630a7a47dcb39b779d55d8a9adec7cec81c3'
4
- data.tar.gz: 3aeadb92991d1884a3bda6b36ac4a49a3a67071d
3
+ metadata.gz: bd105d4c6505a8685e63015fd36b925a75428713
4
+ data.tar.gz: f8157cfabc5dce639e3173cb1cc3c23de4b824f9
5
5
  SHA512:
6
- metadata.gz: 003da333f56ca3122b2221fd4ca14e54cdd6dcefee8ffc1c5b15189d56104df61b572cff3d9624afd5ece531c9cb9719fdfea804aecdb134b4c64c84c7b0562e
7
- data.tar.gz: 7831048e2329a696533c56b731c2e95730b8c1a17f590c063265492c27bc2319f0cff83e803d0afa998af4aaf8a8fbc94ab29a71a3ebcf7e951e8219edc2899e
6
+ metadata.gz: 919211a341e607fbab736199facc7527d23fb487a4061b26177b3008b804b98cbf518d76831ef01440a47b6d84f28159b2f95d3a19992ebf058a506f25129c7b
7
+ data.tar.gz: 07f37e64d7251837927ad94a35c4dff98f21100bb3b48be9f2a14315f3c20dc05c69b49fd715f4d72803408127ea51e5fc70fccc3a19296b5bee32927d8375f4
data/README.md CHANGED
@@ -70,7 +70,7 @@ end
70
70
 
71
71
  ```ruby
72
72
  <%= nexaas_async_collect({
73
- scoped_id: scope.id, # (required) the ID of the scope. It ensures only the scope who requested the data will be able to fetch it
73
+ scope_id: scope.id, # (required) the ID of the scope. It ensures only the scope who requested the data will be able to fetch it
74
74
  class_name: ModelService, # (required) name of the class
75
75
  class_method: :model_method, # (required) name of the class method responsible to generate data
76
76
  args: [arg1, arg2], # (optional) arguments to be passed to class method
@@ -4,7 +4,7 @@ module Nexaas
4
4
  module ApplicationHelper
5
5
  #
6
6
  # Helper to enqueue AsyncResourceJob and include the JavaScript code to request the result
7
- # - scoped_id: an ID that is unique (maybe user.id, account.id, organization.id, etc)
7
+ # - scope_id: an ID that is unique (maybe user.id, account.id, organization.id, etc)
8
8
  # - klass_name: The name of the class responsible for generate the content to be stored in the memory
9
9
  # - klass_method: The name of the class method to be called
10
10
  # - args: The arguments to be passed in the call of the class method
@@ -10,7 +10,7 @@ module Nexaas
10
10
  initialize_options(opts)
11
11
  start_time = Time.current.to_i
12
12
  instrument_start(start_time)
13
- Persist.save(@scoped_id, @collect_id, generate_content)
13
+ Persist.save(@scope_id, @collect_id, generate_content)
14
14
  instrument_finish(start_time)
15
15
  end
16
16
 
@@ -32,7 +32,7 @@ module Nexaas
32
32
 
33
33
  def instrument_start(start_time)
34
34
  ActiveSupport::Notifications.instrument("#{instrumentation_context}.start", {
35
- collect_id: @collect_id, scoped_id: @scoped_id,
35
+ collect_id: @collect_id, scope_id: @scope_id,
36
36
  class_name: @class_name, class_method: @class_method,
37
37
  start: start_time
38
38
  })
@@ -42,7 +42,7 @@ module Nexaas
42
42
  finish = Time.current.to_i
43
43
  duration = (finish - start_time)
44
44
  ActiveSupport::Notifications.instrument("#{instrumentation_context}.finish", {
45
- collect_id: @collect_id, scoped_id: @scoped_id,
45
+ collect_id: @collect_id, scope_id: @scope_id,
46
46
  class_name: @class_name, class_method: @class_method,
47
47
  finish: finish, duration: duration
48
48
  })
@@ -1,7 +1,7 @@
1
1
  module Nexaas
2
2
  module Async
3
3
  module Collector
4
- VERSION = '2.0.0'
4
+ VERSION = '2.0.1'
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nexaas-async-collector
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eduardo Hertz