blue-shift 0.1.0 → 0.1.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: a7226ffcb5e676cc4e890469a49e6aefd03edd77
4
- data.tar.gz: 910a9f2b04490588311784ad4968691398b2a180
3
+ metadata.gz: 9541a96cc11b59a2d3d4f0186f3149be133b7137
4
+ data.tar.gz: 77ac01b0820cd0f28405ee87a0e73d4fec88597f
5
5
  SHA512:
6
- metadata.gz: 9795cfbdcb5e59026805ff7b17f88d34481993a02e2f8d0c788934ff2354498fab9f7524ce904a63c0132ba510f3634241c66f7c72f5aec717b4094195f11c3e
7
- data.tar.gz: bfb91bb6b3773a7a8ef8a78fa80cf40f65a1a9915de2813c3e21ba93a2e4819bb42d749449e95a6549c50600b246b950a6201d882b1015c19b4221ea68785d0e
6
+ metadata.gz: cb4e2f82e887ed74b4dc01e5ef8f88361fea131def1747176e321b340d397f356af27c1ba080c8a199d6f04d9b48544811468dd2d64d87ca39e5d5fbed4abf34
7
+ data.tar.gz: 60cd4af5dbe206989acc7724edf066bc947e289a1acdbef4dff0cb58e9946d66b8f7a3d9ed93640cd844901e54eadb4d379c93ddcdae508c22e4d3e909210f7a
data/Gemfile CHANGED
@@ -9,3 +9,4 @@ group :test do
9
9
  end
10
10
 
11
11
  gem 'dotenv'
12
+ gem 'rails'
data/lib/blueshift.rb CHANGED
@@ -1,3 +1,4 @@
1
+ require 'blueshift/railtie' if defined?(Rails)
1
2
  require 'blueshift/version'
2
3
  require 'blueshift/migration'
3
4
  require 'sequel'
@@ -0,0 +1,10 @@
1
+ require 'rails'
2
+
3
+ module Blueshift
4
+ class Railtie < Rails::Railtie
5
+ rake_tasks do
6
+ load 'tasks/generate_migration.rake'
7
+ load 'tasks/schema.rake'
8
+ end
9
+ end
10
+ end
@@ -1,3 +1,3 @@
1
1
  module Blueshift
2
- VERSION = '0.1.0'
2
+ VERSION = '0.1.1'
3
3
  end
@@ -30,11 +30,12 @@ module Sequel
30
30
 
31
31
  def create_table_sql(name, generator, options)
32
32
  validate_options!(options)
33
- super.tap do |sql|
34
- sql << diststyle_sql(options)
35
- sql << distkey_sql(options)
36
- sql << sortstyle_sql(options)
37
- end
33
+ sql = super
34
+ sql += diststyle_sql(options)
35
+ sql += distkey_sql(options)
36
+ sql += sortstyle_sql(options)
37
+
38
+ sql
38
39
  end
39
40
 
40
41
  def diststyle_sql(options)
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.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gabriel Mansour
@@ -116,6 +116,7 @@ files:
116
116
  - blueshift.gemspec
117
117
  - lib/blueshift.rb
118
118
  - lib/blueshift/migration.rb
119
+ - lib/blueshift/railtie.rb
119
120
  - lib/blueshift/uuid.rb
120
121
  - lib/blueshift/version.rb
121
122
  - lib/sequel/adapters/postgres_ext.rb
@@ -142,7 +143,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
142
143
  version: '0'
143
144
  requirements: []
144
145
  rubyforge_project:
145
- rubygems_version: 2.4.6
146
+ rubygems_version: 2.5.1
146
147
  signing_key:
147
148
  specification_version: 4
148
149
  summary: Amazon Redshift adapter for Sequel