summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Reiter <me@reitermark.us>2017-05-06 20:46:14 +0200
committerMarkus Reiter <me@reitermark.us>2017-05-06 23:04:06 +0200
commit4b9bb638c4dd1198141f6c0d986476b3ba07df3a (patch)
tree28950123dc9df4dff6496b590433fbc768fb4bd1
parentcc2b6f24436439ddffda62d9c85d295da1316d18 (diff)
downloadplist-4b9bb638c4dd1198141f6c0d986476b3ba07df3a.tar.gz
Fix comment indentation.
-rwxr-xr-xlib/plist/parser.rb22
-rw-r--r--test/test_data_elements.rb2
-rwxr-xr-xtest/test_parser.rb6
3 files changed, 15 insertions, 15 deletions
diff --git a/lib/plist/parser.rb b/lib/plist/parser.rb
index 4835f8b..9be3e23 100755
--- a/lib/plist/parser.rb
+++ b/lib/plist/parser.rb
@@ -13,25 +13,25 @@
#
# r = Plist.parse_xml(filename_or_xml)
module Plist
-# Note that I don't use these two elements much:
-#
-# + Date elements are returned as DateTime objects.
-# + Data elements are implemented as Tempfiles
-#
-# Plist.parse_xml will blow up if it encounters a Date element.
-# If you encounter such an error, or if you have a Date element which
-# can't be parsed into a Time object, please send your plist file to
-# plist@hexane.org so that I can implement the proper support.
+ # Note that I don't use these two elements much:
+ #
+ # + Date elements are returned as DateTime objects.
+ # + Data elements are implemented as Tempfiles
+ #
+ # Plist.parse_xml will blow up if it encounters a Date element.
+ # If you encounter such an error, or if you have a Date element which
+ # can't be parsed into a Time object, please send your plist file to
+ # plist@hexane.org so that I can implement the proper support.
def self.parse_xml(filename_or_xml)
listener = Listener.new
- #parser = REXML::Parsers::StreamParser.new(File.new(filename), listener)
+ # parser = REXML::Parsers::StreamParser.new(File.new(filename), listener)
parser = StreamParser.new(filename_or_xml, listener)
parser.parse
listener.result
end
class Listener
- #include REXML::StreamListener
+ # include REXML::StreamListener
attr_accessor :result, :open
diff --git a/test/test_data_elements.rb b/test/test_data_elements.rb
index 09af0da..02fcf20 100644
--- a/test/test_data_elements.rb
+++ b/test/test_data_elements.rb
@@ -105,7 +105,7 @@ END
# test writing data elements
expected = File.read("test/assets/example_data.plist")
result = data.to_plist
- #File.open('result.plist', 'w') {|f|f.write(result)} # debug
+ # File.open('result.plist', 'w') {|f|f.write(result)} # debug
assert_equal(expected, result)
# Test changing the <data> object in the plist to a StringIO and writing.
diff --git a/test/test_parser.rb b/test/test_parser.rb
index 0e17765..53e7fa2 100755
--- a/test/test_parser.rb
+++ b/test/test_parser.rb
@@ -48,9 +48,9 @@ class TestParser < Test::Unit::TestCase
end
# uncomment this test to work on speed optimization
- #def test_load_something_big
- # plist = Plist.parse_xml("~/Pictures/iPhoto Library/AlbumData.xml")
- #end
+ # def test_load_something_big
+ # plist = Plist.parse_xml("~/Pictures/iPhoto Library/AlbumData.xml")
+ # end
# date fields are credited to
def test_date_fields