blue-shift 0.1.4 → 0.1.5

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: 26d2163136534a2d679573b00ef2661909d8c667
4
- data.tar.gz: 520651258fc18c663fdac086f85d1a9fa83116ad
3
+ metadata.gz: f08f528b72fb07122fc5ad99a01f63c2c7a9ceae
4
+ data.tar.gz: e8e92411017effb0f76ce135ff5852e0ebfddc04
5
5
  SHA512:
6
- metadata.gz: b238993bdf64330e945de587ff0f70a5d39f6896a93cdf6e7152f06c73c500ed76a930ee4272fdad61eeaff7cce4016687a2f6257216e33bcac9938ac5a36ada
7
- data.tar.gz: 1e876b52b7b566ae20a329ee7b2ed93571d6e282d034561febb527ba31ab88b7851826eff404bf8609c28a7e227a9ef857a53e3bf5f6a87eb2b5ffb7193958cb
6
+ metadata.gz: 94a782bf567eace61d3538e18ff461c6668ad5dd31d5e0e9ab95949edd07eb79b9a721f5774dfbe5085629271e8561eacf8f25aefe4037c398997a2b77616dc1
7
+ data.tar.gz: f6c9574934c71434abeb1e368ad67f011fa9d79d41775d573459f200962ad598b4a65221d7cd3110629afdf164a30db012e2a81320d23ca608db3f379fa46692
@@ -1,3 +1,3 @@
1
1
  module Blueshift
2
- VERSION = '0.1.4'
2
+ VERSION = '0.1.5'
3
3
  end
@@ -11,7 +11,9 @@ module Sequel
11
11
  def column_schema_to_ruby_type(schema)
12
12
  case schema[:db_type].downcase
13
13
  when 'uuid'
14
- {type: :uuid}
14
+ { type: :uuid }
15
+ when /char(?:acter)?\(36\)/
16
+ { type: Suuid }
15
17
  else
16
18
  column_schema_to_ruby_type_without_uuid(schema)
17
19
  end
@@ -32,7 +32,7 @@ namespace :pg do
32
32
  task :migrate do
33
33
  Blueshift::POSTGRES_DB.logger = logger
34
34
  Blueshift::Migration.run_pg!
35
- rake 'pg:schema:dump'
35
+ Rake::Task['pg:schema:dump'].invoke
36
36
  end
37
37
  end
38
38
 
@@ -59,17 +59,14 @@ namespace :redshift do
59
59
  task :migrate do
60
60
  Blueshift::REDSHIFT_DB.logger = logger
61
61
  Blueshift::Migration.run_redshift!
62
- rake 'redshift:schema:dump'
62
+ Rake::Task['redshift:schema:dump'].invoke
63
63
  end
64
64
  end
65
65
 
66
66
  namespace :blueshift do
67
- desc 'Runs migrations for both Postgres and Redshift'
67
+ desc 'Runs migrations for both Postgres and Redshift. Not really that useful most of the time...'
68
68
  task :migrate => ['pg:migrate', 'redshift:migrate'] do
69
69
  puts 'Running migrations for Postgres and Redshift...', ''
70
70
  end
71
-
72
- desc 'dummy'
73
- task(:dummy) {}
74
71
  end
75
72
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blue-shift
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gabriel Mansour