AddressBookImporter 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/Rakefile +1 -1
  2. data/lib/address_book_importer.rb +3 -2
  3. metadata +7 -7
data/Rakefile CHANGED
@@ -11,7 +11,7 @@ Hoe.new('AddressBookImporter', AddressBookImporter::VERSION) do |p|
11
11
  # p.description = p.paragraphs_of('README.txt', 2..5).join("\n\n")
12
12
  # p.url = p.paragraphs_of('README.txt', 0).first.split(/\n/)[1..-1]
13
13
  p.changes = p.paragraphs_of('History.txt', 0..1).join("\n\n")
14
- p.extra_deps = ['hpricot', 'mechanize']
14
+ p.extra_deps = ['hpricot']
15
15
  end
16
16
 
17
17
  # vim: syntax=Ruby
@@ -1,9 +1,10 @@
1
1
  require 'rubygems'
2
2
  require 'mechanize'
3
3
  require 'cgi'
4
+ require 'iconv'
4
5
 
5
6
  module AddressBookImporter
6
- VERSION = '0.0.5'
7
+ VERSION = '0.0.6'
7
8
 
8
9
  class EmptyEmailException < Exception ; end
9
10
  class LoginErrorException < Exception ; end
@@ -123,7 +124,7 @@ module AddressBookImporter
123
124
  page = @agent.get('https://login.yahoo.com/config/login_verify2?&.src=ym')
124
125
  form = page.forms.first
125
126
  form.fields.find {|f| f.name == 'login'}.value = login
126
- form.fields.find {|f| f.name == 'passwd'}.value = password
127
+ form.fields.find {|f| f.name == 'passwd'}.value = Iconv.iconv('latin1', 'utf8', password)
127
128
  page = @agent.submit(form, form.buttons.first)
128
129
  raise LoginErrorException if page.body.match(/<div class="yregertxt">/)
129
130
  @agent.click(page.links.first)
metadata CHANGED
@@ -1,17 +1,17 @@
1
1
  --- !ruby/object:Gem::Specification
2
- rubygems_version: 0.9.0
2
+ rubygems_version: 0.9.2
3
3
  specification_version: 1
4
4
  name: AddressBookImporter
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.0.5
7
- date: 2007-02-05 00:00:00 +01:00
6
+ version: 0.0.6
7
+ date: 2007-02-15 00:00:00 +01:00
8
8
  summary: Mechanize scraper for address books
9
9
  require_paths:
10
10
  - lib
11
11
  email: ryand-ruby@zenspider.com
12
12
  homepage: http://www.zenspider.com/ZSS/Products/AddressBookImporter/
13
13
  rubyforge_project: adocca-plugins
14
- description: Ryan Davis is too lazy to write a description
14
+ description: The author was too lazy to write a description
15
15
  autorequire:
16
16
  default_executable:
17
17
  bindir: bin
@@ -58,11 +58,11 @@ dependencies:
58
58
  version: 0.0.0
59
59
  version:
60
60
  - !ruby/object:Gem::Dependency
61
- name: mechanize
61
+ name: hoe
62
62
  version_requirement:
63
63
  version_requirements: !ruby/object:Gem::Version::Requirement
64
64
  requirements:
65
- - - ">"
65
+ - - ">="
66
66
  - !ruby/object:Gem::Version
67
- version: 0.0.0
67
+ version: 1.1.7
68
68
  version: