party_cc 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/party_cc/httparty.rb +1 -2
- data/lib/party_cc/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
OGEzM2Q2OTUyOTYzM2VkNjFjMzUyZGFiMGI2ZjI4Y2EwNmNmOGIxMA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YjhhNWIyOThiMDNiZWNkOTBkZDY2ZGY3OTVjM2UyMzBhM2E0NzhhMw==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MzUwNjgwMmQ0YzM3MDgxM2E5ZjlmZDJjY2E5MjgwZDU5MWMzNDdmZTM0MTU5
|
10
|
+
ZDcyYWI0NDZhNTMxMjA3Mzk4ZDlkM2MzMGQ4YmIxMDhhYmM3ZmFiYjFhMDg0
|
11
|
+
MzQzNDE2NmM5NTkyZjM5Yjg5NjVhZmU5ZWJlMzdmZWZkMmEwNzQ=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MDk5OGVlNzgxYWJlNzZmYTk0ODNhZDM3MmE0YTM4YjU5YWViYzhmMjYwNGE1
|
14
|
+
NWM5MjBkZTcwMzg0NjA5ZTcyZTM1NzA3YWQ0Njc4NjQ2MGIwY2NjYmYzOGYx
|
15
|
+
OGEwN2E0OGJhMTliOWZhMWRmMGFkMjAyN2YxMDQzODE2OWE2Zjc=
|
data/lib/party_cc/httparty.rb
CHANGED
@@ -33,7 +33,7 @@ module HTTParty
|
|
33
33
|
headers.gsub!(/(Content-Length|content-length)(:\s+)(\d+)/, '\1\2<CONTENTLENGTH>')
|
34
34
|
size_without_substituion = headers.bytesize + rsp.bytesize - 15
|
35
35
|
size = size_without_substituion + size_without_substituion.to_s.length
|
36
|
-
headers.gsub
|
36
|
+
headers.gsub("<CONTENTLENGTH>", size.to_s)
|
37
37
|
end
|
38
38
|
|
39
39
|
|
@@ -55,7 +55,6 @@ module HTTParty
|
|
55
55
|
prettied_rsp = decode_ruby(pp_body(rsp.response.body))
|
56
56
|
adjusted_headers = adjust_content_length_for_pretty_print prettied_rsp, rsp
|
57
57
|
|
58
|
-
binding.pry
|
59
58
|
File.write("stub_\#{base_file_name}", generate_stub(:#{method}, response_file_name, *args))
|
60
59
|
File.open(response_file_name, 'w') do |f|
|
61
60
|
f.write adjusted_headers
|
data/lib/party_cc/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: party_cc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- barberj
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-01-
|
11
|
+
date: 2014-01-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|