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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a300145cea3d4a4396d8da27396de737e0413f5b
4
- data.tar.gz: 6d1372fd7685c0c39c9a42f6da0b4bfab2111082
3
+ metadata.gz: 7554e861dd753e4325c5a6cb45208aa3c6f1c1f3
4
+ data.tar.gz: 5ce6f339b5a569b3b57177d6804324e6f496e2b3
5
5
  SHA512:
6
- metadata.gz: d1255d170d16d0237764ddd9738e164c23f91ee66d1c48777f33c7c8e8f6244bf24abd3b04ca3e4c10dab043ded2a0ab776d2ae712e91c05d1bba4dd9b2e23bc
7
- data.tar.gz: 1a5346d6df9722af008ad132b429fcb16b7a333b0dbf93542ff3fb0f545e7944799fb63d5ae6ad0f23a2202231877b48e3874a203455ed0e2dc89ac97198ba5d
6
+ metadata.gz: 20687f76997c4e69105bf2335325c25fce25b99429af697e2754eeecc16adc01371a1c3455b20c1f5b6d10195f23af9532c70af0fe7466dee51e54ef45b12ce4
7
+ data.tar.gz: ca94c2c6f3fdf88cce1b6638eeb9ede03889208bfb54326cadfd3006164d2f7c43f1d8c37013f4eec662b16aacb1b5f1f797c8a8ca77a401b043eb309a4f3c5a
@@ -8,7 +8,7 @@ module Chiketto
8
8
  def attr_attrib(*args)
9
9
  args.map do |value|
10
10
  define_method value.to_s do
11
- Chiketto::Attribute.new Hash.new(instance_variable_get("@#{value}"))
11
+ Chiketto::Attribute.new instance_variable_get("@#{value}")
12
12
  end
13
13
  end
14
14
  end
@@ -30,17 +30,17 @@ module Chiketto
30
30
  end
31
31
 
32
32
  def organizer
33
- Chiketto::Organizer.new Hash.new(@organizer)
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 Hash.new(t_class)
38
+ Chiketto::TicketClass.new t_class.to_h
39
39
  end
40
40
  end
41
41
 
42
42
  def venue
43
- Chiketto::Venue.new Hash.new(@venue)
43
+ Chiketto::Venue.new @venue.to_h
44
44
  end
45
45
 
46
46
  private
@@ -5,7 +5,7 @@ module Chiketto
5
5
  :name
6
6
 
7
7
  def address
8
- Chiketto::Address.new Hash.new(@address)
8
+ Chiketto::Address.new @address.to_h
9
9
  end
10
10
  end
11
11
  end
@@ -1,3 +1,3 @@
1
1
  module Chiketto
2
- VERSION = "0.0.7"
2
+ VERSION = "0.0.8"
3
3
  end
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.7
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-05-30 00:00:00.000000000 Z
11
+ date: 2014-06-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler