simple_job 0.2.0 → 0.2.1
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/CHANGELOG.rdoc +3 -0
- data/lib/simple_job/job_definition.rb +8 -8
- data/lib/simple_job/version.rb +1 -1
- metadata +3 -3
data/CHANGELOG.rdoc
CHANGED
@@ -1,5 +1,8 @@
|
|
1
1
|
= Simple Job
|
2
2
|
|
3
|
+
== Version 0.2.1
|
4
|
+
* Disabling type/version checking to support multiple type declarations in one job
|
5
|
+
|
3
6
|
== Version 0.2.0
|
4
7
|
* Added :max_executions option to SQSJobQueue#poll
|
5
8
|
* Bug fix to :replace_existing option of JobDefinition::register_simple_job declaration - wasn't properly leaving old definitions
|
@@ -57,10 +57,10 @@ module JobDefinition
|
|
57
57
|
end
|
58
58
|
|
59
59
|
def type=(type)
|
60
|
-
if type.to_sym != self.type
|
61
|
-
|
62
|
-
|
63
|
-
end
|
60
|
+
#if type.to_sym != self.type
|
61
|
+
# raise "tried to deserialize object with type #{type}, but this object only " +
|
62
|
+
# "supports type: #{self.type}"
|
63
|
+
#end
|
64
64
|
end
|
65
65
|
|
66
66
|
def versions
|
@@ -72,10 +72,10 @@ module JobDefinition
|
|
72
72
|
end
|
73
73
|
|
74
74
|
def version=(version)
|
75
|
-
if !versions.include?(version.to_s)
|
76
|
-
|
77
|
-
|
78
|
-
end
|
75
|
+
#if !versions.include?(version.to_s)
|
76
|
+
# raise "tried to deserialize object with version #{version}, but this object " +
|
77
|
+
# "only supports versions: #{versions.join(", ")}"
|
78
|
+
#end
|
79
79
|
end
|
80
80
|
|
81
81
|
def enqueue(queue_type = nil)
|
data/lib/simple_job/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simple_job
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 21
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 0.2.
|
9
|
+
- 1
|
10
|
+
version: 0.2.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- David Dawson
|