promiscuous 0.8.3 → 0.8.4
Sign up to get free protection for your applications and to get access to all the features.
@@ -26,10 +26,15 @@ module Promiscuous::Publisher::Class
|
|
26
26
|
if super
|
27
27
|
"::#{super}".constantize
|
28
28
|
elsif name
|
29
|
-
class_name = "
|
29
|
+
class_name = name.split("::").reverse.take_while { |name| name != 'Publishers' }.reverse.join('::')
|
30
|
+
class_name = "::#{class_name}"
|
30
31
|
class_name = $1 if class_name =~ /^(.+)Publisher$/
|
31
32
|
class_name.constantize
|
32
33
|
end
|
33
34
|
end
|
34
35
|
end
|
35
36
|
end
|
37
|
+
|
38
|
+
#define_constant('Scoped::NameScopedPublisherModel', PublisherModel) do
|
39
|
+
#field :field_4
|
40
|
+
#end
|
@@ -12,7 +12,8 @@ module Promiscuous::Subscriber::Class
|
|
12
12
|
if super
|
13
13
|
"::#{super}".constantize
|
14
14
|
elsif name
|
15
|
-
class_name = "
|
15
|
+
class_name = name.split("::").reverse.take_while { |name| name != 'Subscribers' }.reverse.join('::')
|
16
|
+
class_name = "::#{class_name}"
|
16
17
|
class_name = $1 if class_name =~ /^(.+)Subscriber$/
|
17
18
|
class_name.constantize
|
18
19
|
end
|
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.8.
|
4
|
+
version: 0.8.4
|
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-
|
13
|
+
date: 2012-09-06 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: activesupport
|
@@ -84,57 +84,57 @@ executables: []
|
|
84
84
|
extensions: []
|
85
85
|
extra_rdoc_files: []
|
86
86
|
files:
|
87
|
-
- lib/promiscuous/
|
88
|
-
- lib/promiscuous/
|
89
|
-
- lib/promiscuous/
|
90
|
-
- lib/promiscuous/publisher/envelope.rb
|
91
|
-
- lib/promiscuous/publisher/mongoid/embedded.rb
|
92
|
-
- lib/promiscuous/publisher/active_record.rb
|
93
|
-
- lib/promiscuous/publisher/amqp.rb
|
87
|
+
- lib/promiscuous/version.rb
|
88
|
+
- lib/promiscuous/common.rb
|
89
|
+
- lib/promiscuous/publisher/lint.rb
|
94
90
|
- lib/promiscuous/publisher/attributes.rb
|
95
|
-
- lib/promiscuous/publisher/base.rb
|
96
91
|
- lib/promiscuous/publisher/class.rb
|
97
|
-
- lib/promiscuous/publisher/
|
98
|
-
- lib/promiscuous/publisher/lint/amqp.rb
|
92
|
+
- lib/promiscuous/publisher/mongoid.rb
|
99
93
|
- lib/promiscuous/publisher/lint/attributes.rb
|
100
|
-
- lib/promiscuous/publisher/lint/base.rb
|
101
94
|
- lib/promiscuous/publisher/lint/class.rb
|
95
|
+
- lib/promiscuous/publisher/lint/amqp.rb
|
96
|
+
- lib/promiscuous/publisher/lint/base.rb
|
102
97
|
- lib/promiscuous/publisher/lint/polymorphic.rb
|
98
|
+
- lib/promiscuous/publisher/mongoid/embedded.rb
|
99
|
+
- lib/promiscuous/publisher/active_record.rb
|
100
|
+
- lib/promiscuous/publisher/model.rb
|
101
|
+
- lib/promiscuous/publisher/envelope.rb
|
103
102
|
- lib/promiscuous/publisher/mock.rb
|
104
|
-
- lib/promiscuous/publisher/
|
103
|
+
- lib/promiscuous/publisher/amqp.rb
|
104
|
+
- lib/promiscuous/publisher/base.rb
|
105
105
|
- lib/promiscuous/publisher/polymorphic.rb
|
106
|
-
- lib/promiscuous/
|
107
|
-
- lib/promiscuous/
|
108
|
-
- lib/promiscuous/
|
109
|
-
- lib/promiscuous/
|
110
|
-
- lib/promiscuous/subscriber/
|
111
|
-
- lib/promiscuous/subscriber/active_record.rb
|
112
|
-
- lib/promiscuous/subscriber/amqp.rb
|
106
|
+
- lib/promiscuous/amqp/null.rb
|
107
|
+
- lib/promiscuous/amqp/rubyamqp.rb
|
108
|
+
- lib/promiscuous/amqp/bunny.rb
|
109
|
+
- lib/promiscuous/publisher.rb
|
110
|
+
- lib/promiscuous/subscriber/lint.rb
|
113
111
|
- lib/promiscuous/subscriber/attributes.rb
|
114
112
|
- lib/promiscuous/subscriber/class.rb
|
115
|
-
- lib/promiscuous/subscriber/
|
113
|
+
- lib/promiscuous/subscriber/mongoid.rb
|
114
|
+
- lib/promiscuous/subscriber/error.rb
|
115
|
+
- lib/promiscuous/subscriber/lint/attributes.rb
|
116
|
+
- lib/promiscuous/subscriber/lint/class.rb
|
116
117
|
- lib/promiscuous/subscriber/lint/amqp.rb
|
117
118
|
- lib/promiscuous/subscriber/lint/base.rb
|
118
|
-
- lib/promiscuous/subscriber/lint/class.rb
|
119
119
|
- lib/promiscuous/subscriber/lint/polymorphic.rb
|
120
|
-
- lib/promiscuous/subscriber/
|
121
|
-
- lib/promiscuous/subscriber/
|
122
|
-
- lib/promiscuous/subscriber/base.rb
|
123
|
-
- lib/promiscuous/subscriber/mongoid.rb
|
120
|
+
- lib/promiscuous/subscriber/mongoid/embedded.rb
|
121
|
+
- lib/promiscuous/subscriber/active_record.rb
|
124
122
|
- lib/promiscuous/subscriber/upsert.rb
|
125
123
|
- lib/promiscuous/subscriber/model.rb
|
126
|
-
- lib/promiscuous/
|
127
|
-
- lib/promiscuous/amqp.rb
|
128
|
-
- lib/promiscuous/
|
124
|
+
- lib/promiscuous/subscriber/envelope.rb
|
125
|
+
- lib/promiscuous/subscriber/amqp.rb
|
126
|
+
- lib/promiscuous/subscriber/base.rb
|
127
|
+
- lib/promiscuous/subscriber/polymorphic.rb
|
129
128
|
- lib/promiscuous/common/lint.rb
|
130
|
-
- lib/promiscuous/common/lint/base.rb
|
131
129
|
- lib/promiscuous/common/options.rb
|
132
|
-
- lib/promiscuous/
|
133
|
-
- lib/promiscuous/
|
130
|
+
- lib/promiscuous/common/lint/base.rb
|
131
|
+
- lib/promiscuous/worker.rb
|
132
|
+
- lib/promiscuous/railtie/replicate.rake
|
134
133
|
- lib/promiscuous/railtie.rb
|
134
|
+
- lib/promiscuous/loader.rb
|
135
|
+
- lib/promiscuous/amqp.rb
|
136
|
+
- lib/promiscuous/config.rb
|
135
137
|
- lib/promiscuous/subscriber.rb
|
136
|
-
- lib/promiscuous/worker.rb
|
137
|
-
- lib/promiscuous/version.rb
|
138
138
|
- lib/promiscuous.rb
|
139
139
|
- README.md
|
140
140
|
homepage: http://github.com/crowdtap/promiscuous
|