rounders 0.4.2 → 0.4.3

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: 909dfe2e7b04c634bec6942205a2d4cd94f202be
4
- data.tar.gz: 8ed49f1dc85854a7f853a467af8dee2d7f79ecb2
3
+ metadata.gz: 42fa79677777999684d598aa27a200436b0571be
4
+ data.tar.gz: 40d1025179301e6accccfccf6e8dae44a22e87c2
5
5
  SHA512:
6
- metadata.gz: c44f37f8cbbebfa9b7e55da5bc526fda94a2b9d80c0c148bdad5958f4ea9aa799e5843375555f28d45aa70a03f2022dbc88267faec36085c4e6a4ff4ecf4d01d
7
- data.tar.gz: b219d8dbe7753b3f85761488d98cc7dea0bb738f52cfbb77184696ae1f74f5158c30497e1e3d35f3a1e0defb89a15e789e8b927b78cbdd53edb24c6deb83ca07
6
+ metadata.gz: c3b19252f85595252b92f269f1a1f893c25ece421f40df687ac419a6160c6da723fcd77e0260e43622bd516a3aecc11ce680a503ff6c85c9fad0a900cf494f1e
7
+ data.tar.gz: fd2fe5655c62399ae4de7eae6dfd2797da1ebe5cf88c0986f2691f3ce21cf564ab13243ef5c13bb47a6147e408edfd3b491cdb36cfe35b278d10150856586deb
@@ -4,18 +4,14 @@ module Rounders
4
4
  class Commander
5
5
  class << self
6
6
  def start(argv = ARGV)
7
- if app?
8
- require 'rounders/commands/local_command'
9
- Commands::LocalCommand.start(argv)
10
- else
7
+ if Rounders.global?
11
8
  require 'rounders/commands/global_command'
12
9
  Commands::GlobalCommand.start(argv)
10
+ else
11
+ require 'rounders/commands/local_command'
12
+ Commands::LocalCommand.start(argv)
13
13
  end
14
14
  end
15
-
16
- def app?
17
- Pathname(Rounders::CONFIG_DIR_PATH).exist?
18
- end
19
15
  end
20
16
  end
21
17
  end
@@ -9,7 +9,7 @@ Rounders::Receivers::Mail.configure do |config|
9
9
  password: ENV['GMAIL_PASSWORD'],
10
10
  enable_ssl: true
11
11
  }
12
-
12
+
13
13
  config.options = {
14
14
  # flag for whether to delete each receive mail after find Default: false
15
15
  # delete_after_find: true
@@ -5,16 +5,17 @@ require 'rounders/<%= underscored_name %>/version'
5
5
 
6
6
  # Describe your gem and declare its dependencies:
7
7
  Gem::Specification.new do |s|
8
- s.name = "rounders-<%= underscored_name %>"
8
+ s.name = 'rounders-<%= underscored_name %>'
9
9
  s.version = Rounders::<%= class_name %>::VERSION
10
- s.authors = ["TODO: Your name"]
11
- s.email = ["TODO: Your email"]
12
- s.homepage = "TODO"
13
- s.summary = "TODO: Summary of Rounders::<%= class_name %>."
14
- s.description = "TODO: Description of Rounders::<%= class_name %>."
15
- s.license = "MIT"
10
+ s.authors = ['TODO: Your name']
11
+ s.email = ['TODO: Your email']
12
+ s.homepage = 'TODO'
13
+ s.summary = 'TODO: Summary of Rounders::<%= class_name %>.'
14
+ s.description = 'TODO: Description of Rounders::<%= class_name %>.'
15
+ s.license = 'MIT'
16
16
  s.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
17
17
  s.test_files = Dir["spec/**/*"]
18
+ s.require_paths = ['app','lib']
18
19
  s.add_dependency 'rounders', '~> <%= Rounders::VERSION %>'
19
20
  s.add_development_dependency 'bundler'
20
21
  s.add_development_dependency 'rake'
@@ -1,3 +1,3 @@
1
1
  module Rounders
2
- VERSION = '0.4.2'.freeze
2
+ VERSION = '0.4.3'.freeze
3
3
  end
data/lib/rounders.rb CHANGED
@@ -16,6 +16,10 @@ module Rounders
16
16
  def receivers
17
17
  @_receivers ||= []
18
18
  end
19
+
20
+ def global?
21
+ Pathname(Rounders::APP_PATH).exist?
22
+ end
19
23
  end
20
24
  end
21
25
 
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.2
4
+ version: 0.4.3
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-05 00:00:00.000000000 Z
11
+ date: 2017-05-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -273,6 +273,9 @@ files:
273
273
  - lib/rounders/generators/plugin/templates/MIT-LICENSE
274
274
  - lib/rounders/generators/plugin/templates/README.md.tt
275
275
  - lib/rounders/generators/plugin/templates/Rakefile
276
+ - lib/rounders/generators/plugin/templates/app/handlers/.gitkeep
277
+ - lib/rounders/generators/plugin/templates/app/matchers/.gitkeep
278
+ - lib/rounders/generators/plugin/templates/app/receivers/.gitkeep
276
279
  - lib/rounders/generators/plugin/templates/gitignore
277
280
  - lib/rounders/generators/plugin/templates/lib/rounders/%underscored_name%.rb.tt
278
281
  - lib/rounders/generators/plugin/templates/lib/rounders/%underscored_name%/version.rb.tt