forked from kwatch/migr8
-
Notifications
You must be signed in to change notification settings - Fork 0
/
migr8.gemspec
57 lines (50 loc) · 1.48 KB
/
migr8.gemspec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#!/usr/bin/ruby
###
### $Release: 0.4.3 $
### $License: MIT License $
### $Copyright: copyright(c) 2013-2014 kuwata-lab.com all rights reserved $
###
require 'rubygems'
spec = Gem::Specification.new do |s|
## package information
s.name = "migr8"
s.author = "makoto kuwata"
s.email = "kwa(at)kuwata-lab.com"
s.rubyforge_project = 'migr8'
s.version = "$Release: 0.4.3 $".split()[1]
s.platform = Gem::Platform::RUBY
s.homepage = "https://github.com/kwatch/migr8/tree/ruby-release"
s.summary = "database schema version management tool"
s.description = <<'END'
Migr8.rb is a database schema version management tool.
* Easy to install, easy to setup, and easy to start
* No configuration file; instead, only two environment variables
* Designed carefully to suit Git or Mercurial
* Supports SQLite3, PostgreSQL, and MySQL
* Written in Ruby (>= 1.8)
END
## files
files = []
files += Dir.glob('lib/**/*')
files += Dir.glob('bin/*')
files += Dir.glob('test/**/*')
#files += Dir.glob('doc/**/*')
files += %w[README.md MIT-LICENSE setup.rb migr8.gemspec Rakefile]
s.files = files
s.executables = ['migr8.rb']
s.bindir = 'bin'
s.test_file = 'test/run_all.rb'
end
# Quick fix for Ruby 1.8.3 / YAML bug (thanks to Ross Bamford)
if RUBY_VERSION == '1.8.3'
def spec.to_yaml
out = super
out = '--- ' + out unless out =~ /^---/
out
end
end
#if $0 == __FILE__
# Gem::manage_gems
# Gem::Builder.new(spec).build
#end
spec