sucker_punch 0.3 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGES.md CHANGED
@@ -0,0 +1,21 @@
1
+ 0.3.1
2
+ -----------
3
+
4
+ - Fix location of inline testing library
5
+
6
+ `spec/spec_helper.rb`
7
+ ```ruby
8
+ require 'sucker_punch/testing/inline'
9
+ SuckerPunch::Queue[:log_queue].async.perform("login") # => SYNCHRONOUS
10
+ ```
11
+
12
+ 0.3
13
+ -----------
14
+
15
+ - Now includes a testing library that will run all jobs synchronously.
16
+
17
+ `spec/spec_helper.rb`
18
+ ```ruby
19
+ require 'sucker_punch/testing'
20
+ SuckerPunch::Queue[:log_queue].async.perform("login") # => SYNCHRONOUS
21
+ ```
data/README.md CHANGED
@@ -112,7 +112,7 @@ SuckerPunch::Queue[:log_queue].idle_size # => 3
112
112
 
113
113
  `spec/spec_helper.rb`
114
114
  ```Ruby
115
- require 'sucker_punch/inline'
115
+ require 'sucker_punch/testing/inline'
116
116
  ```
117
117
 
118
118
  Requiring this library causes your workers to run everything inline. So a call to the following will actually be SYNCHRONOUS.
File without changes
@@ -1,3 +1,3 @@
1
1
  module SuckerPunch
2
- VERSION = "0.3"
2
+ VERSION = "0.3.1"
3
3
  end
@@ -1,5 +1,5 @@
1
1
  require 'spec_helper'
2
- require_relative '../lib/sucker_punch/testing'
2
+ require_relative '../../lib/sucker_punch/testing/inline'
3
3
 
4
4
  class PatchedWorker
5
5
  include SuckerPunch::Worker
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sucker_punch
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.3'
4
+ version: 0.3.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-03-19 00:00:00.000000000 Z
12
+ date: 2013-03-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
@@ -76,13 +76,13 @@ files:
76
76
  - lib/sucker_punch.rb
77
77
  - lib/sucker_punch/exceptions.rb
78
78
  - lib/sucker_punch/queue.rb
79
- - lib/sucker_punch/testing.rb
79
+ - lib/sucker_punch/testing/inline.rb
80
80
  - lib/sucker_punch/version.rb
81
81
  - lib/sucker_punch/worker.rb
82
82
  - spec/queue_spec.rb
83
83
  - spec/spec_helper.rb
84
84
  - spec/sucker_punch_spec.rb
85
- - spec/testing_spec.rb
85
+ - spec/testing/inline_spec.rb
86
86
  - spec/worker_spec.rb
87
87
  - sucker_punch.gemspec
88
88
  homepage: https://github.com/brandonhilkert/sucker_punch
@@ -114,5 +114,5 @@ test_files:
114
114
  - spec/queue_spec.rb
115
115
  - spec/spec_helper.rb
116
116
  - spec/sucker_punch_spec.rb
117
- - spec/testing_spec.rb
117
+ - spec/testing/inline_spec.rb
118
118
  - spec/worker_spec.rb