embulk-output-aerospike 0.3.2 → 0.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c4a1acaffea6df8cbf6035f159eed41ca0309754
4
- data.tar.gz: e663c8a6e0d909ecb991eeffc75e8565491b4ea0
3
+ metadata.gz: c9a8d68b769f4e2262aeac270afa0ee5cf391fcf
4
+ data.tar.gz: 4f2623d9cca4acc2d5d7b5cce00ab9aa0d510201
5
5
  SHA512:
6
- metadata.gz: fe02878851b13d8fc585d93298f90436aedef1135c1b87cc5c90ea0fe01854ba019761189acd8fb20458f369058bc1702727a7e47bdc55d8eb73bc72c639ccae
7
- data.tar.gz: 2482bb08fa0d7956ea94027f68311b17d4fcde9a260015ac49339ceb92d8c01792ede4c1bcec10c3931e4a15f675ff35b815301849762b71b2c598e610420cbd
6
+ metadata.gz: 7eb1e26ef1098fdb34ace7db8397b16a46dafbcaa77230ff8533ec73fb5c5efb661d6c87d863f53128344235a67e76f668e2d45618a76b826f3c89298b353fa8
7
+ data.tar.gz: b25c6bbbe0dd397bd4d01ffc844f2de447c73d00f4b1addd69f5412e2e9dcec300ec7d84c6d7c724de13f4e93767be49d7fe3129347f8a048b4b0a177822b1bd
@@ -1,7 +1,6 @@
1
1
  plugins {
2
2
  id "com.jfrog.bintray" version "1.1"
3
3
  id "com.github.jruby-gradle.base" version "0.1.5"
4
- id "java"
5
4
  id 'scala'
6
5
  }
7
6
  import com.github.jrubygradle.JRubyExec
@@ -17,16 +16,16 @@ configurations {
17
16
  provided
18
17
  }
19
18
 
20
- version = "0.3.2"
19
+ version = "0.3.3"
21
20
 
22
21
  dependencies {
23
22
  compile "org.embulk:embulk-core:0.7.5"
24
23
  provided "org.embulk:embulk-core:0.7.5"
25
24
  compile 'org.scala-lang:scala-library:2.11.7'
26
25
  compile 'org.scalaz.stream:scalaz-stream_2.11:0.8'
27
- compile 'com.github.tkrs:aerospiker-core_2.11:0.4.0-SNAPSHOT'
28
- compile 'com.github.tkrs:aerospiker-msgpack_2.11:0.4.0-SNAPSHOT'
29
- compile 'com.github.tkrs:aerospiker-task_2.11:0.4.0-SNAPSHOT'
26
+ compile 'com.github.tkrs:aerospiker-core_2.11:0.4.0'
27
+ compile 'com.github.tkrs:aerospiker-msgpack_2.11:0.4.0'
28
+ compile 'com.github.tkrs:aerospiker-task_2.11:0.4.0'
30
29
  testCompile "junit:junit:4.+"
31
30
  }
32
31
 
@@ -81,7 +81,8 @@ class AerospikePageOutput(taskSource: TaskSource, schema: Schema, taskIndex: Int
81
81
  case v: String => v.asJson
82
82
  case v: Seq[Any] => Json.array(v.map(x => toJson(x)): _*)
83
83
  case v: Map[String, Any] => Json.fromFields(v.map { case (k, va) => (k, toJson(va)) } toSeq)
84
- case _ => ???
84
+ case null => Json.empty
85
+ case _ => log.error(s"Unsupported class[${a.getClass}]"); throw new RuntimeException(s"Unsupported class[${a.getClass}]")
85
86
  }
86
87
 
87
88
  implicit val encoder = Encoder.instance[Any](toJson)
@@ -115,13 +116,13 @@ class AerospikePageOutput(taskSource: TaskSource, schema: Schema, taskIndex: Int
115
116
  val sep = sp.getSeparator
116
117
  sp.getElementType match {
117
118
  case "long" =>
118
- val x = v.split(sep).map(s => if (s.isEmpty) "0" else s).map(_.toLong)
119
+ val x = v.split(sep).toSeq.map(s => if (s.isEmpty) "0" else s).map(_.toLong)
119
120
  rec += n -> x
120
121
  case "double" =>
121
- val x = v.split(sep).map(s => if (s.isEmpty) "0" else s).map(_.toDouble)
122
+ val x = v.split(sep).toSeq.map(s => if (s.isEmpty) "0" else s).map(_.toDouble)
122
123
  rec += n -> x
123
124
  case "string" =>
124
- val x = v.split(sep)
125
+ val x = v.split(sep).toSeq
125
126
  rec += n -> x
126
127
  }
127
128
  }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: embulk-output-aerospike
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Takeru Sato
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-26 00:00:00.000000000 Z
11
+ date: 2015-11-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement
@@ -58,9 +58,9 @@ files:
58
58
  - src/main/scala/org/embulk/output/aerospike/AerospikePageOutput.scala
59
59
  - src/test/java/org/embulk/output/aerospike/TestAerospikeOutputPlugin.java
60
60
  - classpath/aerospike-client-3.1.4.jar
61
- - classpath/aerospiker-core_2.11-0.4.0-SNAPSHOT.jar
62
- - classpath/aerospiker-msgpack_2.11-0.4.0-SNAPSHOT.jar
63
- - classpath/aerospiker-task_2.11-0.4.0-SNAPSHOT.jar
61
+ - classpath/aerospiker-core_2.11-0.4.0.jar
62
+ - classpath/aerospiker-msgpack_2.11-0.4.0.jar
63
+ - classpath/aerospiker-task_2.11-0.4.0.jar
64
64
  - classpath/algebra-laws_2.11-0.2.1.jar
65
65
  - classpath/algebra-std_2.11-0.2.1.jar
66
66
  - classpath/algebra_2.11-0.2.1.jar
@@ -77,7 +77,7 @@ files:
77
77
  - classpath/circe-jawn_2.11-0.1.1.jar
78
78
  - classpath/commons-math3-3.2.jar
79
79
  - classpath/discipline_2.11-0.3.jar
80
- - classpath/embulk-output-aerospike-0.3.2.jar
80
+ - classpath/embulk-output-aerospike-0.3.3.jar
81
81
  - classpath/gnu-crypto-2.0.1.jar
82
82
  - classpath/jawn-parser_2.11-0.8.0.jar
83
83
  - classpath/jbcrypt-0.3m.jar