readypulse 0.0.2 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/readypulse/image.rb +5 -2
- data/lib/readypulse/version.rb +1 -1
- data/spec/lib/readypulse/image_spec.rb +3 -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: eb619061c6077c81358068bebdbe9c805e064ff1
|
4
|
+
data.tar.gz: e6557e3df3a2a6bd25ba84122e166d57aaca068d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d78867632538928ca4161be03bcc2dffecb0188e328646d5721fa7524db645e50848559a737450d8bfcb12168eadaacb0f84ec221e8a1c6eb4bf76cc81a60319
|
7
|
+
data.tar.gz: 3cf8355d8305d3d786ca5e8b08a0bd5f7e14de388b490aa3d73d6873cca34b6c32c03cdf3e25c817d2eb0eb936c2a4ba17959977647add15cbdf9276d8fca82b
|
data/lib/readypulse/image.rb
CHANGED
@@ -54,10 +54,13 @@ module Readypulse
|
|
54
54
|
#
|
55
55
|
# returns an Image object with ImageType objects at the root too
|
56
56
|
|
57
|
-
attr_accessor :readypulse_content_score
|
58
|
-
|
57
|
+
attr_accessor :products, :actor, :readypulse_content_score, :external_conversation_link
|
58
|
+
|
59
59
|
def initialize(raw_image:)
|
60
60
|
@readypulse_content_score = raw_image[:readypulse_content_score]
|
61
|
+
@external_conversation_link = raw_image[:external_conversation_link]
|
62
|
+
@products = raw_image.fetch(:products, [])
|
63
|
+
@actor = raw_image[:actor]
|
61
64
|
|
62
65
|
|
63
66
|
raw_image.fetch(:media, {}).fetch(:images, []).each do |raw_type|
|
data/lib/readypulse/version.rb
CHANGED
@@ -4,6 +4,9 @@ module Readypulse
|
|
4
4
|
|
5
5
|
its(:types) {is_expected.to eq(["email", "tile", "square-tile", "mobile-tile", "large", "original"])}
|
6
6
|
its(:readypulse_content_score) {is_expected.to eq(from_client[:readypulse_content_score])}
|
7
|
+
its(:external_conversation_link) {is_expected.to eq(from_client[:external_conversation_link])}
|
8
|
+
its(:products) {is_expected.to eq(from_client[:products])}
|
9
|
+
its(:actor) {is_expected.to eq(from_client[:actor])}
|
7
10
|
|
8
11
|
it 'has image_type objects' do
|
9
12
|
expect(image["email"]).to be_an(ImageType)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: readypulse
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chad Metcalf
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-06-
|
11
|
+
date: 2015-06-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|