webpurify_api 0.1.3 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/webpurify_api/base.rb +1 -1
- data/lib/webpurify_api/version.rb +1 -1
- data/webpurify_api.gemspec +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fec83736ff4e6650d54a8dec497840a1af883444
|
4
|
+
data.tar.gz: 6fbbdacdb317200faf5165e0584f9c5b37bc60ac
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3820378a378d5f87032164efb59255f2ddb46aee0d26881a2375cff2a8febdc7b9ce55119895fe7d54e7e00a9770bc081a3adbc043d47309fda42f7fcc4cebc7
|
7
|
+
data.tar.gz: 5369ac14e5a0d4badfdedac021c6b865878f3f706e47ac88eb8a9bea1a20504d55fef5bbd45dd750feee221340e453dab58d9bf9220b663ce62535c58e61b814
|
data/lib/webpurify_api/base.rb
CHANGED
@@ -72,7 +72,7 @@ class WebpurifyApi::Base
|
|
72
72
|
params ||= {}
|
73
73
|
params.reverse_merge!(format: 'json', api_key: self.api_key)
|
74
74
|
params[:method] = request_method(method)
|
75
|
-
query = params.select { |k, v| !v.blank? }.
|
75
|
+
query = params.select { |k, v| !v.blank? }.map { |k, v| "#{k}=#{CGI.escape(v.to_s)}"}.join("&")
|
76
76
|
"#{endpoint}?#{query}"
|
77
77
|
end
|
78
78
|
end
|
data/webpurify_api.gemspec
CHANGED
@@ -20,6 +20,6 @@ Gem::Specification.new do |spec|
|
|
20
20
|
|
21
21
|
spec.add_development_dependency "bundler", "~> 1.7"
|
22
22
|
spec.add_development_dependency "rake", "~> 10.0"
|
23
|
-
spec.add_runtime_dependency "rest-client", "~>
|
23
|
+
spec.add_runtime_dependency "rest-client", "~> 2.0.2"
|
24
24
|
spec.add_runtime_dependency "activesupport", '~> 4.0'
|
25
25
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: webpurify_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Olivier
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-01-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -44,14 +44,14 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
47
|
+
version: 2.0.2
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version:
|
54
|
+
version: 2.0.2
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: activesupport
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -104,7 +104,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
104
104
|
version: '0'
|
105
105
|
requirements: []
|
106
106
|
rubyforge_project:
|
107
|
-
rubygems_version: 2.
|
107
|
+
rubygems_version: 2.6.14.3
|
108
108
|
signing_key:
|
109
109
|
specification_version: 4
|
110
110
|
summary: Small wrapper aroud webpurify.com image moderation api.
|