lita-onewheel-karma 1.0.0 → 1.0.1

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: 320b223512375e318152ed5fa8ca7307cd87f8a6
4
- data.tar.gz: 698458f2dbcc2a87025c53c6b5ba73b593909ba3
3
+ metadata.gz: 42ae1410e0bdde8cc5111a8c7ac1a0b03b1dc817
4
+ data.tar.gz: 6c3234a8e4c1235703a52945a872a3a6a59c4ab3
5
5
  SHA512:
6
- metadata.gz: 4a76896356de9997d16b274ec97b2fd4053c0a9d92e3503e498b69b7455199b8f74055495a05327a2fef7eec31dd52472cab634bccce349e70c5434f3f649e1f
7
- data.tar.gz: dc2e8c694d3bbc062bb402fa8789e30a4d1f33eb0eb8deceec3c16dd58cdb9781cb29b74fecea5c4c683c8eb87befeb0393026d9251237edd4c4e6ba360c03ee
6
+ metadata.gz: daf1c3d4891a26c701a2d2ecb398486c0d34c83467d7837fb9729063f1b53e2b1b3815dea169f11b62ad1810271c9d1e6ab23abc041bb982da3bb5c2fdbed7b5
7
+ data.tar.gz: 5a15861f83f57f8ac9e0c95a755df442853cca4ddf99cff5c8f7eea525733ac6624a964d76c651ba3543d65066b7e4d323a1d8b436d125c2bf8468e035235b2f
data/.travis.yml CHANGED
@@ -1,8 +1,7 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 2.0.0
4
- - 2.1.5
5
- - 2.2.2
3
+ - 2.2.4
4
+ - 2.3.0
6
5
  script: bundle exec rake
7
6
  before_install:
8
7
  - gem update --system
@@ -1,18 +1,16 @@
1
- require 'roman-numerals'
2
-
3
1
  module Lita
4
2
  module Handlers
5
3
  class OnewheelKarma < Handler
6
4
  route /([^\s]+)\+\+(\s|$)/, :add_one_karma,
7
- help: 'object++: Add one karma to [object].'
5
+ help: {'object++:' => 'Add one karma to [object].'}
8
6
  route /([^\s]+)--(\s|$)/, :remove_one_karma,
9
- help: 'object++: Remove one karma from [object].'
7
+ help: {'object++:' => 'Remove one karma from [object].'}
10
8
  route /([^\s]+)\*=\s*([-\d]+)/, :multiply_karma,
11
- help: 'object*=n: Multiply karma by n'
9
+ help: {'object*=n:' => 'Multiply karma by n'}
12
10
  route /([^\s]+)\+=\s*([-\d]+)/, :add_arbitrary_karma,
13
- help: 'object+=n: Add n karma to [object].'
11
+ help: {'object+=n:' => 'Add n karma to [object].'}
14
12
  route /([^\s]+)-=\s*([-\d]+)/, :remove_arbitrary_karma,
15
- help: 'object-=n: Remove n karma from [object].'
13
+ help: {'object-=n:' => 'Remove n karma from [object].'}
16
14
 
17
15
  def add_one_karma(response)
18
16
  karma_object = response.matches[0][0]
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = 'lita-onewheel-karma'
3
- spec.version = '1.0.0'
3
+ spec.version = '1.0.1'
4
4
  spec.authors = ['Andrew Kreps']
5
5
  spec.email = ['andrew.kreps@gmail.com']
6
6
  spec.description = 'Karma with a maths-focused twist.'
@@ -14,11 +14,10 @@ Gem::Specification.new do |spec|
14
14
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
15
15
  spec.require_paths = ['lib']
16
16
 
17
- spec.add_runtime_dependency 'lita', '~> 4.4'
18
- spec.add_runtime_dependency 'roman-numerals', '~> 0.3'
17
+ spec.add_runtime_dependency 'lita', '~> 4.7'
19
18
 
20
19
  spec.add_development_dependency 'bundler', '~> 1.3'
21
- # spec.add_development_dependency 'pry-byebug' # I go inline.
20
+ # spec.add_development_dependency 'pry-byebug', '~> 3.1'
22
21
  spec.add_development_dependency 'rake', '~> 10.4'
23
22
  spec.add_development_dependency 'rack-test', '~> 0.6'
24
23
  spec.add_development_dependency 'rspec', '~> 3.0'
@@ -2,7 +2,6 @@ require 'spec_helper'
2
2
 
3
3
  describe Lita::Handlers::OnewheelKarma, lita_handler: true do
4
4
  def get_negative(num)
5
- # "a has #{RomanNumerals.to_roman(num)}💩 karma!"
6
5
  "a has -#{num} karma!"
7
6
  end
8
7
 
data/spec/spec_helper.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  require 'simplecov'
2
2
  require 'coveralls'
3
- SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
3
+ SimpleCov.formatters = [
4
4
  SimpleCov::Formatter::HTMLFormatter,
5
5
  Coveralls::SimpleCov::Formatter
6
6
  ]
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lita-onewheel-karma
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Kreps
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-16 00:00:00.000000000 Z
11
+ date: 2016-02-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: lita
@@ -16,28 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '4.4'
19
+ version: '4.7'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '4.4'
27
- - !ruby/object:Gem::Dependency
28
- name: roman-numerals
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - "~>"
32
- - !ruby/object:Gem::Version
33
- version: '0.3'
34
- type: :runtime
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - "~>"
39
- - !ruby/object:Gem::Version
40
- version: '0.3'
26
+ version: '4.7'
41
27
  - !ruby/object:Gem::Dependency
42
28
  name: bundler
43
29
  requirement: !ruby/object:Gem::Requirement
@@ -162,7 +148,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
162
148
  version: '0'
163
149
  requirements: []
164
150
  rubyforge_project:
165
- rubygems_version: 2.4.5
151
+ rubygems_version: 2.5.1
166
152
  signing_key:
167
153
  specification_version: 4
168
154
  summary: Karma shouldn't be bound by simple increment and decrement operations.