holden-hostelify 0.2.7 → 0.2.8

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 CHANGED
@@ -6,7 +6,7 @@ lib/hostelify.rb
6
6
  lib/hostelify/gomio.rb
7
7
  lib/hostelify/hostelbookers.rb
8
8
  lib/hostelify/hostelify.rb
9
- lib/hostelify/hostelworldmonkey.rb
9
+ lib/hostelify/hostelworld.rb
10
10
  spec/_helper.rb
11
11
  spec/hb_find_by_hostel.spec
12
12
  spec/hb_find_hostels.spec
data/Rakefile CHANGED
@@ -2,7 +2,7 @@ require 'rubygems'
2
2
  require 'rake'
3
3
  require 'echoe'
4
4
 
5
- Echoe.new('hostelify', '0.2.7') do |p|
5
+ Echoe.new('hostelify', '0.2.8') 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,15 +2,15 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{hostelify}
5
- s.version = "0.2.7"
5
+ s.version = "0.2.8"
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/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"]
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"]
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/hostelworld.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"]
@@ -1,4 +1,4 @@
1
- class Hostelworldmonkey
1
+ class Hostelworld
2
2
 
3
3
  #constants
4
4
  #location list includes/indexjs.js
data/lib/hostelify.rb CHANGED
@@ -6,5 +6,5 @@ require 'date'
6
6
  require 'htmlentities'
7
7
  require 'iconv'
8
8
  require 'hostelify/hostelify'
9
- require 'hostelify/hostelworldmonkey'
9
+ require 'hostelify/hostelworld'
10
10
  require 'hostelify/hostelbookers'
@@ -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 = Hostelworldmonkey.find_hostel_by_id(:id => 7113)
7
- @h = Hostelworldmonkey.find_hostel_by_id(:id => 20763)
6
+ @h = Hostelworld.find_hostel_by_id(:id => 7113)
7
+ @h = Hostelworld.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 = Hostelworldmonkey.find_hostel_by_id(:id => 7113)
35
+ @h3 = Hostelworld.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 = Hostelworldmonkey.find_hostel_by_id(:id => 7113, :all => true)
46
- @h2 = Hostelworldmonkey.find_hostel_by_id(:id => 20763, :all => true)
45
+ @h2 = Hostelworld.find_hostel_by_id(:id => 7113, :all => true)
46
+ @h2 = Hostelworld.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 = Hostelworldmonkey.find_hostel_by_id(:id => 20763, :date => (Date.today+20).to_s)
64
+ @h = Hostelworld.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
@@ -3,7 +3,7 @@ require 'spec/_helper'
3
3
  describe "finds list of hostels" do
4
4
 
5
5
  before(:all) do
6
- @h = Hostelworldmonkey.find_hostels_by_location(:location => 'krakow,poland')
6
+ @h = Hostelworld.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 = Hostelworldmonkey.find_hostels_by_location(:location => 'krakow,poland', :date => (Date.today + 10).to_s)
35
+ @h = Hostelworld.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.7
4
+ version: 0.2.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Holden Thomas
@@ -25,7 +25,7 @@ extra_rdoc_files:
25
25
  - lib/hostelify/gomio.rb
26
26
  - lib/hostelify/hostelbookers.rb
27
27
  - lib/hostelify/hostelify.rb
28
- - lib/hostelify/hostelworldmonkey.rb
28
+ - lib/hostelify/hostelworld.rb
29
29
  files:
30
30
  - Manifest
31
31
  - README.rdoc
@@ -35,7 +35,7 @@ files:
35
35
  - lib/hostelify/gomio.rb
36
36
  - lib/hostelify/hostelbookers.rb
37
37
  - lib/hostelify/hostelify.rb
38
- - lib/hostelify/hostelworldmonkey.rb
38
+ - lib/hostelify/hostelworld.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.3.5
71
+ rubygems_version: 1.2.0
73
72
  signing_key:
74
73
  specification_version: 2
75
74
  summary: Simple Hostel Webscrapper.