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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d48638146f584f343ed700c0e4fec7858e01dc4a
4
- data.tar.gz: 259755ac2ee554776cf3a61683b1d5bf4e7084db
3
+ metadata.gz: 9af86c581c1569a32fe9979ae3ae931da5460d4e
4
+ data.tar.gz: fd26b890b1d8c15c422cad66a1e30e46548d348a
5
5
  SHA512:
6
- metadata.gz: a73c8a63182aa7aa14ffc301d59b7ed610ce6450b3f380f4fdec980f3b3c0d32ff9cc93a5a5c0d130b06d47027c6b349ed239fd9483a546c037835274b135797
7
- data.tar.gz: f2f7aed9e476a65789f9421b51cb7861d89ee3b75c6e0284d5b9f17f2cdce1d1c7516689077fded3f275c3ad72a624c0ab2f22b20abf0376e52ca45ec4c96d8c
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.png)](http://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://coveralls.io/repos/winebarrel/ridgepole/badge.png?branch=master)](https://coveralls.io/r/winebarrel/ridgepole?branch=master)
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 }
@@ -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)
@@ -1,3 +1,3 @@
1
1
  module Ridgepole
2
- VERSION = '0.5.1.beta'
2
+ VERSION = '0.5.1.beta2'
3
3
  end
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'
@@ -33,6 +33,7 @@ describe 'ridgepole' do
33
33
  --enable-mysql-pkdump
34
34
  --enable-foreigner
35
35
  --enable-migration-comments
36
+ --normalize-mysql-float
36
37
  --log-file LOG_FILE
37
38
  --verbose
38
39
  --debug
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.beta
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-07 00:00:00.000000000 Z
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: '0'
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: '0'
26
+ version: 4.2.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement