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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d63e13051bdf5f02a615adabd88bd5f3d74a87f8
4
- data.tar.gz: ebe4a70a6df6bb7df7169ac0bc3756c723aedf17
3
+ metadata.gz: fa88268ac8e5d21f870db938448b2c2840cfd817
4
+ data.tar.gz: 6c1e34bd2606f87f070c912b918c7c9b1d2df30c
5
5
  SHA512:
6
- metadata.gz: 8bc21046e4ada603467911d1a906b20145c9c4c6269194521d4f9a0c0832f6a236df822a78fbac0efc108522f83236ffbd253d10d93e009255e1596f0dc40302
7
- data.tar.gz: f873f574b65d746a9bc7e043dee9087e235266778f4af81cf91b7f329e529c23cdbacf24fd61f6b03528eb43bf3d9d6c72ec9a8bab24e06d1bb2c80099ca35f7
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.beta5-brightgreen.svg)](https://rubygems.org/gems/ridgepole/versions/0.7.0.beta5)
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') {|f| f.puts client.dump }
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
@@ -1,3 +1,3 @@
1
1
  module Ridgepole
2
- VERSION = '0.7.0.beta5'
2
+ VERSION = '0.7.0.beta6'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ridgepole
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0.beta5
4
+ version: 0.7.0.beta6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Genki Sugawara