lita-pebbles 0.1.9 → 0.2.0

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: 427a590e7e7afb23eb75b721b8262fb2ad292b97
4
- data.tar.gz: 796af6eb84f969fba6633b85c795f76012d4556c
3
+ metadata.gz: a4f8acb3fe39534d16f56deecb02eaa7cee464ba
4
+ data.tar.gz: 453c45dcf2d482eaffeac9a04ef2cbe7af41dd5b
5
5
  SHA512:
6
- metadata.gz: 3f58b35f48495bfcf5cb2abd7d4337bac7410bf1042fd46888efee42882898ce8921d4c4adf1f66cf015d31656029cd677cea948cae0e9bb3c05cc535d638b06
7
- data.tar.gz: a5d638d09ad4837d257703cbbd5c68a37c5b3844239b499654a77e821406715901e3639effc682d6a20cbded1604cb35a6785476435a1cd96c3e2215172d77c3
6
+ metadata.gz: 6b2eae867da55d2790f873a3893d8f03ecff505be949d49fa58a9a44d9c7dc9ce7c80227bcd479e4d314b500cf5e63153ebcd571b47ae0d2f85f6bb620e6e5d5
7
+ data.tar.gz: a77a4ec6443bfc44072b20e5081c2e7bb6ac5edcd94686fe45fd4cebf45f220db1b025bf0a89cdb2418d57e52d6687ce8d6e2ea79066b5cb7748e8ceb55b10de
data/.gitignore CHANGED
@@ -15,3 +15,4 @@ spec/reports
15
15
  test/tmp
16
16
  test/version_tmp
17
17
  tmp
18
+ lita_config.rb
@@ -0,0 +1,14 @@
1
+ module Lita
2
+ module Handlers
3
+ class Sample < Handler
4
+
5
+ route /^sample (.+)/, :sample, command: false,
6
+ help: { "sample [foo] [bar] [baz]" => "[foo] に決めた!" }
7
+ def sample(response)
8
+ list = response.matches[0][0].split
9
+ response.reply "#{list.sample} に決めた!"
10
+ end
11
+ end
12
+ Lita.register_handler(Sample)
13
+ end
14
+ end
@@ -3,11 +3,9 @@ require 'rufus-scheduler'
3
3
  module Lita
4
4
  module Handlers
5
5
  class Schedules < Handler
6
- def self.default_config(handler_config)
7
- handler_config.room = nil
8
- handler_config.should_sleep_at = nil
9
- handler_config.should_wake_up_at = nil
10
- end
6
+ config :room, default: nil
7
+ config :should_sleep_at, default: nil
8
+ config :should_wake_up_at, default: nil
11
9
 
12
10
  on :loaded, :init_scheduler
13
11
  def init_scheduler(payload)
@@ -50,6 +48,7 @@ module Lita
50
48
  end
51
49
 
52
50
  private
51
+
53
52
  def config
54
53
  Lita.config.handlers.schedules
55
54
  end
@@ -1,5 +1,5 @@
1
1
  module Lita
2
2
  module Pebbles
3
- VERSION = "0.1.9"
3
+ VERSION = "0.2.0"
4
4
  end
5
5
  end
data/lib/lita-pebbles.rb CHANGED
@@ -5,6 +5,7 @@ require 'lita/ext/response.rb'
5
5
  require "lita/pebbles/version"
6
6
  require "lita/handlers/pebbles"
7
7
  require "lita/handlers/omikuji"
8
+ require "lita/handlers/sample"
8
9
  require "lita/handlers/kansai"
9
10
  require "lita/handlers/misawa"
10
11
  require "lita/handlers/schedules"
data/lita-pebbles.gemspec CHANGED
@@ -20,12 +20,12 @@ Gem::Specification.new do |spec|
20
20
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
21
21
  spec.require_paths = ["lib"]
22
22
 
23
- spec.add_runtime_dependency "lita", ">= 3.1"
24
- spec.add_runtime_dependency 'pebbles-suddenly_death_string', '~> 0.0.4'
25
- spec.add_runtime_dependency 'flippy', '~> 0.1.2'
26
- spec.add_runtime_dependency 'rufus-scheduler', '~> 3.0.7'
23
+ spec.add_runtime_dependency "lita", ">= 4.0"
24
+ spec.add_runtime_dependency 'pebbles-suddenly_death_string'
25
+ spec.add_runtime_dependency 'flippy'
26
+ spec.add_runtime_dependency 'rufus-scheduler'
27
27
 
28
- spec.add_development_dependency "bundler", "~> 1.5"
28
+ spec.add_development_dependency "bundler"
29
29
  spec.add_development_dependency "rake"
30
30
  spec.add_development_dependency "pry"
31
31
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lita-pebbles
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.9
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - fukayatsu
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-14 00:00:00.000000000 Z
11
+ date: 2015-06-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: lita
@@ -16,70 +16,70 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '3.1'
19
+ version: '4.0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: '3.1'
26
+ version: '4.0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: pebbles-suddenly_death_string
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: 0.0.4
33
+ version: '0'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - "~>"
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: 0.0.4
40
+ version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: flippy
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - "~>"
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
- version: 0.1.2
47
+ version: '0'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - "~>"
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
- version: 0.1.2
54
+ version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rufus-scheduler
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - "~>"
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
- version: 3.0.7
61
+ version: '0'
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - "~>"
66
+ - - ">="
67
67
  - !ruby/object:Gem::Version
68
- version: 3.0.7
68
+ version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: bundler
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - "~>"
73
+ - - ">="
74
74
  - !ruby/object:Gem::Version
75
- version: '1.5'
75
+ version: '0'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - "~>"
80
+ - - ">="
81
81
  - !ruby/object:Gem::Version
82
- version: '1.5'
82
+ version: '0'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: rake
85
85
  requirement: !ruby/object:Gem::Requirement
@@ -128,6 +128,7 @@ files:
128
128
  - lib/lita/handlers/misawa.rb
129
129
  - lib/lita/handlers/omikuji.rb
130
130
  - lib/lita/handlers/pebbles.rb
131
+ - lib/lita/handlers/sample.rb
131
132
  - lib/lita/handlers/schedules.rb
132
133
  - lib/lita/handlers/twitter_util.rb
133
134
  - lib/lita/pebbles/version.rb
@@ -153,7 +154,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
153
154
  version: '0'
154
155
  requirements: []
155
156
  rubyforge_project:
156
- rubygems_version: 2.2.2
157
+ rubygems_version: 2.4.5
157
158
  signing_key:
158
159
  specification_version: 4
159
160
  summary: A Lita handlers for fun :)