erb_safe_ext 1.0.1 → 1.0.2

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +3 -3
  3. data/erb_safe_ext.gemspec +2 -2
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4bbe369982d016cef9f8a980d1f727714e0c6218
4
- data.tar.gz: 0d289e416f94930154528c83498f7d6121be984c
3
+ metadata.gz: eca8b6fb8317a63a61c4e899fefd90dc0a755dbc
4
+ data.tar.gz: 5a3d952dbf524dfab0789411a6880996a6cf1edb
5
5
  SHA512:
6
- metadata.gz: b78bdf731aea95181a12eaa27200b58718ffad9e5a081705fa51dc22001b0c4fe2b52ee0a70152703a90c09ee8d2104fdb3bbc7036b196437baed53aa1b3c337
7
- data.tar.gz: 133870f896dc7ae33daf71229e93c26d8136377c7b81c86773064462d2799bc4a5cdf74f2d58b4fa350594d3b6e678a5a68e3cb2ba2314ae81c181e29f95c1d4
6
+ metadata.gz: 580faa34fbcdabdbeee88be4eecb7059841ec70cbfde124b0aa7fa787a8b35694e04e2509bbe57187a58e4bec1c5f049bb00350c05bf2792a728ed8a9778bf25
7
+ data.tar.gz: c030adfb3b5009ad385e3b6492ebedfcceb221c72f0710f0157cb9485e92cfc7c87d3b10c8dc2b5f3908392f35ffae6cee318ac26c299faebedb7f1744a47d0f
data/README.md CHANGED
@@ -12,12 +12,12 @@ $ gem install erb_safe_ext
12
12
 
13
13
  ``` erb
14
14
  <%= "<script>alert('safety:)');</script>" %>
15
- ## => &lt;script&gt;alert(&#x27;safety:)&#x27;);&lt;&#x2F;script&gt;
15
+ ## &lt;script&gt;alert(&#39;safety:)&#39;);&lt;/script&gt;
16
16
  ```
17
17
 
18
18
  it will default wrap the dangerous code with `ERB::Util.html_escape(code)`
19
19
 
20
- works fine with ruby2.1.
20
+ works fine with ruby2.0.
21
21
 
22
22
  I didn't test this code with other version ruby, you may test yourself.
23
23
 
@@ -25,7 +25,7 @@ the `<%==` is the backup of ERB's original `<%=` function.
25
25
 
26
26
  ``` erb
27
27
  <%== "<script>alert('danger!');</script>" %>
28
- ## => <script>alert('danger!');</script>
28
+ ## <script>alert('danger!');</script>
29
29
  ```
30
30
 
31
31
 
data/erb_safe_ext.gemspec CHANGED
@@ -5,12 +5,12 @@ require 'sinarey_cache/version'
5
5
 
6
6
  Gem::Specification.new do |spec|
7
7
  spec.name = "erb_safe_ext"
8
- spec.version = "1.0.1"
8
+ spec.version = "1.0.2"
9
9
  spec.authors = ["Jeffrey"]
10
10
  spec.email = ["jeffrey6052@163.com"]
11
11
  spec.description = "make ERB default html safe.protect from XSS attack."
12
12
  spec.summary = "wrap the dangerous code with ERB::Util.html_escape()"
13
- spec.homepage = ""
13
+ spec.homepage = "https://github.com/maymay25/erb_safe_ext"
14
14
  spec.license = "MIT"
15
15
 
16
16
  spec.files = ['lib/erb_safe_ext.rb',
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: erb_safe_ext
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeffrey
@@ -21,7 +21,7 @@ files:
21
21
  - test/erb_safe_test.rb
22
22
  - erb_safe_ext.gemspec
23
23
  - README.md
24
- homepage: ''
24
+ homepage: https://github.com/maymay25/erb_safe_ext
25
25
  licenses:
26
26
  - MIT
27
27
  metadata: {}