summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Bleything <ben@bleything.net>2010-02-14 14:47:43 -0800
committerBen Bleything <ben@bleything.net>2010-02-14 14:47:43 -0800
commitd4eb33272efd78dacce83d46903c8f0a0a55ed4e (patch)
treeb1e69c47b246119cc501b7702e3e75dbe61a91b0
parent1b45eafe760602efbee6844578f5b5b147f7af82 (diff)
downloadplist-d4eb33272efd78dacce83d46903c8f0a0a55ed4e.tar.gz
remove ugly header comments, replace with simpler alternative
-rw-r--r--Rakefile18
-rw-r--r--lib/plist.rb19
-rw-r--r--lib/plist/generator.rb15
-rw-r--r--lib/plist/parser.rb15
-rw-r--r--test/test_data_elements.rb7
-rw-r--r--test/test_generator.rb7
-rw-r--r--test/test_generator_basic_types.rb7
-rw-r--r--test/test_generator_collections.rb7
-rw-r--r--test/test_parser.rb8
9 files changed, 38 insertions, 65 deletions
diff --git a/Rakefile b/Rakefile
index 3b51225..d297c82 100644
--- a/Rakefile
+++ b/Rakefile
@@ -1,12 +1,12 @@
-##############################################################
-# Copyright 2006, Ben Bleything <ben@bleything.net> and #
-# Patrick May <patrick@hexane.org> #
-# #
-# Based heavily on Geoffrey Grosenbach's Rakefile for gruff. #
-# Includes whitespace-fixing task based on code from Typo. #
-# #
-# Distributed under the MIT license. #
-##############################################################
+#
+# Plist Rakefile
+#
+# Based heavily on Geoffrey Grosenbach's Rakefile for gruff.
+# Includes whitespace-fixing task based on code from Typo.
+#
+# Copyright 2006-2010 Ben Bleything and Patrick May
+# Distributed under the MIT License
+#
require 'fileutils'
require 'rubygems'
diff --git a/lib/plist.rb b/lib/plist.rb
index 3a74097..29e65dc 100644
--- a/lib/plist.rb
+++ b/lib/plist.rb
@@ -1,14 +1,13 @@
-#--
-##############################################################
-# Copyright 2006, Ben Bleything <ben@bleything.net> and #
-# Patrick May <patrick@hexane.org> #
-# #
-# Distributed under the MIT license. #
-##############################################################
-#++
-# = Plist
+#!/usr/bin/env ruby
+#
+# = plist
+#
+# This is the main file for plist. Everything interesting happens in
+# Plist and Plist::Emit.
+#
+# Copyright 2006-2010 Ben Bleything and Patrick May
+# Distributed under the MIT License
#
-# This is the main file for plist. Everything interesting happens in Plist and Plist::Emit.
require 'base64'
require 'cgi'
diff --git a/lib/plist/generator.rb b/lib/plist/generator.rb
index c6763a1..fd9fd32 100644
--- a/lib/plist/generator.rb
+++ b/lib/plist/generator.rb
@@ -1,11 +1,10 @@
-#--###########################################################
-# Copyright 2006, Ben Bleything <ben@bleything.net> and #
-# Patrick May <patrick@hexane.org> #
-# #
-# Distributed under the MIT license. #
-##############################################################
-#++
-# See Plist::Emit.
+#!/usr/bin/env ruby
+#
+# = plist
+#
+# Copyright 2006-2010 Ben Bleything and Patrick May
+# Distributed under the MIT License
+#
module Plist ; end
diff --git a/lib/plist/parser.rb b/lib/plist/parser.rb
index e0623ae..6daa5bf 100644
--- a/lib/plist/parser.rb
+++ b/lib/plist/parser.rb
@@ -1,10 +1,11 @@
-#--###########################################################
-# Copyright 2006, Ben Bleything <ben@bleything.net> and #
-# Patrick May <patrick@hexane.org> #
-# #
-# Distributed under the MIT license. #
-##############################################################
-#++
+#!/usr/bin/env ruby
+#
+# = plist
+#
+# Copyright 2006-2010 Ben Bleything and Patrick May
+# Distributed under the MIT License
+#
+
# Plist parses Mac OS X xml property list files into ruby data structures.
#
# === Load a plist file
diff --git a/test/test_data_elements.rb b/test/test_data_elements.rb
index 0b0ea71..ec0062b 100644
--- a/test/test_data_elements.rb
+++ b/test/test_data_elements.rb
@@ -1,9 +1,4 @@
-##############################################################
-# Copyright 2006, Ben Bleything <ben@bleything.net> and #
-# Patrick May <patrick@hexane.org> #
-# #
-# Distributed under the MIT license. #
-##############################################################
+#!/usr/bin/env ruby
require 'test/unit'
require 'plist'
diff --git a/test/test_generator.rb b/test/test_generator.rb
index 0fefaa3..dbb1a59 100644
--- a/test/test_generator.rb
+++ b/test/test_generator.rb
@@ -1,9 +1,4 @@
-##############################################################
-# Copyright 2006, Ben Bleything <ben@bleything.net> and #
-# Patrick May <patrick@hexane.org> #
-# #
-# Distributed under the MIT license. #
-##############################################################
+#!/usr/bin/env ruby
require 'test/unit'
require 'plist'
diff --git a/test/test_generator_basic_types.rb b/test/test_generator_basic_types.rb
index d3f627c..1892d85 100644
--- a/test/test_generator_basic_types.rb
+++ b/test/test_generator_basic_types.rb
@@ -1,9 +1,4 @@
-##############################################################
-# Copyright 2006, Ben Bleything <ben@bleything.net> and #
-# Patrick May <patrick@hexane.org> #
-# #
-# Distributed under the MIT license. #
-##############################################################
+#!/usr/bin/env ruby
require 'test/unit'
require 'plist'
diff --git a/test/test_generator_collections.rb b/test/test_generator_collections.rb
index e6a21d0..ea50c82 100644
--- a/test/test_generator_collections.rb
+++ b/test/test_generator_collections.rb
@@ -1,9 +1,4 @@
-##############################################################
-# Copyright 2006, Ben Bleything <ben@bleything.net> and #
-# Patrick May <patrick@hexane.org> #
-# #
-# Distributed under the MIT license. #
-##############################################################
+#!/usr/bin/env ruby
require 'test/unit'
require 'plist'
diff --git a/test/test_parser.rb b/test/test_parser.rb
index b6313c0..28ddd10 100644
--- a/test/test_parser.rb
+++ b/test/test_parser.rb
@@ -1,12 +1,6 @@
-##############################################################
-# Copyright 2006, Ben Bleything <ben@bleything.net> and #
-# Patrick May <patrick@hexane.org> #
-# #
-# Distributed under the MIT license. #
-##############################################################
+#!/usr/bin/env ruby
require 'test/unit'
-
require 'plist'
class TestParser < Test::Unit::TestCase