activejob-trackable2 0.1.7 → 0.2.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: 97ea9a58d6452232181c3015642068064704de92940140d71ee53c5e3866bb1c
4
- data.tar.gz: 2b08b501084410b2359b4e9544ead4a1f8ff037c04f51e5f214d342f5db52fee
3
+ metadata.gz: 41f251285d20eb07558d43161c3cb31f3720c7f6bed31ecfa0fe6108b069a8b0
4
+ data.tar.gz: 17e7b3384b5c666f02b9015619d8dbc1428d653a67d33e86f75ad65a27d6df67
5
5
  SHA512:
6
- metadata.gz: 5b76b91885168ea837f65f170608af2ca8f4c472fa5dc9bb599ac47e0489e3b8073f4c31165cf7a17c0e89e089401274de9b52a8cb5cd2a2608d7b06c3151b8f
7
- data.tar.gz: 6a6e596e837fd9ae3ca54fe298fe8dfe4aad09cdaecc3f0936d8e33dbf5e0f1c186611028179564e8fb01f5f2b9635a6d868d627546d1b59477e8cbccf5979de
6
+ metadata.gz: c4dd8c7d74f1770b11c4bf8859caf7fd8fbbcfbb23578d12e979c74adc2a57f0ec0538c150f0837f9beff9bdf55945d46e3dc85c614cf0de38e32e291e06dc26
7
+ data.tar.gz: 9c5682fa08fb840236370d4b4d850118faffe1f0023202b4e23a9754b71fa90ad14368cd44e31342db82ebadfa4b67f50dbd05be39e03256bddf44fe18df3c51
data/README.md CHANGED
@@ -17,7 +17,7 @@ you can start by adding `include ActiveJob::Trackable` into any jobs you want to
17
17
 
18
18
  ```ruby
19
19
  class SampleJob < ApplicationJob
20
- include ActiveJob::Trackable
20
+ include ActiveJob::Trackable2
21
21
 
22
22
  trackable debounced: true, throttled: 1.day
23
23
 
data/Rakefile CHANGED
@@ -10,7 +10,7 @@ require 'rdoc/task'
10
10
 
11
11
  RDoc::Task.new(:rdoc) do |rdoc|
12
12
  rdoc.rdoc_dir = 'rdoc'
13
- rdoc.title = 'ActiveJob::Trackable'
13
+ rdoc.title = 'ActiveJob::Trackable2'
14
14
  rdoc.options << '--line-numbers'
15
15
  rdoc.rdoc_files.include('README.md')
16
16
  rdoc.rdoc_files.include('lib/**/*.rb')
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ActiveJob
4
- module Trackable
4
+ module Trackable2
5
5
  ##
6
6
  # Extend `ActiveJob::Base` to automatically create a tracker for every enqueued jobs
7
7
  #
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ActiveJob
4
- module Trackable
4
+ module Trackable2
5
5
  ##
6
6
  # Include `ActiveJob::Trackable::Debounced` to allow debouncing job when multiple jobs with identical keys
7
7
  # are scheduled before it get performed
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ActiveJob
4
- module Trackable
4
+ module Trackable2
5
5
  class Railtie < ::Rails::Railtie
6
6
  end
7
7
  end
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ActiveJob
4
- module Trackable
4
+ module Trackable2
5
5
  ##
6
6
  # Include `ActiveJob::Trackable::Throttled` to throttle scheduling job when multiple jobs
7
7
  # with identical keys tried to be scheduled before it get performed
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ActiveJob
4
- module Trackable
4
+ module Trackable2
5
5
  class Tracker < ActiveRecord::Base # :nodoc:
6
6
  self.table_name = 'active_job_trackers'
7
7
 
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ActiveJob
4
- module Trackable
5
- VERSION = '0.1.7'
4
+ module Trackable2
5
+ VERSION = '0.2.2'
6
6
  end
7
7
  end
@@ -1,14 +1,14 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'activejob/trackable/railtie'
4
- require_relative './trackable/tracker'
5
- require_relative './trackable/core'
6
- require_relative './trackable/debounced'
7
- require_relative './trackable/throttled'
3
+ require 'activejob/trackable2/railtie'
4
+ require_relative './trackable2/tracker'
5
+ require_relative './trackable2/core'
6
+ require_relative './trackable2/debounced'
7
+ require_relative './trackable2/throttled'
8
8
 
9
9
  module ActiveJob
10
10
  # Extend `ActiveJob::Base` with the ability to track (cancel, reschedule, etc) jobs
11
- module Trackable
11
+ module Trackable2
12
12
  extend ActiveSupport::Concern
13
13
 
14
14
  included do
@@ -2,7 +2,7 @@ Description:
2
2
  Generate activerecord migration for the table related to ActiveJob::Trackable::Tracker
3
3
 
4
4
  Example:
5
- rails generate active_job:trackable
5
+ rails generate active_job:trackable2
6
6
 
7
7
  will create:
8
8
  db/migrate/*_create_active_job_trackers.rb
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activejob-trackable2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Akatsuki-kk
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-03-08 00:00:00.000000000 Z
11
+ date: 2023-03-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 6.0.0
19
+ version: '6.0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 6.0.0
26
+ version: '6.0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: minitest-ci
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -91,16 +91,16 @@ files:
91
91
  - MIT-LICENSE
92
92
  - README.md
93
93
  - Rakefile
94
- - lib/activejob/trackable.rb
95
- - lib/activejob/trackable/core.rb
96
- - lib/activejob/trackable/debounced.rb
97
- - lib/activejob/trackable/railtie.rb
98
- - lib/activejob/trackable/throttled.rb
99
- - lib/activejob/trackable/tracker.rb
100
- - lib/activejob/trackable/version.rb
101
- - lib/generators/active_job/trackable/USAGE
102
- - lib/generators/active_job/trackable/templates/migration.rb
103
- - lib/generators/active_job/trackable/trackable_generator.rb
94
+ - lib/activejob/trackable2.rb
95
+ - lib/activejob/trackable2/core.rb
96
+ - lib/activejob/trackable2/debounced.rb
97
+ - lib/activejob/trackable2/railtie.rb
98
+ - lib/activejob/trackable2/throttled.rb
99
+ - lib/activejob/trackable2/tracker.rb
100
+ - lib/activejob/trackable2/version.rb
101
+ - lib/generators/active_job/trackable2/USAGE
102
+ - lib/generators/active_job/trackable2/templates/migration.rb
103
+ - lib/generators/active_job/trackable2/trackable_generator.rb
104
104
  - lib/tasks/activejob/trackable_tasks.rake
105
105
  homepage: https://github.com/akatsuki-kk/active-job-trackable2
106
106
  licenses: