cinch-cooldown 1.1.5 → 1.1.7

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: 98b072029f3902df8be334e446530cbdcd58c5e4
4
- data.tar.gz: 69a12eaa5e1a0f7b8b66f8e3a8bae6bb187f0f90
2
+ SHA1:
3
+ metadata.gz: 6ac9fa7f01e72f833c759dee51fc66b47b918054
4
+ data.tar.gz: 9dbcca3ebba66164bbc5ac895e8b3449b1665493
5
5
  SHA512:
6
- metadata.gz: 564dea1e24dec252b267ef6f9c9027b864cba5b8ae3d1bc51a1f679c54f950d81b3469755e10489e99bea240a8cebe54e90eafd57ebc561a0e96c82d8cac48ff
7
- data.tar.gz: e1da9ffc614f9b6ac83b0002f23d73b4c9913d82b8fdc4e13a701bb40430dee3b7ae01689b63abf428bac3ec2cd28616c69c1f3b81dbadd3cf29871f97eab55a
6
+ metadata.gz: 320d14e0db3fd326dce550eb0b5950ba7b3c018ceca90b913930e8886f53e44670cbf7e8c6494ff3514935ac615090a1463388fcf535a3f933e397b4e3b1b03a
7
+ data.tar.gz: 7be10c894fc3ceaeb063958f6bab87e85b1ba778dbbb4decfbcaf75be0a4141625422119843e5ec003eedade8ea3587bdee36b596f9ca4dfd66f11d0c59f3d5c
@@ -1,13 +1,20 @@
1
+ addons:
2
+ code_climate:
3
+ repo_token: 15db41183ecae7874c0ff86ec1e24b2c340f9a977ebb5f4f4c6421e4f82bd0de
1
4
  language: ruby
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:
6
- - 2.1.0
7
- - 2.0.0
8
- - 1.9.3
9
- - 1.9.2
10
12
  - 1.8.7
13
+ - 1.9.2
14
+ - 1.9.3
15
+ - 2.0.0
16
+ - 2.1.0
17
+ - 2.2.0
11
18
  - jruby-18mode
12
19
  - jruby-19mode
13
20
  - ruby-head
@@ -16,6 +23,8 @@ rvm:
16
23
  matrix:
17
24
  allow_failures:
18
25
  - rvm: 1.8.7
26
+ - rvm: 1.9.2
27
+ - rvm: 1.9.3
19
28
  - rvm: ree
20
29
  - rvm: jruby-18mode
21
30
  - rvm: jruby-19mode
data/README.md CHANGED
@@ -33,11 +33,10 @@ many seconds the bot will wait before listening to a command that prints somethi
33
33
  channel, while the `:user` directive is how long. Currently the gem is simple and assumes
34
34
  that the user timer will be greater than the global timer.
35
35
 
