webpurify_api 0.1.5 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/README.md +2 -2
- data/lib/webpurify_api/image.rb +1 -1
- data/lib/webpurify_api/version.rb +1 -1
- data/webpurify_api.gemspec +10 -10
- metadata +11 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 274f2efaa2895002ed0c8d397258fdc2033b22aa8735e3d79a8156e4d3feada3
|
4
|
+
data.tar.gz: 5fd7f56fde6e4b77302b1d113916e87c3424133a4974b143013f334a95557e98
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: afdec82809033190236143105012dd94ec9fcd4a35fda5a2c118c44ee09f9c3dec74b8f68c56c462366478ad9dc7423ab13875e9a62d04d5c98083e733493915
|
7
|
+
data.tar.gz: b7412914f7704cc7fcd94f0ff91b26404844098e4822a805c31162b51b4ed440d303c08cf5bf29823b4868f3a1989777b5d07031a8217f96bfa9157c73c5d983
|
data/README.md
CHANGED
@@ -30,8 +30,8 @@ See API docs for more informations: http://www.webpurify.com/image-moderation/do
|
|
30
30
|
|
31
31
|
## Contributing
|
32
32
|
|
33
|
-
1. Fork it ( https://github.com/veilleperso/
|
33
|
+
1. Fork it ( https://github.com/veilleperso/webpurify_api/fork )
|
34
34
|
2. Create your feature branch (`git checkout -b my-new-feature`)
|
35
35
|
3. Commit your changes (`git commit -am 'Add some feature'`)
|
36
36
|
4. Push to the branch (`git push origin my-new-feature`)
|
37
|
-
5. Create a new Pull Request
|
37
|
+
5. Create a new Pull Request
|
data/lib/webpurify_api/image.rb
CHANGED
@@ -2,7 +2,7 @@ class WebpurifyApi::Image < WebpurifyApi::Base
|
|
2
2
|
def initialize(api_key: nil, live: nil)
|
3
3
|
super(api_key: api_key, live: live, endpoint: "https://im-api1.webpurify.com/services/rest/")
|
4
4
|
end
|
5
|
-
|
5
|
+
|
6
6
|
# callback url receive a get request with +imgid+ and +status+ parameters
|
7
7
|
# status: 1 = approved , status: 2 = declined
|
8
8
|
def check(url, custom_image_id: nil, callback: nil)
|
data/webpurify_api.gemspec
CHANGED
@@ -4,22 +4,22 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
require 'webpurify_api/version'
|
5
5
|
|
6
6
|
Gem::Specification.new do |spec|
|
7
|
-
spec.name =
|
7
|
+
spec.name = 'webpurify_api'
|
8
8
|
spec.version = WebpurifyApi::VERSION
|
9
|
-
spec.authors = [
|
10
|
-
spec.email = [
|
9
|
+
spec.authors = ['Olivier']
|
10
|
+
spec.email = ['olivier@veilleperso.com']
|
11
11
|
spec.summary = %q{Small wrapper aroud webpurify.com image moderation api.}
|
12
12
|
spec.description = %q{Wrapper for webpurify.com image moderation api, built for my own needs.}
|
13
|
-
spec.homepage =
|
14
|
-
spec.license =
|
13
|
+
spec.homepage = 'https://github.com/veilleperso/webpurify_api'
|
14
|
+
spec.license = 'MIT'
|
15
15
|
|
16
16
|
spec.files = `git ls-files -z`.split("\x0")
|
17
17
|
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
18
18
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
|
-
spec.require_paths = [
|
19
|
+
spec.require_paths = ['lib']
|
20
20
|
|
21
|
-
spec.add_development_dependency
|
22
|
-
spec.add_development_dependency
|
23
|
-
spec.add_runtime_dependency
|
24
|
-
spec.add_runtime_dependency
|
21
|
+
spec.add_development_dependency 'bundler', '~> 1.7'
|
22
|
+
spec.add_development_dependency 'rake', '~> 10.0'
|
23
|
+
spec.add_runtime_dependency 'rest-client', '~> 2.0.2'
|
24
|
+
spec.add_runtime_dependency 'activesupport', '>= 4.0', '<6.0.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.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Olivier
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-04-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -56,16 +56,22 @@ dependencies:
|
|
56
56
|
name: activesupport
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- - "
|
59
|
+
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: '4.0'
|
62
|
+
- - "<"
|
63
|
+
- !ruby/object:Gem::Version
|
64
|
+
version: 6.0.0
|
62
65
|
type: :runtime
|
63
66
|
prerelease: false
|
64
67
|
version_requirements: !ruby/object:Gem::Requirement
|
65
68
|
requirements:
|
66
|
-
- - "
|
69
|
+
- - ">="
|
67
70
|
- !ruby/object:Gem::Version
|
68
71
|
version: '4.0'
|
72
|
+
- - "<"
|
73
|
+
- !ruby/object:Gem::Version
|
74
|
+
version: 6.0.0
|
69
75
|
description: Wrapper for webpurify.com image moderation api, built for my own needs.
|
70
76
|
email:
|
71
77
|
- olivier@veilleperso.com
|
@@ -104,7 +110,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
104
110
|
version: '0'
|
105
111
|
requirements: []
|
106
112
|
rubyforge_project:
|
107
|
-
rubygems_version: 2.6.
|
113
|
+
rubygems_version: 2.7.6.2
|
108
114
|
signing_key:
|
109
115
|
specification_version: 4
|
110
116
|
summary: Small wrapper aroud webpurify.com image moderation api.
|