instructions_list 1.0.9.1.beta → 1.0.9.2.beta
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/lib/instructions_list/version.rb +1 -1
- data/lib/instructions_list.rb +3 -2
- 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: 8d71864917b8f3b4e84ac469f91842e0d6edbf60
|
4
|
+
data.tar.gz: e3482e7b347183fbdcd40b67870c73b8013c21b1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: afc4b8857164067f4bd550881bd33b1077c2083c7073904f9f6d1f94db0c7a521cbc178a979cdf570d07a90f40ee9edfe0710b73bf9ceb9b9bca9163ebab97ad
|
7
|
+
data.tar.gz: 7883911532f6e389166683ccfa14b378152369baab93bec71598f56a07d27f8b70b22955c866ff8ec3cb19b355f9a7c859c6128c4c0aae93cc7e3d0a62d2b05a
|
data/lib/instructions_list.rb
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
require "open-uri"
|
2
|
+
require 'cgi'
|
2
3
|
require "json"
|
3
4
|
require_relative "instructions_list/version"
|
4
5
|
|
@@ -118,7 +119,7 @@ module InstructionsList
|
|
118
119
|
end
|
119
120
|
def write content
|
120
121
|
File.open("#{@cache}/#{reverse_command_name(@file_name)}", "w") do |file|
|
121
|
-
file.puts
|
122
|
+
file.puts CGI.unescapeHTML(content)
|
122
123
|
end
|
123
124
|
end
|
124
125
|
end
|
@@ -131,7 +132,7 @@ module InstructionsList
|
|
131
132
|
def write content,directory
|
132
133
|
`mkdir -p #{@cache}/#{directory}`
|
133
134
|
File.open("#{@cache}/#{directory}/#{reverse_command_name(@file_name)}", "w") do |file|
|
134
|
-
file.puts content
|
135
|
+
file.puts CGI.unescapeHTML(content)
|
135
136
|
end
|
136
137
|
end
|
137
138
|
end
|