lita-irc 2.0.1 → 2.0.2

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: d008c249ad6a0aae3dc19bf9681693c9c6360a80
4
- data.tar.gz: 510f7748da4c91ff57c0a73eba7cb36904a84f14
3
+ metadata.gz: d880c7473143e247954e162e35574007985cf8c8
4
+ data.tar.gz: 7afdc7d8379ee1c9ed296b0683dbf77c6daacfcb
5
5
  SHA512:
6
- metadata.gz: 1ac5471086cb01b57eb79c0a047f0033f58bdbdcafb376c0ff683ca93f5798f3fab19ef3f35f23239a6b5f3198f0a5639accc2e856a55ee6a64d126b884b6e96
7
- data.tar.gz: bd2539f901083fbeaa6b7dde60b7a789f4f4143ac4c2c58b49e7351a97126655ccb1e96ca95678feb407306a76dc266f165b07d12ce07f039a382fcaac4d02ad
6
+ metadata.gz: 0bfc7801a52fa3717e74a07ed9dc165e277636a1e9aa7c0ab6069b920a5ada27ae96b873962a9bfb61869d09920766cc7e4bdbdfe6ecad886dd30bdbce84e714
7
+ data.tar.gz: 158464d21561dd9fd11e67e4d083a1cd072f17404e262eec96cd3a457f0a1c54717d86c6d672c532bec4d208561f1240621c60f4d8417b88cdedbba4ca353f7c
@@ -108,7 +108,7 @@ module Lita
108
108
  string_without_action = string.gsub(/^\/me\s+/i, "")
109
109
 
110
110
  if string == string_without_action
111
- target.msg(string)
111
+ target.send(string)
112
112
  else
113
113
  target.action(string_without_action)
114
114
  end
data/lita-irc.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = "lita-irc"
3
- spec.version = "2.0.1"
3
+ spec.version = "2.0.2"
4
4
  spec.authors = ["Jimmy Cuadra"]
5
5
  spec.email = ["jimmy@jimmycuadra.com"]
6
6
  spec.description = %q{An IRC adapter for Lita.}
@@ -72,8 +72,8 @@ describe Lita::Adapters::IRC, lita: true do
72
72
  source = instance_double("Lita::Source", room: "#foo", private_message?: false)
73
73
  channel = instance_double("Cinch::Channel")
74
74
  allow(Cinch::Channel).to receive(:new).with("#foo", subject.cinch).and_return(channel)
75
- expect(channel).to receive(:msg).with("Hello!")
76
- expect(channel).to receive(:msg).with("How are you?")
75
+ expect(channel).to receive(:send).with("Hello!")
76
+ expect(channel).to receive(:send).with("How are you?")
77
77
  subject.send_messages(source, ["Hello!", "How are you?"])
78
78
  end
79
79
 
@@ -90,8 +90,8 @@ describe Lita::Adapters::IRC, lita: true do
90
90
  source = instance_double("Lita::Source", user: user, private_message?: true)
91
91
  user = instance_double("Cinch::User")
92
92
  allow(Cinch::User).to receive(:new).with("Carl", subject.cinch).and_return(user)
93
- expect(user).to receive(:msg).with("Hello!")
94
- expect(user).to receive(:msg).with("How are you?")
93
+ expect(user).to receive(:send).with("Hello!")
94
+ expect(user).to receive(:send).with("How are you?")
95
95
  subject.send_messages(source, ["Hello!", "How are you?"])
96
96
  end
97
97
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lita-irc
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1
4
+ version: 2.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jimmy Cuadra