fanforce-base 2.0.0.rc2 → 2.0.0.rc3

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: bbe372bfa44d6c848ce99be656c7c0769657a826
4
- data.tar.gz: 1b45b1709548ce7ac0da34095d35cd7a85ff8104
3
+ metadata.gz: d60c1978f3eb770a4eb66d5285fca642dcdb2350
4
+ data.tar.gz: bf63651f334be66021fd4abb502777bb83f05cd6
5
5
  SHA512:
6
- metadata.gz: 97411f97a0963e009d6464e5bff2f941553579c1fc3674935a028b2bb4abe25a7ed0013e991d9fa4e6c0dc8500e754f409701060191c90d2d18e57b9d032d5bd
7
- data.tar.gz: 70c02e77666ad1801ca5939d8313bfdb16f7aa20cd8ab3ecf34b89b8804bfd759d72233c2807cf97e3d0c7a9384c468723a74b7f4591420aeb1be6040c78fb58
6
+ metadata.gz: df1233309b35b236309e1e51632dc268956f4ad783325b235e5a38b4c67a8f70f020756c35d0bc5db9a4e990858db8c07c603cbfd3f090225e6353f52ed72748
7
+ data.tar.gz: e25ed21ae5ea5f8377d69954ac97c67a3c2ee9d8440146882dff6e594da730d9bd2fbf454458f6fd2f9bbdf90f7ee8c29bf3f1d9c90085e306be9415218ae53f
@@ -19,4 +19,5 @@ Gem::Specification.new do |gem|
19
19
 
20
20
  gem.add_runtime_dependency 'rack', '~> 1.5.2'
21
21
  gem.add_runtime_dependency 'addressable', '~> 2.3.6'
22
+ gem.add_runtime_dependency 'multi_json', '>= 1.7.2'
22
23
  end
@@ -108,9 +108,9 @@ module Fanforce::Base::Utils
108
108
  when :get
109
109
  "curl \"#{url}?#{to_query_string(req_params)}\""
110
110
  when :post
111
- "curl -X POST -d \"#{to_query_string(req_params)}\" #{url}"
111
+ "curl -X POST -H 'Content-type: application/json' -d '#{MultiJson.dump(req_params).gsub("'", %q(\\\'))}' #{url}"
112
112
  when :put
113
- "curl -X PUT -d \"#{to_query_string(req_params)}\" #{url.to_json}"
113
+ "curl -X PUT -H 'Content-type: application/json' -d '#{MultiJson.dump(req_params).gsub("'", %q(\\\'))}' #{url.to_json}"
114
114
  when :delete
115
115
  "curl --request DELETE \"#{url}?#{to_query_string(req_params)}\""
116
116
  when :options
@@ -1,5 +1,5 @@
1
1
  class Fanforce
2
2
  class Base
3
- VERSION = '2.0.0.rc2'
3
+ VERSION = '2.0.0.rc3'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fanforce-base
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0.rc2
4
+ version: 2.0.0.rc3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Caleb Clark
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-16 00:00:00.000000000 Z
11
+ date: 2015-06-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack
@@ -38,6 +38,20 @@ dependencies:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: 2.3.6
41
+ - !ruby/object:Gem::Dependency
42
+ name: multi_json
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: 1.7.2
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: 1.7.2
41
55
  description:
42
56
  email:
43
57
  - cclark@fanforce.com