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: 5738850628a428cb0a5fcf825e5f86483dad0248
4
- data.tar.gz: e71ae94b391b0c0fcc32150d50334beb1584492c
3
+ metadata.gz: dd3d7fd0a61c558673cb0b092c925f5e34f13379
4
+ data.tar.gz: bb3783efe1f9ce9d87bdd4abf041c85a5424c7f5
5
5
  SHA512:
6
- metadata.gz: eb566d39815db30a1c6cd8d1a47042b74150e958d76d2fc4737ac9f75099ae2648a1f3b30f37e1b9bd320363b2c11ddd7df0ad792cfe6c40094773ec5a34119f
7
- data.tar.gz: 6b193b74cb3fcea1b2b9fecebbf4c78e5df6b21a580500cae348f5842eb95a7263d9d30ff3adb579aec6fa9629dd1a07d2aa20ceeb85577e6604e2496b305992
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, .prime, .south or ' \
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 Prime',
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',
@@ -3,7 +3,7 @@ module Cinch
3
3
  module Plugins
4
4
  # Versioning info
5
5
  class PaxTimer
6
- VERSION = '1.0.12'
6
+ VERSION = '1.0.13'
7
7
  end
8
8
  end
9
9
  end
@@ -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 Prime is.+days from now/)
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 Prime is.+days from now/)
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.12
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-02-03 00:00:00.000000000 Z
11
+ date: 2016-03-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake