boxxspring 2.0.14 → 2.0.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1a64b1617e6df076786dd0ad2bed229381d385f0
4
- data.tar.gz: fa3954fbfbdfd94a5ae719b7f5ff54d9e5342f09
3
+ metadata.gz: 06f1835514f2dcdb53c5d7cccb7065bd7fa1ce8a
4
+ data.tar.gz: 840c8fc271809becc832531512ea7a9c3b1dad9a
5
5
  SHA512:
6
- metadata.gz: b8b1e157b8d11a0efc6db4e24818b5acd67fbc6c3aa33422c32eecc8eab07e65fea99801efa50bad0fc9e56925544f0b1e8119d7505103d32c9138fda0f4a131
7
- data.tar.gz: 8ddcbfaf49c43c33c5d36034743c824385b6bbd8dc4c8dd803ec8186b86eb311a85abb88fa224a818d725d8b46966ee9854f52037858f0f33d58687d4a116072
6
+ metadata.gz: 76098e19092e9415e609b9bbcf505fd947936466e91fcddf9305dbd0a436359db604692749a9344f85eb92c1938a1c2879e5c288aa43b1e832bed56f82b86911
7
+ data.tar.gz: 9b9813b2b1e5f1f4c837ce666f64b58ff36184cdc881b4069361eb0c8e1868f0bbe0922f39e9bb61808aa5b13bd0ca6557ae59674b02b375d41130c4ebfa3138
@@ -25,12 +25,14 @@ module Boxxspring
25
25
  field :slug
26
26
 
27
27
  field :sponsor_id
28
+ field :template_id
28
29
 
29
30
  has_one :attribution
30
31
 
31
32
  has_many :artifacts
32
33
  has_many :pictures
33
- has_many :cards
34
+ has_many :cards
35
+ has_many :sponsors
34
36
 
35
37
  end
36
38
 
@@ -0,0 +1,5 @@
1
+ module Boxxspring
2
+
3
+ class Author < Artifact; end
4
+
5
+ end
@@ -10,6 +10,8 @@ module Boxxspring
10
10
  field :name
11
11
  field :picture_id
12
12
 
13
+ has_many :artifacts
14
+
13
15
  end
14
16
 
15
17
  end
@@ -1,3 +1,9 @@
1
1
  module Boxxspring
2
- class Story < Artifact; end
2
+ class Story < Artifact
3
+
4
+ has_many :attributions
5
+ has_one :authors
6
+ has_one :theme_template
7
+
8
+ end
3
9
  end
@@ -0,0 +1,10 @@
1
+ module Boxxspring
2
+
3
+ class ThemeTemplate < Base
4
+
5
+ field :type_name
6
+ field :code_name
7
+
8
+ end
9
+
10
+ end
@@ -1,3 +1,3 @@
1
1
  module Boxxspring
2
- VERSION = '2.0.14'
2
+ VERSION = '2.0.15'
3
3
  end
data/lib/boxxspring.rb CHANGED
@@ -13,6 +13,7 @@ require 'boxxspring/resources/base'
13
13
  require 'boxxspring/resources/picture'
14
14
  require 'boxxspring/resources/user_agent'
15
15
  require 'boxxspring/resources/theme_environment'
16
+ require 'boxxspring/resources/theme_template'
16
17
  require 'boxxspring/resources/theme'
17
18
  require 'boxxspring/resources/card'
18
19
  require 'boxxspring/resources/video_card'
@@ -24,6 +25,7 @@ require 'boxxspring/resources/video_source'
24
25
  require 'boxxspring/resources/artifact'
25
26
  require 'boxxspring/resources/story'
26
27
  require 'boxxspring/resources/page'
28
+ require 'boxxspring/resources/author'
27
29
  require 'boxxspring/resources/reaction'
28
30
  require 'boxxspring/resources/attribution'
29
31
  require 'boxxspring/resources/tag'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: boxxspring
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.14
4
+ version: 2.0.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kristoph Cichocki-Romanov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-24 00:00:00.000000000 Z
11
+ date: 2014-11-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: multi_json
@@ -82,6 +82,7 @@ files:
82
82
  - lib/boxxspring/resources/artifact.rb
83
83
  - lib/boxxspring/resources/atomic_video_card.rb
84
84
  - lib/boxxspring/resources/attribution.rb
85
+ - lib/boxxspring/resources/author.rb
85
86
  - lib/boxxspring/resources/base.rb
86
87
  - lib/boxxspring/resources/card.rb
87
88
  - lib/boxxspring/resources/error.rb
@@ -99,6 +100,7 @@ files:
99
100
  - lib/boxxspring/resources/text_card.rb
100
101
  - lib/boxxspring/resources/theme.rb
101
102
  - lib/boxxspring/resources/theme_environment.rb
103
+ - lib/boxxspring/resources/theme_template.rb
102
104
  - lib/boxxspring/resources/user_agent.rb
103
105
  - lib/boxxspring/resources/video.rb
104
106
  - lib/boxxspring/resources/video_card.rb