webpurify_api 0.1.5 → 0.2.0

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
- SHA1:
3
- metadata.gz: fec83736ff4e6650d54a8dec497840a1af883444
4
- data.tar.gz: 6fbbdacdb317200faf5165e0584f9c5b37bc60ac
2
+ SHA256:
3
+ metadata.gz: 274f2efaa2895002ed0c8d397258fdc2033b22aa8735e3d79a8156e4d3feada3
4
+ data.tar.gz: 5fd7f56fde6e4b77302b1d113916e87c3424133a4974b143013f334a95557e98
5
5
  SHA512:
6
- metadata.gz: 3820378a378d5f87032164efb59255f2ddb46aee0d26881a2375cff2a8febdc7b9ce55119895fe7d54e7e00a9770bc081a3adbc043d47309fda42f7fcc4cebc7
7
- data.tar.gz: 5369ac14e5a0d4badfdedac021c6b865878f3f706e47ac88eb8a9bea1a20504d55fef5bbd45dd750feee221340e453dab58d9bf9220b663ce62535c58e61b814
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/webpurify_api_/fork )
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
@@ -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)
@@ -1,3 +1,3 @@
1
1
  module WebpurifyApi
2
- VERSION = "0.1.5"
2
+ VERSION = '0.2.0'
3
3
  end
@@ -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 = "webpurify_api"
7
+ spec.name = 'webpurify_api'
8
8
  spec.version = WebpurifyApi::VERSION
9
- spec.authors = ["Olivier"]
10
- spec.email = ["olivier@veilleperso.com"]
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 = "https://github.com/veilleperso/webpurify_api"
14
- spec.license = "MIT"
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 = ["lib"]
19
+ spec.require_paths = ['lib']
20
20
 
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'
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.1.5
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-01-24 00:00:00.000000000 Z
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.14.3
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.