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 +1 -1
- data/hostelify.gemspec +2 -2
- data/lib/hostelify/hostelworld.rb +4 -2
- metadata +4 -3
data/Rakefile
CHANGED
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.
|
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-
|
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.
|
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-
|
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.
|
72
|
+
rubygems_version: 1.3.5
|
72
73
|
signing_key:
|
73
74
|
specification_version: 2
|
74
75
|
summary: Simple Hostel Webscrapper.
|