embulk-filter-azure_computer_vision_api 0.1.0 → 0.1.1

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
2
  SHA1:
3
- metadata.gz: 86ec03fac808603ea5cd40ad2e7be014252d1964
4
- data.tar.gz: 26cb69047971f9a1ddef8b64a2f2d43cf9fa0c2e
3
+ metadata.gz: 98b01398459c1f1d4705c2c68f5bc2fcbf4281a4
4
+ data.tar.gz: 0c8b42fae867dc55d773ddc39e75ddb645c82e6c
5
5
  SHA512:
6
- metadata.gz: 4f2a2459e990a675dfe0714a6ef17fbf5d29c3654bcc7416e45f043dfde6a625daf4e680fe486b069e168a7e2d9805395590f44d2859ff99171a1b70ffbd9e29
7
- data.tar.gz: c3fff88c00c015faf52f5648fe479ac2f4bb0242ebeda93e3ae031d8f53f0715bd1a3962966a8720e00dd28440c19906bc21d0aac565758adbf3eb12cd750b8b
6
+ metadata.gz: 405d8753ea46331db091c613ad09fbe7d610ecd4f01a4a50690ca0d24291f03a2495203092a35883738fdc93b5277e6046bd9561d6515e2f675e2bb18b5a61a1
7
+ data.tar.gz: cb15cec9eff8532b013276eb177364f8488ba75296c7568824e23890d81a985d13f62249ece49b7e069827584ad0a97a563e8422af6515622aef48517199b75d
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- jruby-9.1.5.0
1
+ jruby-9.1.5.0
@@ -1,7 +1,7 @@
1
1
 
2
2
  Gem::Specification.new do |spec|
3
3
  spec.name = "embulk-filter-azure_computer_vision_api"
4
- spec.version = "0.1.0"
4
+ spec.version = "0.1.1"
5
5
  spec.authors = ["toyama0919"]
6
6
  spec.summary = "Azure Computer Vision Api filter plugin for Embulk"
7
7
  spec.description = "Azure Computer Vision Api"
@@ -14,7 +14,7 @@ Gem::Specification.new do |spec|
14
14
  spec.require_paths = ["lib"]
15
15
 
16
16
  spec.add_dependency 'jruby-openssl'
17
- spec.add_development_dependency 'embulk', ['>= 0.8.15']
17
+ spec.add_development_dependency 'embulk', ['>= 0.8.16']
18
18
  spec.add_development_dependency 'bundler', ['>= 1.10.6']
19
19
  spec.add_development_dependency 'rake', ['>= 10.0']
20
20
  end
@@ -16,6 +16,7 @@ module Embulk
16
16
 
17
17
  uri = URI.parse("#{ENDPOINT_PREFIX}/#{api_type}")
18
18
  uri.query = URI.encode_www_form(params)
19
+ @api_type = api_type
19
20
  @request = Net::HTTP::Post.new(uri.request_uri)
20
21
  @request['Ocp-Apim-Subscription-Key'] = subscription_key
21
22
  @http = Net::HTTP.new(uri.host, uri.port)
@@ -30,13 +31,12 @@ module Embulk
30
31
  @request['Content-Type'] = content_type
31
32
  @request.body = body
32
33
 
33
- Embulk.logger.info("processing => #{image_path}")
34
+ Embulk.logger.info("Computer Vision API #{@api_type} processing.. => #{image_path}")
34
35
 
35
36
  begin
36
37
  loop do
37
38
  response = @http.start do |http|
38
39
  response_body = http.request(@request).body
39
-
40
40
  Embulk.logger.debug("response body => #{response_body}")
41
41
  JSON.parse(response_body)
42
42
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: embulk-filter-azure_computer_vision_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - toyama0919
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-01-27 00:00:00.000000000 Z
11
+ date: 2017-02-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  requirements:
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 0.8.15
32
+ version: 0.8.16
33
33
  name: embulk
34
34
  prerelease: false
35
35
  type: :development
@@ -37,7 +37,7 @@ dependencies:
37
37
  requirements:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: 0.8.15
40
+ version: 0.8.16
41
41
  - !ruby/object:Gem::Dependency
42
42
  requirement: !ruby/object:Gem::Requirement
43
43
  requirements: