chiketto 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/chiketto/attr_attribute.rb +1 -1
- data/lib/chiketto/event.rb +3 -3
- data/lib/chiketto/venue.rb +1 -1
- data/lib/chiketto/version.rb +1 -1
- data/test/event_test.rb +2 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7554e861dd753e4325c5a6cb45208aa3c6f1c1f3
|
4
|
+
data.tar.gz: 5ce6f339b5a569b3b57177d6804324e6f496e2b3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 20687f76997c4e69105bf2335325c25fce25b99429af697e2754eeecc16adc01371a1c3455b20c1f5b6d10195f23af9532c70af0fe7466dee51e54ef45b12ce4
|
7
|
+
data.tar.gz: ca94c2c6f3fdf88cce1b6638eeb9ede03889208bfb54326cadfd3006164d2f7c43f1d8c37013f4eec662b16aacb1b5f1f797c8a8ca77a401b043eb309a4f3c5a
|
data/lib/chiketto/event.rb
CHANGED
@@ -30,17 +30,17 @@ module Chiketto
|
|
30
30
|
end
|
31
31
|
|
32
32
|
def organizer
|
33
|
-
Chiketto::Organizer.new
|
33
|
+
Chiketto::Organizer.new @organizer.to_h
|
34
34
|
end
|
35
35
|
|
36
36
|
def ticket_classes
|
37
37
|
@ticket_classes.map do |t_class|
|
38
|
-
Chiketto::TicketClass.new
|
38
|
+
Chiketto::TicketClass.new t_class.to_h
|
39
39
|
end
|
40
40
|
end
|
41
41
|
|
42
42
|
def venue
|
43
|
-
Chiketto::Venue.new
|
43
|
+
Chiketto::Venue.new @venue.to_h
|
44
44
|
end
|
45
45
|
|
46
46
|
private
|
data/lib/chiketto/venue.rb
CHANGED
data/lib/chiketto/version.rb
CHANGED
data/test/event_test.rb
CHANGED
@@ -44,6 +44,8 @@ class EventTest < MiniTest::Test
|
|
44
44
|
find_event
|
45
45
|
assert_respond_to @event.name, :html
|
46
46
|
assert_respond_to @event.name, :text
|
47
|
+
refute @event.name.html.empty?, "Should not return an empty name"
|
48
|
+
refute @event.name.text.empty?, "Should not return an empty name"
|
47
49
|
end
|
48
50
|
|
49
51
|
def test_description_attribute_is_valid
|
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.0.
|
4
|
+
version: 0.0.8
|
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-
|
11
|
+
date: 2014-06-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|