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 +4 -4
- data/fanforce-base.gemspec +1 -0
- data/lib/fanforce/base/utils.rb +2 -2
- data/lib/fanforce/base/version.rb +1 -1
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d60c1978f3eb770a4eb66d5285fca642dcdb2350
|
4
|
+
data.tar.gz: bf63651f334be66021fd4abb502777bb83f05cd6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: df1233309b35b236309e1e51632dc268956f4ad783325b235e5a38b4c67a8f70f020756c35d0bc5db9a4e990858db8c07c603cbfd3f090225e6353f52ed72748
|
7
|
+
data.tar.gz: e25ed21ae5ea5f8377d69954ac97c67a3c2ee9d8440146882dff6e594da730d9bd2fbf454458f6fd2f9bbdf90f7ee8c29bf3f1d9c90085e306be9415218ae53f
|
data/fanforce-base.gemspec
CHANGED
data/lib/fanforce/base/utils.rb
CHANGED
@@ -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
|
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
|
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
|
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.
|
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-
|
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
|