holden-hostelify 0.2.5 → 0.2.6
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/Manifest +2 -2
- data/Rakefile +1 -1
- data/hostelify.gemspec +3 -3
- data/lib/hostelify/{hostel.rb → hostelify.rb} +0 -0
- data/lib/hostelify/{hostelworld.rb → hostelworldmonkey.rb} +1 -1
- data/lib/hostelify.rb +1 -1
- data/spec/hw_find_by_hostel.spec +6 -6
- data/spec/hw_find_hostels.spec +2 -2
- metadata +6 -7
data/Manifest
CHANGED
@@ -4,9 +4,9 @@ Rakefile
|
|
4
4
|
hostelify.gemspec
|
5
5
|
lib/hostelify.rb
|
6
6
|
lib/hostelify/gomio.rb
|
7
|
-
lib/hostelify/hostel.rb
|
8
7
|
lib/hostelify/hostelbookers.rb
|
9
|
-
lib/hostelify/
|
8
|
+
lib/hostelify/hostelify.rb
|
9
|
+
lib/hostelify/hostelworldmonkey.rb
|
10
10
|
spec/_helper.rb
|
11
11
|
spec/hb_find_by_hostel.spec
|
12
12
|
spec/hb_find_hostels.spec
|
data/Rakefile
CHANGED
data/hostelify.gemspec
CHANGED
@@ -2,15 +2,15 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{hostelify}
|
5
|
-
s.version = "0.2.
|
5
|
+
s.version = "0.2.6"
|
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
9
|
s.date = %q{2009-09-10}
|
10
10
|
s.description = %q{Simple Hostel Webscrapper.}
|
11
11
|
s.email = %q{holden.thomas@gmail.com}
|
12
|
-
s.extra_rdoc_files = ["README.rdoc", "lib/hostelify.rb", "lib/hostelify/gomio.rb", "lib/hostelify/
|
13
|
-
s.files = ["Manifest", "README.rdoc", "Rakefile", "hostelify.gemspec", "lib/hostelify.rb", "lib/hostelify/gomio.rb", "lib/hostelify/
|
12
|
+
s.extra_rdoc_files = ["README.rdoc", "lib/hostelify.rb", "lib/hostelify/gomio.rb", "lib/hostelify/hostelbookers.rb", "lib/hostelify/hostelify.rb", "lib/hostelify/hostelworldmonkey.rb"]
|
13
|
+
s.files = ["Manifest", "README.rdoc", "Rakefile", "hostelify.gemspec", "lib/hostelify.rb", "lib/hostelify/gomio.rb", "lib/hostelify/hostelbookers.rb", "lib/hostelify/hostelify.rb", "lib/hostelify/hostelworldmonkey.rb", "spec/_helper.rb", "spec/hb_find_by_hostel.spec", "spec/hb_find_hostels.spec", "spec/hw_find_by_hostel.spec", "spec/hw_find_hostels.spec"]
|
14
14
|
s.has_rdoc = true
|
15
15
|
s.homepage = %q{http://github.com/holden/hostelify}
|
16
16
|
s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Hostelify", "--main", "README.rdoc"]
|
File without changes
|
data/lib/hostelify.rb
CHANGED
data/spec/hw_find_by_hostel.spec
CHANGED
@@ -3,8 +3,8 @@ require 'spec/_helper'
|
|
3
3
|
describe "find hostel by id, no options" do
|
4
4
|
|
5
5
|
before(:all) do
|
6
|
-
@h =
|
7
|
-
@h =
|
6
|
+
@h = Hostelworldmonkey.find_hostel_by_id(:id => 7113)
|
7
|
+
@h = Hostelworldmonkey.find_hostel_by_id(:id => 20763)
|
8
8
|
end
|
9
9
|
|
10
10
|
it "should query hostelworld and return the correct name" do
|
@@ -32,7 +32,7 @@ end
|
|
32
32
|
describe "youtube" do
|
33
33
|
|
34
34
|
before(:all) do
|
35
|
-
@h3 =
|
35
|
+
@h3 = Hostelworldmonkey.find_hostel_by_id(:id => 7113)
|
36
36
|
end
|
37
37
|
|
38
38
|
it "video" do
|
@@ -42,8 +42,8 @@ end
|
|
42
42
|
|
43
43
|
describe "find hostel with all options" do
|
44
44
|
before(:all) do
|
45
|
-
@h2 =
|
46
|
-
@h2 =
|
45
|
+
@h2 = Hostelworldmonkey.find_hostel_by_id(:id => 7113, :all => true)
|
46
|
+
@h2 = Hostelworldmonkey.find_hostel_by_id(:id => 20763, :all => true)
|
47
47
|
end
|
48
48
|
|
49
49
|
it "geo" do
|
@@ -61,7 +61,7 @@ end
|
|
61
61
|
|
62
62
|
describe "with dates to get availabilty and verify output!" do
|
63
63
|
before(:all) do
|
64
|
-
@h =
|
64
|
+
@h = Hostelworldmonkey.find_hostel_by_id(:id => 20763, :date => (Date.today+20).to_s)
|
65
65
|
end
|
66
66
|
|
67
67
|
it "get first availability and check it merit" do
|
data/spec/hw_find_hostels.spec
CHANGED
@@ -3,7 +3,7 @@ require 'spec/_helper'
|
|
3
3
|
describe "finds list of hostels" do
|
4
4
|
|
5
5
|
before(:all) do
|
6
|
-
@h =
|
6
|
+
@h = Hostelworldmonkey.find_hostels_by_location(:location => 'krakow,poland')
|
7
7
|
end
|
8
8
|
|
9
9
|
it "should get a list with name and brief desc" do
|
@@ -32,7 +32,7 @@ end
|
|
32
32
|
describe "find hostels with dates" do
|
33
33
|
|
34
34
|
before(:all) do
|
35
|
-
@h =
|
35
|
+
@h = Hostelworldmonkey.find_hostels_by_location(:location => 'krakow,poland', :date => (Date.today + 10).to_s)
|
36
36
|
end
|
37
37
|
|
38
38
|
it "rating should be high for first choices" do
|
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.2.
|
4
|
+
version: 0.2.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Holden Thomas
|
@@ -23,9 +23,9 @@ extra_rdoc_files:
|
|
23
23
|
- README.rdoc
|
24
24
|
- lib/hostelify.rb
|
25
25
|
- lib/hostelify/gomio.rb
|
26
|
-
- lib/hostelify/hostel.rb
|
27
26
|
- lib/hostelify/hostelbookers.rb
|
28
|
-
- lib/hostelify/
|
27
|
+
- lib/hostelify/hostelify.rb
|
28
|
+
- lib/hostelify/hostelworldmonkey.rb
|
29
29
|
files:
|
30
30
|
- Manifest
|
31
31
|
- README.rdoc
|
@@ -33,9 +33,9 @@ files:
|
|
33
33
|
- hostelify.gemspec
|
34
34
|
- lib/hostelify.rb
|
35
35
|
- lib/hostelify/gomio.rb
|
36
|
-
- lib/hostelify/hostel.rb
|
37
36
|
- lib/hostelify/hostelbookers.rb
|
38
|
-
- lib/hostelify/
|
37
|
+
- lib/hostelify/hostelify.rb
|
38
|
+
- lib/hostelify/hostelworldmonkey.rb
|
39
39
|
- spec/_helper.rb
|
40
40
|
- spec/hb_find_by_hostel.spec
|
41
41
|
- spec/hb_find_hostels.spec
|
@@ -43,7 +43,6 @@ files:
|
|
43
43
|
- spec/hw_find_hostels.spec
|
44
44
|
has_rdoc: true
|
45
45
|
homepage: http://github.com/holden/hostelify
|
46
|
-
licenses:
|
47
46
|
post_install_message:
|
48
47
|
rdoc_options:
|
49
48
|
- --line-numbers
|
@@ -69,7 +68,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
69
68
|
requirements: []
|
70
69
|
|
71
70
|
rubyforge_project: hostelify
|
72
|
-
rubygems_version: 1.
|
71
|
+
rubygems_version: 1.2.0
|
73
72
|
signing_key:
|
74
73
|
specification_version: 2
|
75
74
|
summary: Simple Hostel Webscrapper.
|