embulk-input-http 0.0.13 → 0.0.14
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/classpath/{embulk-input-http-0.0.13.jar → embulk-input-http-0.0.14.jar} +0 -0
- data/classpath/{httpclient-4.4.jar → httpclient-4.5.jar} +0 -0
- data/classpath/{httpcore-4.4.jar → httpcore-4.4.1.jar} +0 -0
- metadata +5 -28
- data/.gitignore +0 -8
- data/LICENSE.txt +0 -21
- data/README.md +0 -188
- data/build.gradle +0 -76
- data/config/checkstyle/checkstyle.xml +0 -128
- data/config/checkstyle/default.xml +0 -108
- data/example/json-example.yml +0 -21
- data/gradle/wrapper/gradle-wrapper.jar +0 -0
- data/gradle/wrapper/gradle-wrapper.properties +0 -6
- data/gradlew +0 -164
- data/gradlew.bat +0 -90
- data/lib/embulk/input/http.rb +0 -3
- data/settings.gradle +0 -1
- data/src/main/java/org/embulk/input/BasicAuthConfig.java +0 -39
- data/src/main/java/org/embulk/input/HttpInputPlugin.java +0 -332
- data/src/main/java/org/embulk/input/PagerConfig.java +0 -86
- data/src/main/java/org/embulk/input/ParamsConfig.java +0 -82
- data/src/main/java/org/embulk/input/QueryConfig.java +0 -171
- data/src/main/java/org/embulk/input/RetryableHandler.java +0 -90
- data/src/test/java/org/embulk/input/TestHttpInputPlugin.java +0 -5
- data/src/test/java/org/embulk/input/TestPagerConfig.java +0 -78
- data/src/test/java/org/embulk/input/TestParamsConfig.java +0 -105
- data/src/test/java/org/embulk/input/TestQueryConfig.java +0 -125
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d62090084b1b3aef2a94e38c98cc94da327c2a05
|
4
|
+
data.tar.gz: c24c27bbcecc3348fd5b99a374d30bda5e9ea343
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4b9ea2a9626e1c27626d2ef6b3990318021fea78f2eb40889e5f27c90f904fa76e8632146f467963e9f7f345e79d516155d2687f82d9fcb6a3095bf6a91aae6a
|
7
|
+
data.tar.gz: d1eb0265ffd0c122f0adc3dcc6c4d5560e162339176d682033df6d90f0b6abb55c169b5a95f25ce862fdf8b6bcdb35aebd05332e04aa54731e840999a0d18cc5
|
Binary file
|
Binary file
|
Binary file
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
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.14
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Takuma kanari
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-03-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -45,34 +45,11 @@ executables: []
|
|
45
45
|
extensions: []
|
46
46
|
extra_rdoc_files: []
|
47
47
|
files:
|
48
|
-
- .gitignore
|
49
|
-
- LICENSE.txt
|
50
|
-
- README.md
|
51
|
-
- build.gradle
|
52
|
-
- config/checkstyle/checkstyle.xml
|
53
|
-
- config/checkstyle/default.xml
|
54
|
-
- example/json-example.yml
|
55
|
-
- gradle/wrapper/gradle-wrapper.jar
|
56
|
-
- gradle/wrapper/gradle-wrapper.properties
|
57
|
-
- gradlew
|
58
|
-
- gradlew.bat
|
59
|
-
- lib/embulk/input/http.rb
|
60
|
-
- settings.gradle
|
61
|
-
- src/main/java/org/embulk/input/BasicAuthConfig.java
|
62
|
-
- src/main/java/org/embulk/input/HttpInputPlugin.java
|
63
|
-
- src/main/java/org/embulk/input/PagerConfig.java
|
64
|
-
- src/main/java/org/embulk/input/ParamsConfig.java
|
65
|
-
- src/main/java/org/embulk/input/QueryConfig.java
|
66
|
-
- src/main/java/org/embulk/input/RetryableHandler.java
|
67
|
-
- src/test/java/org/embulk/input/TestHttpInputPlugin.java
|
68
|
-
- src/test/java/org/embulk/input/TestPagerConfig.java
|
69
|
-
- src/test/java/org/embulk/input/TestParamsConfig.java
|
70
|
-
- src/test/java/org/embulk/input/TestQueryConfig.java
|
71
48
|
- classpath/commons-codec-1.9.jar
|
72
49
|
- classpath/commons-logging-1.2.jar
|
73
|
-
- classpath/embulk-input-http-0.0.
|
74
|
-
- classpath/httpclient-4.
|
75
|
-
- classpath/httpcore-4.4.jar
|
50
|
+
- classpath/embulk-input-http-0.0.14.jar
|
51
|
+
- classpath/httpclient-4.5.jar
|
52
|
+
- classpath/httpcore-4.4.1.jar
|
76
53
|
homepage: https://github.com/takumakanari/embulk-input-http
|
77
54
|
licenses:
|
78
55
|
- MIT
|
data/.gitignore
DELETED
data/LICENSE.txt
DELETED
@@ -1,21 +0,0 @@
|
|
1
|
-
The MIT License (MIT)
|
2
|
-
|
3
|
-
Copyright (c) 2015 TODO: Write your name
|
4
|
-
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
7
|
-
in the Software without restriction, including without limitation the rights
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
10
|
-
furnished to do so, subject to the following conditions:
|
11
|
-
|
12
|
-
The above copyright notice and this permission notice shall be included in
|
13
|
-
all copies or substantial portions of the Software.
|
14
|
-
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
-
THE SOFTWARE.
|
data/README.md
DELETED
@@ -1,188 +0,0 @@
|
|
1
|
-
# Embulk::Input::Http
|
2
|
-
|
3
|
-
Input HTTP plugin for [Embulk](https://github.com/embulk/embulk).
|
4
|
-
Fetch data via HTTP.
|
5
|
-
|
6
|
-
|
7
|
-
## Installation
|
8
|
-
|
9
|
-
Run this command with your embulk binary.
|
10
|
-
|
11
|
-
```ruby
|
12
|
-
$ embulk gem install embulk-input-http
|
13
|
-
```
|
14
|
-
|
15
|
-
## Usage
|
16
|
-
|
17
|
-
Specify in your config.yml file.
|
18
|
-
|
19
|
-
```yaml
|
20
|
-
in:
|
21
|
-
type: http
|
22
|
-
url: http://express.heartrails.com/api/json
|
23
|
-
params:
|
24
|
-
- {name: method, value: getStations}
|
25
|
-
- {name: x, value: 135.0}
|
26
|
-
- {name: y, value: "{30..35}.0", expand: true}
|
27
|
-
method: get
|
28
|
-
```
|
29
|
-
|
30
|
-
- **type**: specify this plugin as *http*
|
31
|
-
- **url**: base url something like api (required)
|
32
|
-
- **params**: pair of name/value to specify query parameter (optional)
|
33
|
-
- **pager**: configuration to parameterize paging (optional)
|
34
|
-
- **method**: http method, get is used by default (optional)
|
35
|
-
- **user_agent**: the usrr agent to specify request header (optional)
|
36
|
-
- **request_headers**: the extra request headers as key-value (optional)
|
37
|
-
- **charset**: charset to specify request header (optional, utf-8 is used by default)
|
38
|
-
- **basic_auth**: username/password for basic authentication (optional)
|
39
|
-
- **open_timeout**: timeout msec to open connection (optional, 2000 is used by default)
|
40
|
-
- **read_timeout**: timeout msec to read content via http (optional, 10000 is used by default)
|
41
|
-
- **max_retries**: max number of retry request if failed (optional, 5 is used by default)
|
42
|
-
- **retry_interval**: interval msec to retry max (optional, 10000 is used by default)
|
43
|
-
- **request_interval**: wait msec before each requests (optional, 0 is used by default)
|
44
|
-
- **interval\_includes\_response\_time**: yes/no, if yes and you set *request_interval*, response time will be included in interval for next request (optional, no is used by default)
|
45
|
-
|
46
|
-
### Brace expansion style in 'params'
|
47
|
-
|
48
|
-
In *params* section, you can specify also multilple requests by using **values** or **brace expansion style** with set **expand** true.
|
49
|
-
|
50
|
-
The configuration using **values** is as below:
|
51
|
-
|
52
|
-
```yaml
|
53
|
-
params:
|
54
|
-
- {name: id, values: [5, 4, 3, 2, 1]}
|
55
|
-
- {name: name, values: ["John", "Paul", "George", "Ringo"], expand: true}
|
56
|
-
```
|
57
|
-
|
58
|
-
Also You can rewrite this configuration by using **brace expansion style** like as follows:
|
59
|
-
|
60
|
-
|
61
|
-
```yaml
|
62
|
-
params:
|
63
|
-
- {name: id, value "{5,4,3,2,1}", expand: true}
|
64
|
-
- {name: name, value "{John,Paul,George,Ringo}", expand: true}
|
65
|
-
```
|
66
|
-
|
67
|
-
Then all patterns of query will be called in a defferent request.
|
68
|
-
|
69
|
-
By default, **expand** is false. In this case, all values will be multiple params in one request.
|
70
|
-
|
71
|
-
### Use basic authentication
|
72
|
-
|
73
|
-
You can specify username/password for basic authentication.
|
74
|
-
|
75
|
-
```yaml
|
76
|
-
basic_auth:
|
77
|
-
- user: MyUser
|
78
|
-
- password: MyPassword
|
79
|
-
```
|
80
|
-
|
81
|
-
### Paging by 'pager'
|
82
|
-
|
83
|
-
You can configure request parameters for paging requests, like as follows:
|
84
|
-
|
85
|
-
```yaml
|
86
|
-
in:
|
87
|
-
type: http
|
88
|
-
url: http://express.heartrails.com/api/json
|
89
|
-
pager: {from_param: from, to_param: to, start: 1, step: 1000, pages: 10}
|
90
|
-
```
|
91
|
-
|
92
|
-
Properties of pager is as below:
|
93
|
-
|
94
|
-
- **from_param**: parameter name of 'from' index
|
95
|
-
- **to_param**: parameter name of 'to' index (optional)
|
96
|
-
- **pages**: total page size
|
97
|
-
- **start**: first index number (optional, 0 is used by default)
|
98
|
-
- **step**: size to increment (optional, 1 is used by default)
|
99
|
-
|
100
|
-
#### Examples of 'pager'
|
101
|
-
|
102
|
-
#### Conbination of from/to parameters.
|
103
|
-
|
104
|
-
```yaml
|
105
|
-
pager: {from_param: from, to_param: to, pages: 4, start: 1, step: 10}
|
106
|
-
```
|
107
|
-
|
108
|
-
the request parameters will be:
|
109
|
-
|
110
|
-
1. ?from=1&to=10
|
111
|
-
2. ?from=11&to=20
|
112
|
-
3. ?from=21&to=30
|
113
|
-
4. ?from=31&to=40
|
114
|
-
|
115
|
-
|
116
|
-
##### Batch request with incremental page parameter.
|
117
|
-
|
118
|
-
```yaml
|
119
|
-
params:
|
120
|
-
- {name: size, value: 100}
|
121
|
-
pager: {from_param: page, pages: 4, start: 1, step: 1}
|
122
|
-
```
|
123
|
-
|
124
|
-
the request parameters will be:
|
125
|
-
|
126
|
-
1. ?page=1&size=100
|
127
|
-
2. ?page=2&size=100
|
128
|
-
3. ?page=3&size=100
|
129
|
-
4. ?page=4&size=100
|
130
|
-
|
131
|
-
|
132
|
-
## Example
|
133
|
-
|
134
|
-
### Fetch json via http api
|
135
|
-
|
136
|
-
```yaml
|
137
|
-
in:
|
138
|
-
type: http
|
139
|
-
url: http://express.heartrails.com/api/json
|
140
|
-
params:
|
141
|
-
- {name: method, value: getStations}
|
142
|
-
- {name: x, value: 135.0}
|
143
|
-
- {name: y, value: "{35,34,33,32,31}.0", expand: true}
|
144
|
-
request_headers: {X-Some-Key1: some-value1, X-Some-key2: some-value2}
|
145
|
-
parser:
|
146
|
-
type: json
|
147
|
-
root: $.response.station
|
148
|
-
schema:
|
149
|
-
- {name: name, type: string}
|
150
|
-
- {name: next, type: string}
|
151
|
-
- {name: prev, type: string}
|
152
|
-
- {name: distance, type: string}
|
153
|
-
- {name: lat, type: double, path: x}
|
154
|
-
- {name: lng, type: double, path: y}
|
155
|
-
- {name: line, type: string}
|
156
|
-
- {name: postal, type: string}
|
157
|
-
```
|
158
|
-
|
159
|
-
### Fetch csv
|
160
|
-
|
161
|
-
```yaml
|
162
|
-
in:
|
163
|
-
type: http
|
164
|
-
url: http://192.168.33.10:8085/sample.csv
|
165
|
-
- {name: y, value: "{35,34,33,32,31}.0", expand: true}
|
166
|
-
parser:
|
167
|
-
charset: UTF-8
|
168
|
-
newline: CRLF
|
169
|
-
type: csv
|
170
|
-
delimiter: ','
|
171
|
-
quote: '"'
|
172
|
-
escape: ''
|
173
|
-
skip_header_lines: 1
|
174
|
-
columns:
|
175
|
-
- {name: id, type: long}
|
176
|
-
- {name: account, type: long}
|
177
|
-
- {name: time, type: timestamp, format: '%Y-%m-%d %H:%M:%S'}
|
178
|
-
- {name: purchase, type: timestamp, format: '%Y%m%d'}
|
179
|
-
- {name: comment, type: string}
|
180
|
-
```
|
181
|
-
|
182
|
-
## TODO
|
183
|
-
- HTTP-proxy
|
184
|
-
- Guess
|
185
|
-
|
186
|
-
## Patch
|
187
|
-
|
188
|
-
Welcome!
|
data/build.gradle
DELETED
@@ -1,76 +0,0 @@
|
|
1
|
-
plugins {
|
2
|
-
id "com.jfrog.bintray" version "1.1"
|
3
|
-
id "com.github.jruby-gradle.base" version "0.1.5"
|
4
|
-
id "java"
|
5
|
-
id "checkstyle"
|
6
|
-
}
|
7
|
-
import com.github.jrubygradle.JRubyExec
|
8
|
-
repositories {
|
9
|
-
mavenCentral()
|
10
|
-
jcenter()
|
11
|
-
}
|
12
|
-
configurations {
|
13
|
-
provided
|
14
|
-
}
|
15
|
-
|
16
|
-
version = "0.0.13"
|
17
|
-
|
18
|
-
sourceCompatibility = 1.7
|
19
|
-
targetCompatibility = 1.7
|
20
|
-
|
21
|
-
dependencies {
|
22
|
-
compile "org.embulk:embulk-core:0.8.8"
|
23
|
-
compile "org.apache.httpcomponents:httpclient:4.4"
|
24
|
-
provided "org.embulk:embulk-core:0.8.8"
|
25
|
-
testCompile "junit:junit:4.+"
|
26
|
-
}
|
27
|
-
|
28
|
-
task classpath(type: Copy, dependsOn: ["jar"]) {
|
29
|
-
doFirst { file("classpath").deleteDir() }
|
30
|
-
from (configurations.runtime - configurations.provided + files(jar.archivePath))
|
31
|
-
into "classpath"
|
32
|
-
}
|
33
|
-
clean { delete 'classpath' }
|
34
|
-
|
35
|
-
checkstyle {
|
36
|
-
configFile = file("${project.rootDir}/config/checkstyle/checkstyle.xml")
|
37
|
-
toolVersion = '6.14.1'
|
38
|
-
}
|
39
|
-
checkstyleMain {
|
40
|
-
configFile = file("${project.rootDir}/config/checkstyle/default.xml")
|
41
|
-
ignoreFailures = true
|
42
|
-
}
|
43
|
-
checkstyleTest {
|
44
|
-
configFile = file("${project.rootDir}/config/checkstyle/default.xml")
|
45
|
-
ignoreFailures = true
|
46
|
-
}
|
47
|
-
task checkstyle(type: Checkstyle) {
|
48
|
-
classpath = sourceSets.main.output + sourceSets.test.output
|
49
|
-
source = sourceSets.main.allJava + sourceSets.test.allJava
|
50
|
-
}
|
51
|
-
|
52
|
-
task gem(type: JRubyExec, dependsOn: ["build", "gemspec", "classpath"]) {
|
53
|
-
jrubyArgs "-rrubygems/gem_runner", "-eGem::GemRunner.new.run(ARGV)", "build"
|
54
|
-
script "build/gemspec"
|
55
|
-
doLast { ant.move(file: "${project.name}-${project.version}.gem", todir: "pkg") }
|
56
|
-
}
|
57
|
-
|
58
|
-
task gemspec << { file("build/gemspec").write($/
|
59
|
-
Gem::Specification.new do |spec|
|
60
|
-
spec.name = "${project.name}"
|
61
|
-
spec.version = "${project.version}"
|
62
|
-
spec.authors = ["Takuma kanari"]
|
63
|
-
spec.email = ["chemtrails.t@gmail.com"]
|
64
|
-
spec.summary = %q{Embulk plugin for http input}
|
65
|
-
spec.description = %q{Fetch data via http}
|
66
|
-
spec.homepage = "https://github.com/takumakanari/embulk-input-http"
|
67
|
-
spec.license = "MIT"
|
68
|
-
|
69
|
-
spec.files = `git ls-files`.split("\n") + Dir["classpath/*.jar"]
|
70
|
-
spec.test_files = spec.files.grep(%r"^(test|spec)/")
|
71
|
-
spec.require_paths = ["lib"]
|
72
|
-
spec.add_development_dependency 'bundler', ['~> 1.0']
|
73
|
-
spec.add_development_dependency 'rake', ['>= 10.0']
|
74
|
-
end
|
75
|
-
/$)
|
76
|
-
}
|
@@ -1,128 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
-
<!DOCTYPE module PUBLIC
|
3
|
-
"-//Puppy Crawl//DTD Check Configuration 1.3//EN"
|
4
|
-
"http://www.puppycrawl.com/dtds/configuration_1_3.dtd">
|
5
|
-
<module name="Checker">
|
6
|
-
<!-- https://github.com/facebook/presto/blob/master/src/checkstyle/checks.xml -->
|
7
|
-
<module name="FileTabCharacter"/>
|
8
|
-
<module name="NewlineAtEndOfFile">
|
9
|
-
<property name="lineSeparator" value="lf"/>
|
10
|
-
</module>
|
11
|
-
<module name="RegexpMultiline">
|
12
|
-
<property name="format" value="\r"/>
|
13
|
-
<property name="message" value="Line contains carriage return"/>
|
14
|
-
</module>
|
15
|
-
<module name="RegexpMultiline">
|
16
|
-
<property name="format" value=" \n"/>
|
17
|
-
<property name="message" value="Line has trailing whitespace"/>
|
18
|
-
</module>
|
19
|
-
<module name="RegexpMultiline">
|
20
|
-
<property name="format" value="\{\n\n"/>
|
21
|
-
<property name="message" value="Blank line after opening brace"/>
|
22
|
-
</module>
|
23
|
-
<module name="RegexpMultiline">
|
24
|
-
<property name="format" value="\n\n\s*\}"/>
|
25
|
-
<property name="message" value="Blank line before closing brace"/>
|
26
|
-
</module>
|
27
|
-
<module name="RegexpMultiline">
|
28
|
-
<property name="format" value="\n\n\n"/>
|
29
|
-
<property name="message" value="Multiple consecutive blank lines"/>
|
30
|
-
</module>
|
31
|
-
<module name="RegexpMultiline">
|
32
|
-
<property name="format" value="\n\n\Z"/>
|
33
|
-
<property name="message" value="Blank line before end of file"/>
|
34
|
-
</module>
|
35
|
-
<module name="RegexpMultiline">
|
36
|
-
<property name="format" value="Preconditions\.checkNotNull"/>
|
37
|
-
<property name="message" value="Use of checkNotNull"/>
|
38
|
-
</module>
|
39
|
-
|
40
|
-
<module name="TreeWalker">
|
41
|
-
<module name="EmptyBlock">
|
42
|
-
<property name="option" value="text"/>
|
43
|
-
<property name="tokens" value="
|
44
|
-
LITERAL_DO, LITERAL_ELSE, LITERAL_FINALLY, LITERAL_IF,
|
45
|
-
LITERAL_FOR, LITERAL_TRY, LITERAL_WHILE, INSTANCE_INIT, STATIC_INIT"/>
|
46
|
-
</module>
|
47
|
-
<module name="EmptyStatement"/>
|
48
|
-
<module name="EmptyForInitializerPad"/>
|
49
|
-
<module name="EmptyForIteratorPad">
|
50
|
-
<property name="option" value="space"/>
|
51
|
-
</module>
|
52
|
-
<module name="MethodParamPad">
|
53
|
-
<property name="allowLineBreaks" value="true"/>
|
54
|
-
<property name="option" value="nospace"/>
|
55
|
-
</module>
|
56
|
-
<module name="ParenPad"/>
|
57
|
-
<module name="TypecastParenPad"/>
|
58
|
-
<module name="NeedBraces"/>
|
59
|
-
<module name="LeftCurly">
|
60
|
-
<property name="option" value="nl"/>
|
61
|
-
<property name="tokens" value="CLASS_DEF, CTOR_DEF, INTERFACE_DEF, METHOD_DEF"/>
|
62
|
-
</module>
|
63
|
-
<module name="LeftCurly">
|
64
|
-
<property name="option" value="eol"/>
|
65
|
-
<property name="tokens" value="
|
66
|
-
LITERAL_CATCH, LITERAL_DO, LITERAL_ELSE, LITERAL_FINALLY, LITERAL_FOR,
|
67
|
-
LITERAL_IF, LITERAL_SWITCH, LITERAL_SYNCHRONIZED, LITERAL_TRY, LITERAL_WHILE"/>
|
68
|
-
</module>
|
69
|
-
<module name="RightCurly">
|
70
|
-
<property name="option" value="alone"/>
|
71
|
-
</module>
|
72
|
-
<module name="GenericWhitespace"/>
|
73
|
-
<module name="WhitespaceAfter"/>
|
74
|
-
<module name="NoWhitespaceBefore"/>
|
75
|
-
|
76
|
-
<module name="UpperEll"/>
|
77
|
-
<module name="DefaultComesLast"/>
|
78
|
-
<module name="ArrayTypeStyle"/>
|
79
|
-
<module name="MultipleVariableDeclarations"/>
|
80
|
-
<module name="ModifierOrder"/>
|
81
|
-
<module name="OneStatementPerLine"/>
|
82
|
-
<module name="StringLiteralEquality"/>
|
83
|
-
<module name="MutableException"/>
|
84
|
-
<module name="EqualsHashCode"/>
|
85
|
-
<module name="InnerAssignment"/>
|
86
|
-
<module name="InterfaceIsType"/>
|
87
|
-
<module name="HideUtilityClassConstructor"/>
|
88
|
-
|
89
|
-
<module name="MemberName"/>
|
90
|
-
<module name="LocalVariableName"/>
|
91
|
-
<module name="LocalFinalVariableName"/>
|
92
|
-
<module name="TypeName"/>
|
93
|
-
<module name="PackageName"/>
|
94
|
-
<module name="ParameterName"/>
|
95
|
-
<module name="StaticVariableName"/>
|
96
|
-
<module name="ClassTypeParameterName">
|
97
|
-
<property name="format" value="^[A-Z][0-9]?$"/>
|
98
|
-
</module>
|
99
|
-
<module name="MethodTypeParameterName">
|
100
|
-
<property name="format" value="^[A-Z][0-9]?$"/>
|
101
|
-
</module>
|
102
|
-
|
103
|
-
<module name="AvoidStarImport"/>
|
104
|
-
<module name="RedundantImport"/>
|
105
|
-
<module name="UnusedImports"/>
|
106
|
-
<module name="ImportOrder">
|
107
|
-
<property name="groups" value="*,javax,java"/>
|
108
|
-
<property name="separated" value="true"/>
|
109
|
-
<property name="option" value="bottom"/>
|
110
|
-
<property name="sortStaticImportsAlphabetically" value="true"/>
|
111
|
-
</module>
|
112
|
-
|
113
|
-
<module name="WhitespaceAround">
|
114
|
-
<property name="allowEmptyConstructors" value="true"/>
|
115
|
-
<property name="allowEmptyMethods" value="true"/>
|
116
|
-
<property name="ignoreEnhancedForColon" value="false"/>
|
117
|
-
<property name="tokens" value="
|
118
|
-
ASSIGN, BAND, BAND_ASSIGN, BOR, BOR_ASSIGN, BSR, BSR_ASSIGN,
|
119
|
-
BXOR, BXOR_ASSIGN, COLON, DIV, DIV_ASSIGN, EQUAL, GE, GT, LAND, LE,
|
120
|
-
LITERAL_ASSERT, LITERAL_CATCH, LITERAL_DO, LITERAL_ELSE,
|
121
|
-
LITERAL_FINALLY, LITERAL_FOR, LITERAL_IF, LITERAL_RETURN,
|
122
|
-
LITERAL_SYNCHRONIZED, LITERAL_TRY, LITERAL_WHILE,
|
123
|
-
LOR, LT, MINUS, MINUS_ASSIGN, MOD, MOD_ASSIGN, NOT_EQUAL,
|
124
|
-
PLUS, PLUS_ASSIGN, QUESTION, SL, SLIST, SL_ASSIGN, SR, SR_ASSIGN,
|
125
|
-
STAR, STAR_ASSIGN, TYPE_EXTENSION_AND"/>
|
126
|
-
</module>
|
127
|
-
</module>
|
128
|
-
</module>
|
@@ -1,108 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
-
<!DOCTYPE module PUBLIC
|
3
|
-
"-//Puppy Crawl//DTD Check Configuration 1.3//EN"
|
4
|
-
"http://www.puppycrawl.com/dtds/configuration_1_3.dtd">
|
5
|
-
<!--
|
6
|
-
This is a subset of ./checkstyle.xml which allows some loose styles
|
7
|
-
-->
|
8
|
-
<module name="Checker">
|
9
|
-
<module name="FileTabCharacter"/>
|
10
|
-
<module name="NewlineAtEndOfFile">
|
11
|
-
<property name="lineSeparator" value="lf"/>
|
12
|
-
</module>
|
13
|
-
<module name="RegexpMultiline">
|
14
|
-
<property name="format" value="\r"/>
|
15
|
-
<property name="message" value="Line contains carriage return"/>
|
16
|
-
</module>
|
17
|
-
<module name="RegexpMultiline">
|
18
|
-
<property name="format" value=" \n"/>
|
19
|
-
<property name="message" value="Line has trailing whitespace"/>
|
20
|
-
</module>
|
21
|
-
<module name="RegexpMultiline">
|
22
|
-
<property name="format" value="\n\n\n"/>
|
23
|
-
<property name="message" value="Multiple consecutive blank lines"/>
|
24
|
-
</module>
|
25
|
-
<module name="RegexpMultiline">
|
26
|
-
<property name="format" value="\n\n\Z"/>
|
27
|
-
<property name="message" value="Blank line before end of file"/>
|
28
|
-
</module>
|
29
|
-
|
30
|
-
<module name="TreeWalker">
|
31
|
-
<module name="EmptyBlock">
|
32
|
-
<property name="option" value="text"/>
|
33
|
-
<property name="tokens" value="
|
34
|
-
LITERAL_DO, LITERAL_ELSE, LITERAL_FINALLY, LITERAL_IF,
|
35
|
-
LITERAL_FOR, LITERAL_TRY, LITERAL_WHILE, INSTANCE_INIT, STATIC_INIT"/>
|
36
|
-
</module>
|
37
|
-
<module name="EmptyStatement"/>
|
38
|
-
<module name="EmptyForInitializerPad"/>
|
39
|
-
<module name="EmptyForIteratorPad">
|
40
|
-
<property name="option" value="space"/>
|
41
|
-
</module>
|
42
|
-
<module name="MethodParamPad">
|
43
|
-
<property name="allowLineBreaks" value="true"/>
|
44
|
-
<property name="option" value="nospace"/>
|
45
|
-
</module>
|
46
|
-
<module name="ParenPad"/>
|
47
|
-
<module name="TypecastParenPad"/>
|
48
|
-
<module name="NeedBraces"/>
|
49
|
-
<module name="LeftCurly">
|
50
|
-
<property name="option" value="nl"/>
|
51
|
-
<property name="tokens" value="CLASS_DEF, CTOR_DEF, INTERFACE_DEF, METHOD_DEF"/>
|
52
|
-
</module>
|
53
|
-
<module name="LeftCurly">
|
54
|
-
<property name="option" value="eol"/>
|
55
|
-
<property name="tokens" value="
|
56
|
-
LITERAL_CATCH, LITERAL_DO, LITERAL_ELSE, LITERAL_FINALLY, LITERAL_FOR,
|
57
|
-
LITERAL_IF, LITERAL_SWITCH, LITERAL_SYNCHRONIZED, LITERAL_TRY, LITERAL_WHILE"/>
|
58
|
-
</module>
|
59
|
-
<module name="RightCurly">
|
60
|
-
<property name="option" value="alone"/>
|
61
|
-
</module>
|
62
|
-
<module name="GenericWhitespace"/>
|
63
|
-
<module name="WhitespaceAfter"/>
|
64
|
-
<module name="NoWhitespaceBefore"/>
|
65
|
-
|
66
|
-
<module name="UpperEll"/>
|
67
|
-
<module name="DefaultComesLast"/>
|
68
|
-
<module name="ArrayTypeStyle"/>
|
69
|
-
<module name="MultipleVariableDeclarations"/>
|
70
|
-
<module name="ModifierOrder"/>
|
71
|
-
<module name="OneStatementPerLine"/>
|
72
|
-
<module name="StringLiteralEquality"/>
|
73
|
-
<module name="MutableException"/>
|
74
|
-
<module name="EqualsHashCode"/>
|
75
|
-
<module name="InnerAssignment"/>
|
76
|
-
<module name="InterfaceIsType"/>
|
77
|
-
<module name="HideUtilityClassConstructor"/>
|
78
|
-
|
79
|
-
<module name="MemberName"/>
|
80
|
-
<module name="LocalVariableName"/>
|
81
|
-
<module name="LocalFinalVariableName"/>
|
82
|
-
<module name="TypeName"/>
|
83
|
-
<module name="PackageName"/>
|
84
|
-
<module name="ParameterName"/>
|
85
|
-
<module name="StaticVariableName"/>
|
86
|
-
<module name="ClassTypeParameterName">
|
87
|
-
<property name="format" value="^[A-Z][0-9]?$"/>
|
88
|
-
</module>
|
89
|
-
<module name="MethodTypeParameterName">
|
90
|
-
<property name="format" value="^[A-Z][0-9]?$"/>
|
91
|
-
</module>
|
92
|
-
|
93
|
-
<module name="WhitespaceAround">
|
94
|
-
<property name="allowEmptyConstructors" value="true"/>
|
95
|
-
<property name="allowEmptyMethods" value="true"/>
|
96
|
-
<property name="ignoreEnhancedForColon" value="false"/>
|
97
|
-
<property name="tokens" value="
|
98
|
-
ASSIGN, BAND, BAND_ASSIGN, BOR, BOR_ASSIGN, BSR, BSR_ASSIGN,
|
99
|
-
BXOR, BXOR_ASSIGN, COLON, DIV, DIV_ASSIGN, EQUAL, GE, GT, LAND, LE,
|
100
|
-
LITERAL_ASSERT, LITERAL_CATCH, LITERAL_DO, LITERAL_ELSE,
|
101
|
-
LITERAL_FINALLY, LITERAL_FOR, LITERAL_IF, LITERAL_RETURN,
|
102
|
-
LITERAL_SYNCHRONIZED, LITERAL_TRY, LITERAL_WHILE,
|
103
|
-
LOR, LT, MINUS, MINUS_ASSIGN, MOD, MOD_ASSIGN, NOT_EQUAL,
|
104
|
-
PLUS, PLUS_ASSIGN, QUESTION, SL, SLIST, SL_ASSIGN, SR, SR_ASSIGN,
|
105
|
-
STAR, STAR_ASSIGN, TYPE_EXTENSION_AND"/>
|
106
|
-
</module>
|
107
|
-
</module>
|
108
|
-
</module>
|
data/example/json-example.yml
DELETED
@@ -1,21 +0,0 @@
|
|
1
|
-
exec: {}
|
2
|
-
|
3
|
-
in:
|
4
|
-
type: http
|
5
|
-
url: http://express.heartrails.com/api/json
|
6
|
-
params:
|
7
|
-
- {name: method, value: getStations}
|
8
|
-
- {name: x, value: 135.0}
|
9
|
-
- {name: y, value: "{35,34}.0", expand: 1}
|
10
|
-
method: get
|
11
|
-
user_agent: example_json
|
12
|
-
charset: utf8
|
13
|
-
request_interval: 600
|
14
|
-
interval_includes_response_time: 1
|
15
|
-
request_headers: {X-Some-Key1: some-value1, X-Some-key2: some-value2}
|
16
|
-
pager: {from_param: from, to_param: to, pages: 10, step: 100}
|
17
|
-
parser:
|
18
|
-
type: none
|
19
|
-
|
20
|
-
out: {type: stdout}
|
21
|
-
|
Binary file
|