-
Notifications
You must be signed in to change notification settings - Fork 6
/
kwalify.gemspec
53 lines (47 loc) · 1.47 KB
/
kwalify.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
#!/usr/bin/ruby
###
### $Rev: 94 $
### $Release: 0.7.1 $
### copyright(c) 2005-2008 kuwata-lab all rights reserved.
###
require 'rubygems'
spec = Gem::Specification.new do |s|
## package information
s.name = "kwalify"
s.author = "makoto kuwata"
s.version = "0.7.1"
s.platform = Gem::Platform::RUBY
s.homepage = "http://www.kuwata-lab.com/kwalify/"
s.summary = "a parser, schema validator, and data-binding tool for YAML and JSON."
s.description = <<-'END'
Kwalify is a parser, schema validator, and data binding tool for YAML and JSON.
END
## files
files = []
files.concat Dir.glob('lib/**/*')
files.concat Dir.glob('bin/**/*')
files.concat Dir.glob('examples/**/*')
files.concat Dir.glob('test/**/*')
files.concat Dir.glob('man/**/*')
files.concat Dir.glob('contrib/**/*')
files.concat Dir.glob('doc-api/**/*')
files.concat [ "doc/users-guide.html", "doc/docstyle.css", "doc/img/fig01.png" ]
files.concat %w[README.txt CHANGES.txt MIT-LICENSE setup.rb ] # todo.txt
#s.files = files.delete_if { |path| path =~ /\.svn/ }
s.files = files
s.executables = ["kwalify"]
s.bindir = "bin"
s.test_file = 'test/test.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