ridgepole 0.5.1.beta → 0.5.1.beta2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -2
- data/bin/ridgepole +1 -0
- data/lib/ridgepole/diff.rb +4 -0
- data/lib/ridgepole/version.rb +1 -1
- data/ridgepole.gemspec +1 -1
- data/spec/cli/ridgepole_spec.rb +1 -0
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9af86c581c1569a32fe9979ae3ae931da5460d4e
|
4
|
+
data.tar.gz: fd26b890b1d8c15c422cad66a1e30e46548d348a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 529d087f92bf40940a7265a3d7a5ede5446b6f2fcad262fbe01263908d51c480af6e768ede05ab251a63fd65433ad95570e86b52c859ea677ab72cb98d3e0365
|
7
|
+
data.tar.gz: c8a2cf8a7748b6c28b0547adf5e856226c5b0b80504b5962e81eb818dab256dea5025098892542144f1bea7c647294fd775db54bba1bcb74d01217d8df42ba4e
|
data/README.md
CHANGED
@@ -5,9 +5,9 @@ Ridgepole is a tool to manage DB schema.
|
|
5
5
|
It defines DB schema using [Rails DSL](http://guides.rubyonrails.org/migrations.html#types-of-schema-dumps), and updates DB schema according to DSL.
|
6
6
|
(like Chef/Puppet)
|
7
7
|
|
8
|
-
[![Gem Version](https://badge.fury.io/rb/ridgepole.
|
8
|
+
[![Gem Version](https://badge.fury.io/rb/ridgepole.svg)](http://badge.fury.io/rb/ridgepole)
|
9
9
|
[![Build Status](https://travis-ci.org/winebarrel/ridgepole.svg?branch=master)](https://travis-ci.org/winebarrel/ridgepole)
|
10
|
-
[![Coverage Status](https://
|
10
|
+
[![Coverage Status](https://img.shields.io/coveralls/winebarrel/ridgepole.svg)](https://coveralls.io/r/winebarrel/ridgepole?branch=master)
|
11
11
|
|
12
12
|
**Notice**
|
13
13
|
|
@@ -22,6 +22,7 @@ It defines DB schema using [Rails DSL](http://guides.rubyonrails.org/migrations.
|
|
22
22
|
* Fix `activerecord-mysql-unsigned` version: `~> 0.3.1`
|
23
23
|
* `>= 0.5.1`
|
24
24
|
* Add `--enable-migration-comments` option ([migration_comments](https://github.com/pinnymz/migration_comments) is required)
|
25
|
+
* Fix rails version `< 4.2.0`
|
25
26
|
|
26
27
|
## Installation
|
27
28
|
|
@@ -64,6 +65,7 @@ Usage: ridgepole [options]
|
|
64
65
|
--enable-mysql-pkdump
|
65
66
|
--enable-foreigner
|
66
67
|
--enable-migration-comments
|
68
|
+
--normalize-mysql-float
|
67
69
|
--log-file LOG_FILE
|
68
70
|
--verbose
|
69
71
|
--debug
|
data/bin/ridgepole
CHANGED
@@ -95,6 +95,7 @@ ARGV.options do |opt|
|
|
95
95
|
opt.on('', '--enable-mysql-pkdump') { options[:enable_mysql_pkdump] = true }
|
96
96
|
opt.on('', '--enable-foreigner') { options[:enable_foreigner] = true }
|
97
97
|
opt.on('', '--enable-migration-comments') { options[:migration_comments] = true }
|
98
|
+
opt.on('', '--normalize-mysql-float') { options[:normalize_mysql_float] = true }
|
98
99
|
opt.on('' , '--log-file LOG_FILE') {|v| options[:log_file] = v }
|
99
100
|
opt.on('' , '--verbose') { Ridgepole::Logger.verbose = true }
|
100
101
|
opt.on('' , '--debug') { options[:debug] = true }
|
data/lib/ridgepole/diff.rb
CHANGED
@@ -258,6 +258,10 @@ class Ridgepole::Diff
|
|
258
258
|
if @options[:enable_mysql_unsigned]
|
259
259
|
opts[:unsigned] = false unless opts.has_key?(:unsigned)
|
260
260
|
end
|
261
|
+
|
262
|
+
if @options[:normalize_mysql_float] and attrs[:type] == :float
|
263
|
+
opts.delete(:limit) if opts[:limit] == 24
|
264
|
+
end
|
261
265
|
end
|
262
266
|
|
263
267
|
def normalize_index_options!(opts)
|
data/lib/ridgepole/version.rb
CHANGED
data/ridgepole.gemspec
CHANGED
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
|
|
18
18
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
19
|
spec.require_paths = ['lib']
|
20
20
|
|
21
|
-
spec.add_dependency 'activerecord'
|
21
|
+
spec.add_dependency 'activerecord', '< 4.2.0'
|
22
22
|
spec.add_development_dependency 'bundler'
|
23
23
|
spec.add_development_dependency 'rake'
|
24
24
|
spec.add_development_dependency 'rspec', '>= 3.0.0'
|
data/spec/cli/ridgepole_spec.rb
CHANGED
metadata
CHANGED
@@ -1,29 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ridgepole
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.1.
|
4
|
+
version: 0.5.1.beta2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Genki Sugawara
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-12-
|
11
|
+
date: 2014-12-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - <
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 4.2.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - <
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: 4.2.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: bundler
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|