foxynews 1.0.0 → 1.0.1

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: 425da1ca87e5b176be475c38e7e7c5ffe535c4e2
4
- data.tar.gz: ca53031bc9e497ace3ca12f71daa4b6e4751287a
3
+ metadata.gz: e52264fbc656b8cda45e6ecd6e5d002613932b4b
4
+ data.tar.gz: 4a4d4b0ba1288a6df4ff741193e69a7833993d42
5
5
  SHA512:
6
- metadata.gz: 02672d407354009eabbcdcf379824e1014002c7b9872dea61352e2f83815eb10a7baf08fbe6dce0a75938ee1bacc2f87898ab406c71ce80c2d30af402a7b0ebf
7
- data.tar.gz: 3a6d7b6c70e0f9124209fc0621c1777bd88227883db368c82b7db92e84114c9b4014cc938e4a340802050084c4e6d481c4312047c08fc2210b0dfc51ce1d3296
6
+ metadata.gz: eb0fedc8f5082eb345a2752390b3db8200da8b2c1bac1788f75d5555b33b3166d79b12afb4de7f401602059e426dc416dc2d624c5af1c890fd55c4aa11bd7ce8
7
+ data.tar.gz: 2b638e393e474d988dda6a7b9cc03022961ef796f57622eaaa53e68d1d75567f93cfd945fe5912df0daef5ac75c88b021fb03f8c47c5c33717cd824683ec4877
@@ -3,7 +3,18 @@
3
3
 
4
4
  <div class='press-release'>
5
5
  <% @press_release.parsed_content.each do |content_block| %>
6
- <% if content_block['type'] == 'text' %>
6
+ <% if content_block['type'] == 'textarea' %>
7
+ <%= content_block['data']['body'].html_safe %>
8
+ <% elsif content_block['type'] == 'quote' %>
9
+ <div class='block-quote'>
10
+ <%= content_block['data']['quote'].html_safe %>
11
+ <span class='cite'><%= (content_block['data'].has_key? 'cite') ? content_block['data']['cite'].html_safe : '' %></span>
12
+ </div>
13
+ <% elsif content_block['type'] == 'media' %>
14
+ <% content_block['data']['json'].each do |media| %>
15
+ <img src=<%= media['sizes']['medium']['url'] %> width=<%= media['sizes']['medium']['width'] %> height=<%= media['sizes']['medium']['height'] %> alt=<%= media['sizes']['title'] %>/>
16
+ <% end %>
17
+ <% elsif content_block['type'] == 'text' %>
7
18
  <p><%= content_block['data']['text'].html_safe %></p>
8
19
  <% elsif content_block['type'] == 'quote' %>
9
20
  <div class='block-quote'>
@@ -1,3 +1,3 @@
1
1
  module Foxynews
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foxynews
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Bahlke