homeaway-api 1.0.0 → 1.0.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c656cecfa3035e83cc8c49914b151d25db76c72c
4
- data.tar.gz: 9e2cb5e8dbf453da945626c06b4347dc2784cabc
3
+ metadata.gz: ed30a44e51cf0960473944dbe6a4419ab76d0751
4
+ data.tar.gz: 288122b7c1794b6a32eb15b1b7a255dd73922cb7
5
5
  SHA512:
6
- metadata.gz: 0be559350c906f672c84d6cbbde4de649fb6bee81dcdc6782bbb214420d522ecfb792b49a2d5ed44d985677646089040caaf005da2255c5d8e25ed08e495b1f2
7
- data.tar.gz: e645145aa8bd807a36abd341a6694720a915473ddc740d8b2627b64e6d7ea41c6aafe6be4d22c16cf1d541b09a0e46e1701c0d9e8762a82e4760b44ecf159b55
6
+ metadata.gz: 455a311dc6b2d66bee6ef2aa5b7c5ceddafaff94bae51bb1efd3fde115650555a6ea17853e1a7ecb12c743d241c24de1972dccacca05114f1a72a1a071c48cf0
7
+ data.tar.gz: 0e966eb06e019499e0a44394bc98c272be2d76b62372869367dea1b7bb079f40fdd2df80f99debec8814c5b8815bab3c308bb61de47243aa869fe8d2846d23d3
data/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # HomeAway API
2
2
 
3
+ [![Gem Version](https://badge.fury.io/rb/homeaway-api.svg)](https://badge.fury.io/rb/homeaway-api)
4
+
3
5
  A Ruby SDK to interact with the HomeAway API
4
6
 
5
7
  ## Installation
@@ -7,7 +9,7 @@ A Ruby SDK to interact with the HomeAway API
7
9
  Add this line to your application's Gemfile:
8
10
 
9
11
  ```ruby
10
- gem 'homeaway_api'
12
+ gem 'homeaway-api'
11
13
  ```
12
14
 
13
15
  And then execute in the checked out directory to install into your system gems:
@@ -28,7 +30,7 @@ Once you have these credentials, to use this gem:
28
30
 
29
31
  ```ruby
30
32
  require 'homeaway_api'
31
- client = HomeAway::API::Client.new(client_id: your_client_id, client_secret: your_client_secret)
33
+ client = HomeAway::API::Client.new(client_id: 'your_client_id', client_secret: 'your_client_secret')
32
34
  ```
33
35
 
34
36
  This will automatically have your client authenticate with HomeAway. If you wish to have your application be able to access the personal HomeAway data of the user of your application, you need to call:
@@ -51,8 +53,10 @@ If you have a token string saved from a previous use of the HomeAway API it can
51
53
 
52
54
  ```ruby
53
55
  client = HomeAway::API::Client.new(
54
- token: 'saved_token_value'
55
- )
56
+ client_id: 'your_client_id',
57
+ client_secret: 'your_client_secret',
58
+ token: 'saved_token_value'
59
+ )
56
60
  ```
57
61
 
58
62
  ### Custom configuring the client
@@ -116,7 +120,7 @@ $ hacurl -i <your_client_id> -s <your_client_secret> /public/listing?id=123456
116
120
 
117
121
  ## Other
118
122
 
119
- The full API documentation is located at: https://homeaway.com/platform/documentation
123
+ The full API documentation is located at: https://www.homeaway.com/platform/documentation
120
124
 
121
125
  ## Contributing
122
126
 
@@ -26,7 +26,7 @@ module HomeAway
26
26
  #
27
27
  #
28
28
  # @param listing_id [String] The listingId of the listing to get the reservations for.
29
- # @option opts [String] :degin_date Lower bound date of the reservations to find in the format yyyy-MM-dd
29
+ # @option opts [String] :begin_date Lower bound date of the reservations to find in the format yyyy-MM-dd
30
30
  # @option opts [String] :reference_number Reference number to filter on
31
31
  # @option opts [String] :end_date Upper bound date of the reservations to find in the format yyyy-MM-dd
32
32
  # @option opts [String] :last_name Last name of traveler to filter on
@@ -33,7 +33,7 @@ module HomeAway
33
33
  input = Chronic.parse(input, :ambiguous_time_range => :none)
34
34
  end
35
35
  raise ArgumentError.new('dates must be a parseable date string or a Ruby Time object') unless input.is_a? Time
36
- input.to_time.utc.iso8601
36
+ input.to_date.to_s
37
37
  end
38
38
 
39
39
  # @private
@@ -15,6 +15,6 @@
15
15
 
16
16
  module HomeAway
17
17
  module API
18
- VERSION = '1.0.0'
18
+ VERSION = '1.0.1'
19
19
  end
20
20
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: homeaway-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Charlie Meyer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-08 00:00:00.000000000 Z
11
+ date: 2016-03-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: hashie
@@ -360,8 +360,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
360
360
  version: '0'
361
361
  requirements: []
362
362
  rubyforge_project:
363
- rubygems_version: 2.4.5.1
363
+ rubygems_version: 2.5.1
364
364
  signing_key:
365
365
  specification_version: 4
366
366
  summary: Ruby SDK for interacting with the HomeAway API
367
367
  test_files: []
368
+ has_rdoc: