rounders 0.4.4 → 0.4.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rounders/generators/app/templates/config/initializers/mail.rb +0 -1
- data/lib/rounders/generators/handler/templates/%underscored_name%_handler.rb.tt +6 -10
- data/lib/rounders/generators/matcher/templates/%underscored_name%_matcher.rb.tt +2 -6
- data/lib/rounders/generators/receiver/templates/%underscored_name%_receiver.rb.tt +7 -11
- data/lib/rounders/plugins/pluggable.rb +0 -2
- data/lib/rounders/receivers/mail.rb +1 -1
- data/lib/rounders/version.rb +1 -1
- 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: f3f98ea110319ff6380381b95442bc577a96b72e
|
4
|
+
data.tar.gz: 0d800983e0a9a89bc3124e31c9297e99ba055826
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bb16c6501200a51082357a7319459dc40b82da04e87ef1579c3184ddeb44f564aa41b39af41421d419ba1e19cea9dc9ca1425e052c54aa37161e928dad2ea1ed
|
7
|
+
data.tar.gz: 8dd5e40604b54f1a26d11e0e18fa6eae03a92b23794a366339624fb43b0f27b14c8534fc15cb258049bc2292c74b047fe713aaa6b6778b2b49ef4c719b938d12
|
@@ -1,12 +1,8 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
on({ body: 'example' }, :<%= handler %>)<% end %>
|
6
|
-
<% handlers.each do |handler| %>
|
1
|
+
class <%= class_name %> < Rounders::Handlers::Handler
|
2
|
+
<% handlers.each do |handler| %>
|
3
|
+
on({ body: 'example' }, :<%= handler %>)<% end -%>
|
4
|
+
<% handlers.each do |handler| %>
|
7
5
|
|
8
|
-
|
9
|
-
|
10
|
-
end
|
11
|
-
end
|
6
|
+
def <%= handler %>(mail)
|
7
|
+
end<% end %>
|
12
8
|
end
|
@@ -1,16 +1,12 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
def initialize()
|
5
|
-
end
|
1
|
+
class <%= class_name %> < Rounders::Receivers::Receiver
|
2
|
+
def initialize()
|
3
|
+
end
|
6
4
|
|
7
|
-
|
8
|
-
|
5
|
+
def receive
|
6
|
+
end
|
9
7
|
|
10
|
-
|
11
|
-
|
12
|
-
end
|
13
|
-
end
|
8
|
+
class << self
|
9
|
+
def receive
|
14
10
|
end
|
15
11
|
end
|
16
12
|
end
|
@@ -14,8 +14,6 @@ module Rounders
|
|
14
14
|
@feature_name ||= begin
|
15
15
|
name_spaces = name.to_s.split('::')
|
16
16
|
class_name = name_spaces.last
|
17
|
-
module_name = Rounders::Util.infrect(name_spaces[-2]).singularize.classify
|
18
|
-
class_name.sub!(/#{module_name}$/, '')
|
19
17
|
Rounders::Util.infrect(class_name).underscore
|
20
18
|
end
|
21
19
|
end
|
data/lib/rounders/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rounders
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- akira.takahashi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-06-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|