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 +4 -4
- data/CHANGES.md +11 -0
- data/lib/sucker_punch.rb +0 -1
- data/lib/sucker_punch/testing/inline.rb +6 -1
- data/lib/sucker_punch/version.rb +1 -1
- data/spec/spec_helper.rb +0 -4
- data/sucker_punch.gemspec +1 -0
- metadata +4 -6
- data/lib/sucker_punch/queues.rb +0 -14
- data/spec/sucker_punch/queues_spec.rb +0 -17
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 58eb204a236d9331faffe4e7d6e9d60de62e566f
|
4
|
+
data.tar.gz: 48338ac2aabeea9405aa6511340fa9353d4b8754
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fe21cee08574484fd71498b061cb83831717c6da7eb798cd1497cbd5d6005f3c5047ec6ad505201262e06529ff3e7baa60dd0d3a2ce2fa08f632d1f3fea4a6b8
|
7
|
+
data.tar.gz: c9e58173894bd86fc0f19e3ec30415068a00f79d45d1de10dabfb31764adf024b7235fb1bcae4588c8ef066b21aa8fc8df4b184bcc532cae679c3e7c5c2d3805
|
data/CHANGES.md
CHANGED
data/lib/sucker_punch.rb
CHANGED
@@ -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
|
+
|
data/lib/sucker_punch/version.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
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.
|
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-
|
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
|
data/lib/sucker_punch/queues.rb
DELETED
@@ -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
|