36
- c.shared[:cooldown] = { :config => { '#bottest' => { :global => 10
37
- :user => 20 } }
36
+ ```c.shared[:cooldown] = { :config => { '#bottest' => { :global => 10, :user => 20 } } }```
38
37
 
39
38
  2. If you are using this with my plugins, things should just work. However if you want to use
40
- this with your own plugins, you need to add a `require cinch/cooldown` to the top of said
39
+ this with your own plugins, you need to add a `'require cinch/cooldown'` to the top of said
41
40
  plugin, and an `enforce_cooldown` to the plugin after the `include Cinch::Plugin` line.
42
41
 
43
42
  ## Contributing
@@ -4,24 +4,26 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
  require 'cinch/cooldown/version'
5
5
 
6
6
  Gem::Specification.new do |gem|
7
- gem.name = 'cinch-cooldown'
8
- gem.version = Cinch::Cooldowns::VERSION
9
- gem.authors = ['Brian Haberer']
10
- gem.email = ['bhaberer@gmail.com']
11
- gem.description = %q(This gem allows you to set a shared timer across plugins that are configured to respect it.)
12
- gem.summary = %q(Global Cooldown tracker for Cinch Plugins)
13
- gem.homepage = 'https://github.com/bhaberer/cinch-cooldown'
7
+ gem.name = 'cinch-cooldown'
8
+ gem.version = Cinch::Cooldowns::VERSION
9
+ gem.authors = ['Brian Haberer']
10
+ gem.email = ['bhaberer@gmail.com']
11
+ gem.description = %q(This gem allows you to set a shared timer across plugins that are configured to respect it.)
12
+ gem.summary = %q(Global Cooldown tracker for Cinch Plugins)
13
+ gem.homepage = 'https://github.com/bhaberer/cinch-cooldown'
14
14
 
15
- gem.files = `git ls-files`.split($/)
16
- gem.executables = gem.files.grep(/^bin\//).map { |f| File.basename(f) }
17
- gem.test_files = gem.files.grep(/^(test|spec|features)\//)
15
+ gem.files = `git ls-files`.split($/)
16
+ gem.executables = gem.files.grep(/^bin\//).map { |f| File.basename(f) }
17
+ gem.test_files = gem.files.grep(/^(test|spec|features)\//)
18
18
  gem.require_paths = ['lib']
19
- gem.license = 'MIT'
19
+ gem.license = 'MIT'
20
+ gem.required_ruby_version = '>= 2.0.0'
20
21
 
21
22
  gem.add_development_dependency 'rake', '~> 10'
22
23
  gem.add_development_dependency 'rspec', '~> 3'
23
- gem.add_development_dependency 'coveralls', '~> 0.7'
24
- gem.add_development_dependency 'cinch-test', '~> 0.0', '>= 0.0.2'
24
+ gem.add_development_dependency 'cinch-test', '~> 0.1', '>= 0.1.1'
25
+ gem.add_development_dependency 'codeclimate-test-reporter', '~> 0.4'
26
+
25
27
  gem.add_dependency 'cinch', '~> 2'
26
28
  gem.add_dependency 'time-lord', '~> 1.0', '>= 1.0.1'
27
29
  end
@@ -2,6 +2,6 @@
2
2
  module Cinch
3
3
  # Versioning info
4
4
  module Cooldowns
5
- VERSION = '1.1.5'
5
+ VERSION = '1.1.7'
6
6
  end
7
7
  end
@@ -5,7 +5,8 @@ class MyPlugin
5
5
 
6
6
  enforce_cooldown
7
7
 
8
- match /thing/
8
+ match(/thing/)
9
+
9
10
  def execute(m)
10
11
  m.reply 'OMG'
11
12
  end
@@ -1,11 +1,5 @@
1
- require 'coveralls'
2
- require 'simplecov'
3
-
4
- SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
5
- SimpleCov::Formatter::HTMLFormatter,
6
- Coveralls::SimpleCov::Formatter
7
- ]
8
- SimpleCov.start
1
+ require "codeclimate-test-reporter"
2
+ CodeClimate::TestReporter.start
9
3
 
10
4
  require 'cinch/cooldown'
11
5
  require 'cinch/test'
metadata CHANGED
@@ -1,109 +1,109 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cinch-cooldown
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.5
4
+ version: 1.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Haberer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-07-31 00:00:00.000000000 Z
11
+ date: 2016-01-28 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: cinch-test
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ~>
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '0.1'
48
+ - - ">="
46
49
  - !ruby/object:Gem::Version
47
- version: '0.7'
50
+ version: 0.1.1
48
51
  type: :development
49
52
  prerelease: false
50
53
  version_requirements: !ruby/object:Gem::Requirement
51
54
  requirements:
52
- - - ~>
55
+ - - "~>"
53
56
  - !ruby/object:Gem::Version
54
- version: '0.7'
57
+ version: '0.1'
58
+ - - ">="
59
+ - !ruby/object:Gem::Version
60
+ version: 0.1.1
55
61
  - !ruby/object:Gem::Dependency
56
- name: cinch-test
62
+ name: codeclimate-test-reporter
57
63
  requirement: !ruby/object:Gem::Requirement
58
64
  requirements:
59
- - - ~>
65
+ - - "~>"
60
66
  - !ruby/object:Gem::Version
61
- version: '0.0'
62
- - - ! '>='
63
- - !ruby/object:Gem::Version
64
- version: 0.0.2
67
+ version: '0.4'
65
68
  type: :development
66
69
  prerelease: false
67
70
  version_requirements: !ruby/object:Gem::Requirement
68
71
  requirements:
69
- - - ~>
70
- - !ruby/object:Gem::Version
71
- version: '0.0'
72
- - - ! '>='
72
+ - - "~>"
73
73
  - !ruby/object:Gem::Version
74
- version: 0.0.2
74
+ version: '0.4'
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: time-lord
91
91
  requirement: !ruby/object:Gem::Requirement
92
92
  requirements:
93
- - - ~>
93
+ - - "~>"
94
94
  - !ruby/object:Gem::Version
95
95
  version: '1.0'
96
- - - ! '>='
96
+ - - ">="
97
97
  - !ruby/object:Gem::Version
98
98
  version: 1.0.1
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.0'
106
- - - ! '>='
106
+ - - ">="
107
107
  - !ruby/object:Gem::Version
108
108
  version: 1.0.1
109
109
  description: This gem allows you to set a shared timer across plugins that are configured
@@ -114,8 +114,8 @@ executables: []
114
114
  extensions: []
115
115
  extra_rdoc_files: []
116
116
  files:
117
- - .gitignore
118
- - .travis.yml
117
+ - ".gitignore"
118
+ - ".travis.yml"
119
119
  - Gemfile
120
120
  - LICENSE.txt
121
121
  - README.md
@@ -138,17 +138,17 @@ require_paths:
138
138
  - lib
139
139
  required_ruby_version: !ruby/object:Gem::Requirement
140
140
  requirements:
141
- - - ! '>='
141
+ - - ">="
142
142
  - !ruby/object:Gem::Version
143
- version: '0'
143
+ version: 2.0.0
144
144
  required_rubygems_version: !ruby/object:Gem::Requirement
145
145
  requirements:
146
- - - ! '>='
146
+ - - ">="
147
147
  - !ruby/object:Gem::Version
148
148
  version: '0'
149
149
  requirements: []
150
150
  rubyforge_project:
151
- rubygems_version: 2.2.2
151
+ rubygems_version: 2.5.1
152
152
  signing_key:
153
153
  specification_version: 4
154
154
  summary: Global Cooldown tracker for Cinch Plugins