itriagetestrail 1.0.33 → 1.0.34
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/itriagetestrail/testrail_binding.rb +4 -3
- data/lib/itriagetestrail/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1e948f5a1e9aeb7b5cf4293f4682a4b63096111071f1cdd9b71a581dfc84fa80
|
4
|
+
data.tar.gz: 83bce3c8e03d6179f3576c9e2f1fbc5c86763f0c9ede44693ace517fadb8eac6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '09a4ab8392c1851106777af2d779912015e78464026982f1257ba1a3b6dde63c11c57ae3428d2a4623ab74265033036b78c6520800585d57b3ee4fb240c43262'
|
7
|
+
data.tar.gz: 3caba5ab0f336753e028ecd4f814de09c6dc6661b90c66756fe2529f04e9ef873f906c434ac5976a6fd39a2b5d95f3dd5efbdc9942b69a7d71e136ed75c89c44
|
@@ -148,10 +148,11 @@ module TestRail
|
|
148
148
|
end
|
149
149
|
|
150
150
|
def cache_to_file(url, content)
|
151
|
+
payload = {'response' => content}
|
151
152
|
Dir.mkdir('./tmp') unless File.exist?('./tmp')
|
152
153
|
filename = sanitize_filename(url)
|
153
154
|
file = File.open("./tmp/#{filename}", 'w')
|
154
|
-
file.write(
|
155
|
+
file.write(payload.to_json)
|
155
156
|
file.close
|
156
157
|
end
|
157
158
|
|
@@ -159,9 +160,9 @@ module TestRail
|
|
159
160
|
filename = sanitize_filename(url)
|
160
161
|
return unless File.exist?("./tmp/#{filename}")
|
161
162
|
file = File.open("./tmp/#{filename}", 'r')
|
162
|
-
content = JSON.parse(file.read, :symbolize_names => true)
|
163
|
+
content = JSON.parse(file.read, :symbolize_names => true, :quirks_mode => true)
|
163
164
|
file.close
|
164
|
-
content
|
165
|
+
content[:response]
|
165
166
|
end
|
166
167
|
|
167
168
|
def sanitize_filename(filename)
|