File: gemspec_upgrade.patch

package info (click to toggle)
kwalify 0.7.2-4
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 2,360 kB
  • ctags: 1,601
  • sloc: ruby: 8,427; xml: 170; makefile: 37; java: 36
file content (48 lines) | stat: -rw-r--r-- 1,163 bytes parent folder | download | duplicates (3)
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