boxxspring 2.1.4 → 2.1.5
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 +4 -4
- data/lib/boxxspring/parser.rb +1 -1
- data/lib/boxxspring/resources/{advertisingdoubleclickadvertisement.rb → advertising_doubleclick_advertisement.rb} +0 -2
- data/lib/boxxspring/resources/{advertisingliverailadvertisement.rb → advertising_liverail_advertisement.rb} +4 -2
- data/lib/boxxspring/resources/artifact.rb +4 -0
- data/lib/boxxspring/resources/feed.rb +18 -0
- data/lib/boxxspring/resources/feed_generation_task.rb +9 -0
- data/lib/boxxspring/resources/filter.rb +14 -0
- data/lib/boxxspring/resources/filter_criteria.rb +16 -0
- data/lib/boxxspring/resources/picture.rb +2 -0
- data/lib/boxxspring/resources/source.rb +23 -0
- data/lib/boxxspring/resources/subscription_ingestion_task.rb +9 -0
- data/lib/boxxspring/resources/task.rb +2 -0
- data/lib/boxxspring/resources/video.rb +2 -0
- data/lib/boxxspring/response.rb +2 -0
- data/lib/boxxspring/version.rb +1 -1
- data/lib/boxxspring.rb +8 -3
- metadata +11 -6
- data/lib/boxxspring/resources/univision_subscription_task.rb +0 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b4368f0a79cdbcb7648d10a17909211c9e170dfc
|
4
|
+
data.tar.gz: 78fd91ddcb721119c089251c8eab25b63b1c46b2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4451a7ab773744bbddf8127ea1d0a31775cd26c61d93a2c72170d02cff935ebdcbe4189561fe71b8f19db46a8ed07c4ee2de246de789411028fa8e8a38960ae2
|
7
|
+
data.tar.gz: 426eb1e150a2c5803fd01c8dd8f307607c475151fafa1a14ae57ee3e6df67d2f4bb69ff2fd2652be6043fe622da7ddcf2c5a15a83c22f5fd6ad972d2989bf200
|
data/lib/boxxspring/parser.rb
CHANGED
@@ -64,7 +64,7 @@ module Boxxspring
|
|
64
64
|
resource_attributes = resource_attribute_index[ name ][ key ]
|
65
65
|
if resource_attributes.present?
|
66
66
|
type_name = resource_attributes[ 'type_name' ] || self.type_name
|
67
|
-
klass = Boxxspring.const_get( type_name.
|
67
|
+
klass = Boxxspring.const_get( type_name.camelize ) rescue nil
|
68
68
|
if klass.present?
|
69
69
|
result = klass.new(
|
70
70
|
resource_attributes,
|
@@ -0,0 +1,23 @@
|
|
1
|
+
module Boxxspring
|
2
|
+
|
3
|
+
class Source < Base
|
4
|
+
|
5
|
+
field :created_at
|
6
|
+
field :updated_at
|
7
|
+
|
8
|
+
field :id
|
9
|
+
field :type_name
|
10
|
+
field :name
|
11
|
+
field :provider
|
12
|
+
field :last_polled_at
|
13
|
+
|
14
|
+
field :original
|
15
|
+
|
16
|
+
field :auto_publish
|
17
|
+
field :source_url
|
18
|
+
|
19
|
+
has_many :artifacts
|
20
|
+
|
21
|
+
end
|
22
|
+
|
23
|
+
end
|
data/lib/boxxspring/response.rb
CHANGED
@@ -3,6 +3,7 @@ module Boxxspring
|
|
3
3
|
class Response
|
4
4
|
|
5
5
|
attr_reader :code
|
6
|
+
attr_reader :body
|
6
7
|
attr_reader :resources
|
7
8
|
|
8
9
|
def initialize( http_response )
|
@@ -24,6 +25,7 @@ module Boxxspring
|
|
24
25
|
message: "An unknown error occured (#{@code})."
|
25
26
|
)
|
26
27
|
end
|
28
|
+
@body = content
|
27
29
|
|
28
30
|
end
|
29
31
|
|
data/lib/boxxspring/version.rb
CHANGED
data/lib/boxxspring.rb
CHANGED
@@ -24,13 +24,16 @@ require 'boxxspring/resources/user_agent'
|
|
24
24
|
require 'boxxspring/resources/theme_environment'
|
25
25
|
require 'boxxspring/resources/theme_template'
|
26
26
|
require 'boxxspring/resources/theme'
|
27
|
+
require 'boxxspring/resources/feed'
|
28
|
+
require 'boxxspring/resources/filter'
|
29
|
+
require 'boxxspring/resources/filter_criteria'
|
27
30
|
require 'boxxspring/resources/card'
|
28
31
|
require 'boxxspring/resources/video_card'
|
29
32
|
require 'boxxspring/resources/picture_card'
|
30
33
|
require 'boxxspring/resources/text_card'
|
31
34
|
require 'boxxspring/resources/atomic_video_card'
|
32
|
-
require 'boxxspring/resources/
|
33
|
-
require 'boxxspring/resources/
|
35
|
+
require 'boxxspring/resources/advertising_doubleclick_advertisement'
|
36
|
+
require 'boxxspring/resources/advertising_liverail_advertisement'
|
34
37
|
require 'boxxspring/resources/video'
|
35
38
|
require 'boxxspring/resources/video_source'
|
36
39
|
require 'boxxspring/resources/artifact'
|
@@ -48,7 +51,9 @@ require 'boxxspring/resources/playlist'
|
|
48
51
|
require 'boxxspring/resources/group'
|
49
52
|
require 'boxxspring/resources/property'
|
50
53
|
require 'boxxspring/resources/service'
|
54
|
+
require 'boxxspring/resources/source'
|
51
55
|
require 'boxxspring/resources/task'
|
52
|
-
require 'boxxspring/resources/univision_subscription_task'
|
53
56
|
require 'boxxspring/resources/videos_ingestion_task'
|
54
57
|
require 'boxxspring/resources/videos_picture_task'
|
58
|
+
require 'boxxspring/resources/feed_generation_task'
|
59
|
+
require 'boxxspring/resources/subscription_ingestion_task'
|
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.1.
|
4
|
+
version: 2.1.5
|
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: 2015-01-
|
11
|
+
date: 2015-01-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: multi_json
|
@@ -78,8 +78,8 @@ files:
|
|
78
78
|
- lib/boxxspring/operation.rb
|
79
79
|
- lib/boxxspring/parser.rb
|
80
80
|
- lib/boxxspring/request.rb
|
81
|
-
- lib/boxxspring/resources/
|
82
|
-
- lib/boxxspring/resources/
|
81
|
+
- lib/boxxspring/resources/advertising_doubleclick_advertisement.rb
|
82
|
+
- lib/boxxspring/resources/advertising_liverail_advertisement.rb
|
83
83
|
- lib/boxxspring/resources/artifact.rb
|
84
84
|
- lib/boxxspring/resources/atomic_video_card.rb
|
85
85
|
- lib/boxxspring/resources/attribute_error.rb
|
@@ -88,6 +88,10 @@ files:
|
|
88
88
|
- lib/boxxspring/resources/base.rb
|
89
89
|
- lib/boxxspring/resources/card.rb
|
90
90
|
- lib/boxxspring/resources/error.rb
|
91
|
+
- lib/boxxspring/resources/feed.rb
|
92
|
+
- lib/boxxspring/resources/feed_generation_task.rb
|
93
|
+
- lib/boxxspring/resources/filter.rb
|
94
|
+
- lib/boxxspring/resources/filter_criteria.rb
|
91
95
|
- lib/boxxspring/resources/forbidden_error.rb
|
92
96
|
- lib/boxxspring/resources/group.rb
|
93
97
|
- lib/boxxspring/resources/malformed_parameter_error.rb
|
@@ -103,8 +107,10 @@ files:
|
|
103
107
|
- lib/boxxspring/resources/reaction.rb
|
104
108
|
- lib/boxxspring/resources/school.rb
|
105
109
|
- lib/boxxspring/resources/service.rb
|
110
|
+
- lib/boxxspring/resources/source.rb
|
106
111
|
- lib/boxxspring/resources/sponsor.rb
|
107
112
|
- lib/boxxspring/resources/story.rb
|
113
|
+
- lib/boxxspring/resources/subscription_ingestion_task.rb
|
108
114
|
- lib/boxxspring/resources/tag.rb
|
109
115
|
- lib/boxxspring/resources/task.rb
|
110
116
|
- lib/boxxspring/resources/team.rb
|
@@ -112,7 +118,6 @@ files:
|
|
112
118
|
- lib/boxxspring/resources/theme.rb
|
113
119
|
- lib/boxxspring/resources/theme_environment.rb
|
114
120
|
- lib/boxxspring/resources/theme_template.rb
|
115
|
-
- lib/boxxspring/resources/univision_subscription_task.rb
|
116
121
|
- lib/boxxspring/resources/user_agent.rb
|
117
122
|
- lib/boxxspring/resources/video.rb
|
118
123
|
- lib/boxxspring/resources/video_card.rb
|
@@ -143,7 +148,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
143
148
|
version: '0'
|
144
149
|
requirements: []
|
145
150
|
rubyforge_project:
|
146
|
-
rubygems_version: 2.
|
151
|
+
rubygems_version: 2.4.5
|
147
152
|
signing_key:
|
148
153
|
specification_version: 4
|
149
154
|
summary: Bedrocket Media Ventrures Boxxspring property API.
|