promiscuous 0.6.5 → 0.6.6
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/promiscuous/publisher/mock.rb +6 -0
- data/lib/promiscuous/version.rb +1 -1
- metadata +43 -27
@@ -32,6 +32,12 @@ class Promiscuous::Publisher::Mock
|
|
32
32
|
end
|
33
33
|
alias :save! :save
|
34
34
|
|
35
|
+
def update_attributes(attrs)
|
36
|
+
attrs.each { |attr, value| __send__("#{attr}=", value) }
|
37
|
+
save
|
38
|
+
end
|
39
|
+
alias :update_attributes! :update_attributes
|
40
|
+
|
35
41
|
def payload
|
36
42
|
{
|
37
43
|
'__amqp__' => self.class.to,
|
data/lib/promiscuous/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: promiscuous
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.6
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2012-08-
|
13
|
+
date: 2012-08-16 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: mongoid
|
@@ -44,6 +44,22 @@ dependencies:
|
|
44
44
|
- - ! '>='
|
45
45
|
- !ruby/object:Gem::Version
|
46
46
|
version: '0'
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: activemodel
|
49
|
+
requirement: !ruby/object:Gem::Requirement
|
50
|
+
none: false
|
51
|
+
requirements:
|
52
|
+
- - ! '>='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
type: :runtime
|
56
|
+
prerelease: false
|
57
|
+
version_requirements: !ruby/object:Gem::Requirement
|
58
|
+
none: false
|
59
|
+
requirements:
|
60
|
+
- - ! '>='
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: '0'
|
47
63
|
- !ruby/object:Gem::Dependency
|
48
64
|
name: bunny
|
49
65
|
requirement: !ruby/object:Gem::Requirement
|
@@ -100,43 +116,43 @@ executables: []
|
|
100
116
|
extensions: []
|
101
117
|
extra_rdoc_files: []
|
102
118
|
files:
|
103
|
-
- lib/promiscuous/
|
104
|
-
- lib/promiscuous/amqp/null.rb
|
105
|
-
- lib/promiscuous/amqp/rubyamqp.rb
|
106
|
-
- lib/promiscuous/loader.rb
|
107
|
-
- lib/promiscuous/publisher/active_record.rb
|
108
|
-
- lib/promiscuous/publisher/amqp.rb
|
109
|
-
- lib/promiscuous/publisher/attributes.rb
|
110
|
-
- lib/promiscuous/publisher/base.rb
|
119
|
+
- lib/promiscuous/version.rb
|
111
120
|
- lib/promiscuous/publisher/class_bind.rb
|
112
|
-
- lib/promiscuous/publisher/
|
113
|
-
- lib/promiscuous/publisher/model.rb
|
121
|
+
- lib/promiscuous/publisher/attributes.rb
|
114
122
|
- lib/promiscuous/publisher/mongoid.rb
|
115
123
|
- lib/promiscuous/publisher/mongoid/embedded.rb
|
116
|
-
- lib/promiscuous/publisher/
|
124
|
+
- lib/promiscuous/publisher/active_record.rb
|
125
|
+
- lib/promiscuous/publisher/model.rb
|
126
|
+
- lib/promiscuous/publisher/envelope.rb
|
117
127
|
- lib/promiscuous/publisher/mock.rb
|
118
|
-
- lib/promiscuous/
|
119
|
-
- lib/promiscuous/
|
120
|
-
- lib/promiscuous/
|
128
|
+
- lib/promiscuous/publisher/amqp.rb
|
129
|
+
- lib/promiscuous/publisher/base.rb
|
130
|
+
- lib/promiscuous/publisher/polymorphic.rb
|
131
|
+
- lib/promiscuous/amqp/null.rb
|
132
|
+
- lib/promiscuous/amqp/rubyamqp.rb
|
133
|
+
- lib/promiscuous/amqp/bunny.rb
|
134
|
+
- lib/promiscuous/publisher.rb
|
121
135
|
- lib/promiscuous/subscriber/attributes.rb
|
122
|
-
- lib/promiscuous/subscriber/
|
123
|
-
- lib/promiscuous/subscriber/envelope.rb
|
136
|
+
- lib/promiscuous/subscriber/mongoid.rb
|
124
137
|
- lib/promiscuous/subscriber/error.rb
|
125
138
|
- lib/promiscuous/subscriber/generic.rb
|
126
|
-
- lib/promiscuous/subscriber/mongoid/embedded.rb
|
127
139
|
- lib/promiscuous/subscriber/mongoid/root.rb
|
128
|
-
- lib/promiscuous/subscriber/
|
129
|
-
- lib/promiscuous/subscriber/model.rb
|
140
|
+
- lib/promiscuous/subscriber/mongoid/embedded.rb
|
130
141
|
- lib/promiscuous/subscriber/active_record.rb
|
131
|
-
- lib/promiscuous/subscriber/mongoid.rb
|
132
142
|
- lib/promiscuous/subscriber/upsert.rb
|
143
|
+
- lib/promiscuous/subscriber/model.rb
|
144
|
+
- lib/promiscuous/subscriber/envelope.rb
|
145
|
+
- lib/promiscuous/subscriber/amqp.rb
|
133
146
|
- lib/promiscuous/subscriber/custom_class.rb
|
134
|
-
- lib/promiscuous/
|
147
|
+
- lib/promiscuous/subscriber/base.rb
|
148
|
+
- lib/promiscuous/subscriber/polymorphic.rb
|
135
149
|
- lib/promiscuous/worker.rb
|
136
|
-
- lib/promiscuous/
|
137
|
-
- lib/promiscuous/
|
150
|
+
- lib/promiscuous/railtie/replicate.rake
|
151
|
+
- lib/promiscuous/railtie.rb
|
152
|
+
- lib/promiscuous/loader.rb
|
138
153
|
- lib/promiscuous/amqp.rb
|
139
|
-
- lib/promiscuous/
|
154
|
+
- lib/promiscuous/config.rb
|
155
|
+
- lib/promiscuous/subscriber.rb
|
140
156
|
- lib/promiscuous.rb
|
141
157
|
- README.md
|
142
158
|
homepage: http://github.com/crowdtap/promiscuous
|
@@ -159,7 +175,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
159
175
|
version: '0'
|
160
176
|
requirements: []
|
161
177
|
rubyforge_project:
|
162
|
-
rubygems_version: 1.8.
|
178
|
+
rubygems_version: 1.8.22
|
163
179
|
signing_key:
|
164
180
|
specification_version: 3
|
165
181
|
summary: Model replication over RabbitMQ
|