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 +4 -4
- data/.travis.yml +2 -3
- data/lib/lita/handlers/onewheel_karma.rb +5 -7
- data/lita-onewheel-karma.gemspec +3 -4
- data/spec/lita/handlers/onewheel_karma_spec.rb +0 -1
- data/spec/spec_helper.rb +1 -1
- metadata +5 -19
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 42ae1410e0bdde8cc5111a8c7ac1a0b03b1dc817
|
4
|
+
data.tar.gz: 6c3234a8e4c1235703a52945a872a3a6a59c4ab3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: daf1c3d4891a26c701a2d2ecb398486c0d34c83467d7837fb9729063f1b53e2b1b3815dea169f11b62ad1810271c9d1e6ab23abc041bb982da3bb5c2fdbed7b5
|
7
|
+
data.tar.gz: 5a15861f83f57f8ac9e0c95a755df442853cca4ddf99cff5c8f7eea525733ac6624a964d76c651ba3543d65066b7e4d323a1d8b436d125c2bf8468e035235b2f
|
data/.travis.yml
CHANGED
@@ -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]
|
data/lita-onewheel-karma.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |spec|
|
2
2
|
spec.name = 'lita-onewheel-karma'
|
3
|
-
spec.version = '1.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.
|
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'
|
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'
|
data/spec/spec_helper.rb
CHANGED
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.
|
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:
|
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.
|
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.
|
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.
|
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.
|