vuderacha-orq 0.0.2 → 0.0.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/lib/orq/impulse.rb +3 -3
- metadata +2 -2
data/lib/orq/impulse.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
require 'rubygems'
|
2
2
|
require 'yaml'
|
3
|
+
require 'activesupport'
|
3
4
|
require 'json' rescue nil # This prevents the json gem loading afterwards and messing up the JSON serialisation
|
4
|
-
require 'active_support'
|
5
5
|
|
6
6
|
module ORQ
|
7
7
|
# Base class inherited by domain objects describing a message that can be sent
|
@@ -12,7 +12,7 @@ module ORQ
|
|
12
12
|
|
13
13
|
# Instructs the impulse to send itself to the message queue
|
14
14
|
def fire!
|
15
|
-
self.class.get_target(self.class.target_name).fire self.class.uri,
|
15
|
+
self.class.get_target(self.class.target_name).fire self.class.uri, self.to_json
|
16
16
|
end
|
17
17
|
|
18
18
|
# Instructs the impulse to apply the properties in the given hash
|
@@ -23,7 +23,7 @@ module ORQ
|
|
23
23
|
end
|
24
24
|
|
25
25
|
def to_json(options = {})
|
26
|
-
|
26
|
+
instance_values.to_json
|
27
27
|
end
|
28
28
|
|
29
29
|
# Class Methods
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vuderacha-orq
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Paul Jones
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-03-
|
12
|
+
date: 2009-03-29 00:00:00 -07:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|