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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5d22ec15f53e5f435bc1ccfbf4a1663e1a941ca7
4
- data.tar.gz: 7280711dc7f0d6378cb866a88915bbcc14091369
3
+ metadata.gz: f3f98ea110319ff6380381b95442bc577a96b72e
4
+ data.tar.gz: 0d800983e0a9a89bc3124e31c9297e99ba055826
5
5
  SHA512:
6
- metadata.gz: 983824fa76d292fb73e64f64c0ec11e36281802c3aa1183a1e089a68b9656a5d8f507e2a0ef148bfc3dab203f5477f8977b6a25a1d672a9412d329abb1e1db07
7
- data.tar.gz: 7cac32bfdfb7950a17e05a51c903c0f701bc234fad05cbf13c1275bf7d50521a6369442344bc7bbdddb6efb2e8445e22e19a34264bd60a9db5882bccf1eb9f46
6
+ metadata.gz: bb16c6501200a51082357a7319459dc40b82da04e87ef1579c3184ddeb44f564aa41b39af41421d419ba1e19cea9dc9ca1425e052c54aa37161e928dad2ea1ed
7
+ data.tar.gz: 8dd5e40604b54f1a26d11e0e18fa6eae03a92b23794a366339624fb43b0f27b14c8534fc15cb258049bc2292c74b047fe713aaa6b6778b2b49ef4c719b938d12
@@ -9,7 +9,6 @@ Rounders::Receivers::Mail.configure do |config|
9
9
  password: ENV['GMAIL_PASSWORD'],
10
10
  enable_ssl: true
11
11
  }
12
-
13
12
  config.options = {
14
13
  # flag for whether to delete each receive mail after find Default: false
15
14
  # delete_after_find: true
@@ -1,12 +1,8 @@
1
- module Rounders
2
- module Handlers
3
- class <%= class_name %> < Rounders::Handlers::Handler
4
- <% handlers.each do |handler| %>
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
- def <%= handler %>(mail)
9
- end<% end %>
10
- end
11
- end
6
+ def <%= handler %>(mail)
7
+ end<% end %>
12
8
  end
@@ -1,8 +1,4 @@
1
- module Rounders
2
- module Matchers
3
- class <%= class_name %> < Rounders::Matchers::Matcher
4
- def match(message)
5
- end
6
- end
1
+ class <%= class_name %> < Rounders::Matchers::Matcher
2
+ def match(message)
7
3
  end
8
4
  end
@@ -1,16 +1,12 @@
1
- module Rounders
2
- module Receivers
3
- class <%= class_name %> < Rounders::Receivers::Receiver
4
- def initialize()
5
- end
1
+ class <%= class_name %> < Rounders::Receivers::Receiver
2
+ def initialize()
3
+ end
6
4
 
7
- def receive
8
- end
5
+ def receive
6
+ end
9
7
 
10
- class << self
11
- def receive
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
@@ -5,7 +5,7 @@ module Rounders
5
5
  setting :options, {}
6
6
  setting :mail_server_setting
7
7
  DEFAULT_FIND_OPTION = {
8
- keys: %w[NOT SEEN]
8
+ keys: %w(NOT SEEN)
9
9
  }.freeze
10
10
 
11
11
  def initialize(client: nil, options: {})
@@ -1,3 +1,3 @@
1
1
  module Rounders
2
- VERSION = '0.4.4'.freeze
2
+ VERSION = '0.4.5'.freeze
3
3
  end
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
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-05-16 00:00:00.000000000 Z
11
+ date: 2017-06-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler