holden-hostelify 0.3.0 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/Rakefile CHANGED
@@ -2,7 +2,7 @@ require 'rubygems'
2
2
  require 'rake'
3
3
  require 'echoe'
4
4
 
5
- Echoe.new('hostelify', '0.3.0') do |p|
5
+ Echoe.new('hostelify', '0.3.1') do |p|
6
6
  p.description = "Simple Hostel Webscrapper."
7
7
  p.url = "http://github.com/holden/hostelify"
8
8
  p.author = "Holden Thomas"
data/hostelify.gemspec CHANGED
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{hostelify}
5
- s.version = "0.3.0"
5
+ s.version = "0.3.1"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Holden Thomas"]
9
- s.date = %q{2009-09-15}
9
+ s.date = %q{2009-09-21}
10
10
  s.description = %q{Simple Hostel Webscrapper.}
11
11
  s.email = %q{holden.thomas@gmail.com}
12
12
  s.extra_rdoc_files = ["README.rdoc", "lib/hostelify.rb", "lib/hostelify/gomio.rb", "lib/hostelify/hostelbookers.rb", "lib/hostelify/hostelify.rb", "lib/hostelify/hostelworld.rb"]
@@ -149,12 +149,14 @@ class Hostelworld
149
149
  page = agent.get(url)
150
150
 
151
151
  #the form name
152
- form = page.forms.first # => WWW::Mechanize::Form
152
+ #form = page.forms.first # => WWW::Mechanize::Form
153
+ form = page.form_with(:name => 'theForm')
153
154
 
154
155
  page = agent.submit(form)
155
156
 
156
157
  #form must be submitted twice because the people writing hostelworld are retards
157
- form = page.forms.first # => WWW::Mechanize::Form
158
+ #form = page.forms.first # => WWW::Mechanize::Form
159
+ form = page.form_with(:name => 'theForm')
158
160
  form.field_with(:name => 'selMonth').options[month-1].select
159
161
  form.field_with(:name => 'selDay').options[day-1].select
160
162
  form.field_with(:name => 'selYear').options[year].select
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: holden-hostelify
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Holden Thomas
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-09-15 00:00:00 -07:00
12
+ date: 2009-09-21 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies: []
15
15
 
@@ -43,6 +43,7 @@ files:
43
43
  - spec/hw_find_hostels.spec
44
44
  has_rdoc: true
45
45
  homepage: http://github.com/holden/hostelify
46
+ licenses:
46
47
  post_install_message:
47
48
  rdoc_options:
48
49
  - --line-numbers
@@ -68,7 +69,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
68
69
  requirements: []
69
70
 
70
71
  rubyforge_project: hostelify
71
- rubygems_version: 1.2.0
72
+ rubygems_version: 1.3.5
72
73
  signing_key:
73
74
  specification_version: 2
74
75
  summary: Simple Hostel Webscrapper.