File: kwalify.gemspec

package info (click to toggle)
kwalify 0.7.2-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 1,852 kB
  • ctags: 1,188
  • sloc: ruby: 8,446; xml: 172; makefile: 36; java: 36
file content (53 lines) | stat: -rw-r--r-- 1,505 bytes parent folder | download | duplicates (5)
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$
### $Release: 0.7.2 $
### copyright(c) 2005-2010 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.2"
   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