embulk 0.8.39-java → 0.10.24-java
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/Gemfile +1 -1
- data/LICENSE +202 -0
- data/embulk.gemspec +34 -33
- data/lib/embulk.rb +5 -61
- data/lib/embulk/buffer.rb +1 -2
- data/lib/embulk/guess/charset.rb +2 -11
- data/lib/embulk/java/bootstrap.rb +0 -1
- data/lib/embulk/java_plugin.rb +9 -1
- data/lib/embulk/page_builder.rb +2 -2
- data/lib/embulk/plugin.rb +2 -2
- data/lib/embulk/schema.rb +3 -4
- data/lib/embulk/version.rb +3 -22
- metadata +22 -757
- data/.gitignore +0 -15
- data/.ruby-version +0 -1
- data/.travis.yml +0 -28
- data/COPYING +0 -14
- data/Gemfile.lock +0 -30
- data/README.md +0 -229
- data/Rakefile +0 -26
- data/appveyor.yml +0 -28
- data/bin/embulk +0 -139
- data/build.gradle +0 -419
- data/embulk-cli/build.gradle +0 -9
- data/embulk-cli/src/main/bat/selfrun.bat +0 -107
- data/embulk-cli/src/main/java/org/embulk/cli/EmbulkArguments.java +0 -54
- data/embulk-cli/src/main/java/org/embulk/cli/EmbulkCommandLine.java +0 -227
- data/embulk-cli/src/main/java/org/embulk/cli/EmbulkCommandLineException.java +0 -25
- data/embulk-cli/src/main/java/org/embulk/cli/EmbulkExample.java +0 -86
- data/embulk-cli/src/main/java/org/embulk/cli/EmbulkMigrate.java +0 -480
- data/embulk-cli/src/main/java/org/embulk/cli/EmbulkNew.java +0 -419
- data/embulk-cli/src/main/java/org/embulk/cli/EmbulkRun.java +0 -786
- data/embulk-cli/src/main/java/org/embulk/cli/EmbulkSelfUpdate.java +0 -235
- data/embulk-cli/src/main/java/org/embulk/cli/EmbulkSubcommand.java +0 -47
- data/embulk-cli/src/main/java/org/embulk/cli/Main.java +0 -31
- data/embulk-cli/src/main/java/org/embulk/cli/parse/AbstractHelpLineDefinition.java +0 -15
- data/embulk-cli/src/main/java/org/embulk/cli/parse/CliHelpFormatterWithHelpMessages.java +0 -141
- data/embulk-cli/src/main/java/org/embulk/cli/parse/CliOptionsWithHelpMessages.java +0 -45
- data/embulk-cli/src/main/java/org/embulk/cli/parse/EmbulkCommandLineHelpRequired.java +0 -10
- data/embulk-cli/src/main/java/org/embulk/cli/parse/EmbulkCommandLineParseException.java +0 -25
- data/embulk-cli/src/main/java/org/embulk/cli/parse/EmbulkCommandLineParser.java +0 -187
- data/embulk-cli/src/main/java/org/embulk/cli/parse/HelpMessageAsCliOption.java +0 -36
- data/embulk-cli/src/main/java/org/embulk/cli/parse/HelpMessageLineDefinition.java +0 -20
- data/embulk-cli/src/main/java/org/embulk/cli/parse/OptionBehavior.java +0 -39
- data/embulk-cli/src/main/java/org/embulk/cli/parse/OptionDefinition.java +0 -120
- data/embulk-cli/src/main/sh/selfrun.sh +0 -60
- data/embulk-cli/src/test/java/org/embulk/cli/DummyMain.java +0 -23
- data/embulk-cli/src/test/java/org/embulk/cli/SelfrunTest.java +0 -296
- data/embulk-core/build.gradle +0 -83
- data/embulk-core/src/main/java/org/embulk/EmbulkEmbed.java +0 -321
- data/embulk-core/src/main/java/org/embulk/EmbulkRunner.java +0 -531
- data/embulk-core/src/main/java/org/embulk/EmbulkService.java +0 -78
- data/embulk-core/src/main/java/org/embulk/EmbulkSetup.java +0 -49
- data/embulk-core/src/main/java/org/embulk/EmbulkVersion.java +0 -109
- data/embulk-core/src/main/java/org/embulk/command/PreviewPrinter.java +0 -87
- data/embulk-core/src/main/java/org/embulk/command/TablePreviewPrinter.java +0 -107
- data/embulk-core/src/main/java/org/embulk/command/VerticalPreviewPrinter.java +0 -47
- data/embulk-core/src/main/java/org/embulk/config/CommitReport.java +0 -36
- data/embulk-core/src/main/java/org/embulk/config/Config.java +0 -15
- data/embulk-core/src/main/java/org/embulk/config/ConfigDefault.java +0 -15
- data/embulk-core/src/main/java/org/embulk/config/ConfigDiff.java +0 -32
- data/embulk-core/src/main/java/org/embulk/config/ConfigException.java +0 -26
- data/embulk-core/src/main/java/org/embulk/config/ConfigInject.java +0 -14
- data/embulk-core/src/main/java/org/embulk/config/ConfigLoader.java +0 -149
- data/embulk-core/src/main/java/org/embulk/config/ConfigSource.java +0 -34
- data/embulk-core/src/main/java/org/embulk/config/DataSource.java +0 -41
- data/embulk-core/src/main/java/org/embulk/config/DataSourceImpl.java +0 -243
- data/embulk-core/src/main/java/org/embulk/config/DataSourceSerDe.java +0 -84
- data/embulk-core/src/main/java/org/embulk/config/GenericTypeReference.java +0 -20
- data/embulk-core/src/main/java/org/embulk/config/ModelManager.java +0 -123
- data/embulk-core/src/main/java/org/embulk/config/Task.java +0 -10
- data/embulk-core/src/main/java/org/embulk/config/TaskInvocationHandler.java +0 -180
- data/embulk-core/src/main/java/org/embulk/config/TaskReport.java +0 -32
- data/embulk-core/src/main/java/org/embulk/config/TaskSerDe.java +0 -349
- data/embulk-core/src/main/java/org/embulk/config/TaskSource.java +0 -34
- data/embulk-core/src/main/java/org/embulk/config/TaskValidationException.java +0 -38
- data/embulk-core/src/main/java/org/embulk/config/TaskValidator.java +0 -24
- data/embulk-core/src/main/java/org/embulk/config/UserDataException.java +0 -4
- data/embulk-core/src/main/java/org/embulk/config/UserDataExceptions.java +0 -17
- data/embulk-core/src/main/java/org/embulk/config/YamlTagResolver.java +0 -53
- data/embulk-core/src/main/java/org/embulk/exec/BufferFileInputPlugin.java +0 -88
- data/embulk-core/src/main/java/org/embulk/exec/BulkLoader.java +0 -754
- data/embulk-core/src/main/java/org/embulk/exec/ConfigurableGuessInputPlugin.java +0 -9
- data/embulk-core/src/main/java/org/embulk/exec/ExecModule.java +0 -53
- data/embulk-core/src/main/java/org/embulk/exec/ExecutionInterruptedException.java +0 -10
- data/embulk-core/src/main/java/org/embulk/exec/ExecutionResult.java +0 -33
- data/embulk-core/src/main/java/org/embulk/exec/ExtensionServiceLoaderModule.java +0 -43
- data/embulk-core/src/main/java/org/embulk/exec/ForGuess.java +0 -16
- data/embulk-core/src/main/java/org/embulk/exec/ForSystemConfig.java +0 -16
- data/embulk-core/src/main/java/org/embulk/exec/GuessExecutor.java +0 -309
- data/embulk-core/src/main/java/org/embulk/exec/LocalExecutorPlugin.java +0 -563
- data/embulk-core/src/main/java/org/embulk/exec/LoggerProvider.java +0 -68
- data/embulk-core/src/main/java/org/embulk/exec/NoSampleException.java +0 -10
- data/embulk-core/src/main/java/org/embulk/exec/PartialExecutionException.java +0 -26
- data/embulk-core/src/main/java/org/embulk/exec/PooledBufferAllocator.java +0 -77
- data/embulk-core/src/main/java/org/embulk/exec/PreviewExecutor.java +0 -222
- data/embulk-core/src/main/java/org/embulk/exec/PreviewResult.java +0 -27
- data/embulk-core/src/main/java/org/embulk/exec/PreviewedNoticeError.java +0 -17
- data/embulk-core/src/main/java/org/embulk/exec/ResumeState.java +0 -100
- data/embulk-core/src/main/java/org/embulk/exec/SamplingParserPlugin.java +0 -215
- data/embulk-core/src/main/java/org/embulk/exec/SetCurrentThreadName.java +0 -22
- data/embulk-core/src/main/java/org/embulk/exec/SkipTransactionException.java +0 -23
- data/embulk-core/src/main/java/org/embulk/exec/SystemConfigModule.java +0 -24
- data/embulk-core/src/main/java/org/embulk/exec/TempFileAllocator.java +0 -35
- data/embulk-core/src/main/java/org/embulk/exec/TransactionStage.java +0 -27
- data/embulk-core/src/main/java/org/embulk/jruby/JRubyPluginSource.java +0 -76
- data/embulk-core/src/main/java/org/embulk/jruby/JRubyScriptingModule.java +0 -395
- data/embulk-core/src/main/java/org/embulk/plugin/BuiltinPluginSourceModule.java +0 -17
- data/embulk-core/src/main/java/org/embulk/plugin/DefaultPluginType.java +0 -50
- data/embulk-core/src/main/java/org/embulk/plugin/InjectedPluginSource.java +0 -100
- data/embulk-core/src/main/java/org/embulk/plugin/MavenPluginType.java +0 -112
- data/embulk-core/src/main/java/org/embulk/plugin/PluginClassLoader.java +0 -993
- data/embulk-core/src/main/java/org/embulk/plugin/PluginClassLoaderFactory.java +0 -16
- data/embulk-core/src/main/java/org/embulk/plugin/PluginClassLoaderModule.java +0 -102
- data/embulk-core/src/main/java/org/embulk/plugin/PluginManager.java +0 -78
- data/embulk-core/src/main/java/org/embulk/plugin/PluginSource.java +0 -49
- data/embulk-core/src/main/java/org/embulk/plugin/PluginSourceNotMatchException.java +0 -25
- data/embulk-core/src/main/java/org/embulk/plugin/PluginType.java +0 -122
- data/embulk-core/src/main/java/org/embulk/plugin/compat/InputPluginWrapper.java +0 -102
- data/embulk-core/src/main/java/org/embulk/plugin/compat/PluginWrappers.java +0 -30
- data/embulk-core/src/main/java/org/embulk/plugin/compat/TransactionalFileInputWrapper.java +0 -96
- data/embulk-core/src/main/java/org/embulk/plugin/compat/TransactionalFileOutputWrapper.java +0 -102
- data/embulk-core/src/main/java/org/embulk/plugin/compat/TransactionalPageOutputWrapper.java +0 -95
- data/embulk-core/src/main/java/org/embulk/plugin/jar/InvalidJarPluginException.java +0 -14
- data/embulk-core/src/main/java/org/embulk/plugin/jar/JarPluginLoader.java +0 -232
- data/embulk-core/src/main/java/org/embulk/plugin/maven/MavenArtifactFinder.java +0 -134
- data/embulk-core/src/main/java/org/embulk/plugin/maven/MavenArtifactNotFoundException.java +0 -20
- data/embulk-core/src/main/java/org/embulk/plugin/maven/MavenPluginSource.java +0 -187
- data/embulk-core/src/main/java/org/embulk/plugin/maven/MavenPluginSourceModule.java +0 -22
- data/embulk-core/src/main/java/org/embulk/plugin/maven/MavenRepositoryNotFoundException.java +0 -31
- data/embulk-core/src/main/java/org/embulk/spi/AbortTransactionResource.java +0 -36
- data/embulk-core/src/main/java/org/embulk/spi/Buffer.java +0 -148
- data/embulk-core/src/main/java/org/embulk/spi/BufferAllocator.java +0 -8
- data/embulk-core/src/main/java/org/embulk/spi/CloseResource.java +0 -42
- data/embulk-core/src/main/java/org/embulk/spi/Column.java +0 -95
- data/embulk-core/src/main/java/org/embulk/spi/ColumnConfig.java +0 -112
- data/embulk-core/src/main/java/org/embulk/spi/ColumnVisitor.java +0 -16
- data/embulk-core/src/main/java/org/embulk/spi/DataException.java +0 -23
- data/embulk-core/src/main/java/org/embulk/spi/DecoderPlugin.java +0 -16
- data/embulk-core/src/main/java/org/embulk/spi/EncoderPlugin.java +0 -16
- data/embulk-core/src/main/java/org/embulk/spi/Exec.java +0 -113
- data/embulk-core/src/main/java/org/embulk/spi/ExecAction.java +0 -6
- data/embulk-core/src/main/java/org/embulk/spi/ExecSession.java +0 -220
- data/embulk-core/src/main/java/org/embulk/spi/ExecutorPlugin.java +0 -19
- data/embulk-core/src/main/java/org/embulk/spi/Extension.java +0 -44
- data/embulk-core/src/main/java/org/embulk/spi/FileInput.java +0 -11
- data/embulk-core/src/main/java/org/embulk/spi/FileInputPlugin.java +0 -30
- data/embulk-core/src/main/java/org/embulk/spi/FileInputRunner.java +0 -169
- data/embulk-core/src/main/java/org/embulk/spi/FileOutput.java +0 -13
- data/embulk-core/src/main/java/org/embulk/spi/FileOutputPlugin.java +0 -28
- data/embulk-core/src/main/java/org/embulk/spi/FileOutputRunner.java +0 -199
- data/embulk-core/src/main/java/org/embulk/spi/FilterPlugin.java +0 -18
- data/embulk-core/src/main/java/org/embulk/spi/FormatterPlugin.java +0 -18
- data/embulk-core/src/main/java/org/embulk/spi/GuessPlugin.java +0 -9
- data/embulk-core/src/main/java/org/embulk/spi/InputPlugin.java +0 -33
- data/embulk-core/src/main/java/org/embulk/spi/OutputPlugin.java +0 -29
- data/embulk-core/src/main/java/org/embulk/spi/Page.java +0 -86
- data/embulk-core/src/main/java/org/embulk/spi/PageBuilder.java +0 -696
- data/embulk-core/src/main/java/org/embulk/spi/PageFormat.java +0 -47
- data/embulk-core/src/main/java/org/embulk/spi/PageOutput.java +0 -11
- data/embulk-core/src/main/java/org/embulk/spi/PageReader.java +0 -248
- data/embulk-core/src/main/java/org/embulk/spi/ParserPlugin.java +0 -17
- data/embulk-core/src/main/java/org/embulk/spi/ProcessState.java +0 -10
- data/embulk-core/src/main/java/org/embulk/spi/ProcessTask.java +0 -117
- data/embulk-core/src/main/java/org/embulk/spi/Schema.java +0 -139
- data/embulk-core/src/main/java/org/embulk/spi/SchemaConfig.java +0 -93
- data/embulk-core/src/main/java/org/embulk/spi/SchemaConfigException.java +0 -22
- data/embulk-core/src/main/java/org/embulk/spi/TaskState.java +0 -81
- data/embulk-core/src/main/java/org/embulk/spi/TempFileException.java +0 -19
- data/embulk-core/src/main/java/org/embulk/spi/TempFileSpace.java +0 -88
- data/embulk-core/src/main/java/org/embulk/spi/Transactional.java +0 -10
- data/embulk-core/src/main/java/org/embulk/spi/TransactionalFileInput.java +0 -17
- data/embulk-core/src/main/java/org/embulk/spi/TransactionalFileOutput.java +0 -19
- data/embulk-core/src/main/java/org/embulk/spi/TransactionalPageOutput.java +0 -17
- data/embulk-core/src/main/java/org/embulk/spi/json/JsonParseException.java +0 -17
- data/embulk-core/src/main/java/org/embulk/spi/json/JsonParser.java +0 -233
- data/embulk-core/src/main/java/org/embulk/spi/json/RubyValueApi.java +0 -100
- data/embulk-core/src/main/java/org/embulk/spi/time/DateTimeZoneSerDe.java +0 -55
- data/embulk-core/src/main/java/org/embulk/spi/time/Timestamp.java +0 -180
- data/embulk-core/src/main/java/org/embulk/spi/time/TimestampFormat.java +0 -158
- data/embulk-core/src/main/java/org/embulk/spi/time/TimestampFormatter.java +0 -125
- data/embulk-core/src/main/java/org/embulk/spi/time/TimestampParseException.java +0 -12
- data/embulk-core/src/main/java/org/embulk/spi/time/TimestampParser.java +0 -310
- data/embulk-core/src/main/java/org/embulk/spi/time/TimestampSerDe.java +0 -49
- data/embulk-core/src/main/java/org/embulk/spi/type/AbstractType.java +0 -58
- data/embulk-core/src/main/java/org/embulk/spi/type/BooleanType.java +0 -12
- data/embulk-core/src/main/java/org/embulk/spi/type/DoubleType.java +0 -12
- data/embulk-core/src/main/java/org/embulk/spi/type/JsonType.java +0 -14
- data/embulk-core/src/main/java/org/embulk/spi/type/LongType.java +0 -12
- data/embulk-core/src/main/java/org/embulk/spi/type/StringType.java +0 -12
- data/embulk-core/src/main/java/org/embulk/spi/type/TimestampType.java +0 -41
- data/embulk-core/src/main/java/org/embulk/spi/type/Type.java +0 -15
- data/embulk-core/src/main/java/org/embulk/spi/type/TypeDeserializer.java +0 -45
- data/embulk-core/src/main/java/org/embulk/spi/type/Types.java +0 -16
- data/embulk-core/src/main/java/org/embulk/spi/unit/ByteSize.java +0 -156
- data/embulk-core/src/main/java/org/embulk/spi/unit/LocalFile.java +0 -106
- data/embulk-core/src/main/java/org/embulk/spi/unit/LocalFileSerDe.java +0 -113
- data/embulk-core/src/main/java/org/embulk/spi/unit/ToString.java +0 -54
- data/embulk-core/src/main/java/org/embulk/spi/unit/ToStringMap.java +0 -34
- data/embulk-core/src/main/java/org/embulk/spi/util/CharsetSerDe.java +0 -55
- data/embulk-core/src/main/java/org/embulk/spi/util/Decoders.java +0 -81
- data/embulk-core/src/main/java/org/embulk/spi/util/DynamicColumnNotFoundException.java +0 -10
- data/embulk-core/src/main/java/org/embulk/spi/util/DynamicColumnSetter.java +0 -21
- data/embulk-core/src/main/java/org/embulk/spi/util/DynamicColumnSetterFactory.java +0 -134
- data/embulk-core/src/main/java/org/embulk/spi/util/DynamicPageBuilder.java +0 -200
- data/embulk-core/src/main/java/org/embulk/spi/util/Encoders.java +0 -81
- data/embulk-core/src/main/java/org/embulk/spi/util/Executors.java +0 -93
- data/embulk-core/src/main/java/org/embulk/spi/util/FileInputInputStream.java +0 -111
- data/embulk-core/src/main/java/org/embulk/spi/util/FileOutputOutputStream.java +0 -119
- data/embulk-core/src/main/java/org/embulk/spi/util/Filters.java +0 -100
- data/embulk-core/src/main/java/org/embulk/spi/util/InputStreamFileInput.java +0 -189
- data/embulk-core/src/main/java/org/embulk/spi/util/InputStreamTransactionalFileInput.java +0 -25
- data/embulk-core/src/main/java/org/embulk/spi/util/Inputs.java +0 -65
- data/embulk-core/src/main/java/org/embulk/spi/util/LineDecoder.java +0 -157
- data/embulk-core/src/main/java/org/embulk/spi/util/LineEncoder.java +0 -123
- data/embulk-core/src/main/java/org/embulk/spi/util/ListFileInput.java +0 -52
- data/embulk-core/src/main/java/org/embulk/spi/util/Newline.java +0 -38
- data/embulk-core/src/main/java/org/embulk/spi/util/OutputStreamFileOutput.java +0 -88
- data/embulk-core/src/main/java/org/embulk/spi/util/PagePrinter.java +0 -126
- data/embulk-core/src/main/java/org/embulk/spi/util/Pages.java +0 -149
- data/embulk-core/src/main/java/org/embulk/spi/util/ResumableInputStream.java +0 -168
- data/embulk-core/src/main/java/org/embulk/spi/util/RetryExecutor.java +0 -130
- data/embulk-core/src/main/java/org/embulk/spi/util/Timestamps.java +0 -53
- data/embulk-core/src/main/java/org/embulk/spi/util/dynamic/AbstractDynamicColumnSetter.java +0 -94
- data/embulk-core/src/main/java/org/embulk/spi/util/dynamic/BooleanColumnSetter.java +0 -71
- data/embulk-core/src/main/java/org/embulk/spi/util/dynamic/DefaultValueSetter.java +0 -20
- data/embulk-core/src/main/java/org/embulk/spi/util/dynamic/DoubleColumnSetter.java +0 -68
- data/embulk-core/src/main/java/org/embulk/spi/util/dynamic/JsonColumnSetter.java +0 -64
- data/embulk-core/src/main/java/org/embulk/spi/util/dynamic/LongColumnSetter.java +0 -78
- data/embulk-core/src/main/java/org/embulk/spi/util/dynamic/NullDefaultValueSetter.java +0 -39
- data/embulk-core/src/main/java/org/embulk/spi/util/dynamic/SkipColumnSetter.java +0 -68
- data/embulk-core/src/main/java/org/embulk/spi/util/dynamic/StringColumnSetter.java +0 -63
- data/embulk-core/src/main/java/org/embulk/spi/util/dynamic/TimestampColumnSetter.java +0 -72
- data/embulk-core/src/main/resources/embulk/logback-color.xml +0 -72
- data/embulk-core/src/main/resources/embulk/logback-console.xml +0 -14
- data/embulk-core/src/main/resources/embulk/logback-file.xml +0 -23
- data/embulk-core/src/main/resources/embulk/parent_first_packages.properties +0 -73
- data/embulk-core/src/main/resources/embulk/parent_first_resources.properties +0 -29
- data/embulk-core/src/test/java/org/embulk/EmbulkTestRuntime.java +0 -122
- data/embulk-core/src/test/java/org/embulk/GuiceBinder.java +0 -72
- data/embulk-core/src/test/java/org/embulk/RandomManager.java +0 -53
- data/embulk-core/src/test/java/org/embulk/TestPluginSourceModule.java +0 -23
- data/embulk-core/src/test/java/org/embulk/TestUtilityModule.java +0 -17
- data/embulk-core/src/test/java/org/embulk/config/TestConfigLoader.java +0 -66
- data/embulk-core/src/test/java/org/embulk/config/TestConfigSource.java +0 -114
- data/embulk-core/src/test/java/org/embulk/config/TestTaskSource.java +0 -70
- data/embulk-core/src/test/java/org/embulk/plugin/MockPluginSource.java +0 -58
- data/embulk-core/src/test/java/org/embulk/plugin/TestPluginType.java +0 -83
- data/embulk-core/src/test/java/org/embulk/plugin/TestPluginTypeSerDe.java +0 -67
- data/embulk-core/src/test/java/org/embulk/plugin/jar/ExampleJarSpiV0.java +0 -9
- data/embulk-core/src/test/java/org/embulk/plugin/jar/JarBuilder.java +0 -101
- data/embulk-core/src/test/java/org/embulk/plugin/jar/TestJarPluginLoader.java +0 -60
- data/embulk-core/src/test/java/org/embulk/plugin/maven/TestMavenArtifactFinder.java +0 -41
- data/embulk-core/src/test/java/org/embulk/spi/MockFileOutput.java +0 -63
- data/embulk-core/src/test/java/org/embulk/spi/MockFormatterPlugin.java +0 -108
- data/embulk-core/src/test/java/org/embulk/spi/MockParserPlugin.java +0 -80
- data/embulk-core/src/test/java/org/embulk/spi/PageTestUtils.java +0 -59
- data/embulk-core/src/test/java/org/embulk/spi/TestBuffer.java +0 -24
- data/embulk-core/src/test/java/org/embulk/spi/TestFileInputInputStream.java +0 -89
- data/embulk-core/src/test/java/org/embulk/spi/TestFileInputRunner.java +0 -199
- data/embulk-core/src/test/java/org/embulk/spi/TestFileOutputRunner.java +0 -221
- data/embulk-core/src/test/java/org/embulk/spi/TestInputStreamFileInput.java +0 -188
- data/embulk-core/src/test/java/org/embulk/spi/TestPageBuilderReader.java +0 -411
- data/embulk-core/src/test/java/org/embulk/spi/json/TestJsonParser.java +0 -102
- data/embulk-core/src/test/java/org/embulk/spi/time/TestTimestamp.java +0 -116
- data/embulk-core/src/test/java/org/embulk/spi/time/TestTimestampFormatterParser.java +0 -75
- data/embulk-core/src/test/java/org/embulk/spi/time/TestTimestampFormatterParserDeprecated.java +0 -67
- data/embulk-core/src/test/java/org/embulk/spi/time/TestTimestampParser.java +0 -247
- data/embulk-core/src/test/java/org/embulk/spi/type/TestTypeSerDe.java +0 -45
- data/embulk-core/src/test/java/org/embulk/spi/unit/TestByteSize.java +0 -79
- data/embulk-core/src/test/java/org/embulk/spi/util/TestLineDecoder.java +0 -237
- data/embulk-core/src/test/java/org/embulk/spi/util/TestLineEncoder.java +0 -123
- data/embulk-core/src/test/resources/m2.test/.gitignore +0 -1
- data/embulk-core/src/test/resources/m2.test/org/embulk/example/embulk-example-maven-artifact/0.1.2/embulk-example-maven-artifact-0.1.2.jar +0 -0
- data/embulk-core/src/test/resources/m2.test/org/embulk/example/embulk-example-maven-artifact/0.1.2/embulk-example-maven-artifact-0.1.2.jar.sha1 +0 -1
- data/embulk-core/src/test/resources/m2.test/org/embulk/example/embulk-example-maven-artifact/0.1.2/embulk-example-maven-artifact-0.1.2.pom +0 -9
- data/embulk-core/src/test/resources/m2.test/org/embulk/example/embulk-example-maven-artifact/0.1.2/embulk-example-maven-artifact-0.1.2.pom.sha1 +0 -1
- data/embulk-docs/Makefile +0 -178
- data/embulk-docs/build.gradle +0 -41
- data/embulk-docs/make.bat +0 -243
- data/embulk-docs/push-gh-pages.sh +0 -49
- data/embulk-docs/src/_static/embulk-architecture.png +0 -0
- data/embulk-docs/src/_static/embulk-logo-v2/embulk-logo-v2-oneline-tr.png +0 -0
- data/embulk-docs/src/_static/embulk-logo-v2/embulk-logo-v2-oneline-wt.png +0 -0
- data/embulk-docs/src/_static/embulk-logo-v2/embulk-logo-v2-oneline.ai +0 -396
- data/embulk-docs/src/_static/embulk-logo-v2/embulk-logo-v2-sq-tr-small.png +0 -0
- data/embulk-docs/src/_static/embulk-logo-v2/embulk-logo-v2-sq-tr.png +0 -0
- data/embulk-docs/src/_static/embulk-logo-v2/embulk-logo-v2-sq-wt.png +0 -0
- data/embulk-docs/src/_static/embulk-logo-v2/embulk-logo-v2-sq.ai +0 -417
- data/embulk-docs/src/_static/embulk-logo-v2/embulk-logo-v2-sq.svg +0 -1
- data/embulk-docs/src/_static/embulk-logo-v2/embulk-logo-v2-symbol-tr.png +0 -0
- data/embulk-docs/src/_static/embulk-logo-v2/embulk-logo-v2-symbol-wt.png +0 -0
- data/embulk-docs/src/_static/embulk-logo-v2/embulk-logo-v2-symbol.ai +1 -394
- data/embulk-docs/src/_static/embulk-logo.svg +0 -133
- data/embulk-docs/src/built-in.rst +0 -1017
- data/embulk-docs/src/conf.py +0 -260
- data/embulk-docs/src/customization.rst +0 -184
- data/embulk-docs/src/developers/index.rst +0 -45
- data/embulk-docs/src/index.rst +0 -102
- data/embulk-docs/src/logo.rst +0 -27
- data/embulk-docs/src/recipe.rst +0 -8
- data/embulk-docs/src/recipe/scheduled-csv-load-to-elasticsearch-kibana5.rst +0 -163
- data/embulk-docs/src/release.rst +0 -109
- data/embulk-docs/src/release/release-0.1.0.rst +0 -8
- data/embulk-docs/src/release/release-0.2.0.rst +0 -16
- data/embulk-docs/src/release/release-0.2.1.rst +0 -19
- data/embulk-docs/src/release/release-0.3.0.rst +0 -34
- data/embulk-docs/src/release/release-0.3.1.rst +0 -11
- data/embulk-docs/src/release/release-0.3.2.rst +0 -15
- data/embulk-docs/src/release/release-0.4.0.rst +0 -74
- data/embulk-docs/src/release/release-0.4.1.rst +0 -18
- data/embulk-docs/src/release/release-0.4.10.rst +0 -17
- data/embulk-docs/src/release/release-0.4.2.rst +0 -18
- data/embulk-docs/src/release/release-0.4.3.rst +0 -34
- data/embulk-docs/src/release/release-0.4.4.rst +0 -39
- data/embulk-docs/src/release/release-0.4.5.rst +0 -24
- data/embulk-docs/src/release/release-0.4.6.rst +0 -30
- data/embulk-docs/src/release/release-0.4.7.rst +0 -16
- data/embulk-docs/src/release/release-0.4.8.rst +0 -15
- data/embulk-docs/src/release/release-0.4.9.rst +0 -23
- data/embulk-docs/src/release/release-0.5.0.rst +0 -89
- data/embulk-docs/src/release/release-0.5.1.rst +0 -13
- data/embulk-docs/src/release/release-0.5.2.rst +0 -30
- data/embulk-docs/src/release/release-0.5.3.rst +0 -22
- data/embulk-docs/src/release/release-0.5.4.rst +0 -24
- data/embulk-docs/src/release/release-0.5.5.rst +0 -18
- data/embulk-docs/src/release/release-0.6.0.rst +0 -34
- data/embulk-docs/src/release/release-0.6.1.rst +0 -11
- data/embulk-docs/src/release/release-0.6.10.rst +0 -15
- data/embulk-docs/src/release/release-0.6.11.rst +0 -19
- data/embulk-docs/src/release/release-0.6.12.rst +0 -31
- data/embulk-docs/src/release/release-0.6.13.rst +0 -23
- data/embulk-docs/src/release/release-0.6.14.rst +0 -47
- data/embulk-docs/src/release/release-0.6.15.rst +0 -26
- data/embulk-docs/src/release/release-0.6.16.rst +0 -26
- data/embulk-docs/src/release/release-0.6.17.rst +0 -39
- data/embulk-docs/src/release/release-0.6.18.rst +0 -14
- data/embulk-docs/src/release/release-0.6.19.rst +0 -18
- data/embulk-docs/src/release/release-0.6.2.rst +0 -17
- data/embulk-docs/src/release/release-0.6.20.rst +0 -19
- data/embulk-docs/src/release/release-0.6.21.rst +0 -20
- data/embulk-docs/src/release/release-0.6.22.rst +0 -26
- data/embulk-docs/src/release/release-0.6.23.rst +0 -17
- data/embulk-docs/src/release/release-0.6.24.rst +0 -13
- data/embulk-docs/src/release/release-0.6.25.rst +0 -12
- data/embulk-docs/src/release/release-0.6.26.rst +0 -17
- data/embulk-docs/src/release/release-0.6.27.rst +0 -11
- data/embulk-docs/src/release/release-0.6.3.rst +0 -23
- data/embulk-docs/src/release/release-0.6.4.rst +0 -13
- data/embulk-docs/src/release/release-0.6.5.rst +0 -17
- data/embulk-docs/src/release/release-0.6.6.rst +0 -17
- data/embulk-docs/src/release/release-0.6.7.rst +0 -17
- data/embulk-docs/src/release/release-0.6.8.rst +0 -24
- data/embulk-docs/src/release/release-0.6.9.rst +0 -24
- data/embulk-docs/src/release/release-0.7.0.rst +0 -96
- data/embulk-docs/src/release/release-0.7.1.rst +0 -22
- data/embulk-docs/src/release/release-0.7.10.rst +0 -13
- data/embulk-docs/src/release/release-0.7.11.rst +0 -12
- data/embulk-docs/src/release/release-0.7.2.rst +0 -25
- data/embulk-docs/src/release/release-0.7.3.rst +0 -21
- data/embulk-docs/src/release/release-0.7.4.rst +0 -14
- data/embulk-docs/src/release/release-0.7.5.rst +0 -22
- data/embulk-docs/src/release/release-0.7.6.rst +0 -18
- data/embulk-docs/src/release/release-0.7.7.rst +0 -13
- data/embulk-docs/src/release/release-0.7.8.rst +0 -14
- data/embulk-docs/src/release/release-0.7.9.rst +0 -14
- data/embulk-docs/src/release/release-0.8.0.rst +0 -74
- data/embulk-docs/src/release/release-0.8.1.rst +0 -18
- data/embulk-docs/src/release/release-0.8.10.rst +0 -35
- data/embulk-docs/src/release/release-0.8.11.rst +0 -12
- data/embulk-docs/src/release/release-0.8.12.rst +0 -12
- data/embulk-docs/src/release/release-0.8.13.rst +0 -12
- data/embulk-docs/src/release/release-0.8.14.rst +0 -31
- data/embulk-docs/src/release/release-0.8.15.rst +0 -17
- data/embulk-docs/src/release/release-0.8.16.rst +0 -43
- data/embulk-docs/src/release/release-0.8.17.rst +0 -11
- data/embulk-docs/src/release/release-0.8.18.rst +0 -27
- data/embulk-docs/src/release/release-0.8.19.rst +0 -43
- data/embulk-docs/src/release/release-0.8.2.rst +0 -19
- data/embulk-docs/src/release/release-0.8.20.rst +0 -11
- data/embulk-docs/src/release/release-0.8.21.rst +0 -17
- data/embulk-docs/src/release/release-0.8.22.rst +0 -15
- data/embulk-docs/src/release/release-0.8.23.rst +0 -14
- data/embulk-docs/src/release/release-0.8.24.rst +0 -15
- data/embulk-docs/src/release/release-0.8.25.rst +0 -14
- data/embulk-docs/src/release/release-0.8.26.rst +0 -16
- data/embulk-docs/src/release/release-0.8.27.rst +0 -15
- data/embulk-docs/src/release/release-0.8.28.rst +0 -14
- data/embulk-docs/src/release/release-0.8.29.rst +0 -14
- data/embulk-docs/src/release/release-0.8.3.rst +0 -15
- data/embulk-docs/src/release/release-0.8.30.rst +0 -14
- data/embulk-docs/src/release/release-0.8.31.rst +0 -12
- data/embulk-docs/src/release/release-0.8.32.rst +0 -14
- data/embulk-docs/src/release/release-0.8.33.rst +0 -13
- data/embulk-docs/src/release/release-0.8.34.rst +0 -12
- data/embulk-docs/src/release/release-0.8.35.rst +0 -12
- data/embulk-docs/src/release/release-0.8.36.rst +0 -32
- data/embulk-docs/src/release/release-0.8.37.rst +0 -20
- data/embulk-docs/src/release/release-0.8.38.rst +0 -12
- data/embulk-docs/src/release/release-0.8.39.rst +0 -12
- data/embulk-docs/src/release/release-0.8.4.rst +0 -18
- data/embulk-docs/src/release/release-0.8.5.rst +0 -11
- data/embulk-docs/src/release/release-0.8.6.rst +0 -14
- data/embulk-docs/src/release/release-0.8.7.rst +0 -18
- data/embulk-docs/src/release/release-0.8.8.rst +0 -18
- data/embulk-docs/src/release/release-0.8.9.rst +0 -14
- data/embulk-jruby-strptime/build.gradle +0 -3
- data/embulk-jruby-strptime/src/main/java/org/embulk/spi/time/RubyDateParser.java +0 -121
- data/embulk-jruby-strptime/src/main/java/org/embulk/spi/time/StrptimeFormat.java +0 -53
- data/embulk-jruby-strptime/src/main/java/org/embulk/spi/time/StrptimeParser.java +0 -884
- data/embulk-jruby-strptime/src/main/java/org/embulk/spi/time/StrptimeToken.java +0 -111
- data/embulk-jruby-strptime/src/main/java/org/embulk/spi/time/TimeZoneConverter.java +0 -466
- data/embulk-jruby-strptime/src/main/java/org/embulk/spi/time/lexer/StrptimeLexer.flex +0 -62
- data/embulk-jruby-strptime/src/main/java/org/embulk/spi/time/lexer/StrptimeLexer.java +0 -577
- data/embulk-standards/build.gradle +0 -7
- data/embulk-standards/src/main/java/org/embulk/standards/Bzip2FileDecoderPlugin.java +0 -55
- data/embulk-standards/src/main/java/org/embulk/standards/Bzip2FileEncoderPlugin.java +0 -67
- data/embulk-standards/src/main/java/org/embulk/standards/ConfigInputPlugin.java +0 -170
- data/embulk-standards/src/main/java/org/embulk/standards/CsvFormatterPlugin.java +0 -295
- data/embulk-standards/src/main/java/org/embulk/standards/CsvParserPlugin.java +0 -416
- data/embulk-standards/src/main/java/org/embulk/standards/CsvTokenizer.java +0 -545
- data/embulk-standards/src/main/java/org/embulk/standards/GzipFileDecoderPlugin.java +0 -55
- data/embulk-standards/src/main/java/org/embulk/standards/GzipFileEncoderPlugin.java +0 -71
- data/embulk-standards/src/main/java/org/embulk/standards/JsonParserPlugin.java +0 -235
- data/embulk-standards/src/main/java/org/embulk/standards/LocalFileInputPlugin.java +0 -232
- data/embulk-standards/src/main/java/org/embulk/standards/LocalFileOutputPlugin.java +0 -148
- data/embulk-standards/src/main/java/org/embulk/standards/NullOutputPlugin.java +0 -59
- data/embulk-standards/src/main/java/org/embulk/standards/RemoveColumnsFilterPlugin.java +0 -268
- data/embulk-standards/src/main/java/org/embulk/standards/RenameFilterPlugin.java +0 -479
- data/embulk-standards/src/main/java/org/embulk/standards/StandardPluginExtension.java +0 -16
- data/embulk-standards/src/main/java/org/embulk/standards/StandardPluginModule.java +0 -60
- data/embulk-standards/src/main/java/org/embulk/standards/StdoutOutputPlugin.java +0 -91
- data/embulk-standards/src/main/resources/META-INF/services/org.embulk.spi.Extension +0 -1
- data/embulk-standards/src/test/java/org/embulk/standards/TestCsvFormatterPlugin.java +0 -312
- data/embulk-standards/src/test/java/org/embulk/standards/TestCsvParserPlugin.java +0 -75
- data/embulk-standards/src/test/java/org/embulk/standards/TestCsvTokenizer.java +0 -457
- data/embulk-standards/src/test/java/org/embulk/standards/TestJsonParserPlugin.java +0 -351
- data/embulk-standards/src/test/java/org/embulk/standards/TestRemoveColumnsFilterPlugin.java +0 -121
- data/embulk-standards/src/test/java/org/embulk/standards/TestRenameFilterPlugin.java +0 -1020
- data/embulk-standards/src/test/java/org/embulk/standards/guess/TestCsvAllStringsGuessPlugin.java +0 -38
- data/embulk-standards/src/test/java/org/embulk/standards/guess/TestCsvGuessPlugin.java +0 -248
- data/embulk-standards/src/test/java/org/embulk/standards/preview/TestFilePreview.java +0 -73
- data/embulk-standards/src/test/resources/org/embulk/standards/guess/csv/test/test_1_int_single_column_row.csv +0 -1
- data/embulk-standards/src/test/resources/org/embulk/standards/guess/csv/test/test_1_int_single_column_row_and_header.csv +0 -2
- data/embulk-standards/src/test/resources/org/embulk/standards/guess/csv/test/test_1_int_single_column_row_and_header_guessed.yml +0 -12
- data/embulk-standards/src/test/resources/org/embulk/standards/guess/csv/test/test_1_int_single_column_row_and_header_seed.yml +0 -1
- data/embulk-standards/src/test/resources/org/embulk/standards/guess/csv/test/test_1_int_single_column_row_guessed.yml +0 -12
- data/embulk-standards/src/test/resources/org/embulk/standards/guess/csv/test/test_1_int_single_column_row_seed.yml +0 -1
- data/embulk-standards/src/test/resources/org/embulk/standards/guess/csv/test/test_1_rows.csv +0 -1
- data/embulk-standards/src/test/resources/org/embulk/standards/guess/csv/test/test_1_rows_and_header.csv +0 -2
- data/embulk-standards/src/test/resources/org/embulk/standards/guess/csv/test/test_1_rows_and_header_guessed.yml +0 -16
- data/embulk-standards/src/test/resources/org/embulk/standards/guess/csv/test/test_1_rows_and_header_seed.yml +0 -1
- data/embulk-standards/src/test/resources/org/embulk/standards/guess/csv/test/test_1_rows_and_header_with_trim_needed.csv +0 -2
- data/embulk-standards/src/test/resources/org/embulk/standards/guess/csv/test/test_1_rows_and_header_with_trim_needed_guessed.yml +0 -16
- data/embulk-standards/src/test/resources/org/embulk/standards/guess/csv/test/test_1_rows_and_header_with_trim_needed_seed.yml +0 -1
- data/embulk-standards/src/test/resources/org/embulk/standards/guess/csv/test/test_1_rows_guessed.yml +0 -16
- data/embulk-standards/src/test/resources/org/embulk/standards/guess/csv/test/test_1_rows_seed.yml +0 -1
- data/embulk-standards/src/test/resources/org/embulk/standards/guess/csv/test/test_1_rows_with_trim_needed.csv +0 -1
- data/embulk-standards/src/test/resources/org/embulk/standards/guess/csv/test/test_1_rows_with_trim_needed_guessed.yml +0 -16
- data/embulk-standards/src/test/resources/org/embulk/standards/guess/csv/test/test_1_rows_with_trim_needed_seed.yml +0 -1
- data/embulk-standards/src/test/resources/org/embulk/standards/guess/csv/test/test_1_string_single_column_row.csv +0 -1
- data/embulk-standards/src/test/resources/org/embulk/standards/guess/csv/test/test_1_string_single_column_row_and_header.csv +0 -2
- data/embulk-standards/src/test/resources/org/embulk/standards/guess/csv/test/test_1_string_single_column_row_and_header_guessed.yml +0 -12
- data/embulk-standards/src/test/resources/org/embulk/standards/guess/csv/test/test_1_string_single_column_row_and_header_seed.yml +0 -1
- data/embulk-standards/src/test/resources/org/embulk/standards/guess/csv/test/test_1_string_single_column_row_guessed.yml +0 -12
- data/embulk-standards/src/test/resources/org/embulk/standards/guess/csv/test/test_1_string_single_column_row_seed.yml +0 -1
- data/embulk-standards/src/test/resources/org/embulk/standards/guess/csv/test/test_2_int_single_column_rows.csv +0 -2
- data/embulk-standards/src/test/resources/org/embulk/standards/guess/csv/test/test_2_int_single_column_rows_guessed.yml +0 -12
- data/embulk-standards/src/test/resources/org/embulk/standards/guess/csv/test/test_2_int_single_column_rows_seed.yml +0 -1
- data/embulk-standards/src/test/resources/org/embulk/standards/guess/csv/test/test_2_rows.csv +0 -2
- data/embulk-standards/src/test/resources/org/embulk/standards/guess/csv/test/test_2_rows_and_header.csv +0 -3
- data/embulk-standards/src/test/resources/org/embulk/standards/guess/csv/test/test_2_rows_and_header_guessed.yml +0 -16
- data/embulk-standards/src/test/resources/org/embulk/standards/guess/csv/test/test_2_rows_and_header_seed.yml +0 -1
- data/embulk-standards/src/test/resources/org/embulk/standards/guess/csv/test/test_2_rows_guessed.yml +0 -16
- data/embulk-standards/src/test/resources/org/embulk/standards/guess/csv/test/test_2_rows_seed.yml +0 -1
- data/embulk-standards/src/test/resources/org/embulk/standards/guess/csv/test/test_2_string_single_column_rows.csv +0 -2
- data/embulk-standards/src/test/resources/org/embulk/standards/guess/csv/test/test_2_string_single_column_rows_guessed.yml +0 -12
- data/embulk-standards/src/test/resources/org/embulk/standards/guess/csv/test/test_2_string_single_column_rows_seed.yml +0 -1
- data/embulk-standards/src/test/resources/org/embulk/standards/guess/csv/test/test_backslash_escape.csv +0 -5
- data/embulk-standards/src/test/resources/org/embulk/standards/guess/csv/test/test_backslash_escape_guessed.yml +0 -17
- data/embulk-standards/src/test/resources/org/embulk/standards/guess/csv/test/test_backslash_escape_seed.yml +0 -1
- data/embulk-standards/src/test/resources/org/embulk/standards/guess/csv/test/test_double_single_column.csv +0 -12
- data/embulk-standards/src/test/resources/org/embulk/standards/guess/csv/test/test_double_single_column_guessed.yml +0 -12
- data/embulk-standards/src/test/resources/org/embulk/standards/guess/csv/test/test_double_single_column_seed.yml +0 -1
- data/embulk-standards/src/test/resources/org/embulk/standards/guess/csv/test/test_int_single_column.csv +0 -4
- data/embulk-standards/src/test/resources/org/embulk/standards/guess/csv/test/test_int_single_column_guessed.yml +0 -12
- data/embulk-standards/src/test/resources/org/embulk/standards/guess/csv/test/test_int_single_column_seed.yml +0 -1
- data/embulk-standards/src/test/resources/org/embulk/standards/guess/csv/test/test_int_single_column_with_header.csv +0 -5
- data/embulk-standards/src/test/resources/org/embulk/standards/guess/csv/test/test_int_single_column_with_header_guessed.yml +0 -12
- data/embulk-standards/src/test/resources/org/embulk/standards/guess/csv/test/test_int_single_column_with_header_seed.yml +0 -1
- data/embulk-standards/src/test/resources/org/embulk/standards/guess/csv/test/test_semicolon_delimiter.csv +0 -5
- data/embulk-standards/src/test/resources/org/embulk/standards/guess/csv/test/test_semicolon_delimiter_guessed.yml +0 -17
- data/embulk-standards/src/test/resources/org/embulk/standards/guess/csv/test/test_semicolon_delimiter_seed.yml +0 -1
- data/embulk-standards/src/test/resources/org/embulk/standards/guess/csv/test/test_simple.csv +0 -5
- data/embulk-standards/src/test/resources/org/embulk/standards/guess/csv/test/test_simple_guessed.yml +0 -17
- data/embulk-standards/src/test/resources/org/embulk/standards/guess/csv/test/test_simple_seed.yml +0 -1
- data/embulk-standards/src/test/resources/org/embulk/standards/guess/csv/test/test_single_quote.csv +0 -5
- data/embulk-standards/src/test/resources/org/embulk/standards/guess/csv/test/test_single_quote_guessed.yml +0 -17
- data/embulk-standards/src/test/resources/org/embulk/standards/guess/csv/test/test_single_quote_seed.yml +0 -1
- data/embulk-standards/src/test/resources/org/embulk/standards/guess/csv/test/test_skip_suggest_if_empty_sample_records.csv +0 -5
- data/embulk-standards/src/test/resources/org/embulk/standards/guess/csv/test/test_skip_suggest_if_empty_sample_records_guessed.yml +0 -2
- data/embulk-standards/src/test/resources/org/embulk/standards/guess/csv/test/test_skip_suggest_if_empty_sample_records_seed.yml +0 -1
- data/embulk-standards/src/test/resources/org/embulk/standards/guess/csv/test/test_string_single_column.csv +0 -4
- data/embulk-standards/src/test/resources/org/embulk/standards/guess/csv/test/test_string_single_column_guessed.yml +0 -12
- data/embulk-standards/src/test/resources/org/embulk/standards/guess/csv/test/test_string_single_column_seed.yml +0 -1
- data/embulk-standards/src/test/resources/org/embulk/standards/guess/csv/test/test_string_single_column_with_header.csv +0 -5
- data/embulk-standards/src/test/resources/org/embulk/standards/guess/csv/test/test_string_single_column_with_header_guessed.yml +0 -12
- data/embulk-standards/src/test/resources/org/embulk/standards/guess/csv/test/test_string_single_column_with_header_seed.yml +0 -1
- data/embulk-standards/src/test/resources/org/embulk/standards/guess/csv/test/test_tab_delimiter.csv +0 -4
- data/embulk-standards/src/test/resources/org/embulk/standards/guess/csv/test/test_tab_delimiter_guessed.yml +0 -16
- data/embulk-standards/src/test/resources/org/embulk/standards/guess/csv/test/test_tab_delimiter_seed.yml +0 -1
- data/embulk-standards/src/test/resources/org/embulk/standards/guess/csv_all_strings/test/test_simple.csv +0 -5
- data/embulk-standards/src/test/resources/org/embulk/standards/guess/csv_all_strings/test/test_simple_guessed.yml +0 -17
- data/embulk-standards/src/test/resources/org/embulk/standards/guess/csv_all_strings/test/test_simple_seed.yml +0 -1
- data/embulk-standards/src/test/resources/org/embulk/standards/preview/file/test/test_sample_buffer_bytes.csv +0 -5
- data/embulk-standards/src/test/resources/org/embulk/standards/preview/file/test/test_sample_buffer_bytes_exec.yml +0 -1
- data/embulk-standards/src/test/resources/org/embulk/standards/preview/file/test/test_sample_buffer_bytes_load.yml +0 -19
- data/embulk-standards/src/test/resources/org/embulk/standards/preview/file/test/test_sample_buffer_bytes_previewed.csv +0 -1
- data/embulk-standards/src/test/resources/org/embulk/standards/preview/file/test/test_simple.csv +0 -5
- data/embulk-standards/src/test/resources/org/embulk/standards/preview/file/test/test_simple_load.yml +0 -19
- data/embulk-standards/src/test/resources/org/embulk/standards/preview/file/test/test_simple_previewed.csv +0 -4
- data/embulk-standards/src/test/resources/org/embulk/standards/remove_columns/test/test_keep.csv +0 -5
- data/embulk-standards/src/test/resources/org/embulk/standards/remove_columns/test/test_keep_expected.csv +0 -4
- data/embulk-standards/src/test/resources/org/embulk/standards/remove_columns/test/test_keep_filter.yml +0 -2
- data/embulk-standards/src/test/resources/org/embulk/standards/remove_columns/test/test_keep_in.yml +0 -18
- data/embulk-standards/src/test/resources/org/embulk/standards/remove_columns/test/test_keep_with_duplicated_column_names.csv +0 -5
- data/embulk-standards/src/test/resources/org/embulk/standards/remove_columns/test/test_keep_with_duplicated_column_names.yml +0 -2
- data/embulk-standards/src/test/resources/org/embulk/standards/remove_columns/test/test_keep_with_duplicated_column_names_expected.csv +0 -4
- data/embulk-standards/src/test/resources/org/embulk/standards/remove_columns/test/test_keep_with_duplicated_column_names_in.yml +0 -17
- data/embulk-standards/src/test/resources/org/embulk/standards/remove_columns/test/test_keep_with_unmatched_filter.yml +0 -3
- data/embulk-standards/src/test/resources/org/embulk/standards/remove_columns/test/test_keep_without_unmatched_filter.yml +0 -2
- data/embulk-standards/src/test/resources/org/embulk/standards/remove_columns/test/test_remove.csv +0 -5
- data/embulk-standards/src/test/resources/org/embulk/standards/remove_columns/test/test_remove_expected.csv +0 -4
- data/embulk-standards/src/test/resources/org/embulk/standards/remove_columns/test/test_remove_filter.yml +0 -2
- data/embulk-standards/src/test/resources/org/embulk/standards/remove_columns/test/test_remove_in.yml +0 -18
- data/embulk-standards/src/test/resources/org/embulk/standards/remove_columns/test/test_remove_with_unmatched_filter.yml +0 -3
- data/embulk-standards/src/test/resources/org/embulk/standards/remove_columns/test/test_remove_without_unmatched_filter.yml +0 -2
- data/embulk-test/build.gradle +0 -6
- data/embulk-test/src/main/java/org/embulk/test/EmbulkTests.java +0 -75
- data/embulk-test/src/main/java/org/embulk/test/PreviewResultInputPlugin.java +0 -65
- data/embulk-test/src/main/java/org/embulk/test/TestingBulkLoader.java +0 -129
- data/embulk-test/src/main/java/org/embulk/test/TestingEmbulk.java +0 -710
- data/gradle/wrapper/gradle-wrapper.jar +0 -0
- data/gradle/wrapper/gradle-wrapper.properties +0 -5
- data/gradlew +0 -172
- data/gradlew.bat +0 -84
- data/lib/embulk/data/bundle/.bundle/config +0 -3
- data/lib/embulk/data/bundle/.ruby-version +0 -1
- data/lib/embulk/data/bundle/Gemfile +0 -31
- data/lib/embulk/data/bundle/embulk/filter/example.rb +0 -42
- data/lib/embulk/data/bundle/embulk/input/example.rb +0 -54
- data/lib/embulk/data/bundle/embulk/output/example.rb +0 -58
- data/lib/embulk/data/new/LICENSE.txt +0 -21
- data/lib/embulk/data/new/README.md.vm +0 -106
- data/lib/embulk/data/new/gitignore.vm +0 -17
- data/lib/embulk/data/new/java/build.gradle.vm +0 -96
- data/lib/embulk/data/new/java/config/checkstyle/checkstyle.xml +0 -128
- data/lib/embulk/data/new/java/config/checkstyle/default.xml +0 -108
- data/lib/embulk/data/new/java/decoder.java.vm +0 -86
- data/lib/embulk/data/new/java/encoder.java.vm +0 -88
- data/lib/embulk/data/new/java/file_input.java.vm +0 -145
- data/lib/embulk/data/new/java/file_output.java.vm +0 -95
- data/lib/embulk/data/new/java/filter.java.vm +0 -57
- data/lib/embulk/data/new/java/formatter.java.vm +0 -55
- data/lib/embulk/data/new/java/gradle/wrapper/gradle-wrapper.jar +0 -0
- data/lib/embulk/data/new/java/gradle/wrapper/gradle-wrapper.properties +0 -5
- data/lib/embulk/data/new/java/gradlew +0 -172
- data/lib/embulk/data/new/java/gradlew.bat +0 -84
- data/lib/embulk/data/new/java/input.java.vm +0 -89
- data/lib/embulk/data/new/java/output.java.vm +0 -79
- data/lib/embulk/data/new/java/parser.java.vm +0 -61
- data/lib/embulk/data/new/java/plugin_loader.rb.vm +0 -3
- data/lib/embulk/data/new/java/test.java.vm +0 -5
- data/lib/embulk/data/new/ruby/.ruby-version +0 -1
- data/lib/embulk/data/new/ruby/Gemfile +0 -2
- data/lib/embulk/data/new/ruby/Rakefile +0 -3
- data/lib/embulk/data/new/ruby/decoder_guess.rb.vm +0 -25
- data/lib/embulk/data/new/ruby/filter.rb.vm +0 -50
- data/lib/embulk/data/new/ruby/formatter.rb.vm +0 -49
- data/lib/embulk/data/new/ruby/gemspec.vm +0 -20
- data/lib/embulk/data/new/ruby/input.rb.vm +0 -59
- data/lib/embulk/data/new/ruby/output.rb.vm +0 -61
- data/lib/embulk/data/new/ruby/parser.rb.vm +0 -44
- data/lib/embulk/data/new/ruby/parser_guess.rb.vm +0 -65
- data/lib/embulk/data/package_data.rb +0 -59
- data/lib/embulk/runner.rb +0 -53
- data/settings.gradle +0 -8
- data/test/helper.rb +0 -23
- data/test/monkey_strptime/mri/date/test_date_strptime.rb +0 -515
- data/test/monkey_strptime/run-test.rb +0 -29
- data/test/vanilla/guess/test_csv_all_strings.rb +0 -43
- data/test/vanilla/guess/test_csv_guess.rb +0 -170
- data/test/vanilla/guess/test_schema_guess.rb +0 -47
- data/test/vanilla/guess/test_time_format_guess.rb +0 -135
- data/test/vanilla/run-test.rb +0 -14
- data/test/vanilla/time/test_timestamp_parser.rb +0 -117
@@ -1,29 +0,0 @@
|
|
1
|
-
base_dir = File.expand_path(File.join(File.dirname(__FILE__), "..", ".."))
|
2
|
-
lib_dir = File.join(base_dir, "lib")
|
3
|
-
test_dir = File.join(base_dir, "test")
|
4
|
-
|
5
|
-
$LOAD_PATH.unshift(lib_dir)
|
6
|
-
$LOAD_PATH.unshift(test_dir)
|
7
|
-
|
8
|
-
require "helper"
|
9
|
-
require "date"
|
10
|
-
require "test/unit"
|
11
|
-
|
12
|
-
module DateExt
|
13
|
-
def self.included base
|
14
|
-
base.instance_eval do
|
15
|
-
def _strptime(str, fmt='%F')
|
16
|
-
parser = org.embulk.spi.time.RubyDateParser.new
|
17
|
-
map = parser.parse(JRuby.runtime.current_context, fmt, str)
|
18
|
-
return map.nil? ? nil : map.to_hash.inject({}){|hash,(k,v)| hash[k.to_sym] = v; hash}
|
19
|
-
end
|
20
|
-
end
|
21
|
-
end
|
22
|
-
end
|
23
|
-
Date.send(:include, DateExt)
|
24
|
-
|
25
|
-
Dir.glob("#{base_dir}/test/monkey_strptime/**/test{_,-}*.rb") do |file|
|
26
|
-
require file.sub(/\.rb$/,"")
|
27
|
-
end
|
28
|
-
|
29
|
-
exit Test::Unit::AutoRunner.run
|
@@ -1,43 +0,0 @@
|
|
1
|
-
require 'helper'
|
2
|
-
require 'time'
|
3
|
-
require 'embulk/guess/csv_all_strings'
|
4
|
-
|
5
|
-
class CsvAllStringsGuessTest < ::Test::Unit::TestCase
|
6
|
-
class TestAllStrings < self
|
7
|
-
def test_columns_without_header
|
8
|
-
actual = guess([
|
9
|
-
"1\tfoo\t2000-01-01T00:00:00+0900",
|
10
|
-
"2\tbar\t2000-01-01T00:00:00+0900",
|
11
|
-
])
|
12
|
-
expected = [
|
13
|
-
{"name" => "c0", "type" => "string"},
|
14
|
-
{"name" => "c1", "type" => "string"},
|
15
|
-
{"name" => "c2", "type" => "string"},
|
16
|
-
]
|
17
|
-
assert_equal expected, actual["parser"]["columns"]
|
18
|
-
end
|
19
|
-
|
20
|
-
def test_columns_with_header
|
21
|
-
actual = guess([
|
22
|
-
"num\tstr\ttime",
|
23
|
-
"1\tfoo\t2000-01-01T00:00:00+0900",
|
24
|
-
"2\tbar\t2000-01-01T00:00:00+0900",
|
25
|
-
])
|
26
|
-
expected = [
|
27
|
-
{"name" => "num", "type" => "string"},
|
28
|
-
{"name" => "str", "type" => "string"},
|
29
|
-
{"name" => "time", "type" => "string"},
|
30
|
-
]
|
31
|
-
assert_equal expected, actual["parser"]["columns"]
|
32
|
-
end
|
33
|
-
end
|
34
|
-
|
35
|
-
def guess(texts)
|
36
|
-
conf = Embulk::DataSource.new({
|
37
|
-
parser: {
|
38
|
-
type: "csv"
|
39
|
-
}
|
40
|
-
})
|
41
|
-
Embulk::Guess::CsvAllStringsGuessPlugin.new.guess_lines(conf, Array(texts))
|
42
|
-
end
|
43
|
-
end
|
@@ -1,170 +0,0 @@
|
|
1
|
-
require 'helper'
|
2
|
-
require 'time'
|
3
|
-
require 'embulk/guess/csv'
|
4
|
-
|
5
|
-
class CsvGuessTest < ::Test::Unit::TestCase
|
6
|
-
class TestDelimiter < self
|
7
|
-
data(
|
8
|
-
"\t" => "\t",
|
9
|
-
"," => ",",
|
10
|
-
"|" => "|",
|
11
|
-
)
|
12
|
-
def test_delimiter_detection(delim)
|
13
|
-
actual = guess([
|
14
|
-
["1", "foo"].join(delim),
|
15
|
-
["2", "bar"].join(delim),
|
16
|
-
])
|
17
|
-
assert_equal delim, actual["parser"]["delimiter"]
|
18
|
-
end
|
19
|
-
end
|
20
|
-
|
21
|
-
class TestQuote < self
|
22
|
-
data(
|
23
|
-
"'" => "'",
|
24
|
-
'"' => '"',
|
25
|
-
nil => nil,
|
26
|
-
)
|
27
|
-
def test_quote(quotation)
|
28
|
-
actual = guess([
|
29
|
-
%w(1 foo).map{|str| %Q(#{quotation}#{str}#{quotation})}.join("\t"),
|
30
|
-
%w(2 bar).map{|str| %Q(#{quotation}#{str}#{quotation})}.join("\t"),
|
31
|
-
])
|
32
|
-
assert_equal quotation, actual["parser"]["quote"]
|
33
|
-
end
|
34
|
-
end
|
35
|
-
|
36
|
-
class TestEscape < self
|
37
|
-
data(
|
38
|
-
"\\" => "\\",
|
39
|
-
'"' => '"',
|
40
|
-
)
|
41
|
-
def test_escape(char)
|
42
|
-
actual = guess([
|
43
|
-
%Q('1'\t'F#{char}'OO'),
|
44
|
-
%Q('2'\t'FOOOOOOOO#{char}'OO'),
|
45
|
-
])
|
46
|
-
assert_equal char, actual["parser"]["escape"]
|
47
|
-
end
|
48
|
-
end
|
49
|
-
|
50
|
-
class TestSkipHeaderLines < self
|
51
|
-
def test_skip_header_lines_one
|
52
|
-
actual = guess([
|
53
|
-
"col1\tcol2",
|
54
|
-
"1\tfoo",
|
55
|
-
"2\tbar",
|
56
|
-
])
|
57
|
-
assert_equal 1, actual["parser"]["skip_header_lines"]
|
58
|
-
end
|
59
|
-
|
60
|
-
def test_skip_header_lines_three
|
61
|
-
actual = guess([
|
62
|
-
"this is a CSV",
|
63
|
-
"created for a test",
|
64
|
-
"col1\tcol2",
|
65
|
-
"1\tfoo",
|
66
|
-
"2\tbar",
|
67
|
-
])
|
68
|
-
assert_equal 3, actual["parser"]["skip_header_lines"]
|
69
|
-
end
|
70
|
-
end
|
71
|
-
|
72
|
-
class TestNullString < self
|
73
|
-
data(
|
74
|
-
"\\N" => "\\N",
|
75
|
-
"null" => "null",
|
76
|
-
"NULL" => "NULL",
|
77
|
-
"#N/A" => "#N/A",
|
78
|
-
nil => nil,
|
79
|
-
)
|
80
|
-
def test_null_string(null)
|
81
|
-
actual = guess([
|
82
|
-
"1\tfoo\t#{null}",
|
83
|
-
"2\tbar\t#{null}",
|
84
|
-
])
|
85
|
-
assert_equal null, actual["parser"]["null_string"]
|
86
|
-
end
|
87
|
-
end
|
88
|
-
|
89
|
-
class TestTrim < self
|
90
|
-
def test_trim_flag_when_will_be_long_if_strip_arround_space
|
91
|
-
actual = guess([
|
92
|
-
" 1 \tfoo",
|
93
|
-
" 2 \tfoo",
|
94
|
-
" 3 \tfoo",
|
95
|
-
])
|
96
|
-
assert_equal true, actual["parser"]["trim_if_not_quoted"]
|
97
|
-
end
|
98
|
-
end
|
99
|
-
|
100
|
-
class TestCommentLineMarker < self
|
101
|
-
data(
|
102
|
-
"#" => "#",
|
103
|
-
"//" => "//",
|
104
|
-
)
|
105
|
-
def test_comment_line_marker(marker)
|
106
|
-
actual = guess([
|
107
|
-
"foo\t 1\tother",
|
108
|
-
"#{marker} foo\t 2\tother",
|
109
|
-
"foo\t 3\tother",
|
110
|
-
])
|
111
|
-
assert_equal marker, actual["parser"]["comment_line_marker"]
|
112
|
-
end
|
113
|
-
end
|
114
|
-
|
115
|
-
class TestColumns < self
|
116
|
-
def test_columns_without_header
|
117
|
-
actual = guess([
|
118
|
-
"1\tfoo\t2000-01-01T00:00:00+0900",
|
119
|
-
"2\tbar\t2000-01-01T00:00:00+0900",
|
120
|
-
])
|
121
|
-
expected = [
|
122
|
-
{"name" => "c0", "type" => "long"},
|
123
|
-
{"name" => "c1", "type" => "string"},
|
124
|
-
{"name" => "c2", "type" => "timestamp", "format"=>"%Y-%m-%dT%H:%M:%S%z"},
|
125
|
-
]
|
126
|
-
assert_equal expected, actual["parser"]["columns"]
|
127
|
-
end
|
128
|
-
|
129
|
-
def test_columns_with_header
|
130
|
-
actual = guess([
|
131
|
-
"num\tstr\ttime",
|
132
|
-
"1\tfoo\t2000-01-01T00:00:00+0900",
|
133
|
-
"2\tbar\t2000-01-01T00:00:00+0900",
|
134
|
-
])
|
135
|
-
expected = [
|
136
|
-
{"name" => "num", "type" => "long"},
|
137
|
-
{"name" => "str", "type" => "string"},
|
138
|
-
{"name" => "time", "type" => "timestamp", "format"=>"%Y-%m-%dT%H:%M:%S%z"},
|
139
|
-
]
|
140
|
-
assert_equal expected, actual["parser"]["columns"]
|
141
|
-
end
|
142
|
-
|
143
|
-
def test_complex_line
|
144
|
-
actual = guess([
|
145
|
-
%Q(this is useless header),
|
146
|
-
%Q(and more),
|
147
|
-
%Q(num,str,quoted_num,time),
|
148
|
-
%Q(1, "value with space "" and quote in it", "123",21150312000000Z),
|
149
|
-
%Q(2),
|
150
|
-
%Q(# 3, "this is commented out" ,"1",21150312000000Z),
|
151
|
-
])
|
152
|
-
expected = [
|
153
|
-
{"name" => "num", "type" => "long"},
|
154
|
-
{"name" => "str", "type" => "string"},
|
155
|
-
{"name" => "quoted_num", "type" => "long"},
|
156
|
-
{"name" => "time", "type" => "timestamp", "format"=>"%Y%m%d%H%M%S%z"},
|
157
|
-
]
|
158
|
-
assert_equal expected, actual["parser"]["columns"]
|
159
|
-
end
|
160
|
-
end
|
161
|
-
|
162
|
-
def guess(texts)
|
163
|
-
conf = Embulk::DataSource.new({
|
164
|
-
parser: {
|
165
|
-
type: "csv"
|
166
|
-
}
|
167
|
-
})
|
168
|
-
Embulk::Guess::CsvGuessPlugin.new.guess_lines(conf, Array(texts))
|
169
|
-
end
|
170
|
-
end
|
@@ -1,47 +0,0 @@
|
|
1
|
-
require 'helper'
|
2
|
-
require 'time'
|
3
|
-
require 'embulk/guess/schema_guess'
|
4
|
-
|
5
|
-
class SchemaGuessTest < ::Test::Unit::TestCase
|
6
|
-
G = Embulk::Guess::SchemaGuess
|
7
|
-
C = Embulk::Column
|
8
|
-
|
9
|
-
def test_guess
|
10
|
-
G.from_hash_records([{"int" => "1", "str" => "a"}])
|
11
|
-
end
|
12
|
-
|
13
|
-
def test_coalesce
|
14
|
-
assert_equal(
|
15
|
-
[C.new(0, "a", :timestamp, "%Y%m%d")],
|
16
|
-
G.from_hash_records([
|
17
|
-
{"a" => "20160101"},
|
18
|
-
{"a" => "20160101"},
|
19
|
-
]))
|
20
|
-
|
21
|
-
assert_equal(
|
22
|
-
[C.new(0, "a", :long)],
|
23
|
-
G.from_hash_records([
|
24
|
-
{"a" => "20160101"},
|
25
|
-
{"a" => "20160101"},
|
26
|
-
{"a" => "12345678"},
|
27
|
-
]))
|
28
|
-
end
|
29
|
-
|
30
|
-
def test_boolean
|
31
|
-
%w[
|
32
|
-
true false t f
|
33
|
-
yes no y n
|
34
|
-
on off
|
35
|
-
].each do |str|
|
36
|
-
# If at least one of three kinds of boolean strings (i.e., downcase, upcase, capitalize) is
|
37
|
-
# mistakenly detected as "string," the guesser concludes the column type is "string."
|
38
|
-
assert_equal(
|
39
|
-
[C.new(0, "a", :boolean)],
|
40
|
-
G.from_hash_records([
|
41
|
-
{"a" => str.downcase},
|
42
|
-
{"a" => str.upcase},
|
43
|
-
{"a" => str.capitalize},
|
44
|
-
]))
|
45
|
-
end
|
46
|
-
end
|
47
|
-
end
|
@@ -1,135 +0,0 @@
|
|
1
|
-
require 'helper'
|
2
|
-
require 'time'
|
3
|
-
require 'embulk/guess/time_format_guess'
|
4
|
-
|
5
|
-
class TimeFormatGuessTest < ::Test::Unit::TestCase
|
6
|
-
def test_format_delims
|
7
|
-
# date-delim "-" date-time-delim " " time-delim ":" frac delim "."
|
8
|
-
assert_guess "%Y-%m-%d %H:%M:%S.%N", "2014-01-01 01:01:01.000000001"
|
9
|
-
assert_guess "%Y-%m-%d %H:%M:%S.%N", "2014-01-01 01:01:01.000001"
|
10
|
-
assert_guess "%Y-%m-%d %H:%M:%S.%L", "2014-01-01 01:01:01.001"
|
11
|
-
assert_guess "%Y-%m-%d %H:%M:%S", "2014-01-01 01:01:01"
|
12
|
-
assert_guess "%Y-%m-%d %H:%M", "2014-01-01 01:01"
|
13
|
-
assert_guess "%Y-%m-%d", "2014-01-01"
|
14
|
-
|
15
|
-
# date-delim "/" date-time-delim " " time-delim "-" frac delim ","
|
16
|
-
assert_guess "%Y/%m/%d %H-%M-%S,%N", "2014/01/01 01-01-01,000000001"
|
17
|
-
assert_guess "%Y/%m/%d %H-%M-%S,%N", "2014/01/01 01-01-01,000001"
|
18
|
-
assert_guess "%Y/%m/%d %H-%M-%S,%L", "2014/01/01 01-01-01,001"
|
19
|
-
assert_guess "%Y/%m/%d %H-%M-%S", "2014/01/01 01-01-01"
|
20
|
-
assert_guess "%Y/%m/%d %H-%M", "2014/01/01 01-01"
|
21
|
-
assert_guess "%Y/%m/%d", "2014/01/01"
|
22
|
-
|
23
|
-
# date-delim "." date-time-delim "." time-delim ":" frac delim "."
|
24
|
-
assert_guess "%Y.%m.%d.%H:%M:%S.%N", "2014.01.01.01:01:01.000000001"
|
25
|
-
assert_guess "%Y.%m.%d.%H:%M:%S.%N", "2014.01.01.01:01:01.000001"
|
26
|
-
assert_guess "%Y.%m.%d.%H:%M:%S.%L", "2014.01.01.01:01:01.001"
|
27
|
-
assert_guess "%Y.%m.%d.%H:%M:%S", "2014.01.01.01:01:01"
|
28
|
-
assert_guess "%Y.%m.%d.%H:%M", "2014.01.01.01:01"
|
29
|
-
assert_guess "%Y.%m.%d", "2014.01.01"
|
30
|
-
|
31
|
-
# date-delim "." date-time-delim ". " time-delim ":" frac delim ","
|
32
|
-
assert_guess "%Y.%m.%d. %H:%M:%S,%N", "2014.01.01. 01:01:01,000000001"
|
33
|
-
assert_guess "%Y.%m.%d. %H:%M:%S,%N", "2014.01.01. 01:01:01,000001"
|
34
|
-
assert_guess "%Y.%m.%d. %H:%M:%S,%L", "2014.01.01. 01:01:01,001"
|
35
|
-
assert_guess "%Y.%m.%d. %H:%M:%S", "2014.01.01. 01:01:01"
|
36
|
-
assert_guess "%Y.%m.%d. %H:%M", "2014.01.01. 01:01"
|
37
|
-
assert_guess "%Y.%m.%d", "2014.01.01"
|
38
|
-
end
|
39
|
-
|
40
|
-
def test_format_ymd_orders
|
41
|
-
assert_guess "%Y-%m-%d", "2014-01-01"
|
42
|
-
assert_guess "%Y/%m/%d", "2014/01/01"
|
43
|
-
assert_guess "%Y.%m.%d", "2014.01.01"
|
44
|
-
assert_guess "%m/%d/%Y", "01/01/2014"
|
45
|
-
assert_guess "%m.%d.%Y", "01.01.2014"
|
46
|
-
assert_guess "%d/%m/%Y", "13/01/2014"
|
47
|
-
assert_guess "%d/%m/%Y", "21/01/2014"
|
48
|
-
|
49
|
-
assert_guess "%d/%m/%Y %H-%M-%S,%N", "21/01/2014 01-01-01,000000001"
|
50
|
-
assert_guess "%d/%m/%Y %H-%M-%S,%N", "21/01/2014 01-01-01,000001"
|
51
|
-
assert_guess "%d/%m/%Y %H-%M-%S,%L", "21/01/2014 01-01-01,001"
|
52
|
-
assert_guess "%d/%m/%Y %H-%M-%S", "21/01/2014 01-01-01"
|
53
|
-
assert_guess "%d/%m/%Y %H-%M", "21/01/2014 01-01"
|
54
|
-
assert_guess "%d/%m/%Y", "21/01/2014"
|
55
|
-
end
|
56
|
-
|
57
|
-
def test_format_borders
|
58
|
-
assert_guess "%Y-%m-%d %H:%M:%S.%N", "2014-12-31 23:59:59.999999999"
|
59
|
-
end
|
60
|
-
|
61
|
-
def test_format_iso8601
|
62
|
-
assert_guess "%Y-%m-%d", "1981-04-05"
|
63
|
-
assert_guess "%Y-%m-%dT%H", "2007-04-06T13"
|
64
|
-
assert_guess "%Y-%m-%dT%H:%M", "2007-04-06T00:00"
|
65
|
-
assert_guess "%Y-%m-%dT%H:%M", "2007-04-05T24:00"
|
66
|
-
assert_guess "%Y-%m-%dT%H:%M:%S", "2007-04-06T13:47:30"
|
67
|
-
assert_guess "%Y-%m-%dT%H:%M:%S%z", "2007-04-06T13:47:30Z"
|
68
|
-
assert_guess "%Y-%m-%dT%H:%M:%S%z", "2007-04-06T13:47:30+00"
|
69
|
-
assert_guess "%Y-%m-%dT%H:%M:%S%:z", "2007-04-06T13:47:30+00:00"
|
70
|
-
assert_guess "%Y-%m-%dT%H:%M:%S%z", "2007-04-06T13:47:30+0000"
|
71
|
-
assert_guess "%Y-%m-%dT%H:%M:%S%z", "2007-04-06T13:47:30-01"
|
72
|
-
assert_guess "%Y-%m-%dT%H:%M:%S%:z", "2007-04-06T13:47:30-01:30"
|
73
|
-
assert_guess "%Y-%m-%dT%H:%M:%S%z", "2007-04-06T13:47:30-0130"
|
74
|
-
end
|
75
|
-
|
76
|
-
def test_format_rfc_822_2822
|
77
|
-
# This test is disabled because of https://github.com/jruby/jruby/issues/3702
|
78
|
-
#assert_guess '%a, %d %b %Y %H:%M:%S %Z', "Fri, 20 Feb 2015 14:02:34 PST"
|
79
|
-
assert_guess '%a, %d %b %Y %H:%M:%S %z', "Fri, 20 Feb 2015 22:02:34 UT"
|
80
|
-
assert_guess '%a, %d %b %Y %H:%M:%S %z', "Fri, 20 Feb 2015 22:02:34 GMT"
|
81
|
-
assert_guess '%d %b %Y %H:%M:%S %z', "20 Feb 2015 22:02:34 GMT"
|
82
|
-
assert_guess '%d %b %Y %H:%M %z', "20 Feb 2015 22:02 GMT"
|
83
|
-
assert_guess '%a, %d %b %Y %H:%M %z', "Fri, 20 Feb 2015 22:02 GMT"
|
84
|
-
assert_guess '%d %b %Y', "20 Feb 2015"
|
85
|
-
assert_guess '%a, %d %b %Y', "Fri, 20 Feb 2015"
|
86
|
-
assert_guess '%a, %d %b %Y %H:%M %z', "Fri, 20 Feb 2015 22:02 +0000"
|
87
|
-
assert_guess '%a, %d %b %Y %H:%M %:z', "Fri, 20 Feb 2015 22:02 +00:00"
|
88
|
-
assert_guess '%a, %d %b %Y %H:%M %z', "Fri, 20 Feb 2015 22:02 +00"
|
89
|
-
end
|
90
|
-
|
91
|
-
def test_format_apache_clf
|
92
|
-
assert_guess '%d/%b/%Y:%H:%M:%S %z', "07/Mar/2004:16:05:50 -0800"
|
93
|
-
end
|
94
|
-
|
95
|
-
def test_format_ansi_c_asctime
|
96
|
-
assert_guess '%a %b %e %H:%M:%S %Y', "Fri May 11 21:44:53 2001"
|
97
|
-
end
|
98
|
-
|
99
|
-
def test_format_merge_frequency
|
100
|
-
assert_guess_partial 2, "%Y-%m-%d %H:%M:%S", ["2014-01-01", "2014-01-01 00:00:00", "2014-01-01 00:00:00"]
|
101
|
-
assert_guess_partial 3, "%Y-%m-%d %H:%M:%S %z", ["2014-01-01 00:00:00 +0000", "2014-01-01 00:00:00 +0000", "2014-01-01 00:00:00 +00:00"]
|
102
|
-
end
|
103
|
-
|
104
|
-
def test_format_merge_dmy
|
105
|
-
# DMY has higher priority than MDY
|
106
|
-
assert_guess "%m/%d/%Y", ["01/01/2014"]
|
107
|
-
assert_guess "%d/%m/%Y", ["01/01/2014", "01/01/2014", "13/01/2014"]
|
108
|
-
assert_guess "%d.%m.%Y", ["01.01.2014", "01.01.2014", "13.01.2014"]
|
109
|
-
# but frequency is more important if delimiter is different
|
110
|
-
assert_guess_partial 2, "%m/%d/%Y", ["01/01/2014", "01/01/2014", "13.01.2014"]
|
111
|
-
end
|
112
|
-
|
113
|
-
def assert_guess(format, texts)
|
114
|
-
assert_equal format, guess(texts)
|
115
|
-
Array(texts).each do |text|
|
116
|
-
time = Time.strptime(text, format)
|
117
|
-
assert_equal time.to_i, Time.strptime(time.strftime(format), format).to_i
|
118
|
-
end
|
119
|
-
end
|
120
|
-
|
121
|
-
def assert_guess_partial(count, format, texts)
|
122
|
-
assert_equal format, guess(texts)
|
123
|
-
times = Array(texts).map do |text|
|
124
|
-
Time.strptime(text, format) rescue nil
|
125
|
-
end.compact
|
126
|
-
assert_equal count, times.size
|
127
|
-
times.each do |time|
|
128
|
-
assert_equal time.to_i, Time.strptime(time.strftime(format), format).to_i
|
129
|
-
end
|
130
|
-
end
|
131
|
-
|
132
|
-
def guess(texts)
|
133
|
-
Embulk::Guess::TimeFormatGuess.guess(Array(texts))
|
134
|
-
end
|
135
|
-
end
|
data/test/vanilla/run-test.rb
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
base_dir = File.expand_path(File.join(File.dirname(__FILE__), "..", ".."))
|
2
|
-
lib_dir = File.join(base_dir, "lib")
|
3
|
-
test_dir = File.join(base_dir, "test")
|
4
|
-
|
5
|
-
$LOAD_PATH.unshift(lib_dir)
|
6
|
-
$LOAD_PATH.unshift(test_dir)
|
7
|
-
|
8
|
-
require "test/unit"
|
9
|
-
|
10
|
-
Dir.glob("#{base_dir}/test/vanilla/**/test{_,-}*.rb") do |file|
|
11
|
-
require file.sub(/\.rb$/,"")
|
12
|
-
end
|
13
|
-
|
14
|
-
exit Test::Unit::AutoRunner.run
|
@@ -1,117 +0,0 @@
|
|
1
|
-
require 'helper'
|
2
|
-
require 'date'
|
3
|
-
require 'time'
|
4
|
-
|
5
|
-
# TimestampParserTest test org.embulk.spi.time.TimestampParser by comparing with Ruby's DateTime.strptime.
|
6
|
-
#
|
7
|
-
# Some test cases are imported from Ruby v2.3.1's test/date/test_date_strptime.rb. See its COPYING for license.
|
8
|
-
#
|
9
|
-
# *{test/date/test_date_strptime.rb}[https://svn.ruby-lang.org/cgi-bin/viewvc.cgi/tags/v2_3_1/test/date/test_date_strptime.rb?view=markup]
|
10
|
-
# *{COPYING}[https://svn.ruby-lang.org/cgi-bin/viewvc.cgi/tags/v2_3_1/COPYING?view=markup]
|
11
|
-
|
12
|
-
class TimestampParserTest < ::Test::Unit::TestCase
|
13
|
-
def test__strptime__3
|
14
|
-
[
|
15
|
-
# iso8601
|
16
|
-
['2001-02-03', '%Y-%m-%d'],
|
17
|
-
['2001-02-03T23:59:60', '%Y-%m-%dT%H:%M:%S'],
|
18
|
-
['2001-02-03T23:59:60+09:00', '%Y-%m-%dT%H:%M:%S%Z'],
|
19
|
-
['-2001-02-03T23:59:60+09:00', '%Y-%m-%dT%H:%M:%S%Z'],
|
20
|
-
['+012345-02-03T23:59:60+09:00', '%Y-%m-%dT%H:%M:%S%Z'],
|
21
|
-
['-012345-02-03T23:59:60+09:00', '%Y-%m-%dT%H:%M:%S%Z'],
|
22
|
-
|
23
|
-
# ctime(3), asctime(3)
|
24
|
-
['Thu Jul 29 14:47:19 1999', '%c'],
|
25
|
-
['Thu Jul 29 14:47:19 -1999', '%c'],
|
26
|
-
|
27
|
-
# date(1)
|
28
|
-
['Thu Jul 29 16:39:41 EST 1999', '%a %b %d %H:%M:%S %Z %Y'],
|
29
|
-
['Thu Jul 29 16:39:41 MET DST 1999', '%a %b %d %H:%M:%S %Z %Y'],
|
30
|
-
# Their time zones are "AMT" actually in Ruby v2.3.1's tests, but "AST" is used here instead.
|
31
|
-
# "AMT" is not recognized even by Ruby v2.3.1's zonetab.
|
32
|
-
['Thu Jul 29 16:39:41 AST 1999', '%a %b %d %H:%M:%S %Z %Y'],
|
33
|
-
['Thu Jul 29 16:39:41 AST -1999', '%a %b %d %H:%M:%S %Z %Y'],
|
34
|
-
['Thu Jul 29 16:39:41 GMT+09 1999', '%a %b %d %H:%M:%S %Z %Y'],
|
35
|
-
['Thu Jul 29 16:39:41 GMT+0908 1999', '%a %b %d %H:%M:%S %Z %Y'],
|
36
|
-
['Thu Jul 29 16:39:41 GMT+090807 1999', '%a %b %d %H:%M:%S %Z %Y'],
|
37
|
-
['Thu Jul 29 16:39:41 GMT-09 1999', '%a %b %d %H:%M:%S %Z %Y'],
|
38
|
-
['Thu Jul 29 16:39:41 GMT-09:08 1999', '%a %b %d %H:%M:%S %Z %Y'],
|
39
|
-
['Thu Jul 29 16:39:41 GMT-09:08:07 1999', '%a %b %d %H:%M:%S %Z %Y'],
|
40
|
-
['Thu Jul 29 16:39:41 GMT-3.5 1999', '%a %b %d %H:%M:%S %Z %Y'],
|
41
|
-
['Thu Jul 29 16:39:41 GMT-3,5 1999', '%a %b %d %H:%M:%S %Z %Y'],
|
42
|
-
['Thu Jul 29 16:39:41 Mountain Daylight Time 1999', '%a %b %d %H:%M:%S %Z %Y'],
|
43
|
-
['Thu Jul 29 16:39:41 E. Australia Standard Time 1999', '%a %b %d %H:%M:%S %Z %Y'],
|
44
|
-
|
45
|
-
# rfc822
|
46
|
-
['Thu, 29 Jul 1999 09:54:21 UT', '%a, %d %b %Y %H:%M:%S %Z'],
|
47
|
-
['Thu, 29 Jul 1999 09:54:21 GMT', '%a, %d %b %Y %H:%M:%S %Z'],
|
48
|
-
|
49
|
-
# They should be the same if PDT (Pacific Daylight Time) is correctly -07:00.
|
50
|
-
#
|
51
|
-
# Joda-Time's DateTimeFormat.forPattern("z").parseMillis("PDT") however returns 8 hours (-08:00).
|
52
|
-
# DateTimeFormat.forPattern("z").parseMillis("PDT") == 28800000
|
53
|
-
# https://github.com/JodaOrg/joda-time/blob/v2.9.2/src/main/java/org/joda/time/DateTimeUtils.java#L446
|
54
|
-
#
|
55
|
-
# Embulk has used it to parse time zones for a very long time since it was v0.1.
|
56
|
-
# https://github.com/embulk/embulk/commit/b97954a5c78397e1269bbb6979d6225dfceb4e05
|
57
|
-
#
|
58
|
-
# It is kept as -08:00 for compatibility as of now.
|
59
|
-
#
|
60
|
-
# TODO: Make time zone parsing consistent.
|
61
|
-
# See https://github.com/embulk/embulk/issues/860
|
62
|
-
# ['Thu, 29 Jul 1999 09:54:21 PDT', '%a, %d %b %Y %H:%M:%S %Z'],
|
63
|
-
|
64
|
-
['Thu, 29 Jul 1999 09:54:21 z', '%a, %d %b %Y %H:%M:%S %Z'],
|
65
|
-
['Thu, 29 Jul 1999 09:54:21 +0900', '%a, %d %b %Y %H:%M:%S %Z'],
|
66
|
-
['Thu, 29 Jul 1999 09:54:21 +0430', '%a, %d %b %Y %H:%M:%S %Z'],
|
67
|
-
['Thu, 29 Jul 1999 09:54:21 -0430', '%a, %d %b %Y %H:%M:%S %Z'],
|
68
|
-
['Thu, 29 Jul -1999 09:54:21 -0430', '%a, %d %b %Y %H:%M:%S %Z'],
|
69
|
-
|
70
|
-
# etc
|
71
|
-
['06-DEC-99', '%d-%b-%y'],
|
72
|
-
['sUnDay oCtoBer 31 01', '%A %B %d %y'],
|
73
|
-
["October\t\n\v\f\r 15,\t\n\v\f\r99", '%B %d, %y'],
|
74
|
-
["October\t\n\v\f\r 15,\t\n\v\f\r99", '%B%t%d,%n%y'],
|
75
|
-
|
76
|
-
['09:02:11 AM', '%I:%M:%S %p'],
|
77
|
-
['09:02:11 A.M.', '%I:%M:%S %p'],
|
78
|
-
['09:02:11 PM', '%I:%M:%S %p'],
|
79
|
-
['09:02:11 P.M.', '%I:%M:%S %p'],
|
80
|
-
|
81
|
-
['12:33:44 AM', '%r'],
|
82
|
-
['01:33:44 AM', '%r'],
|
83
|
-
['11:33:44 AM', '%r'],
|
84
|
-
['12:33:44 PM', '%r'],
|
85
|
-
['01:33:44 PM', '%r'],
|
86
|
-
['11:33:44 PM', '%r'],
|
87
|
-
|
88
|
-
# Their time zones are "AMT" actually in Ruby v2.3.1's tests, but "AST" is used here instead.
|
89
|
-
# "AMT" is not recognized even by Ruby v2.3.1's zonetab.
|
90
|
-
['11:33:44 PM AST', '%I:%M:%S %p %Z'],
|
91
|
-
['11:33:44 P.M. AST', '%I:%M:%S %p %Z'],
|
92
|
-
|
93
|
-
['fri1feb034pm+5', '%a%d%b%y%H%p%Z'],
|
94
|
-
].each do |string, format|
|
95
|
-
before_date = Date.today
|
96
|
-
after_date = nil
|
97
|
-
while before_date != after_date do
|
98
|
-
before_date = Date.today
|
99
|
-
expected_datetime = DateTime.strptime(string, format)
|
100
|
-
expected_time = expected_datetime.new_offset(0).to_time.utc
|
101
|
-
after_date = Date.today
|
102
|
-
if expected_datetime.to_date == after_date # DateTime.strptime fills today's date if date is not contained.
|
103
|
-
# Getting the Time of 00:00:00 UTC on after_date.
|
104
|
-
expected_time = expected_time - after_date.to_datetime.new_offset(0).to_time.utc
|
105
|
-
end
|
106
|
-
expected_epoch = expected_time.to_i
|
107
|
-
end
|
108
|
-
|
109
|
-
timestamp_parser =
|
110
|
-
Java::org.embulk.spi.time.TimestampParser.new(format, Java::org.joda.time.DateTimeZone::UTC, "1970-01-01")
|
111
|
-
actual_timestamp = timestamp_parser.parse(string)
|
112
|
-
actual_epoch = actual_timestamp.getEpochSecond()
|
113
|
-
|
114
|
-
assert_equal(expected_epoch, actual_epoch, string)
|
115
|
-
end
|
116
|
-
end
|
117
|
-
end
|