sucker_punch 2.1.1 → 2.1.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: f4da8e31976d1d287c875ac707116b36a4d80b38ed944d71912de088f6b90b02
4
- data.tar.gz: f95f0efc985a0bbbed2392b713ae8dda2dfac0a0e701bdf06dc4bb25ab6e371c
3
+ metadata.gz: 4b584388415071f977d554aa3d9e8128521c08a3b4299492e349bfbc5dc865f5
4
+ data.tar.gz: c77e1a8b773e712f2ec67c311e3f00bfe16fbcd8c79afc028c44b879d93c943d
5
5
  SHA512:
6
- metadata.gz: f318e445d227d77c4237692bb96f37385321ac79ca34b14c2b0de8f87058dbd7f6ff53fd3b9b7db460f77606369172faff291fa49152635c5641a29de2ef8703
7
- data.tar.gz: c6b54fd3541a8efecdc2a83ae54fcf3c8f3f6a7cb0a84a737a87f9446025f2241403dc10300d60fac531ea9696e941efded93a365070f1e539a986fb262ccadd
6
+ metadata.gz: 67bb1e1d9b05432f8e868451cfbd846ea29871887ee807fc398067e10e9db2305abdf891c44e9453e822063f7599bb2f7f45535b3440287ecbdf0e7e8e688b9a
7
+ data.tar.gz: e6e86dccf04e992c61369369e78e6ff7a7ab1239e9713800c7fcda1f62ed7996e451ed0053bfe1b595e6d1dd268c7853cf6aa5da8efcd8e852e2319e4a36c57c
data/README.md CHANGED
@@ -147,7 +147,7 @@ class DataJob
147
147
  end
148
148
 
149
149
  DataJob.perform_async("asdf") # immediately perform asynchronously
150
- DataJob.perform_in(60, "asdf") # `perform` will be excuted 60 sec. later
150
+ DataJob.perform_in(60, "asdf") # `perform` will be executed 60 sec. later
151
151
  ```
152
152
 
153
153
  #### `ActiveRecord` Connection Pool Connections
@@ -14,7 +14,7 @@ module SuckerPunch
14
14
  # To trigger asynchronous job:
15
15
  #
16
16
  # LogJob.perform_async(1, 2, 3)
17
- # LogJob.perform_in(60, 1, 2, 3) # `perform` will be excuted 60 sec. later
17
+ # LogJob.perform_in(60, 1, 2, 3) # `perform` will be executed 60 sec. later
18
18
  #
19
19
  # Note that perform_async is a class method, perform is an instance method.
20
20
  module Job
@@ -30,7 +30,7 @@ module SuckerPunch
30
30
  end
31
31
 
32
32
  class Queue
33
- def self.find_or_create(name, number_workers = 2)
33
+ def self.find_or_create(name, number_workers = 2, num_jobs_max = nil)
34
34
  QUEUES.fetch_or_store(name) do
35
35
  []
36
36
  end
@@ -1,3 +1,3 @@
1
1
  module SuckerPunch
2
- VERSION = "2.1.1"
2
+ VERSION = "2.1.2"
3
3
  end
@@ -25,4 +25,10 @@ Gem::Specification.new do |gem|
25
25
  gem.add_development_dependency "pry"
26
26
 
27
27
  gem.add_dependency "concurrent-ruby", "~> 1.0"
28
+
29
+ if gem.respond_to?(:metadata)
30
+ gem.metadata['changelog_uri'] = 'https://github.com/brandonhilkert/sucker_punch/blob/master/CHANGES.md'
31
+ gem.metadata['source_code_uri'] = 'https://github.com/brandonhilkert/sucker_punch'
32
+ gem.metadata['bug_tracker_uri'] = 'https://github.com/brandonhilkert/sucker_punch/issues'
33
+ end
28
34
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sucker_punch
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.1
4
+ version: 2.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brandon Hilkert
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-08-28 00:00:00.000000000 Z
11
+ date: 2019-05-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -102,7 +102,10 @@ files:
102
102
  homepage: https://github.com/brandonhilkert/sucker_punch
103
103
  licenses:
104
104
  - MIT
105
- metadata: {}
105
+ metadata:
106
+ changelog_uri: https://github.com/brandonhilkert/sucker_punch/blob/master/CHANGES.md
107
+ source_code_uri: https://github.com/brandonhilkert/sucker_punch
108
+ bug_tracker_uri: https://github.com/brandonhilkert/sucker_punch/issues
106
109
  post_install_message: |-
107
110
  Sucker Punch v2.0 introduces backwards-incompatible changes.
108
111
  Please see https://github.com/brandonhilkert/sucker_punch/blob/master/CHANGES.md#200 for details.
@@ -120,8 +123,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
120
123
  - !ruby/object:Gem::Version
121
124
  version: '0'
122
125
  requirements: []
123
- rubyforge_project:
124
- rubygems_version: 2.7.6
126
+ rubygems_version: 3.0.3
125
127
  signing_key:
126
128
  specification_version: 4
127
129
  summary: Sucker Punch is a Ruby asynchronous processing using concurrent-ruby, heavily