Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add magic encoding comment to all .rb files

for Ruby 1.9 compatibility
  • Loading branch information...
commit a9c6ac7931027790a5323f026ef477a428bce1c9 1 parent cfa82b7
@Nielsomat Nielsomat authored
View
2  cruise_config.rb
@@ -1,3 +1,5 @@
+# encoding: utf-8
+
# Project-specific configuration for CruiseControl.rb
Project.configure do |project|
View
2  examples/grab_contacts.rb
@@ -1,3 +1,5 @@
+# encoding: utf-8
+
require File.dirname(__FILE__)+"/../lib/contacts"
login = ARGV[0]
View
2  lib/contacts.rb
@@ -1,3 +1,5 @@
+# encoding: utf-8
+
$:.unshift(File.dirname(__FILE__)+"/contacts/")
require 'rubygems'
View
2  lib/contacts/aol.rb
@@ -1,3 +1,5 @@
+# encoding: utf-8
+
class Contacts
require 'hpricot'
require 'csv'
View
2  lib/contacts/base.rb
@@ -1,3 +1,5 @@
+# encoding: utf-8
+
require "cgi"
require "net/http"
require "net/https"
View
2  lib/contacts/gmail.rb
@@ -1,3 +1,5 @@
+# encoding: utf-8
+
require 'gdata'
class Contacts
View
2  lib/contacts/hotmail.rb
@@ -1,3 +1,5 @@
+# encoding: utf-8
+
class Contacts
class Hotmail < Base
URL = "https://login.live.com/login.srf?id=2"
View
2  lib/contacts/json_picker.rb
@@ -1,3 +1,5 @@
+# encoding: utf-8
+
if !Object.const_defined?('ActiveSupport')
require 'json'
end
View
2  lib/contacts/livejournal.rb
@@ -1,3 +1,5 @@
+# encoding: utf-8
+
require 'hpricot'
require 'mechanize'
View
2  lib/contacts/mailru.rb
@@ -1,3 +1,5 @@
+# encoding: utf-8
+
require 'hpricot'
require 'iconv'
View
2  lib/contacts/plaxo.rb
@@ -1,3 +1,5 @@
+# encoding: utf-8
+
require 'rexml/document'
class Contacts
View
2  lib/contacts/rambler.rb
@@ -1,3 +1,5 @@
+# encoding: utf-8
+
require 'hpricot'
class Contacts
View
2  lib/contacts/vkontakte.rb
@@ -1,3 +1,5 @@
+# encoding: utf-8
+
require 'json'
require 'mechanize'
require 'iconv'
View
2  lib/contacts/yahoo.rb
@@ -1,3 +1,5 @@
+# encoding: utf-8
+
class Contacts
class Yahoo < Base
URL = "http://mail.yahoo.com/"
View
2  lib/contacts/yandex.rb
@@ -1,3 +1,5 @@
+# encoding: utf-8
+
require 'csv'
require 'iconv'
View
2  test/test_helper.rb
@@ -1,3 +1,5 @@
+# encoding: utf-8
+
dir = File.dirname(__FILE__)
$LOAD_PATH.unshift(dir + "/../lib/")
require 'test/unit'
View
2  test/test_suite.rb
@@ -1,3 +1,5 @@
+# encoding: utf-8
+
dir = File.dirname(__FILE__)
Dir["#{dir}/**/*_test.rb"].each do |file|
require file
View
2  test/unit/aol_contact_importer_test.rb
@@ -1,3 +1,5 @@
+# encoding: utf-8
+
dir = File.dirname(__FILE__)
require "#{dir}/../test_helper"
require 'contacts'
View
2  test/unit/gmail_contact_importer_test.rb
@@ -1,3 +1,5 @@
+# encoding: utf-8
+
dir = File.dirname(__FILE__)
require "#{dir}/../test_helper"
require 'contacts'
View
2  test/unit/hotmail_contact_importer_test.rb
@@ -1,3 +1,5 @@
+# encoding: utf-8
+
dir = File.dirname(__FILE__)
require "#{dir}/../test_helper"
require 'contacts'
View
2  test/unit/livejournal_contact_importer_test.rb
@@ -1,3 +1,5 @@
+# encoding: utf-8
+
dir = File.dirname(__FILE__)
require "#{dir}/../test_helper"
require 'contacts'
View
2  test/unit/mailru_contact_importer_test.rb
@@ -1,3 +1,5 @@
+# encoding: utf-8
+
dir = File.dirname(__FILE__)
require "#{dir}/../test_helper"
require 'contacts'
View
2  test/unit/test_accounts_test.rb
@@ -1,3 +1,5 @@
+# encoding: utf-8
+
dir = File.dirname(__FILE__)
require "#{dir}/../test_helper"
View
2  test/unit/vkontakte_contact_importer.rb
@@ -1,3 +1,5 @@
+# encoding: utf-8
+
dir = File.dirname(__FILE__)
require "#{dir}/../test_helper"
require 'contacts'
View
2  test/unit/yahoo_csv_contact_importer_test.rb
@@ -1,3 +1,5 @@
+# encoding: utf-8
+
dir = File.dirname(__FILE__)
require "#{dir}/../test_helper"
require 'contacts'
View
2  test/unit/yandex_contact_importer_test.rb
@@ -1,3 +1,5 @@
+# encoding: utf-8
+
dir = File.dirname(__FILE__)
require "#{dir}/../test_helper"
require 'contacts'
Please sign in to comment.
Something went wrong with that request. Please try again.