embulk-input-http 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +6 -8
- data/README.md +66 -104
- data/build.gradle +55 -0
- data/classpath/commons-codec-1.9.jar +0 -0
- data/classpath/commons-logging-1.2.jar +0 -0
- data/classpath/embulk-input-http-0.0.4.jar +0 -0
- data/classpath/httpclient-4.4.jar +0 -0
- data/classpath/httpcore-4.4.jar +0 -0
- data/example/json-example.yml +17 -11
- data/gradle/wrapper/gradle-wrapper.jar +0 -0
- data/gradle/wrapper/gradle-wrapper.properties +6 -0
- data/gradlew +164 -0
- data/gradlew.bat +90 -0
- data/lib/embulk/input/http.rb +3 -196
- data/src/main/java/org/embulk/input/HttpInputPlugin.java +258 -0
- data/src/main/java/org/embulk/input/ParamsConfig.java +66 -0
- data/src/main/java/org/embulk/input/QueryConfig.java +125 -0
- data/src/test/java/org/embulk/input/TestHttpInputPlugin.java +5 -0
- metadata +36 -60
- data/Gemfile +0 -2
- data/Rakefile +0 -2
- data/embulk-input-http.gemspec +0 -23
- data/example/json-example-expand.yml +0 -21
metadata
CHANGED
@@ -1,77 +1,43 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: embulk-input-http
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Takuma kanari
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-03-
|
11
|
+
date: 2015-03-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - "~>"
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: '0.5'
|
20
|
-
type: :runtime
|
21
|
-
prerelease: false
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
23
|
-
requirements:
|
24
|
-
- - "~>"
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
version: '0.5'
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: bracecomp
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - "~>"
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: '0.1'
|
34
|
-
- - ">="
|
35
|
-
- !ruby/object:Gem::Version
|
36
|
-
version: 0.1.2
|
37
|
-
type: :runtime
|
38
|
-
prerelease: false
|
14
|
+
name: bundler
|
39
15
|
version_requirements: !ruby/object:Gem::Requirement
|
40
16
|
requirements:
|
41
|
-
- -
|
42
|
-
- !ruby/object:Gem::Version
|
43
|
-
version: '0.1'
|
44
|
-
- - ">="
|
17
|
+
- - ~>
|
45
18
|
- !ruby/object:Gem::Version
|
46
|
-
version:
|
47
|
-
- !ruby/object:Gem::Dependency
|
48
|
-
name: bundler
|
19
|
+
version: '1.0'
|
49
20
|
requirement: !ruby/object:Gem::Requirement
|
50
21
|
requirements:
|
51
|
-
- -
|
22
|
+
- - ~>
|
52
23
|
- !ruby/object:Gem::Version
|
53
24
|
version: '1.0'
|
54
|
-
type: :development
|
55
25
|
prerelease: false
|
26
|
+
type: :development
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
56
29
|
version_requirements: !ruby/object:Gem::Requirement
|
57
30
|
requirements:
|
58
|
-
- -
|
31
|
+
- - '>='
|
59
32
|
- !ruby/object:Gem::Version
|
60
|
-
version: '
|
61
|
-
- !ruby/object:Gem::Dependency
|
62
|
-
name: rake
|
33
|
+
version: '10.0'
|
63
34
|
requirement: !ruby/object:Gem::Requirement
|
64
35
|
requirements:
|
65
|
-
- -
|
36
|
+
- - '>='
|
66
37
|
- !ruby/object:Gem::Version
|
67
|
-
version: 0
|
68
|
-
type: :development
|
38
|
+
version: '10.0'
|
69
39
|
prerelease: false
|
70
|
-
|
71
|
-
requirements:
|
72
|
-
- - "~>"
|
73
|
-
- !ruby/object:Gem::Version
|
74
|
-
version: 0.9.2
|
40
|
+
type: :development
|
75
41
|
description: Fetch data via http
|
76
42
|
email:
|
77
43
|
- chemtrails.t@gmail.com
|
@@ -79,37 +45,47 @@ executables: []
|
|
79
45
|
extensions: []
|
80
46
|
extra_rdoc_files: []
|
81
47
|
files:
|
82
|
-
-
|
83
|
-
- Gemfile
|
48
|
+
- .gitignore
|
84
49
|
- LICENSE.txt
|
85
50
|
- README.md
|
86
|
-
-
|
87
|
-
- embulk-input-http.gemspec
|
88
|
-
- example/json-example-expand.yml
|
51
|
+
- build.gradle
|
89
52
|
- example/json-example.yml
|
53
|
+
- gradle/wrapper/gradle-wrapper.jar
|
54
|
+
- gradle/wrapper/gradle-wrapper.properties
|
55
|
+
- gradlew
|
56
|
+
- gradlew.bat
|
90
57
|
- lib/embulk/input/http.rb
|
58
|
+
- src/main/java/org/embulk/input/HttpInputPlugin.java
|
59
|
+
- src/main/java/org/embulk/input/ParamsConfig.java
|
60
|
+
- src/main/java/org/embulk/input/QueryConfig.java
|
61
|
+
- src/test/java/org/embulk/input/TestHttpInputPlugin.java
|
62
|
+
- classpath/embulk-input-http-0.0.4.jar
|
63
|
+
- classpath/httpclient-4.4.jar
|
64
|
+
- classpath/commons-logging-1.2.jar
|
65
|
+
- classpath/httpcore-4.4.jar
|
66
|
+
- classpath/commons-codec-1.9.jar
|
91
67
|
homepage: https://github.com/takumakanari/embulk-input-http
|
92
68
|
licenses:
|
93
69
|
- MIT
|
94
70
|
metadata: {}
|
95
|
-
post_install_message:
|
71
|
+
post_install_message:
|
96
72
|
rdoc_options: []
|
97
73
|
require_paths:
|
98
74
|
- lib
|
99
75
|
required_ruby_version: !ruby/object:Gem::Requirement
|
100
76
|
requirements:
|
101
|
-
- -
|
77
|
+
- - '>='
|
102
78
|
- !ruby/object:Gem::Version
|
103
79
|
version: '0'
|
104
80
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
105
81
|
requirements:
|
106
|
-
- -
|
82
|
+
- - '>='
|
107
83
|
- !ruby/object:Gem::Version
|
108
84
|
version: '0'
|
109
85
|
requirements: []
|
110
|
-
rubyforge_project:
|
111
|
-
rubygems_version: 2.
|
112
|
-
signing_key:
|
86
|
+
rubyforge_project:
|
87
|
+
rubygems_version: 2.1.9
|
88
|
+
signing_key:
|
113
89
|
specification_version: 4
|
114
90
|
summary: Embulk plugin for http input
|
115
91
|
test_files: []
|
data/Gemfile
DELETED
data/Rakefile
DELETED
data/embulk-input-http.gemspec
DELETED
@@ -1,23 +0,0 @@
|
|
1
|
-
# coding: utf-8
|
2
|
-
lib = File.expand_path("../lib", __FILE__)
|
3
|
-
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
-
|
5
|
-
Gem::Specification.new do |spec|
|
6
|
-
spec.name = "embulk-input-http"
|
7
|
-
spec.version = "0.0.3"
|
8
|
-
spec.authors = ["Takuma kanari"]
|
9
|
-
spec.email = ["chemtrails.t@gmail.com"]
|
10
|
-
spec.summary = %q{Embulk plugin for http input}
|
11
|
-
spec.description = %q{Fetch data via http}
|
12
|
-
spec.homepage = "https://github.com/takumakanari/embulk-input-http"
|
13
|
-
spec.license = "MIT"
|
14
|
-
|
15
|
-
spec.files = `git ls-files -z`.split("\x0")
|
16
|
-
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
17
|
-
spec.require_paths = ["lib"]
|
18
|
-
|
19
|
-
spec.add_dependency "jsonpath", "~> 0.5"
|
20
|
-
spec.add_dependency "bracecomp", "~> 0.1", ">= 0.1.2"
|
21
|
-
spec.add_development_dependency "bundler", "~> 1.0"
|
22
|
-
spec.add_development_dependency "rake", "~> 0.9.2"
|
23
|
-
end
|
@@ -1,21 +0,0 @@
|
|
1
|
-
exec: {}
|
2
|
-
in:
|
3
|
-
type: http
|
4
|
-
url: http://express.heartrails.com/api/json
|
5
|
-
params:
|
6
|
-
- {name: method, value: getStations}
|
7
|
-
- {name: x, value: "{130..135}.0", expand: true}
|
8
|
-
- {name: y, value: "{30..35}.0", expand: true}
|
9
|
-
schema:
|
10
|
-
- {name: name, type: string}
|
11
|
-
- {name: next, type: string}
|
12
|
-
- {name: prev, type: string}
|
13
|
-
- {name: distance, type: string}
|
14
|
-
- {name: lat, type: double, path: x}
|
15
|
-
- {name: lng, type: double, path: y}
|
16
|
-
- {name: line, type: string}
|
17
|
-
- {name: postal, type: string}
|
18
|
-
method: get
|
19
|
-
iterate: {type: json, path: $.response.station}
|
20
|
-
out: {type: stdout}
|
21
|
-
|