chiketto 0.4.4 → 0.4.5

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: d23593990a24a172ea34bac159a227002c896396
4
- data.tar.gz: 4867c5aaad91c175355e671906ac8dae68c0aefd
3
+ metadata.gz: c1333dcfb76dd5b29b16b7057acbb2e979eb64fb
4
+ data.tar.gz: 85e9dbe1c981a0ce3687fe748adf9604e2c5afb8
5
5
  SHA512:
6
- metadata.gz: 85b4105891effca2662857e1c9635268075f1ff81e27837765fd5d993ccc133e4809d1028bc168f921c430cded253768382fa73c64d24e3d39c46aac47179a17
7
- data.tar.gz: a49e03127c0b8c4332bf2e6d52bea5724e419bd46506c61a81ff5b96aac5506c2785e1592800a18d3e1e73613ec9aa4cb697b3e7e9a6e6429f3a6766c07b2e8e
6
+ metadata.gz: dad65e715230460a06d521823c55903254c1cf13fa5339ac1aa18f39aad8102dcc3a3b41a66bdba8028639809fd6c6765ce052769fd223023cd329a6baae6166
7
+ data.tar.gz: c22c2482e592dbeda74df0871554455157845d9510eda875bc7bd218d7506220f85cf43ff93d443bf7dee846bc97928e4333082fcf27866498649094d9f1165a
@@ -39,6 +39,10 @@ module Chiketto
39
39
  attendees.map { |att| Attendee.new att }
40
40
  end
41
41
 
42
+ def listed?
43
+ !!@listed
44
+ end
45
+
42
46
  def organizer
43
47
  Organizer.new @organizer.to_h
44
48
  end
@@ -1,3 +1,3 @@
1
1
  module Chiketto
2
- VERSION = "0.4.4"
2
+ VERSION = "0.4.5"
3
3
  end
data/test/event_test.rb CHANGED
@@ -38,6 +38,7 @@ class EventTest < MiniTest::Test
38
38
  assert_respond_to @event, :capacity
39
39
  assert_respond_to @event, :categories
40
40
  assert_respond_to @event, :status
41
+ assert_respond_to @event, :listed?
41
42
  assert_respond_to @event, :logo
42
43
  assert_respond_to @event, :logo_url
43
44
  end
@@ -79,6 +80,11 @@ class EventTest < MiniTest::Test
79
80
  assert_kind_of DateTime, @event.changed
80
81
  end
81
82
 
83
+ def test_listed_is_always_set
84
+ find_event
85
+ assert_kind_of FalseClass, @event.listed?
86
+ end
87
+
82
88
  def test_search_returns_array_of_events
83
89
  search_events
84
90
  assert_kind_of Array, @events
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.4.4
4
+ version: 0.4.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Radford
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-19 00:00:00.000000000 Z
11
+ date: 2015-02-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -157,7 +157,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
157
157
  version: '0'
158
158
  requirements: []
159
159
  rubyforge_project:
160
- rubygems_version: 2.3.0
160
+ rubygems_version: 2.4.5
161
161
  signing_key:
162
162
  specification_version: 4
163
163
  summary: Chiketto is a ruby gem for interacting with the Eventbrite V3 API