cinch-pax-timer 1.0.12 → 1.0.13
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dd3d7fd0a61c558673cb0b092c925f5e34f13379
|
4
|
+
data.tar.gz: bb3783efe1f9ce9d87bdd4abf041c85a5424c7f5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ff326dcd6e678e46e3fbddda9bc0c2329785a54228ba186c2c346ac47693e4a6d90c6cbd12b4d979bd13c07886d323921f36a94a8d39882b1a322c0f190e36e0
|
7
|
+
data.tar.gz: 018c9e0998603a1e605a07f881c68173c1d9d495b249d155de4f64fc304e98ad64a97e251de65b4501d71c9ca6262d143d18148b29f6f42e770620b5f7892bd3
|
@@ -10,7 +10,7 @@ module Cinch
|
|
10
10
|
class PaxTimer
|
11
11
|
include Cinch::Plugin
|
12
12
|
|
13
|
-
self.help = 'Use .pax for the next pax or .east, .
|
13
|
+
self.help = 'Use .pax for the next pax or .east, .west, .south or ' \
|
14
14
|
'.aus for the time to a specific pax.'
|
15
15
|
|
16
16
|
match(/pax\z/, method: :next_pax)
|
@@ -9,7 +9,11 @@ module Cinch
|
|
9
9
|
date: Time.parse('2016-11-04 08:00:00 +11:00'),
|
10
10
|
estimated: false },
|
11
11
|
{ type: 'prime',
|
12
|
-
name: 'PAX
|
12
|
+
name: 'PAX West',
|
13
|
+
date: Time.parse('2016-08-28 08:00:00 -08:00'),
|
14
|
+
estimated: true },
|
15
|
+
{ type: 'west',
|
16
|
+
name: 'PAX West',
|
13
17
|
date: Time.parse('2016-08-28 08:00:00 -08:00'),
|
14
18
|
estimated: true },
|
15
19
|
{ type: 'south',
|
@@ -28,13 +28,25 @@ describe Cinch::Plugins::PaxTimer do
|
|
28
28
|
it 'should respond to .prime correctly' do
|
29
29
|
msg = make_message(@bot, '!prime')
|
30
30
|
msg = get_replies(msg).first
|
31
|
-
expect(msg.text).to match(/PAX
|
31
|
+
expect(msg.text).to match(/PAX West is.+days from now/)
|
32
32
|
end
|
33
33
|
|
34
34
|
it 'should respond to .paxprime correctly' do
|
35
35
|
msg = make_message(@bot, '!paxprime')
|
36
36
|
msg = get_replies(msg).first
|
37
|
-
expect(msg.text).to match(/PAX
|
37
|
+
expect(msg.text).to match(/PAX West is.+days from now/)
|
38
|
+
end
|
39
|
+
|
40
|
+
it 'should respond to .west correctly' do
|
41
|
+
msg = make_message(@bot, '!west')
|
42
|
+
msg = get_replies(msg).first
|
43
|
+
expect(msg.text).to match(/PAX West is.+days from now/)
|
44
|
+
end
|
45
|
+
|
46
|
+
it 'should respond to .paxwest correctly' do
|
47
|
+
msg = make_message(@bot, '!paxwest')
|
48
|
+
msg = get_replies(msg).first
|
49
|
+
expect(msg.text).to match(/PAX West is.+days from now/)
|
38
50
|
end
|
39
51
|
|
40
52
|
it 'should respond to .east correctly' do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cinch-pax-timer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brian Haberer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-03-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|