cinch-pax-timer 1.0.11 → 1.0.12

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
- !binary "U0hBMQ==":
3
- metadata.gz: 0f48de719742a0302a96ecddf5d1d97dec86caf4
4
- data.tar.gz: 051d7587e6b7b01506c8c88e829006f2e92f0d02
2
+ SHA1:
3
+ metadata.gz: 5738850628a428cb0a5fcf825e5f86483dad0248
4
+ data.tar.gz: e71ae94b391b0c0fcc32150d50334beb1584492c
5
5
  SHA512:
6
- metadata.gz: 6242317ecaf290fdb5e45eac37b618a6a0dc936dc7abaf854f2afde496fe30ca4a606dd68af6b20872d51b09471ce0dba1a65336be0852f9200f59e2fba00690
7
- data.tar.gz: aa52691eab6297db31abcb11444ae6d6d58c91891fbbffcbb96ca93381212e5dc89073f3d2a88b72a4b3ad01c9724cf4b971ad380575c8a1b29d0d1de5d823c1
6
+ metadata.gz: eb566d39815db30a1c6cd8d1a47042b74150e958d76d2fc4737ac9f75099ae2648a1f3b30f37e1b9bd320363b2c11ddd7df0ad792cfe6c40094773ec5a34119f
7
+ data.tar.gz: 6b193b74cb3fcea1b2b9fecebbf4c78e5df6b21a580500cae348f5842eb95a7263d9d30ff3adb579aec6fa9629dd1a07d2aa20ceeb85577e6604e2496b305992
data/.travis.yml CHANGED
@@ -1,8 +1,16 @@
1
1
  language: ruby
2
+ addons:
3
+ code_climate:
4
+ repo_token: be2e3e1f30e0afbb312dbb28814f353f9b613dcd048dac3146c5bab5b0324d3c
5
+ before_install:
6
+ - gem update --system
7
+ - gem update bundler
2
8
  env:
3
9
  global:
4
10
  - "JRUBY_OPTS=-Xcext.enabled=true"
5
11
  rvm:
12
+ - 2.3.0
13
+ - 2.2.0
6
14
  - 2.1.0
7
15
  - 2.0.0
8
16
  - 1.9.3
@@ -15,9 +23,13 @@ rvm:
15
23
  - ree
16
24
  matrix:
17
25
  allow_failures:
26
+ - rvm: 1.9.3
27
+ - rvm: 1.9.2
28
+ - rvm: 1.8.7
18
29
  - rvm: 1.8.7
19
30
  - rvm: ree
20
31
  - rvm: jruby-18mode
21
32
  - rvm: jruby-19mode
22
33
  - rvm: jruby-head
34
+ - rvm: ruby-head
23
35
  fast_finish: true
@@ -19,9 +19,10 @@ Gem::Specification.new do |gem|
19
19
 
20
20
  gem.add_development_dependency 'rake', '~> 10'
21
21
  gem.add_development_dependency 'rspec', '~> 3'
22
- gem.add_development_dependency 'coveralls', '~> 0.7'
23
- gem.add_development_dependency 'cinch-test', '~> 0.1', '>= 0.1.0'
22
+ gem.add_development_dependency 'codeclimate-test-reporter', '~> 0.4'
23
+ gem.add_development_dependency 'cinch-test', '~> 0.1', '>= 0.1.1'
24
+
24
25
  gem.add_dependency 'cinch', '~> 2'
25
- gem.add_dependency 'cinch-cooldown', '~> 1.1', '>= 1.1.1'
26
+ gem.add_dependency 'cinch-cooldown', '~> 1.1', '>= 1.1.7'
26
27
  gem.add_dependency 'cinch-toolbox', '~> 1.1'
27
28
  end
@@ -1,3 +1,4 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
  require 'cinch/plugins/pax-timer/version'
3
+ require 'cinch/plugins/pax-timer/paxes'
3
4
  require 'cinch/plugins/pax-timer'
@@ -9,7 +9,7 @@ module Cinch
9
9
  # Cinch Cooldown for PAX countdowns
10
10
  class PaxTimer
