shell2html 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +4 -0
  3. data/lib/shell2html.rb +1 -0
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4d6c4e48de66749123a5c827b3218283bbd9b4fe
4
- data.tar.gz: 129d95bdf1b584ea22cd8188aa451df71afe229b
3
+ metadata.gz: 6c8a7b42dba54e95fd2d1c81f6e3aa6b251249ba
4
+ data.tar.gz: 84ff4bcddb343a30fda105e1a12efc2c21cc20f7
5
5
  SHA512:
6
- metadata.gz: 7e018aa57b2bbbcdb0c42f18f2ecd5f22936275c925bbbec0113f308070a255f65bdda8e02b3c4f1640435e714f0ab2149f42064fc2760896118f01284ee5db9
7
- data.tar.gz: e202dcfcf2e47c190d20370bf60eda9387a5a4159c50f25260f9d617a0a3f528dc2da1c8da2020b80dbf69a2a856e60ffe1aacd13d07ddb39885e0bf431ffaf5
6
+ metadata.gz: 5f13e1b48c7f1c53ecf0e8c05764f1d9374c60d87febac822c350b50429f83a458ad93413cfc386e480e401f4e59b5077b7a5dd5f605d0cf6321765b55a36b84
7
+ data.tar.gz: ab14a63f6bda83942f914a2cbdc6afd216765d62e4668915746f461222a200fa8cdaef821373d90d7b40e889e4129239f3136de363fe0ca1ac2abaa22860ee55
data/CHANGELOG.md CHANGED
@@ -1,6 +1,10 @@
1
1
  Shell to HTML
2
2
  ==================
3
3
 
4
+ v0.0.4 - 2014-08-19
5
+ --------------------
6
+ - fix htmlentities encoding
7
+
4
8
  v0.0.3 - 2014-08-19
5
9
  --------------------
6
10
  - fix span closing
data/lib/shell2html.rb CHANGED
@@ -47,6 +47,7 @@ module Shell2html
47
47
 
48
48
  def to_html(text, inline = false)
49
49
  count = 0
50
+ text = CGI.escapeHTML(text)
50
51
  text.gsub!(/\n/, '<br>')
51
52
  text.gsub!(/ /, ' &nbsp;')
52
53
  text.split(27.chr).map do |e|
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shell2html
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - mose
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-08-18 00:00:00.000000000 Z
11
+ date: 2014-08-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler