chiketto 0.3.1 → 0.4.0

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: 1b70dd062de74bb8aeaaa5e3eeb047e900ae138d
4
- data.tar.gz: 7d06835feb2cb0869f896cc4a14e3f51a766aaa4
3
+ metadata.gz: e70d8732151cbfb708473112b45278193b18d7d2
4
+ data.tar.gz: 25910f52cea0de3bfac5064818cafd218abac5a4
5
5
  SHA512:
6
- metadata.gz: 5389b9e437c0c44ccf7f2643dd01e90919c0408c16eaceef33ce9736f9bd9fa8b1fd57a9342a255b51c0f2731943dd70f40049e9a1f2f662e62ebdb66a158077
7
- data.tar.gz: 6019d8aa094986af4ee88f571352e348ae957ed9bacb4d01a764582bde50ea2b0f60f1b4049d8578d5cbe962b4abfcd8ec32305a8adac1b3f019e45b8d9e30cc
6
+ metadata.gz: e767413f7af517e32d5c905f8a3f4cf09c81e660d2456bf0b81eb30e9f91fc03b85a7dfbaa9061815c4ea2b7923fb6930914a2df088832b1c04fc99e01b7d25f
7
+ data.tar.gz: ec32f0b940ae5a99592ee8531a3d0f6b8aef30bf2999d8c4807c3094bb08175253a13028929309176852df9a3183364467a0119d3cf4426009cba8c155e47e6f
@@ -2,8 +2,8 @@ module Chiketto
2
2
  class Venue < Resource
3
3
  attr_accessor :name
4
4
 
5
- def location
6
- Chiketto::Address.new @location.to_h
5
+ def address
6
+ Chiketto::Address.new @address.to_h
7
7
  end
8
8
 
9
9
  def to_s
@@ -1,3 +1,3 @@
1
1
  module Chiketto
2
- VERSION = "0.3.1"
2
+ VERSION = "0.4.0"
3
3
  end
@@ -8,7 +8,7 @@ class VenueTest < MiniTest::Test
8
8
 
9
9
  def test_venue_methods_exist
10
10
  @venue = Chiketto::Venue.new 'id' => '545454',
11
- 'location' => {
11
+ 'address' => {
12
12
  'city' => 'San Francisco',
13
13
  'country' => 'US',
14
14
  'region' => 'CA',
@@ -21,15 +21,15 @@ class VenueTest < MiniTest::Test
21
21
  'name' => 'Eventbrite HQ'
22
22
 
23
23
  assert_respond_to @venue, :id
24
- assert_respond_to @venue, :location
24
+ assert_respond_to @venue, :address
25
25
  assert_respond_to @venue, :name
26
26
  end
27
27
 
28
28
  def test_venue_with_no_address
29
29
  basic_venue
30
- assert_respond_to @venue.location, :to_s
31
- assert_respond_to @venue.location, :latitude
32
- assert_respond_to @venue.location, :longitude
30
+ assert_respond_to @venue.address, :to_s
31
+ assert_respond_to @venue.address, :latitude
32
+ assert_respond_to @venue.address, :longitude
33
33
  end
34
34
 
35
35
  def test_venue_returns_name_for_to_s
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chiketto
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Radford
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-21 00:00:00.000000000 Z
11
+ date: 2014-10-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler