setsuzoku 0.10.8 → 0.10.9
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/Gemfile.lock +1 -1
- data/lib/setsuzoku/rspec/dynamic_spec_helper.rb +1 -10
- data/lib/setsuzoku/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: 6c8b08a243d276dfb01612b33007ee093766cccadfadce6ef915b7c4bf9b429d
|
|
4
|
+
data.tar.gz: c06e45bdb58caa6d110dadb67b77e962022b753e94bc694cf473cf658d75c56f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 83448fd5e96fc2b25d0b0532dbdea1671be0f3282fcae35ea8e2d8cf1f0e0ed7d1294411fc5d69e50dc8fe66ad40ee16c4df5fbeb74c6d1b948c7781de5d528c
|
|
7
|
+
data.tar.gz: 05d695d1ebae47ba2e82f116926c0bdad0acce7310b4d738c3d0287d07254392fb095ef87270ab826bad7aecc2f889b676e819d598d7ebedbfaaba29ddd8a5d3
|
data/Gemfile.lock
CHANGED
|
@@ -233,16 +233,7 @@ module Setsuzoku
|
|
|
233
233
|
url = propz[:url]
|
|
234
234
|
format = propz[:request_format].to_s.include?('x-www-form') || propz[:request_format] == :file ? :json : propz[:request_format]
|
|
235
235
|
begin
|
|
236
|
-
body =
|
|
237
|
-
request_with_files = JSON.parse(ERB.new(File.read("#{Dir.pwd}/spec/support/setsuzoku/#{stub_directory}/#{action_name}_request.json.erb")).result)
|
|
238
|
-
request_with_files['files'].each do |k, path|
|
|
239
|
-
request_with_files[k] = File.new(path)
|
|
240
|
-
end
|
|
241
|
-
request_with_files.delete('files')
|
|
242
|
-
request_with_files
|
|
243
|
-
else
|
|
244
|
-
File.read("#{Dir.pwd}/spec/support/setsuzoku/#{stub_directory}/#{action_name}_request.#{format}")
|
|
245
|
-
end
|
|
236
|
+
body = File.read("#{Dir.pwd}/spec/support/setsuzoku/#{stub_directory}/#{action_name}_request.#{format}")
|
|
246
237
|
body.squish!
|
|
247
238
|
case format
|
|
248
239
|
when :xml
|
data/lib/setsuzoku/version.rb
CHANGED