From faeef0768ecee7fd6d64337f647f8578bef414a2 Mon Sep 17 00:00:00 2001 From: Markus Reiter Date: Wed, 19 Apr 2017 23:05:57 +0200 Subject: Fix whitespace. --- lib/plist/generator.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/plist/generator.rb b/lib/plist/generator.rb index e653675..1969d84 100644 --- a/lib/plist/generator.rb +++ b/lib/plist/generator.rb @@ -6,7 +6,7 @@ # Distributed under the MIT License # -module Plist ; end +module Plist; end # === Create a plist # You can dump an object to a plist in one of two ways: -- cgit v1.2.1 From df106f51674554642e6d73fa7eb7506287903c9a Mon Sep 17 00:00:00 2001 From: Markus Reiter Date: Wed, 19 Apr 2017 23:43:42 +0200 Subject: Remove shebangs from Ruby files. --- lib/plist.rb | 2 -- lib/plist/generator.rb | 2 -- lib/plist/parser.rb | 2 -- test/test_data_elements.rb | 2 -- test/test_generator.rb | 2 -- test/test_generator_basic_types.rb | 2 -- test/test_generator_collections.rb | 2 -- test/test_parser.rb | 2 -- 8 files changed, 16 deletions(-) mode change 100644 => 100755 lib/plist/parser.rb mode change 100644 => 100755 test/test_parser.rb diff --git a/lib/plist.rb b/lib/plist.rb index 9ed6436..15c86f9 100644 --- a/lib/plist.rb +++ b/lib/plist.rb @@ -1,5 +1,3 @@ -#!/usr/bin/env ruby -# # = plist # # This is the main file for plist. Everything interesting happens in diff --git a/lib/plist/generator.rb b/lib/plist/generator.rb index 1969d84..8ce3473 100644 --- a/lib/plist/generator.rb +++ b/lib/plist/generator.rb @@ -1,5 +1,3 @@ -#!/usr/bin/env ruby -# # = plist # # Copyright 2006-2010 Ben Bleything and Patrick May diff --git a/lib/plist/parser.rb b/lib/plist/parser.rb old mode 100644 new mode 100755 index 367d35f..b13c5e0 --- a/lib/plist/parser.rb +++ b/lib/plist/parser.rb @@ -1,5 +1,3 @@ -#!/usr/bin/env ruby -# # = plist # # Copyright 2006-2010 Ben Bleything and Patrick May diff --git a/test/test_data_elements.rb b/test/test_data_elements.rb index 36ceac0..6d061e8 100644 --- a/test/test_data_elements.rb +++ b/test/test_data_elements.rb @@ -1,5 +1,3 @@ -#!/usr/bin/env ruby - require 'test/unit' require 'plist' require 'stringio' diff --git a/test/test_generator.rb b/test/test_generator.rb index b03001c..241ff4f 100644 --- a/test/test_generator.rb +++ b/test/test_generator.rb @@ -1,5 +1,3 @@ -#!/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 1892d85..6134514 100644 --- a/test/test_generator_basic_types.rb +++ b/test/test_generator_basic_types.rb @@ -1,5 +1,3 @@ -#!/usr/bin/env ruby - require 'test/unit' require 'plist' diff --git a/test/test_generator_collections.rb b/test/test_generator_collections.rb index ea50c82..8920979 100644 --- a/test/test_generator_collections.rb +++ b/test/test_generator_collections.rb @@ -1,5 +1,3 @@ -#!/usr/bin/env ruby - require 'test/unit' require 'plist' diff --git a/test/test_parser.rb b/test/test_parser.rb old mode 100644 new mode 100755 index 6116750..e096196 --- a/test/test_parser.rb +++ b/test/test_parser.rb @@ -1,5 +1,3 @@ -#!/usr/bin/env ruby - require 'test/unit' require 'plist' -- cgit v1.2.1 From 09fb07318cfe90f46f68a3c56585cc27af740b4b Mon Sep 17 00:00:00 2001 From: Markus Reiter Date: Thu, 20 Apr 2017 21:51:25 +0200 Subject: Add `encoding` comment to Ruby files. --- lib/plist.rb | 2 ++ lib/plist/generator.rb | 2 ++ lib/plist/parser.rb | 2 ++ lib/plist/version.rb | 2 ++ plist.gemspec | 2 +- 5 files changed, 9 insertions(+), 1 deletion(-) diff --git a/lib/plist.rb b/lib/plist.rb index 15c86f9..986dad4 100644 --- a/lib/plist.rb +++ b/lib/plist.rb @@ -1,3 +1,5 @@ +# encoding: utf-8 + # = plist # # This is the main file for plist. Everything interesting happens in diff --git a/lib/plist/generator.rb b/lib/plist/generator.rb index 8ce3473..84bef3a 100644 --- a/lib/plist/generator.rb +++ b/lib/plist/generator.rb @@ -1,3 +1,5 @@ +# encoding: utf-8 + # = plist # # Copyright 2006-2010 Ben Bleything and Patrick May diff --git a/lib/plist/parser.rb b/lib/plist/parser.rb index b13c5e0..7df9802 100755 --- a/lib/plist/parser.rb +++ b/lib/plist/parser.rb @@ -1,3 +1,5 @@ +# encoding: utf-8 + # = plist # # Copyright 2006-2010 Ben Bleything and Patrick May diff --git a/lib/plist/version.rb b/lib/plist/version.rb index bbc5885..acce382 100644 --- a/lib/plist/version.rb +++ b/lib/plist/version.rb @@ -1,3 +1,5 @@ +# encoding: utf-8 + module Plist VERSION = '3.2.0'.freeze end diff --git a/plist.gemspec b/plist.gemspec index 343dbcb..9b9a3b8 100644 --- a/plist.gemspec +++ b/plist.gemspec @@ -1,4 +1,4 @@ -# coding: utf-8 +# encoding: utf-8 lib = File.expand_path("../lib", __FILE__) $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) -- cgit v1.2.1