cinch-pax-timer 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
data/.travis.yml CHANGED
@@ -1,4 +1,4 @@
1
- nguage: ruby
1
+ language: ruby
2
2
  rvm:
3
3
  - 1.9.2
4
4
  - 1.9.3
@@ -22,6 +22,6 @@ Gem::Specification.new do |gem|
22
22
  gem.add_development_dependency 'coveralls'
23
23
  gem.add_development_dependency 'cinch-test'
24
24
 
25
- gem.add_dependency 'cinch-cooldown', '>= 1.0.0'
26
- gem.add_dependency 'cinch-toolbox', '~> 1.0.1'
25
+ gem.add_dependency 'cinch-cooldown', '~> 1.0.1'
26
+ gem.add_dependency 'cinch-toolbox', '~> 1.0.3'
27
27
  end
@@ -1,7 +1,7 @@
1
1
  require 'cinch'
2
2
  require 'time-lord'
3
- require 'cinch-toolbox'
4
- require 'cinch-cooldown'
3
+ require 'cinch/toolbox'
4
+ require 'cinch/cooldown'
5
5
 
6
6
  module Cinch::Plugins
7
7
  class PaxTimer
@@ -24,8 +24,8 @@ module Cinch::Plugins
24
24
  :estimated => false },
25
25
  { :type => 'aus',
26
26
  :name => 'PAX Australia',
27
- :date => Time.parse('2013-07-19 08:00:00 -08:00'),
28
- :estimated => false },
27
+ :date => Time.parse('2014-07-18 08:00:00 -08:00'),
28
+ :estimated => true },
29
29
  { :type => 'east',
30
30
  :name => 'PAX East',
31
31
  :date => Time.parse('2014-04-11 08:00:00 -08:00'),
@@ -1,7 +1,7 @@
1
1
  module Cinch
2
2
  module Plugins
3
3
  class PaxTimer
4
- VERSION = "1.0.0"
4
+ VERSION = "1.0.1"
5
5
  end
6
6
  end
7
7
  end
@@ -15,8 +15,8 @@ describe Cinch::Plugins::PaxTimer do
15
15
  describe :pax do
16
16
  it 'should return the next pax' do
17
17
  msg = make_message(@bot, '!pax')
18
- get_replies(msg).first.
19
- should match(/PAX.+is \d+ days from now/)
18
+ get_replies(msg).first.text.
19
+ should match(/PAX.+is (approximatly )?\d+ days from now/)
20
20
  end
21
21
 
22
22
  it 'should return nothing if there are arguments' do
@@ -28,37 +28,37 @@ describe Cinch::Plugins::PaxTimer do
28
28
 
29
29
  it 'should respond to .prime correctly' do
30
30
  msg = make_message(@bot, '!prime')
31
- get_replies(msg).first.
32
- should match(/PAX Prime is \d+ days from now/)
31
+ get_replies(msg).first.text.
32
+ should match(/PAX Prime is.+days from now/)
33
33
  end
34
34
 
35
35
  it 'should respond to .paxprime correctly' do
36
36
  msg = make_message(@bot, '!paxprime')
37
- get_replies(msg).first.
38
- should match(/PAX Prime is \d+ days from now/)
37
+ get_replies(msg).first.text.
38
+ should match(/PAX Prime is.+days from now/)
39
39
  end
40
40
 
41
41
  it 'should respond to .east correctly' do
42
42
  msg = make_message(@bot, '!east')
43
- get_replies(msg).first.
44
- should match(/PAX East is \d+ days from now/)
43
+ get_replies(msg).first.text.
44
+ should match(/PAX East is.+days from now/)
45
45
  end
46
46
 
47
47
  it 'should respond to .paxeast correctly' do
48
48
  msg = make_message(@bot, '!paxeast')
49
- get_replies(msg).first.
50
- should match(/PAX East is \d+ days from now/)
49
+ get_replies(msg).first.text.
50
+ should match(/PAX East is.+days from now/)
51
51
  end
52
52
 
53
53
  it 'should respond to .aus correctly' do
54
54
  msg = make_message(@bot, '!aus')
55
- get_replies(msg).first.
56
- should match(/PAX Australia is \d+ days from now/)
55
+ get_replies(msg).first.text.
56
+ should match(/PAX Australia is.+days from now/)
57
57
  end
58
58
 
59
59
  it 'should respond to .paxaus correctly' do
60
60
  msg = make_message(@bot, '!paxaus')
61
- get_replies(msg).first.
62
- should match(/PAX Australia is \d+ days from now/)
61
+ get_replies(msg).first.text.
62
+ should match(/PAX Australia is.+days from now/)
63
63
  end
64
64
  end
data/spec/spec_helper.rb CHANGED
@@ -1,25 +1,4 @@
1
1
  require 'coveralls'
2
2
  Coveralls.wear!
3
3
  require 'cinch-pax-timer'
4
-
5
4
  require 'cinch/test'
6
- =begin
7
- def fake_bot
8
- bot = Cinch::Bot.new
9
- bot.loggers.level = :fatal
10
- bot
11
- return bot
12
- end
13
-
14
- module Cinch
15
- module Plugin
16
- def initialize(opts = {})
17
- @bot = fake_bot
18
- @handlers = []
19
- @timers = []
20
- # Don't init the bot
21
- # __register
22
- end
23
- end
24
- end
25
- =end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cinch-pax-timer
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-06-25 00:00:00.000000000 Z
12
+ date: 2013-08-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake
@@ -80,17 +80,17 @@ dependencies:
80
80
  requirement: !ruby/object:Gem::Requirement
81
81
  none: false
82
82
  requirements:
83
- - - ! '>='
83
+ - - ~>
84
84
  - !ruby/object:Gem::Version
85
- version: 1.0.0
85
+ version: 1.0.1
86
86
  type: :runtime
87
87
  prerelease: false
88
88
  version_requirements: !ruby/object:Gem::Requirement
89
89
  none: false
90
90
  requirements:
91
- - - ! '>='
91
+ - - ~>
92
92
  - !ruby/object:Gem::Version
93
- version: 1.0.0
93
+ version: 1.0.1
94
94
  - !ruby/object:Gem::Dependency
95
95
  name: cinch-toolbox
96
96
  requirement: !ruby/object:Gem::Requirement
@@ -98,7 +98,7 @@ dependencies:
98
98
  requirements:
99
99
  - - ~>
100
100
  - !ruby/object:Gem::Version
101
- version: 1.0.1
101
+ version: 1.0.3
102
102
  type: :runtime
103
103
  prerelease: false
104
104
  version_requirements: !ruby/object:Gem::Requirement
@@ -106,7 +106,7 @@ dependencies:
106
106
  requirements:
107
107
  - - ~>
108
108
  - !ruby/object:Gem::Version
109
- version: 1.0.1
109
+ version: 1.0.3
110
110
  description: Cinch plugin that allows users to see the relative time till the various
111
111
  PAX events
112
112
  email:
@@ -147,7 +147,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
147
147
  version: '0'
148
148
  requirements: []
149
149
  rubyforge_project:
150
- rubygems_version: 1.8.24
150
+ rubygems_version: 1.8.25
151
151
  signing_key:
152
152
  specification_version: 3
153
153
  summary: Cinch Plugin that acts as a PAX countdown