bigquery_migration 0.2.0 → 0.2.1

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: ee06c260e388082cdec0d3e4f3a72577952acfb8
4
- data.tar.gz: 225387ac8df6a0fda1b723bc4f10ca6955fd9025
3
+ metadata.gz: 4bd75123ce0142da8ec326abd8dff02206ed0547
4
+ data.tar.gz: d9e0435da7fb64ecc908a7a678cc517d80e47a5e
5
5
  SHA512:
6
- metadata.gz: 77326f487936158701a52e0a74f0d2241d2375ca5f96cb6803e7b85cec1b3206fa7728a699eae10a6b351adfb595242fa83ac742d257179128df157ec082b49f
7
- data.tar.gz: a1b0e5a6418c43383b3c8b4d36deed62d9af9f823d9b1e6e333c9066f4e879d09214850b00a85238c0b8826392744da92dd9794edca97a67f80a8d794069445d
6
+ metadata.gz: de288a0598b7ad32368b506f7859c4292da2c177c388c619f887e239debf94875df1bcab0a44080dcd78e8a4cd00cd11292c2fa5e1a2933058deca933dcd7a68
7
+ data.tar.gz: 020bcac45b0214e6f3e40dfd37f3a803adec9653a782176966f3541678cc55bf82b1c6a15b425da53aa43784035cf5d121cb52731a7e4c722efd0e5d9c69f508
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ # 0.2.1 (2017/03/31)
2
+
3
+ Enhancements:
4
+
5
+ * Accept DATE, DATETIME, TIME as column types
6
+
1
7
  # 0.2.0 (2016/10/03)
2
8
 
3
9
  Enhancements:
@@ -21,6 +21,7 @@ Gem::Specification.new do |spec|
21
21
 
22
22
  spec.add_dependency "google-api-client"
23
23
  spec.add_dependency "tzinfo"
24
+ spec.add_dependency "thor"
24
25
 
25
26
  spec.add_development_dependency "bundler", "~> 1.11"
26
27
  spec.add_development_dependency "rake", "~> 10.0"
data/example/schema.json CHANGED
@@ -18,5 +18,9 @@
18
18
  {
19
19
  "name":"boolean",
20
20
  "type":"BOOLEAN"
21
+ },
22
+ {
23
+ "name":"date",
24
+ "type":"DATE"
21
25
  }
22
26
  ]
@@ -4,7 +4,7 @@ require_relative 'error'
4
4
 
5
5
  class BigqueryMigration
6
6
  class Schema < ::Array
7
- ALLOWED_FIELD_TYPES = Set.new(['STRING', 'INTEGER', 'FLOAT', 'BOOLEAN', 'RECORD', 'TIMESTAMP', 'BYTES'])
7
+ ALLOWED_FIELD_TYPES = Set.new(['STRING', 'INTEGER', 'FLOAT', 'BOOLEAN', 'RECORD', 'TIMESTAMP', 'BYTES', 'DATE', 'TIME', 'DATETIME'])
8
8
  ALLOWED_FIELD_MODES = Set.new(['NULLABLE', 'REQUIRED', 'REPEATED'])
9
9
 
10
10
  def initialize(columns = [])
@@ -1,3 +1,3 @@
1
1
  class BigqueryMigration
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bigquery_migration
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Naotoshi Seo
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-10-27 00:00:00.000000000 Z
11
+ date: 2017-03-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-api-client
@@ -38,6 +38,20 @@ dependencies:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: thor
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
41
55
  - !ruby/object:Gem::Dependency
42
56
  name: bundler
43
57
  requirement: !ruby/object:Gem::Requirement