ridgepole 0.7.0.beta5 → 0.7.0.beta6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/bin/ridgepole +12 -1
- data/lib/ridgepole/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fa88268ac8e5d21f870db938448b2c2840cfd817
|
4
|
+
data.tar.gz: 6c1e34bd2606f87f070c912b918c7c9b1d2df30c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 76306f41649f88853a8448e7124f3c589c65d42c6e3c698cdc25c66099eae61ff10bbcdb1dd38f8b21c94d32089230a51b23081cb5fe6b4e58a08c891c405387
|
7
|
+
data.tar.gz: cb1e18afd6899fd468dd08652ad86af161c16842c6004200204b39ab2597c4b46659e28522ebc4d829bf0850a20cd1bcd7b62093099d05d6da9f55df691c31e4
|
data/README.md
CHANGED
@@ -9,7 +9,7 @@ It defines DB schema using [Rails DSL](http://guides.rubyonrails.org/migrations.
|
|
9
9
|
[![Build Status](https://travis-ci.org/winebarrel/ridgepole.svg?branch=0.6)](https://travis-ci.org/winebarrel/ridgepole)
|
10
10
|
[![Coverage Status](https://coveralls.io/repos/github/winebarrel/ridgepole/badge.svg?branch=0.6)](https://coveralls.io/github/winebarrel/ridgepole?branch=0.6)
|
11
11
|
|
12
|
-
[![Edge Version](https://img.shields.io/badge/edge_version-0.7.0.
|
12
|
+
[![Edge Version](https://img.shields.io/badge/edge_version-0.7.0.beta6-brightgreen.svg)](https://rubygems.org/gems/ridgepole/versions/0.7.0.beta6)
|
13
13
|
[![Build Status](https://travis-ci.org/winebarrel/ridgepole.svg?branch=0.7)](https://travis-ci.org/winebarrel/ridgepole)
|
14
14
|
[![Coverage Status](https://coveralls.io/repos/github/winebarrel/ridgepole/badge.svg?branch=0.7)](https://coveralls.io/github/winebarrel/ridgepole?branch=0.7)
|
15
15
|
|
data/bin/ridgepole
CHANGED
@@ -13,6 +13,11 @@ $stderr.sync = true
|
|
13
13
|
Version = Ridgepole::VERSION
|
14
14
|
DEFAULT_FILENAME = 'Schemafile'
|
15
15
|
|
16
|
+
MAGIC_COMMENT = <<-EOS
|
17
|
+
# -*- mode: ruby -*-
|
18
|
+
# vi: set ft=ruby :
|
19
|
+
EOS
|
20
|
+
|
16
21
|
COLUMN_TYPES = {
|
17
22
|
:boolean => :bool,
|
18
23
|
:integer => :int,
|
@@ -170,6 +175,7 @@ begin
|
|
170
175
|
FileUtils.mkdir_p(schema_dir)
|
171
176
|
|
172
177
|
open(schema_file, 'wb') do |f|
|
178
|
+
f.puts MAGIC_COMMENT
|
173
179
|
f.puts definition
|
174
180
|
end
|
175
181
|
end
|
@@ -177,6 +183,8 @@ begin
|
|
177
183
|
logger.info(" write `#{output_file}`")
|
178
184
|
|
179
185
|
open(output_file, 'wb') do |f|
|
186
|
+
f.puts MAGIC_COMMENT
|
187
|
+
|
180
188
|
requires.each do |require_path|
|
181
189
|
f.puts "require '#{require_path}'"
|
182
190
|
end
|
@@ -187,7 +195,10 @@ begin
|
|
187
195
|
puts client.dump
|
188
196
|
else
|
189
197
|
logger.info("Export Schema to `#{output_file}`")
|
190
|
-
open(output_file, 'wb')
|
198
|
+
open(output_file, 'wb') do |f|
|
199
|
+
f.puts MAGIC_COMMENT
|
200
|
+
f.puts client.dump
|
201
|
+
end
|
191
202
|
end
|
192
203
|
end
|
193
204
|
when :apply
|
data/lib/ridgepole/version.rb
CHANGED