motion-bundler 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.rdoc +5 -0
- data/VERSION +1 -1
- data/lib/motion-bundler/mocks/httparty.rb +7 -1
- data/lib/motion-bundler/version.rb +1 -1
- data/test/.gemfiles/simulator/test_setup.lock +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e0dd4207649205c6d327832fc359f63f0d061bae
|
4
|
+
data.tar.gz: 38136171259e9ab6e0c924e458a8fca8816c9f81
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 17883c8b90fc9fb2ad7b71db2312b6c4e58718dba52f30976014d37efb718c71f8303bf49ac70ce4e2138d7db2dfcd76d9d12d333c96c8e663c5a86a898accd1
|
7
|
+
data.tar.gz: b5cb7e00521a42bc8e85ae2ac5508ed48da085206796a7d4d94a6423973345c8642592e07b3f030e2948015ebbc863bf19767ea3b999dd9d116ab0e8f6b3f687
|
data/CHANGELOG.rdoc
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.1
|
@@ -41,7 +41,7 @@ private
|
|
41
41
|
method = method.to_s.upcase
|
42
42
|
|
43
43
|
if options[:body]
|
44
|
-
payload = payload_to_query_string(options[:body]).dataUsingEncoding(NSUTF8StringEncoding) if POST
|
44
|
+
payload = payload_to_query_string(options[:body]).dataUsingEncoding(NSUTF8StringEncoding) if %w(POST PUT).include?(method) && payload
|
45
45
|
end
|
46
46
|
|
47
47
|
if payload && method == "GET"
|
@@ -57,6 +57,12 @@ private
|
|
57
57
|
request.HTTPMethod = method
|
58
58
|
end
|
59
59
|
|
60
|
+
if options[:headers]
|
61
|
+
options[:headers].each do |key, value|
|
62
|
+
request.setValue value.to_s, forHTTPHeaderField: key.to_s
|
63
|
+
end
|
64
|
+
end
|
65
|
+
|
60
66
|
if payload
|
61
67
|
request.HTTPBody = payload
|
62
68
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: motion-bundler
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Paul Engel
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-07-
|
11
|
+
date: 2013-07-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: minitest
|