cinch-eval-in 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/cinch/plugins/eval_in.rb +1 -1
- metadata +15 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c88aa6a2987adf456ea94a8547bd31fe3cb73612
|
4
|
+
data.tar.gz: 80b132e6e24eb75b7aa22fdd211459c6d3eda4f8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4b0ab5f799c7706a1656b47d4ba3d65513a615d1299886fd8477c834a8e6d6976e8c69711bec444671202c83cfcf3e1e0e055060c4f844aa81a42f20641d46a2
|
7
|
+
data.tar.gz: 84836b3d3d1c2607c389cd3033f55017099b2e706e54b7c6f3a462c27b8b4b3785510d37ecc857ab01c57df829a814030199fde8570f08ff83d18503ef1f2ca0
|
@@ -63,7 +63,7 @@ module Cinch::Plugins
|
|
63
63
|
|
64
64
|
if output_title = body.at_xpath("*//h2[text()='Program Output']")
|
65
65
|
output = output_title.next_element.text
|
66
|
-
first_line = output.each_line.first.chomp
|
66
|
+
first_line = (output.each_line.first || "").chomp
|
67
67
|
needs_ellipsis = output.each_line.count > 1 ||
|
68
68
|
first_line.length > MaxLength
|
69
69
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cinch-eval-in
|
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
|
- Mon ouie
|
@@ -24,6 +24,20 @@ dependencies:
|
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '2.1'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: nokogiri
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '1.6'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '1.6'
|
27
41
|
description: A Cinch plug-in to evaluate Ruby code on https://eval.in.
|
28
42
|
email: mon.ouie@gmail.com
|
29
43
|
executables: []
|