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
|
Index: kwalify/kwalify.gemspec
===================================================================
--- kwalify.orig/kwalify.gemspec
+++ kwalify/kwalify.gemspec
@@ -1,14 +1,6 @@
-#!/usr/bin/ruby
+# -*- encoding: utf-8 -*-
-###
-### $Rev$
-### $Release: 0.7.2 $
-### copyright(c) 2005-2010 kuwata-lab all rights reserved.
-###
-
-require 'rubygems'
-
-spec = Gem::Specification.new do |s|
+Gem::Specification.new do |s|
## package information
s.name = "kwalify"
s.author = "makoto kuwata"
@@ -19,7 +11,7 @@ spec = Gem::Specification.new do |s|
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/**/*')
@@ -37,17 +29,3 @@ spec = Gem::Specification.new do |s|
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
|