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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/cinch/plugins/eval_in.rb +1 -1
  3. metadata +15 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 396f1d7eb94096958f1efd233d3461f45e890c2a
4
- data.tar.gz: edc3f105f659152248d95e689cb97b59848c5b6f
3
+ metadata.gz: c88aa6a2987adf456ea94a8547bd31fe3cb73612
4
+ data.tar.gz: 80b132e6e24eb75b7aa22fdd211459c6d3eda4f8
5
5
  SHA512:
6
- metadata.gz: 9a1104e561a684f7075864cdbb01c46e9a16ca3a10f2ecc5459c4821ac00750d5b60b6c152813984bf72f3bc65c1dd8d4a88fe8d9ebb901a562528e253ea0c72
7
- data.tar.gz: 5866b1ce0986fdd10c158cf246641db02a7bfbc1d5f8a1773eb9d731541c95f36f7362bcae5057ad866eed401c926e6beba465686d504867d1f3ef1b70dfd7ad
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.1
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: []