cinch-karma 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -36,7 +36,7 @@ Then in channel use the following commands:
36
36
 
37
37
  item++ || item--
38
38
 
39
- .karma item
39
+ !karma item
40
40
 
41
41
  ## Contributing
42
42
 
@@ -23,6 +23,6 @@ Gem::Specification.new do |gem|
23
23
  gem.add_development_dependency 'cinch-test'
24
24
 
25
25
  gem.add_dependency 'cinch', '~> 2.0.5'
26
- gem.add_dependency 'cinch-cooldown', '~> 1.0.0'
27
- gem.add_dependency 'cinch-storage', '~> 0.0.2'
26
+ gem.add_dependency 'cinch-cooldown', '~> 1.0.1'
27
+ gem.add_dependency 'cinch-storage', '~> 1.0.1'
28
28
  end
@@ -1,5 +1,5 @@
1
1
  require 'cinch'
2
- require 'cinch-cooldown'
2
+ require 'cinch/cooldown'
3
3
  require 'cinch-storage'
4
4
 
5
5
  module Cinch::Plugins
@@ -1,7 +1,7 @@
1
1
  module Cinch
2
2
  module Plugins
3
3
  class Karma
4
- VERSION = "1.0.0"
4
+ VERSION = "1.0.1"
5
5
  end
6
6
  end
7
7
  end
@@ -9,64 +9,64 @@ describe Cinch::Plugins::Karma do
9
9
 
10
10
  it 'should default to zero karma' do
11
11
  msg = make_message(@bot, '!karma foo', { :channel => '#foo' })
12
- get_replies(msg).first.should == "Karma for foo is 0"
12
+ get_replies(msg).first.text.should == "Karma for foo is 0"
13
13
  end
14
14
 
15
15
  it 'should allow users to add karma' do
16
16
  msg = make_message(@bot, 'foo++', { :channel => '#foo' })
17
17
  get_replies(msg)
18
18
  msg = make_message(@bot, '!karma foo', { :channel => '#foo' })
19
- get_replies(msg).first.should == "Karma for foo is 1"
19
+ get_replies(msg).first.text.should == "Karma for foo is 1"
20
20
  end
21
21
 
22
22
  it 'should allow users to add karma mid message' do
23
23
  msg = make_message(@bot, 'd asd asdasd foo++ dasdasd sadasd sad', { :channel => '#foo' })
24
24
  get_replies(msg)
25
25
  msg = make_message(@bot, '!karma foo', { :channel => '#foo' })
26
- get_replies(msg).first.should == "Karma for foo is 1"
26
+ get_replies(msg).first.text.should == "Karma for foo is 1"
27
27
  end
28
28
 
29
29
  it 'should allow users to add karma with items with spaces via ()' do
30
30
  msg = make_message(@bot, '(foo bar)++', { :channel => '#foo' })
31
31
  get_replies(msg)
32
32
  msg = make_message(@bot, '!karma foo bar', { :channel => '#foo' })
33
- get_replies(msg).first.should == "Karma for foo bar is 1"
33
+ get_replies(msg).first.text.should == "Karma for foo bar is 1"
34
34
  end
35
35
 
36
36
  it 'should allow users to remove karma' do
37
37
  msg = make_message(@bot, 'foo--', { :channel => '#foo' })
38
38
  get_replies(msg)
39
39
  msg = make_message(@bot, '!karma foo', { :channel => '#foo' })
40
- get_replies(msg).first.should == "Karma for foo is -1"
40
+ get_replies(msg).first.text.should == "Karma for foo is -1"
41
41
  end
42
42
 
43
43
  it 'should allow users to remove karma mid message' do
44
44
  msg = make_message(@bot, 'd asd asdasd foo-- dasdasd sadasd sad', { :channel => '#foo' })
45
45
  get_replies(msg)
46
46
  msg = make_message(@bot, '!karma foo', { :channel => '#foo' })
47
- get_replies(msg).first.should == "Karma for foo is -1"
47
+ get_replies(msg).first.text.should == "Karma for foo is -1"
48
48
  end
49
49
 
50
50
  it 'should allow users to remove karma with items with spaces via ()' do
51
51
  msg = make_message(@bot, '(foo bar)--', { :channel => '#foo' })
52
52
  get_replies(msg)
53
53
  msg = make_message(@bot, '!karma foo bar', { :channel => '#foo' })
54
- get_replies(msg).first.should == "Karma for foo bar is -1"
54
+ get_replies(msg).first.text.should == "Karma for foo bar is -1"
55
55
  end
56
56
  it 'should not allow users to check karam via pm' do
57
57
  msg = make_message(@bot, '!karma foo')
58
- get_replies(msg).first.should == "You must use that command in the main channel."
58
+ get_replies(msg).first.text.should == "You must use that command in the main channel."
59
59
  end
60
60
 
61
61
  it 'should not allow users to add karma via pm' do
62
62
  msg = make_message(@bot, 'foo++')
63
63
  msg = make_message(@bot, '!karma foo', { :channel => '#foo' })
64
- get_replies(msg).first.should == "Karma for foo is 0"
64
+ get_replies(msg).first.text.should == "Karma for foo is 0"
65
65
  end
66
66
 
67
67
  it 'should not allow users to remove karma via pm' do
68
68
  msg = make_message(@bot, 'foo--')
69
69
  msg = make_message(@bot, '!karma foo', { :channel => '#foo' })
70
- get_replies(msg).first.should == "Karma for foo is 0"
70
+ get_replies(msg).first.text.should == "Karma for foo is 0"
71
71
  end
72
72
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cinch-karma
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-07-01 00:00:00.000000000 Z
12
+ date: 2013-07-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake
@@ -98,7 +98,7 @@ dependencies:
98
98
  requirements:
99
99
  - - ~>
100
100
  - !ruby/object:Gem::Version
101
- version: 1.0.0
101
+ version: 1.0.1
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.0
109
+ version: 1.0.1
110
110
  - !ruby/object:Gem::Dependency
111
111
  name: cinch-storage
112
112
  requirement: !ruby/object:Gem::Requirement
@@ -114,7 +114,7 @@ dependencies:
114
114
  requirements:
115
115
  - - ~>
116
116
  - !ruby/object:Gem::Version
117
- version: 0.0.2
117
+ version: 1.0.1
118
118
  type: :runtime
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
@@ -122,7 +122,7 @@ dependencies:
122
122
  requirements:
123
123
  - - ~>
124
124
  - !ruby/object:Gem::Version
125
- version: 0.0.2
125
+ version: 1.0.1
126
126
  description: Cinch Plugin to track karma (item++ / item--) in the channel
127
127
  email:
128
128
  - bhaberer@gmail.com
@@ -162,11 +162,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
162
162
  version: '0'
163
163
  requirements: []
164
164
  rubyforge_project:
165
- rubygems_version: 1.8.24
165
+ rubygems_version: 1.8.25
166
166
  signing_key:
167
167
  specification_version: 3
168
168
  summary: Cinch Plugin to Track Karma
169
169
  test_files:
170
170
  - spec/cinch-karma_spec.rb
171
171
  - spec/spec_helper.rb
172
- has_rdoc: