spektrix 0.0.2.1 → 0.0.2.3

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: c78a69fb34e85fa562d264623827505560763571
4
- data.tar.gz: c0c4fc02d52d08017a45281466e65b003b219657
3
+ metadata.gz: bb3dcfd7c10200a66658eadbbc930811d250803f
4
+ data.tar.gz: fd6243f72c38d749f66e82469715bdc287f105d9
5
5
  SHA512:
6
- metadata.gz: ed31c5c8d6e1f0adad487a29405384b8d5025fb9cb113c4ba9dcbad35b6bb26b029a37d4651577f6049a81e218a5389a8d8a1a63b605da379e371e62be92a0f9
7
- data.tar.gz: f9f2fade733a6c67306b706d427673c0dc4246f2ba7aa59a5a816786ee125851773949dca5c5c90c56c86ae2e835a50f7c4a6c23459659c78d302c1a9fb11389
6
+ metadata.gz: 3b0dcff7e02794cbbee2c3ab7a96e0b52685c7d70b9a099af321704ae65da9bd5b093f536766c5a635e3b206c2ddaed3e7a690de86f7663e7acf2fc1eb130523
7
+ data.tar.gz: 796752a78e0bdd2818d95d565aa53eaf6633444d0d2df3b8a30feee65356c27db9f2a3815b66542e46bd0e2f1bb34f1a1604618963484733fd117bf86cd35a0a
data/.ruby-gemset ADDED
@@ -0,0 +1 @@
1
+ spektrix
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ 2.2.3
@@ -8,7 +8,7 @@ module Spektrix
8
8
  after_find -> (r) { r.duration = r.duration.to_i.minutes }
9
9
 
10
10
  def instances
11
- Instance.where(event_id: self.id).to_a
11
+ Instance.where(event_id: self.id, all: true).to_a
12
12
  end
13
13
 
14
14
  def title
@@ -35,7 +35,7 @@ module Spektrix
35
35
  InstanceStatus.where(instance_id: self.id).first
36
36
  end
37
37
 
38
- def price_list
38
+ def price_list_object
39
39
  Tickets::PriceList.where(instance_id: self.id).first
40
40
  end
41
41
 
data/lib/spektrix.rb CHANGED
@@ -1,5 +1,7 @@
1
1
  require 'her'
2
2
  require 'nokogiri'
3
+ require 'ostruct'
4
+
3
5
  require 'require_all'
4
6
  require_rel "spektrix/deep_symbolize"
5
7
  require_rel '.'
@@ -21,8 +21,8 @@ module Spektrix
21
21
 
22
22
  # Traverse the array, fixing up any attributes called 'attribute'
23
23
  data.each do |item|
24
+ item[:custom_attributes] = {}
24
25
  if item.has_key?(:attribute)
25
- item[:custom_attributes] = {}
26
26
  item[:attribute].each do |attribute_pair|
27
27
  next unless attribute_pair.is_a?(Hash)
28
28
  key = attribute_pair.values.first.underscore.downcase.parameterize("_").to_sym
@@ -1,3 +1,3 @@
1
1
  module Spektrix
2
- VERSION = "0.0.2.1"
2
+ VERSION = "0.0.2.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spektrix
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2.1
4
+ version: 0.0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ed Jones
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-01-17 00:00:00.000000000 Z
12
+ date: 2016-02-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -90,6 +90,8 @@ extensions: []
90
90
  extra_rdoc_files: []
91
91
  files:
92
92
  - ".gitignore"
93
+ - ".ruby-gemset"
94
+ - ".ruby-version"
93
95
  - CONDUCT.md
94
96
  - Gemfile
95
97
  - LICENSE.txt