11
11
  include Cinch::Plugin
12
-
12
+
13
13
  self.help = 'Use .pax for the next pax or .east, .prime, .south or ' \
14
14
  '.aus for the time to a specific pax.'
15
15
 
@@ -19,25 +19,6 @@ module Cinch
19
19
  m.reply get_next_pax
20
20
  end
21
21
 
22
- PAXES = [
23
- { type: 'aus',
24
- name: 'PAX Australia',
25
- date: Time.parse('2015-10-30 08:00:00 +11:00'),
26
- estimated: false },
27
- { type: 'prime',
28
- name: 'PAX Prime',
29
- date: Time.parse('2015-08-28 08:00:00 -08:00'),
30
- estimated: false },
31
- { type: 'south',
32
- name: 'PAX South',
33
- date: Time.parse('2016-01-29 08:00:00 -06:00'),
34
- estimated: false },
35
- { type: 'east',
36
- name: 'PAX East',
37
- date: Time.parse('2016-04-22 08:00:00 -05:00'),
38
- estimated: false }
39
- ]
40
-
41
22
  PAXES.map { |p| p[:type] }.each do |pax|
42
23
  match(/(#{pax}|pax#{pax})\z/, method: "next_#{pax}")
43
24
 
@@ -0,0 +1,26 @@
1
+ # -*- encoding: utf-8 -*-
2
+ module Cinch
3
+ module Plugins
4
+ # Versioning info
5
+ class PaxTimer
6
+ PAXES = [
7
+ { type: 'aus',
8
+ name: 'PAX Australia',
9
+ date: Time.parse('2016-11-04 08:00:00 +11:00'),
10
+ estimated: false },
11
+ { type: 'prime',
12
+ name: 'PAX Prime',
13
+ date: Time.parse('2016-08-28 08:00:00 -08:00'),
14
+ estimated: true },
15
+ { type: 'south',
16
+ name: 'PAX South',
17
+ date: Time.parse('2017-01-29 08:00:00 -06:00'),
18
+ estimated: true },
19
+ { type: 'east',
20
+ name: 'PAX East',
21
+ date: Time.parse('2016-04-22 08:00:00 -05:00'),
22
+ estimated: false }
23
+ ]
24
+ end
25
+ end
26
+ end
@@ -3,7 +3,7 @@ module Cinch
3
3
  module Plugins
4
4
  # Versioning info
5
5
  class PaxTimer
6
- VERSION = '1.0.11'
6
+ VERSION = '1.0.12'
7
7
  end
8
8
  end
9
9
  end
data/spec/spec_helper.rb CHANGED
@@ -1,4 +1,5 @@
1
- require 'coveralls'
2
- Coveralls.wear!
1
+ require "codeclimate-test-reporter"
2
+ CodeClimate::TestReporter.start
3
+
3
4
  require 'cinch-pax-timer'
4
5
  require 'cinch/test'
metadata CHANGED
@@ -1,123 +1,123 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cinch-pax-timer
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.11
4
+ version: 1.0.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Haberer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-06-30 00:00:00.000000000 Z
11
+ date: 2016-02-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: '10'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '10'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rspec
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ~>
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
33
  version: '3'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ~>
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '3'
41
41
  - !ruby/object:Gem::Dependency
42
- name: coveralls
42
+ name: codeclimate-test-reporter
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ~>
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '0.7'
47
+ version: '0.4'
48
48
  type: :development
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.7'
54
+ version: '0.4'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: cinch-test
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ~>
59
+ - - "~>"
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0.1'
62
- - - ! '>='
62
+ - - ">="
63
63
  - !ruby/object:Gem::Version
64
- version: 0.1.0
64
+ version: 0.1.1
65
65
  type: :development
66
66
  prerelease: false
67
67
  version_requirements: !ruby/object:Gem::Requirement
68
68
  requirements:
69
- - - ~>
69
+ - - "~>"
70
70
  - !ruby/object:Gem::Version
71
71
  version: '0.1'
72
- - - ! '>='
72
+ - - ">="
73
73
  - !ruby/object:Gem::Version
74
- version: 0.1.0
74
+ version: 0.1.1
75
75
  - !ruby/object:Gem::Dependency
76
76
  name: cinch
77
77
  requirement: !ruby/object:Gem::Requirement
78
78
  requirements:
79
- - - ~>
79
+ - - "~>"
80
80
  - !ruby/object:Gem::Version
81
81
  version: '2'
82
82
  type: :runtime
83
83
  prerelease: false
84
84
  version_requirements: !ruby/object:Gem::Requirement
85
85
  requirements:
86
- - - ~>
86
+ - - "~>"
87
87
  - !ruby/object:Gem::Version
88
88
  version: '2'
89
89
  - !ruby/object:Gem::Dependency
90
90
  name: cinch-cooldown
91
91
  requirement: !ruby/object:Gem::Requirement
92
92
  requirements:
93
- - - ~>
93
+ - - "~>"
94
94
  - !ruby/object:Gem::Version
95
95
  version: '1.1'
96
- - - ! '>='
96
+ - - ">="
97
97
  - !ruby/object:Gem::Version
98
- version: 1.1.1
98
+ version: 1.1.7
99
99
  type: :runtime
100
100
  prerelease: false
101
101
  version_requirements: !ruby/object:Gem::Requirement
102
102
  requirements:
103
- - - ~>
103
+ - - "~>"
104
104
  - !ruby/object:Gem::Version
105
105
  version: '1.1'
106
- - - ! '>='
106
+ - - ">="
107
107
  - !ruby/object:Gem::Version
108
- version: 1.1.1
108
+ version: 1.1.7
109
109
  - !ruby/object:Gem::Dependency
110
110
  name: cinch-toolbox
111
111
  requirement: !ruby/object:Gem::Requirement
112
112
  requirements:
113
- - - ~>
113
+ - - "~>"
114
114
  - !ruby/object:Gem::Version
115
115
  version: '1.1'
116
116
  type: :runtime
117
117
  prerelease: false
118
118
  version_requirements: !ruby/object:Gem::Requirement
119
119
  requirements:
120
- - - ~>
120
+ - - "~>"
121
121
  - !ruby/object:Gem::Version
122
122
  version: '1.1'
123
123
  description: Cinch plugin that allows users to see the relative time till the various
@@ -128,8 +128,8 @@ executables: []
128
128
  extensions: []
129
129
  extra_rdoc_files: []
130
130
  files:
131
- - .gitignore
132
- - .travis.yml
131
+ - ".gitignore"
132
+ - ".travis.yml"
133
133
  - Gemfile
134
134
  - LICENSE.txt
135
135
  - README.md
@@ -137,6 +137,7 @@ files:
137
137
  - cinch-pax-timer.gemspec
138
138
  - lib/cinch-pax-timer.rb
139
139
  - lib/cinch/plugins/pax-timer.rb
140
+ - lib/cinch/plugins/pax-timer/paxes.rb
140
141
  - lib/cinch/plugins/pax-timer/version.rb
141
142
  - spec/cinch-pax-timer_spec.rb
142
143
  - spec/spec_helper.rb
@@ -150,21 +151,20 @@ require_paths:
150
151
  - lib
151
152
  required_ruby_version: !ruby/object:Gem::Requirement
152
153
  requirements:
153
- - - ! '>='
154
+ - - ">="
154
155
  - !ruby/object:Gem::Version
155
156
  version: '0'
156
157
  required_rubygems_version: !ruby/object:Gem::Requirement
157
158
  requirements:
158
- - - ! '>='
159
+ - - ">="
159
160
  - !ruby/object:Gem::Version
160
161
  version: '0'
161
162
  requirements: []
162
163
  rubyforge_project:
163
- rubygems_version: 2.4.4
164
+ rubygems_version: 2.4.8
164
165
  signing_key:
165
166
  specification_version: 4
166
167
  summary: Cinch Plugin that acts as a PAX countdown
167
168
  test_files:
168
169
  - spec/cinch-pax-timer_spec.rb
169
170
  - spec/spec_helper.rb
170
- has_rdoc: