embulk-input-http 0.0.17 → 0.0.18

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: 41ace198c24c4c60e9d0266b03480091398fda2e
4
- data.tar.gz: a18099e41b799416545996dd6f2518591061ca21
3
+ metadata.gz: e2043f1100eba67eac5549c8786765bc1940700e
4
+ data.tar.gz: 82b72b6252c0f12dfc98a520c45793b1d4cd76c0
5
5
  SHA512:
6
- metadata.gz: 81e9f5146533fe1944b896ecfe81f4fdc929eda9a16c5917c65cda83c65f0a89b6b2005ee5bc2d19cc04b2b21207810e4f55650ca646a6825868658578dbbd63
7
- data.tar.gz: 2004dd879f0518827f4d00ec824bbf26901a469df511443a6b90b48a8102796c65725f193fd36b81f7d874d6a3bb6dc81c19aaf1db91c25e270f1b3e01aceed1
6
+ metadata.gz: ad94913cc6daff337f48a3de0b127b293f0f9ab2a4c096cf8f1f3bb5c9b58ca182290b140ea5d714a2b1009ee273a9833611598a5050b9915cb5d4b3e33ec399
7
+ data.tar.gz: 42313c10e5c1ee6f68edced646ca71ee308a2c44340951e285ed841e685da579141e1162522ad2bbacf0712605253e9d1ddb6e6244319ef389e09d85a8d1080d
data/.gitignore CHANGED
@@ -5,4 +5,5 @@
5
5
  /classpath/
6
6
  build/
7
7
  .idea
8
- *.iml
8
+ *.iml
9
+ *.gemspec
data/README.md CHANGED
@@ -42,7 +42,7 @@ in:
42
42
  - **retry_interval**: interval msec to retry max (optional, default: 10000)
43
43
  - **request_interval**: wait msec before each requests (optional, default: 0)
44
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, default: no)
45
- - **direct\_input**: If false, dumps content to temp file first, to avoid read timeout due to process large data while dowoloading from remote (optional, default: true)
45
+ - **input\_direct**: If false, dumps content to temp file first, to avoid read timeout due to process large data while dowoloading from remote (optional, default: true)
46
46
 
47
47
  ### Brace expansion style in 'params'
48
48
 
data/build.gradle CHANGED
@@ -13,14 +13,14 @@ configurations {
13
13
  provided
14
14
  }
15
15
 
16
- version = "0.0.17"
16
+ version = "0.0.18"
17
17
 
18
18
  sourceCompatibility = 1.7
19
19
  targetCompatibility = 1.7
20
20
 
21
21
  dependencies {
22
- compile "org.embulk:embulk-core:0.8.8"
23
- provided "org.embulk:embulk-core:0.8.8"
22
+ compile "org.embulk:embulk-core:0.8.36"
23
+ provided "org.embulk:embulk-core:0.8.36"
24
24
  compile "org.apache.httpcomponents:httpclient:4.5"
25
25
  compile "commons-io:commons-io:2.5"
26
26
  testCompile "junit:junit:4.+"
@@ -86,3 +86,4 @@ Gem::Specification.new do |spec|
86
86
  end
87
87
  /$)
88
88
  }
89
+ clean { delete "${project.name}.gemspec" }
Binary file
@@ -1,6 +1,5 @@
1
- #Wed Mar 01 16:50:22 JST 2017
2
1
  distributionBase=GRADLE_USER_HOME
3
2
  distributionPath=wrapper/dists
4
3
  zipStoreBase=GRADLE_USER_HOME
5
4
  zipStorePath=wrapper/dists
6
- distributionUrl=https\://services.gradle.org/distributions/gradle-2.10-all.zip
5
+ distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-bin.zip
data/gradlew CHANGED
@@ -1,4 +1,4 @@
1
- #!/usr/bin/env bash
1
+ #!/usr/bin/env sh
2
2
 
3
3
  ##############################################################################
4
4
  ##
@@ -6,20 +6,38 @@
6
6
  ##
7
7
  ##############################################################################
8
8
 
9
- # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
10
- DEFAULT_JVM_OPTS=""
9
+ # Attempt to set APP_HOME
10
+ # Resolve links: $0 may be a link
11
+ PRG="$0"
12
+ # Need this for relative symlinks.
13
+ while [ -h "$PRG" ] ; do
14
+ ls=`ls -ld "$PRG"`
15
+ link=`expr "$ls" : '.*-> \(.*\)$'`
16
+ if expr "$link" : '/.*' > /dev/null; then
17
+ PRG="$link"
18
+ else
19
+ PRG=`dirname "$PRG"`"/$link"
20
+ fi
21
+ done
22
+ SAVED="`pwd`"
23
+ cd "`dirname \"$PRG\"`/" >/dev/null
24
+ APP_HOME="`pwd -P`"
25
+ cd "$SAVED" >/dev/null
11
26
 
12
27
  APP_NAME="Gradle"
13
28
  APP_BASE_NAME=`basename "$0"`
14
29
 
30
+ # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
31
+ DEFAULT_JVM_OPTS=""
32
+
15
33
  # Use the maximum available, or set MAX_FD != -1 to use that value.
16
34
  MAX_FD="maximum"
17
35
 
18
- warn ( ) {
36
+ warn () {
19
37
  echo "$*"
20
38
  }
21
39
 
22
- die ( ) {
40
+ die () {
23
41
  echo
24
42
  echo "$*"
25
43
  echo
@@ -30,6 +48,7 @@ die ( ) {
30
48
  cygwin=false
31
49
  msys=false
32
50
  darwin=false
51
+ nonstop=false
33
52
  case "`uname`" in
34
53
  CYGWIN* )
35
54
  cygwin=true
@@ -40,31 +59,11 @@ case "`uname`" in
40
59
  MINGW* )
41
60
  msys=true
42
61
  ;;
62
+ NONSTOP* )
63
+ nonstop=true
64
+ ;;
43
65
  esac
44
66
 
45
- # For Cygwin, ensure paths are in UNIX format before anything is touched.
46
- if $cygwin ; then
47
- [ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
48
- fi
49
-
50
- # Attempt to set APP_HOME
51
- # Resolve links: $0 may be a link
52
- PRG="$0"
53
- # Need this for relative symlinks.
54
- while [ -h "$PRG" ] ; do
55
- ls=`ls -ld "$PRG"`
56
- link=`expr "$ls" : '.*-> \(.*\)$'`
57
- if expr "$link" : '/.*' > /dev/null; then
58
- PRG="$link"
59
- else
60
- PRG=`dirname "$PRG"`"/$link"
61
- fi
62
- done
63
- SAVED="`pwd`"
64
- cd "`dirname \"$PRG\"`/" >&-
65
- APP_HOME="`pwd -P`"
66
- cd "$SAVED" >&-
67
-
68
67
  CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
69
68
 
70
69
  # Determine the Java command to use to start the JVM.
@@ -90,7 +89,7 @@ location of your Java installation."
90
89
  fi
91
90
 
92
91
  # Increase the maximum file descriptors if we can.
93
- if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then
92
+ if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then
94
93
  MAX_FD_LIMIT=`ulimit -H -n`
95
94
  if [ $? -eq 0 ] ; then
96
95
  if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
@@ -114,6 +113,7 @@ fi
114
113
  if $cygwin ; then
115
114
  APP_HOME=`cygpath --path --mixed "$APP_HOME"`
116
115
  CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
116
+ JAVACMD=`cygpath --unix "$JAVACMD"`
117
117
 
118
118
  # We build the pattern for arguments to be converted via cygpath
119
119
  ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
@@ -154,11 +154,19 @@ if $cygwin ; then
154
154
  esac
155
155
  fi
156
156
 
157
- # Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules
158
- function splitJvmOpts() {
159
- JVM_OPTS=("$@")
157
+ # Escape application args
158
+ save () {
159
+ for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done
160
+ echo " "
160
161
  }
161
- eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS
162
- JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME"
162
+ APP_ARGS=$(save "$@")
163
+
164
+ # Collect all arguments for the java command, following the shell quoting and substitution rules
165
+ eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS"
166
+
167
+ # by default we should be in the correct project dir, but when run from Finder on Mac, the cwd is wrong
168
+ if [ "$(uname)" = "Darwin" ] && [ "$HOME" = "$PWD" ]; then
169
+ cd "$(dirname "$0")"
170
+ fi
163
171
 
164
- exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@"
172
+ exec "$JAVACMD" "$@"
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.17
4
+ version: 0.0.18
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-04-03 00:00:00.000000000 Z
11
+ date: 2017-11-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement
@@ -51,7 +51,6 @@ files:
51
51
  - build.gradle
52
52
  - config/checkstyle/checkstyle.xml
53
53
  - config/checkstyle/default.xml
54
- - embulk-input-http.gemspec
55
54
  - example/json-example.yml
56
55
  - gradle/wrapper/gradle-wrapper.jar
57
56
  - gradle/wrapper/gradle-wrapper.properties
@@ -72,7 +71,7 @@ files:
72
71
  - classpath/commons-codec-1.9.jar
73
72
  - classpath/commons-io-2.5.jar
74
73
  - classpath/commons-logging-1.2.jar
75
- - classpath/embulk-input-http-0.0.17.jar
74
+ - classpath/embulk-input-http-0.0.18.jar
76
75
  - classpath/httpclient-4.5.jar
77
76
  - classpath/httpcore-4.4.1.jar
78
77
  homepage: https://github.com/takumakanari/embulk-input-http
@@ -1,17 +0,0 @@
1
-
2
- Gem::Specification.new do |spec|
3
- spec.name = "embulk-input-http"
4
- spec.version = "0.0.17"
5
- spec.authors = ["Takuma kanari"]
6
- spec.email = ["chemtrails.t@gmail.com"]
7
- spec.summary = %q{Embulk plugin for http input}
8
- spec.description = %q{Fetch data via http}
9
- spec.homepage = "https://github.com/takumakanari/embulk-input-http"
10
- spec.license = "MIT"
11
-
12
- spec.files = `git ls-files`.split("\n") + Dir["classpath/*.jar"]
13
- spec.test_files = spec.files.grep(%r"^(test|spec)/")
14
- spec.require_paths = ["lib"]
15
- spec.add_development_dependency 'bundler', ['~> 1.0']
16
- spec.add_development_dependency 'rake', ['>= 10.0']
17
- end