refinerycms-podcast 1.0.0 → 1.0.1

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: 4774257307552821fe14e0c6e1932c4ec1cdedd4
4
- data.tar.gz: 15ea1c7a5502498c0139b6af0546d052a5e87696
3
+ metadata.gz: 7d3014166c93675b45ce0a3ee56afff18209a83b
4
+ data.tar.gz: baf2443b12e898af5bdeb5b0ab0f0ce9be6fb06a
5
5
  SHA512:
6
- metadata.gz: 14f58bcf61a371122544f1d9430aef8666feed39a6dc71cb2cb70ff07a36d57f66cf5f32b7369658fab226d90a09432026cba764cf1a614f22581ca61193301a
7
- data.tar.gz: 5c81491cbbc2db8a672ed4cc72d3ff1ae3bb2c1203a0c202ae0cf87e41232e40671fef0803d5946bf02f6e205af1062253babdb44b31a659b496dd2c224d4f71
6
+ metadata.gz: 796cfb8d14e390663613b4e8506b001d278862acc0330b74484dbeb64f76df237292826cb86ee916cc69370eb439ee60c715149f153666ddd5a139e5871bb137
7
+ data.tar.gz: 3a00a2b1116eacbaa70442fe73201d6d9ec29ca9648668a59b3950a61ea6351e28f87cd814a590071f551ae589202b1b31b17da17a20eb2d2b6067a596836cbb
@@ -13,6 +13,8 @@ module Refinery
13
13
  belongs_to :file, :class_name => '::Refinery::Resource'
14
14
  belongs_to :image, :class_name => '::Refinery::Image'
15
15
 
16
+ validates :file, presence: true
17
+
16
18
  extend FriendlyId
17
19
 
18
20
  friendly_id :title, :use => :slugged
@@ -65,6 +65,9 @@ xml.rss 'xmlns:itunes' => 'http://www.itunes.com/dtds/podcast-1.0.dtd', :version
65
65
  xml.tag!('itunes:duration', item.duration)
66
66
  xml.tag!('itunes:keywords', item.keywords)
67
67
  xml.tag!('itunes:explicit', Refinery::Podcasts.explicit_content)
68
+ if item.image.present?
69
+ xml.tag('itunes:image', request.protocol + request.host_with_port + item.image.url)
70
+ end
68
71
  end
69
72
  end
70
73
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: refinerycms-podcast
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
  - David Jones