ridgepole 0.5.2.beta5 → 0.5.2.beta6

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: de9a514d07eefef782978b4596ba99e7f6e2b34a
4
- data.tar.gz: 11d93af89a4e11c2bbcef22288526ed5a33d8b71
3
+ metadata.gz: 6effc48c80936a6854d0c6e383f2c0d66ca6a695
4
+ data.tar.gz: 5473eb57a4973ea22aa65f8e816cf9d042084a6b
5
5
  SHA512:
6
- metadata.gz: 3289ea853a8e50f5f848aed1185a12e664c6e09ad1641122a33503d05e8084e47d63b224b157a2080a2659d7a633c56ade149e5435c612af971b790ea5b90887
7
- data.tar.gz: 6853b8ace7855d16ef49219cc12b53cbd1498b6e89180441936f55bcdbd9daf2714d3fac8c4207ba6fc366030f438ab95465bedf322a64d9677d74bdb4d36ef0
6
+ metadata.gz: 57e97384a442abdf8d8483564f2b7523873310bd76e83e76baf437f1d26df68a14b5adade178d21c5d870fa72126c45717f9978d6711b6bc7e189fc4bed4bc43
7
+ data.tar.gz: d0f016d533e2a9a7531150841f444c16a88c531dd2ae0c90b74902bd0ea998a5e5587046be02508daae9f755706daf15f607bab092428f0af438e0285a7c3fdd
data/README.md CHANGED
@@ -70,6 +70,7 @@ Usage: ridgepole [options]
70
70
  --enable-foreigner
71
71
  --enable-migration-comments
72
72
  --enable-mysql-awesome
73
+ --mysql-awesome-unsigned-pk
73
74
  --normalize-mysql-float
74
75
  --dump-without-table-options
75
76
  -r, --require LIBS
data/bin/ridgepole CHANGED
@@ -96,6 +96,7 @@ ARGV.options do |opt|
96
96
  opt.on('', '--enable-foreigner') { options[:enable_foreigner] = true }
97
97
  opt.on('', '--enable-migration-comments') { options[:enable_migration_comments] = true }
98
98
  opt.on('', '--enable-mysql-awesome') { options[:enable_mysql_awesome] = true }
99
+ opt.on('', '--mysql-awesome-unsigned-pk') { options[:mysql_awesome_unsigned_pk] = true }
99
100
  opt.on('', '--normalize-mysql-float') { options[:normalize_mysql_float] = true }
100
101
  opt.on('', '--dump-without-table-options') { options[:dump_without_table_options] = true }
101
102
  opt.on('-r' , '--require LIBS', Array) {|v| v.each {|i| require i } }
@@ -21,7 +21,10 @@ class Ridgepole::Client
21
21
 
22
22
  if @options[:enable_mysql_awesome]
23
23
  require 'activerecord/mysql/awesome/base'
24
- require 'ridgepole/ext/mysql_awesome.rb'
24
+
25
+ if @options[:mysql_awesome_unsigned_pk]
26
+ require 'ridgepole/ext/mysql_awesome.rb'
27
+ end
25
28
  end
26
29
 
27
30
  if @options[:enable_foreigner]
@@ -1,3 +1,3 @@
1
1
  module Ridgepole
2
- VERSION = '0.5.2.beta5'
2
+ VERSION = '0.5.2.beta6'
3
3
  end
@@ -34,6 +34,7 @@ describe 'ridgepole' do
34
34
  --enable-foreigner
35
35
  --enable-migration-comments
36
36
  --enable-mysql-awesome
37
+ --mysql-awesome-unsigned-pk
37
38
  --normalize-mysql-float
38
39
  --dump-without-table-options
39
40
  -r, --require LIBS
@@ -9,6 +9,7 @@ describe 'Ridgepole::Client.dump' do
9
9
  if mysql_awesome_enabled?
10
10
  opts[:enable_mysql_awesome] = true
11
11
  opts[:dump_without_table_options] = true
12
+ opts[:mysql_awesome_unsigned_pk] = true
12
13
  else
13
14
  opts[:enable_mysql_unsigned] = true
14
15
  end
data/spec/spec_helper.rb CHANGED
@@ -56,6 +56,7 @@ def client(options = {}, config = {})
56
56
  if mysql_awesome_enabled?
57
57
  default_options[:enable_mysql_awesome] = true
58
58
  default_options[:dump_without_table_options] = true
59
+ default_options[:mysql_awesome_unsigned_pk] = true
59
60
  else
60
61
  default_options[:enable_mysql_unsigned] = true
61
62
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ridgepole
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.2.beta5
4
+ version: 0.5.2.beta6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Genki Sugawara
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-13 00:00:00.000000000 Z
11
+ date: 2015-01-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord