hostelify 0.3.9 → 0.4

Sign up to get free protection for your applications and to get access to all the features.
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.9') do |p|
5
+ Echoe.new('hostelify', '0.4') 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,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{hostelify}
5
- s.version = "0.3.9"
5
+ s.version = "0.4"
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"]
@@ -1,6 +1,6 @@
1
1
  class Hostelify
2
2
  attr_accessor :hostel_id, :name, :address, :description, :facilities, :ratings, :directions, :geo, :images, :video, :availability
3
- attr_accessor :rating, :dorm, :single, :unavailable, :type
3
+ attr_accessor :rating, :dorm, :single, :unavailable, :genre
4
4
 
5
5
  def initialize(options = {})
6
6
  options.each {
@@ -132,7 +132,7 @@ class Hostelworld
132
132
  url = row.at("h2/a")['href']
133
133
  rating = row.at("h4/text()")
134
134
  rating = rating.to_s.to_i unless rating.nil?
135
- type = row.at("div.hostelListingImage/span").inner_text
135
+ genre = row.at("div.hostelListingImage/span").inner_text
136
136
  hostel_id = url.match(/[\d]*$/).to_s
137
137
 
138
138
  if options[:date]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hostelify
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.9
4
+ version: "0.4"
5
5
  platform: ruby
6
6
  authors:
7
7
  - Holden Thomas