embulk-filter-amazon_rekognition 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: be495b0edfb083fe1529919d862ebf95317c6e70
4
- data.tar.gz: 7f02b004fa5cc4a4bce2bde54c6b21e0e60d43b5
3
+ metadata.gz: f28d48307703992bbe717bf05a71d50718dd0b4f
4
+ data.tar.gz: 515fcde601b7e9ac926639d3f6d4fdaafc1c4256
5
5
  SHA512:
6
- metadata.gz: cd786c0d0959240d6e08ea8a91c318069139b99f095bcea32e6329c590942555efc9f7d61035fa0e6a46b5eeb89e0a16065de6bc20b376a5385571e895f39d5a
7
- data.tar.gz: ae9f96da47ac79b3adf751a1202bf34fa4147e9d092bc34703deb208e162837c93898423e24090ba5bb30b8ae166fffe9800148654362719d2214e2e18ed18c8
6
+ metadata.gz: c091f265fd3c2a564f0672d28cf8eec2227d74df50c0f70042af4b9da7bd8566fe87946c3c6484d75ecfb7f410ce5004a7174bd52daf8512c587cf1a2215e178
7
+ data.tar.gz: 184cdce6852e17e9de86df0637d1ee2c2fd4bbd0a165838b42a6755fc1024ebba759e86b2c923fc486c0ab2d75f743fc4b36fc5332bfe75d8122f0aed7b00bf0
@@ -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-amazon_rekognition"
4
- spec.version = "0.1.0"
4
+ spec.version = "0.1.1"
5
5
  spec.authors = ["toyama0919"]
6
6
  spec.summary = "Amazon Rekognition filter plugin for Embulk"
7
7
  spec.description = "Amazon Rekognition"
@@ -14,7 +14,8 @@ Gem::Specification.new do |spec|
14
14
  spec.require_paths = ["lib"]
15
15
 
16
16
  spec.add_dependency 'aws-sdk-rekognition', ['1.0.0.rc3']
17
- spec.add_development_dependency 'embulk', ['>= 0.8.15']
17
+ spec.add_dependency 'addressable'
18
+ spec.add_development_dependency 'embulk', ['>= 0.8.16']
18
19
  spec.add_development_dependency 'bundler', ['>= 1.10.6']
19
20
  spec.add_development_dependency 'rake', ['>= 10.0']
20
21
  end
@@ -1,4 +1,5 @@
1
1
  require 'aws-sdk-rekognition'
2
+ require 'addressable/uri'
2
3
 
3
4
  module Embulk
4
5
  module Filter
@@ -82,7 +83,8 @@ module Embulk
82
83
  }
83
84
  }
84
85
  elsif image_path =~ /https?\:\/\//
85
- return { bytes: Net::HTTP.get_response(URI.parse(image_path)).body }
86
+ response = Net::HTTP.get_response(Addressable::URI.parse(image_path))
87
+ return { bytes: response.body }
86
88
  else
87
89
  return { bytes: File.read(image_path) }
88
90
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: embulk-filter-amazon_rekognition
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-02-01 00:00:00.000000000 Z
11
+ date: 2017-02-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement
@@ -29,7 +29,21 @@ dependencies:
29
29
  requirements:
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 0.8.15
32
+ version: '0'
33
+ name: addressable
34
+ prerelease: false
35
+ type: :runtime
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ requirement: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - ">="
45
+ - !ruby/object:Gem::Version
46
+ version: 0.8.16
33
47
  name: embulk
34
48
  prerelease: false
35
49
  type: :development
@@ -37,7 +51,7 @@ dependencies:
37
51
  requirements:
38
52
  - - ">="
39
53
  - !ruby/object:Gem::Version
40
- version: 0.8.15
54
+ version: 0.8.16
41
55
  - !ruby/object:Gem::Dependency
42
56
  requirement: !ruby/object:Gem::Requirement
43
57
  requirements: