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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2d98a6a1adfa615bfaac94a8c597bbeb713c2d20
4
- data.tar.gz: 3f17c63737db7fbe3179b4c10cf0e5fed92a300f
3
+ metadata.gz: e0dd4207649205c6d327832fc359f63f0d061bae
4
+ data.tar.gz: 38136171259e9ab6e0c924e458a8fca8816c9f81
5
5
  SHA512:
6
- metadata.gz: 8b8cf3817233fca55b3ce60f85ce701d7f3ea9972eded4cb96bd1b54a157b9c44c479077bfda40724de86d9f20906ba315ea79379f4cce624b9c2a1f77004fbb
7
- data.tar.gz: 9ff31682e7b15a8f90107d711cd5053efca40865a950891ec9de89d1c6f35a44903652311a00cd0f0c876baad09fec2f3119d590543715252f35db968f797102
6
+ metadata.gz: 17883c8b90fc9fb2ad7b71db2312b6c4e58718dba52f30976014d37efb718c71f8303bf49ac70ce4e2138d7db2dfcd76d9d12d333c96c8e663c5a86a898accd1
7
+ data.tar.gz: b5cb7e00521a42bc8e85ae2ac5508ed48da085206796a7d4d94a6423973345c8642592e07b3f030e2948015ebbc863bf19767ea3b999dd9d116ab0e8f6b3f687
@@ -1,5 +1,10 @@
1
1
  = MotionBundler CHANGELOG
2
2
 
3
+ == Version 0.2.1 (July 15, 2013)
4
+
5
+ * Being able to pass options[:headers] to HTTParty
6
+ * Corrected handling options[:body] within HTTParty
7
+
3
8
  == Version 0.2.0 (July 7, 2013)
4
9
 
5
10
  * Added (RubyMotion) OSX support
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.0
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 / PUT && payload
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
@@ -1,7 +1,7 @@
1
1
  module MotionBundler #:nodoc:
2
2
  MAJOR = 0
3
3
  MINOR = 2
4
- TINY = 0
4
+ TINY = 1
5
5
 
6
6
  VERSION = [MAJOR, MINOR, TINY].join(".")
7
7
  end
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: /Users/paulengel/Sources/motion-bundler
3
3
  specs:
4
- motion-bundler (0.2.0)
4
+ motion-bundler (0.2.1)
5
5
  thor
6
6
 
7
7
  PATH
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.0
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-07 00:00:00.000000000 Z
11
+ date: 2013-07-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest