cinch-evalso 0.1.3 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/cinch-evalso.gemspec +1 -1
- data/lib/cinch/plugins/evalso.rb +2 -0
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c8f1987378c1c54c56c22215f76e4bce7b842b5d
|
|
4
|
+
data.tar.gz: 6dcfb8e6307cf1de00adf4b36fbfec3b13168a2b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4dd3df8d050a910ed728af3890c25a90aa7f4f58ce22459fd9c0398394c62d79adae90a1d584fceb9d3e9a21d6a3cce9c0bfa3da639200a5e415c6ed3b564f25
|
|
7
|
+
data.tar.gz: 56d3a123e45a0c05971d4b237784c4bb4b18e3f4f5ddc9867041a1a9a23f93951aa095f3b00463e5212bee722b8309555c8fd8f75d737f45b06726fb98dbdb10
|
data/cinch-evalso.gemspec
CHANGED
|
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
|
4
4
|
|
|
5
5
|
Gem::Specification.new do |spec|
|
|
6
6
|
spec.name = "cinch-evalso"
|
|
7
|
-
spec.version = "0.1.
|
|
7
|
+
spec.version = "0.1.4"
|
|
8
8
|
spec.authors = ["Serguey Parkhomovsky"]
|
|
9
9
|
spec.email = ["xindigo@gmail.com"]
|
|
10
10
|
spec.homepage = "https://github.com/sparkhom/cinch-evalso"
|
data/lib/cinch/plugins/evalso.rb
CHANGED
|
@@ -41,6 +41,8 @@ module Cinch
|
|
|
41
41
|
output = res['stdout']
|
|
42
42
|
end
|
|
43
43
|
|
|
44
|
+
output = output.gsub(/\n/,' ')
|
|
45
|
+
|
|
44
46
|
# According to RFC 2812, the maximum line length on IRC is 510 characters, minus the carriage return
|
|
45
47
|
# In order to not spam the channel, if the output is greater than one line, convert it to a gist
|
|
46
48
|
if output.length > 510
|