fanforce 0.2.6 → 0.2.8
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +1 -1
- data/Gemfile.lock +6 -6
- data/fanforce.gemspec +1 -1
- data/lib/fanforce/utils.rb +5 -3
- data/lib/fanforce/version.rb +1 -1
- metadata +6 -6
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
fanforce (0.2.
|
4
|
+
fanforce (0.2.8)
|
5
5
|
multi_json (~> 1.3.6)
|
6
|
-
|
6
|
+
rack (> 1.0)
|
7
7
|
rest-client (~> 1.6.7)
|
8
8
|
|
9
9
|
GEM
|
@@ -11,7 +11,7 @@ GEM
|
|
11
11
|
specs:
|
12
12
|
mime-types (1.19)
|
13
13
|
multi_json (1.3.6)
|
14
|
-
|
14
|
+
rack (1.4.1)
|
15
15
|
rake (0.9.2.2)
|
16
16
|
rest-client (1.6.7)
|
17
17
|
mime-types (>= 1.16)
|
@@ -21,7 +21,7 @@ PLATFORMS
|
|
21
21
|
|
22
22
|
DEPENDENCIES
|
23
23
|
fanforce!
|
24
|
-
multi_json
|
25
|
-
|
24
|
+
multi_json (~> 1.3.6)
|
25
|
+
rack (> 1.0)
|
26
26
|
rake
|
27
|
-
rest-client
|
27
|
+
rest-client (~> 1.6.7)
|
data/fanforce.gemspec
CHANGED
@@ -20,5 +20,5 @@ Gem::Specification.new do |gem|
|
|
20
20
|
gem.add_development_dependency 'rake'
|
21
21
|
gem.add_runtime_dependency 'multi_json', '~> 1.3.6'
|
22
22
|
gem.add_runtime_dependency 'rest-client', '~> 1.6.7'
|
23
|
-
gem.add_runtime_dependency '
|
23
|
+
gem.add_runtime_dependency 'rack', '> 1.0'
|
24
24
|
end
|
data/lib/fanforce/utils.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
require 'uri'
|
2
|
-
require '
|
2
|
+
require 'rack/utils'
|
3
3
|
|
4
4
|
module Fanforce::Utils
|
5
5
|
def self.included(base) base.extend(self) end
|
@@ -55,8 +55,10 @@ module Fanforce::Utils
|
|
55
55
|
def parse_url(raw_url)
|
56
56
|
return if is_blank?(raw_url)
|
57
57
|
url = URI::parse(raw_url)
|
58
|
-
query_params =
|
59
|
-
|
58
|
+
query_params = Rack::Utils.parse_query(url.query).inject({}) do |result, (k,v)|
|
59
|
+
if k !~ /^ff_.+/
|
60
|
+
result[k] = v
|
61
|
+
end
|
60
62
|
result
|
61
63
|
end
|
62
64
|
query_string = to_query_string(Hash[query_params.sort]) if is_present?(query_params)
|
data/lib/fanforce/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fanforce
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.8
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -60,21 +60,21 @@ dependencies:
|
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: 1.6.7
|
62
62
|
- !ruby/object:Gem::Dependency
|
63
|
-
name:
|
63
|
+
name: rack
|
64
64
|
requirement: !ruby/object:Gem::Requirement
|
65
65
|
none: false
|
66
66
|
requirements:
|
67
|
-
- -
|
67
|
+
- - ! '>'
|
68
68
|
- !ruby/object:Gem::Version
|
69
|
-
version:
|
69
|
+
version: '1.0'
|
70
70
|
type: :runtime
|
71
71
|
prerelease: false
|
72
72
|
version_requirements: !ruby/object:Gem::Requirement
|
73
73
|
none: false
|
74
74
|
requirements:
|
75
|
-
- -
|
75
|
+
- - ! '>'
|
76
76
|
- !ruby/object:Gem::Version
|
77
|
-
version:
|
77
|
+
version: '1.0'
|
78
78
|
description: Ruby API wrapper that interfaces with all six Fanforce APIs.
|
79
79
|
email:
|
80
80
|
- cclark@fanforce.com
|