lita-twitter 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/lita/adapters/twitter/connector.rb +1 -2
- data/lib/lita/twitter/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 98ded67145466ca817d82f9fbcbe7b1af859f721
|
4
|
+
data.tar.gz: 4f8961ada9cf8932fdd14ecb4df7310ed4027008
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: df4ad9cb6d5ed9d4f680394019f0c667ff453e793d70cc5a54cbfe9b363f8296398d93a1250cc2cffee2a3b175bc671422104f9b3f9b1b8678d3560613593b82
|
7
|
+
data.tar.gz: 23f0e684e57b92cb611cccc65ec2e98e77e09543920821c2c6601e5e8e80ba02bc2f0e937669ccdc3d481b69d1518d5821c255474559e6029e437a8e4f5744bc
|
@@ -55,11 +55,10 @@ module Lita
|
|
55
55
|
end
|
56
56
|
|
57
57
|
def message(target, strings)
|
58
|
-
text = strings.join("\n")[0...
|
58
|
+
text = strings.join("\n")[0...120]
|
59
59
|
if target.private_message
|
60
60
|
rest_client.create_direct_message(target.user.name, text)
|
61
61
|
elsif target.user
|
62
|
-
text = "@#{target.user.name} #{text}"[0...140]
|
63
62
|
rest_client.update(text, in_reply_to_status_id: target.room)
|
64
63
|
else
|
65
64
|
rest_client.update(text)
|
data/lib/lita/twitter/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lita-twitter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- fukayatsu
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-05-
|
11
|
+
date: 2014-05-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: lita
|