resque_def 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +0 -1
- data/CHANGELOG.md +7 -0
- data/lib/resque_def.rb +6 -0
- data/lib/resque_def/version.rb +1 -1
- data/test/resque_def_test.rb +6 -0
- data/test/test_helper.rb +5 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9c3404884d923b927c5b92b85eb7915a73bb6ac8
|
4
|
+
data.tar.gz: 8ed1f86604aa745923a7a90dba35c6f73f49d52a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7005e15765fecb153f11e9c7d823cada909bbaafd20f2bec5cec7c54ee6e37c4bcb7475085e46bd8a9f5e8f7b89595337c39c0038c0380294da84f1deb7d2767
|
7
|
+
data.tar.gz: b712746e20cb800521b4e5e19b3656b57ec45b20673ff12c16cf61045b9c936309407f68a97f997bf9df75954cec466c7c3fa58589c3dafd5a5b091fef70b039
|
data/.gitignore
CHANGED
data/CHANGELOG.md
ADDED
data/lib/resque_def.rb
CHANGED
@@ -8,6 +8,12 @@ module ResqueDef
|
|
8
8
|
# convert resque_name like :delay_send_issues to DelaySendIssues for klass name
|
9
9
|
resque_klass_name = resque_name.to_s.capitalize.gsub(/_\S/) {|m| m.upcase}.gsub('_', '')
|
10
10
|
|
11
|
+
|
12
|
+
# convert proc to lambda :(
|
13
|
+
obj = Object.new
|
14
|
+
obj.define_singleton_method(:_, &block)
|
15
|
+
block = obj.method(:_).to_proc
|
16
|
+
|
11
17
|
# create the resque klass
|
12
18
|
resque_klass = Class.new do
|
13
19
|
@queue = resque_name
|
data/lib/resque_def/version.rb
CHANGED
data/test/resque_def_test.rb
CHANGED
data/test/test_helper.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: resque_def
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Richard Schneeman
|
@@ -60,8 +60,8 @@ extensions: []
|
|
60
60
|
extra_rdoc_files: []
|
61
61
|
files:
|
62
62
|
- .gitignore
|
63
|
+
- CHANGELOG.md
|
63
64
|
- Gemfile
|
64
|
-
- Gemfile.lock
|
65
65
|
- README.md
|
66
66
|
- Rakefile
|
67
67
|
- lib/resque_def.rb
|