resque_spec 0.14.2 → 0.14.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/README.md CHANGED
@@ -1,9 +1,12 @@
1
1
  ResqueSpec
2
2
  ==========
3
3
 
4
+ [![Build
5
+ Status](https://travis-ci.org/leshill/resque_spec.png)](https://travis-ci.org/leshill/resque_spec])
6
+
4
7
  A test double of Resque for RSpec and Cucumber. The code was originally based
5
8
  on
6
- [http://github.com/justinweiss/resque_unit](http://github.com/justinweiss/resque_unit).
9
+ [http://github.com/justinweiss/resque\_unit](http://github.com/justinweiss/resque_unit).
7
10
 
8
11
  ResqueSpec will also fire Resque hooks if you are using them. See below.
9
12
 
@@ -406,13 +409,14 @@ Contributors
406
409
  * Frank Wambutt (@opinel) : Fix DST problem in `have\_scheduled`
407
410
  * Luke Melia (@lukemelia) : Add `times` chained matcher
408
411
  * Pablo Fernandez (@heelhook) : Add `have_queue_size_of_at_least` and `have_schedule_size_of_at_least` matchers
409
- * (@k1w1) : Add support for enqueue_at_with_queue/enqueue_in_with_queue
412
+ * (@k1w1) : Add support for enqueue\_at\_with\_queue/enqueue\_in\_with\_queue
410
413
  * Ozéias Sant'ana (@ozeias) : Update specs to RSpec 2.10
411
414
  * Yuya Kitajima (@yuyak) : Add ResqueMailer examples to README
412
415
  * Andrés Bravo (@andresbravog) : Replace `rspec` dependency with explicit dependencies
413
416
  * Ben Woosley (@Empact) : Loosen rubygems version constraint
417
+ * Jeff Dickey (@dickeyxxx) : Remove 2.0 warnings, added Travis
414
418
 
415
419
  Copyright
416
420
  =========
417
421
 
418
- Copyright (c) 2010-2012 Les Hill. See LICENSE for details.
422
+ Copyright (c) 2010-2013 Les Hill. See LICENSE for details.
@@ -1,3 +1,3 @@
1
1
  module ResqueSpec
2
- VERSION = "0.14.2"
2
+ VERSION = "0.14.3"
3
3
  end
data/lib/resque_spec.rb CHANGED
@@ -3,7 +3,6 @@ require 'resque_spec/helpers'
3
3
  require 'resque_spec/matchers'
4
4
 
5
5
  module ResqueSpec
6
- include Resque::Helpers
7
6
  extend self
8
7
 
9
8
  attr_accessor :inline
@@ -103,6 +102,14 @@ module ResqueSpec
103
102
  'stored_at' => payload[:stored_at]
104
103
  }
105
104
  end
105
+
106
+ def encode(object)
107
+ Resque.encode(object)
108
+ end
109
+
110
+ def decode(object)
111
+ Resque.decode(object)
112
+ end
106
113
  end
107
114
 
108
115
  config = RSpec.configuration
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: resque_spec
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.14.2
4
+ version: 0.14.3
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-08-11 00:00:00.000000000 Z
12
+ date: 2013-11-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: resque
@@ -92,7 +92,23 @@ dependencies:
92
92
  - !ruby/object:Gem::Version
93
93
  version: '0'
94
94
  - !ruby/object:Gem::Dependency
95
- name: ruby-debug19
95
+ name: pry
96
+ requirement: !ruby/object:Gem::Requirement
97
+ none: false
98
+ requirements:
99
+ - - ! '>='
100
+ - !ruby/object:Gem::Version
101
+ version: '0'
102
+ type: :development
103
+ prerelease: false
104
+ version_requirements: !ruby/object:Gem::Requirement
105
+ none: false
106
+ requirements:
107
+ - - ! '>='
108
+ - !ruby/object:Gem::Version
109
+ version: '0'
110
+ - !ruby/object:Gem::Dependency
111
+ name: pry-debugger
96
112
  requirement: !ruby/object:Gem::Requirement
97
113
  none: false
98
114
  requirements:
@@ -197,3 +213,4 @@ signing_key:
197
213
  specification_version: 3
198
214
  summary: RSpec matchers for Resque
199
215
  test_files: []
216
+ has_rdoc: