vrbo 2.1.0 → 2.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4cb4708541e4abb2002d8adb70752ba11d83d2df
4
- data.tar.gz: 66af6960bebc1bcbb7dc9bd89c6b84ed1d143753
3
+ metadata.gz: 41f9c3489f389f7eb908490fe42ee3fc6b599364
4
+ data.tar.gz: 2ff57ef74803fd9fec362eac989c511e72f9d26c
5
5
  SHA512:
6
- metadata.gz: 228ed7ddc4cc4ff127b8dbce7cd7bb693fae07b5e714712fe4c74ae279da199785903bac8ee86f63e7086f4f8feab11e35b9f9e3b81ce3a95d80ee90414d1fd3
7
- data.tar.gz: 9b86485bad767ae5c1c125e89f040e66558e9ab6213586b2138a049dcf67053f8a08bf2055cc122f82cc328ea48d99786542cddc39afe0fcf1d066b7a36d4efa
6
+ metadata.gz: d5e72e5a11c42a62a4b613d96de2384226411f66e4ac1044020f8f5d29b07f4d5f9272ed5d1b915b5793cc1cf07e23551ca134950e3c2be2631c766d05464424
7
+ data.tar.gz: 9892dde8373b4012304c2b1a08d3547fd43f9b79b80022693f901486f5626f074150aac740301bfd978de004254eaf351f43ad6f455e209ae6b2207e7cc0d62d
data/README.md CHANGED
@@ -9,7 +9,7 @@ scrape this calendar: [http://www.vrbo.com/293021/calendar](http://www.vrbo.com/
9
9
 
10
10
  ## Usage
11
11
 
12
- If you're just working with one calendar, then you can specify the VRBO calendar id in an initializer:
12
+ Specify the VRBO calendar ID in an initializer:
13
13
 
14
14
  ```ruby
15
15
  # config/initializers/vrbo.rb
@@ -18,14 +18,26 @@ VRBO.configure do |config|
18
18
  end
19
19
  ```
20
20
 
21
- Then to lookup available dates and see if a date range is available:
21
+ Lookup available dates:
22
22
 
23
23
  ```ruby
24
24
  calendar = VRBO::Calendar.new
25
- calendar.available?(Date.today, Date.today + 5)
26
- #=> true/false
27
- calendar.available_dates
28
- #=> ["2015-11-03", "2015-11-04", "2015-11-05", ...]
25
+ calendar.available_dates #=> ["2015-11-03", "2015-11-04", "2015-11-05", ...]
26
+ ```
27
+
28
+ Check availability:
29
+
30
+ ```ruby
31
+ calendar.available?(Date.today, Date.today + 5) #=> true/false
32
+ ```
33
+
34
+ ### Multiple Calendars
35
+
36
+ In the case of multiple calendars it makes more sense to skip the initializer part and pass the the calendar ID on
37
+ initialization:
38
+
39
+ ```ruby
40
+ VRBO::Calendar.new 293021
29
41
  ```
30
42
 
31
43
  ## Contributing
@@ -55,9 +55,6 @@ module VRBO
55
55
  puts calendar: calendar
56
56
  end
57
57
 
58
- # , retries: 10
59
- # collect_days_for_month(date, retries: retries - 1) if table.nil? && retries > 0
60
-
61
58
  def calendar
62
59
  @calendar ||= Mechanize.start do |agent|
63
60
  agent.open_timeout = 10
@@ -1,3 +1,3 @@
1
1
  module VRBO
2
- VERSION = '2.1.0'
2
+ VERSION = '2.1.1'
3
3
  end
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
10
10
  spec.email = ["arebuckley@gmail.com"]
11
11
  spec.description = %q{Scrapes a VRBO calendar using Mechanize and returns available dates}
12
12
  spec.summary = %q{Scrapes a VRBO calendar using Mechanize}
13
- spec.homepage = ""
13
+ spec.homepage = "https://github.com/ridiculous/vrbo-calendar-scraper"
14
14
  spec.license = "MIT"
15
15
 
16
16
  spec.files = `git ls-files`.split($/)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vrbo
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Buckley
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-11-04 00:00:00.000000000 Z
11
+ date: 2016-01-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mechanize
@@ -147,7 +147,7 @@ files:
147
147
  - spec/vrbo/availability_spec.rb
148
148
  - spec/vrbo/calendar_spec.rb
149
149
  - vrbo.gemspec
150
- homepage: ''
150
+ homepage: https://github.com/ridiculous/vrbo-calendar-scraper
151
151
  licenses:
152
152
  - MIT
153
153
  metadata: {}