sucker_punch 1.0.3 → 1.0.4

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: 3176eeae888f0de8b24a633fd09eb3bd1a903b75
4
- data.tar.gz: 6ed863474d1d0efdb0009a40a440b424f6e6656e
3
+ metadata.gz: 58eb204a236d9331faffe4e7d6e9d60de62e566f
4
+ data.tar.gz: 48338ac2aabeea9405aa6511340fa9353d4b8754
5
5
  SHA512:
6
- metadata.gz: deb547d6b67c54576d1f2398abec30356dfa9f324e793190396b67e47f460048accdf1160810201505366b3ad7a76a3c3429afb71a5b234f0d0fd4a1d173cdb7
7
- data.tar.gz: 0ca6cddc806a3a6cffbfb58b2f0254b68875a08a703717cc173e622677f865d95b32540ba3710bb5ef1a3af37e059ea9a9fa6f4e41eda22fb8b89ec3313e6d05
6
+ metadata.gz: fe21cee08574484fd71498b061cb83831717c6da7eb798cd1497cbd5d6005f3c5047ec6ad505201262e06529ff3e7baa60dd0d3a2ce2fa08f632d1f3fea4a6b8
7
+ data.tar.gz: c9e58173894bd86fc0f19e3ec30415068a00f79d45d1de10dabfb31764adf024b7235fb1bcae4588c8ef066b21aa8fc8df4b184bcc532cae679c3e7c5c2d3805
data/CHANGES.md CHANGED
@@ -1,3 +1,14 @@
1
+ 1.0.4
2
+ --------
3
+
4
+ - Fix superclass for `testing/inline` module
5
+
6
+ 1.0.3
7
+ --------
8
+
9
+ - Track instantiated queues through Celluloid registry
10
+ - Clear Celluloid registry on every Rails request in Development
11
+
1
12
  1.0.2
2
13
  --------
3
14
 
data/lib/sucker_punch.rb CHANGED
@@ -2,7 +2,6 @@ require 'celluloid'
2
2
  require 'sucker_punch/core_ext'
3
3
  require 'sucker_punch/job'
4
4
  require 'sucker_punch/queue'
5
- require 'sucker_punch/queues'
6
5
  require 'sucker_punch/version'
7
6
 
8
7
  module SuckerPunch
@@ -1,7 +1,12 @@
1
+ require "celluloid/proxies/abstract_proxy"
2
+ require "celluloid/proxies/sync_proxy"
3
+ require "celluloid/proxies/actor_proxy"
4
+
1
5
  module Celluloid
2
- class ActorProxy
6
+ class ActorProxy < SyncProxy
3
7
  def async(method_name = nil, *args, &block)
4
8
  self
5
9
  end
6
10
  end
7
11
  end
12
+
@@ -1,3 +1,3 @@
1
1
  module SuckerPunch
2
- VERSION = "1.0.3"
2
+ VERSION = "1.0.4"
3
3
  end
data/spec/spec_helper.rb CHANGED
@@ -6,8 +6,4 @@ end
6
6
  require 'sucker_punch'
7
7
 
8
8
  RSpec.configure do |config|
9
- config.after(:each) do
10
- # Clean up the master queue list
11
- SuckerPunch::Queues.instance_variable_set(:@queues, Set.new)
12
- end
13
9
  end
data/sucker_punch.gemspec CHANGED
@@ -11,6 +11,7 @@ Gem::Specification.new do |gem|
11
11
  gem.description = %q{Asynchronous processing library for Ruby}
12
12
  gem.summary = %q{Sucker Punch is a Ruby asynchronous processing using Celluloid, heavily influenced by Sidekiq and girl_friday.}
13
13
  gem.homepage = "https://github.com/brandonhilkert/sucker_punch"
14
+ gem.license = "MIT"
14
15
 
15
16
  gem.files = `git ls-files`.split($/)
16
17
  gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
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: 1.0.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brandon Hilkert
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-03-30 00:00:00.000000000 Z
11
+ date: 2014-04-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -84,7 +84,6 @@ files:
84
84
  - lib/sucker_punch/core_ext.rb
85
85
  - lib/sucker_punch/job.rb
86
86
  - lib/sucker_punch/queue.rb
87
- - lib/sucker_punch/queues.rb
88
87
  - lib/sucker_punch/railtie.rb
89
88
  - lib/sucker_punch/testing/inline.rb
90
89
  - lib/sucker_punch/version.rb
@@ -137,12 +136,12 @@ files:
137
136
  - spec/sucker_punch/core_ext_spec.rb
138
137
  - spec/sucker_punch/job_spec.rb
139
138
  - spec/sucker_punch/queue_spec.rb
140
- - spec/sucker_punch/queues_spec.rb
141
139
  - spec/sucker_punch/testing/inline_spec.rb
142
140
  - spec/sucker_punch_spec.rb
143
141
  - sucker_punch.gemspec
144
142
  homepage: https://github.com/brandonhilkert/sucker_punch
145
- licenses: []
143
+ licenses:
144
+ - MIT
146
145
  metadata: {}
147
146
  post_install_message:
148
147
  rdoc_options: []
@@ -170,6 +169,5 @@ test_files:
170
169
  - spec/sucker_punch/core_ext_spec.rb
171
170
  - spec/sucker_punch/job_spec.rb
172
171
  - spec/sucker_punch/queue_spec.rb
173
- - spec/sucker_punch/queues_spec.rb
174
172
  - spec/sucker_punch/testing/inline_spec.rb
175
173
  - spec/sucker_punch_spec.rb
@@ -1,14 +0,0 @@
1
- module SuckerPunch
2
- class Queues
3
- @queues = Set.new
4
-
5
- def self.all
6
- @queues.to_a
7
- end
8
-
9
- def self.register(name)
10
- @queues.add(name)
11
- end
12
- end
13
- end
14
-
@@ -1,17 +0,0 @@
1
- require 'spec_helper'
2
-
3
- describe SuckerPunch::Queues do
4
- describe "queue registration and querying" do
5
- it "adds a queue to the master queue list" do
6
- SuckerPunch::Queues.register(:fake)
7
- expect(SuckerPunch::Queues.all).to eq([:fake])
8
- end
9
- end
10
-
11
- describe ".registered?" do
12
- it "returns true if queue has already been registered" do
13
- SuckerPunch::Queues.register(:fake)
14
- expect{ SuckerPunch::Queues.registered?(:fake) }.to be_true
15
- end
16
- end
17
- end