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 +4 -4
- data/.gitignore +1 -0
- data/lib/lita/handlers/sample.rb +14 -0
- data/lib/lita/handlers/schedules.rb +4 -5
- data/lib/lita/pebbles/version.rb +1 -1
- data/lib/lita-pebbles.rb +1 -0
- data/lita-pebbles.gemspec +5 -5
- metadata +22 -21
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a4f8acb3fe39534d16f56deecb02eaa7cee464ba
|
4
|
+
data.tar.gz: 453c45dcf2d482eaffeac9a04ef2cbe7af41dd5b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6b2eae867da55d2790f873a3893d8f03ecff505be949d49fa58a9a44d9c7dc9ce7c80227bcd479e4d314b500cf5e63153ebcd571b47ae0d2f85f6bb620e6e5d5
|
7
|
+
data.tar.gz: a77a4ec6443bfc44072b20e5081c2e7bb6ac5edcd94686fe45fd4cebf45f220db1b025bf0a89cdb2418d57e52d6687ce8d6e2ea79066b5cb7748e8ceb55b10de
|
data/.gitignore
CHANGED
@@ -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
|
-
|
7
|
-
|
8
|
-
|
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
|
data/lib/lita/pebbles/version.rb
CHANGED
data/lib/lita-pebbles.rb
CHANGED
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", ">=
|
24
|
-
spec.add_runtime_dependency 'pebbles-suddenly_death_string'
|
25
|
-
spec.add_runtime_dependency 'flippy'
|
26
|
-
spec.add_runtime_dependency 'rufus-scheduler'
|
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"
|
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.
|
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:
|
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: '
|
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: '
|
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
|
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
|
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
|
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
|
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:
|
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:
|
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: '
|
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: '
|
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.
|
157
|
+
rubygems_version: 2.4.5
|
157
158
|
signing_key:
|
158
159
|
specification_version: 4
|
159
160
|
summary: A Lita handlers for fun :)
|