feedjira-podcast 0.9.6 → 0.9.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/feedjira/podcast/channel/apple.rb +10 -7
- data/lib/feedjira/podcast/item/apple.rb +8 -10
- data/lib/feedjira/podcast/version.rb +1 -1
- 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: 7ea8f7f0c71a8cec66e91f30f3f3188610ed9f7d
|
4
|
+
data.tar.gz: 5033aad7af72556d910bc449c4067fd3904c0dbe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9f9fa4c8ca67b248302123c35e49cb4553e7cb5be9bd640c28e2b252b4a1e3539b04668258bb7c9d19c298ed1bcf36e7311962444c38dcecd18a36bed87a1d9d
|
7
|
+
data.tar.gz: d3ca8ba885a3384b24121e9e8baf0dfe78c034c2c5e84118eaa0d493c6e4d398f26b16f2eae7c948ca8f5c074d17452ff08c0465e462bad2ced1ed85c0a8b1bd
|
@@ -6,9 +6,7 @@ module Feedjira
|
|
6
6
|
|
7
7
|
base.element :"itunes:author", as: :itunes_author
|
8
8
|
|
9
|
-
base.element :"itunes:block", as: :
|
10
|
-
block == 'yes'
|
11
|
-
end
|
9
|
+
base.element :"itunes:block", as: :_itunes_block
|
12
10
|
|
13
11
|
base.elements :"itunes:category", as: :itunes_categories, class: AppleCategory
|
14
12
|
|
@@ -17,10 +15,7 @@ module Feedjira
|
|
17
15
|
end
|
18
16
|
|
19
17
|
base.element :"itunes:explicit", as: :_itunes_explicit
|
20
|
-
|
21
|
-
base.element :"itunes:complete", as: :itunes_complete do |complete|
|
22
|
-
complete == 'yes'
|
23
|
-
end
|
18
|
+
base.element :"itunes:complete", as: :_itunes_complete
|
24
19
|
|
25
20
|
base.element :"itunes:new_feed_url", as: :itunes_new_feed_url do |url|
|
26
21
|
Addressable::URI.parse(url)
|
@@ -72,6 +67,14 @@ module Feedjira
|
|
72
67
|
@itunes_image ||= Struct.new(:href).new(itunes_image_href)
|
73
68
|
end
|
74
69
|
|
70
|
+
def itunes_block
|
71
|
+
@itunes_block ||= (_itunes_block == 'yes')
|
72
|
+
end
|
73
|
+
|
74
|
+
def itunes_complete
|
75
|
+
@itunes_complete ||= (_itunes_complete == 'yes')
|
76
|
+
end
|
77
|
+
|
75
78
|
def itunes_explicit
|
76
79
|
@itunes_explicit ||= (_itunes_explicit == 'yes')
|
77
80
|
end
|
@@ -5,10 +5,7 @@ module Feedjira
|
|
5
5
|
def self.included(base)
|
6
6
|
|
7
7
|
base.element :"itunes:author", as: :itunes_author
|
8
|
-
|
9
|
-
base.element :"itunes:block", as: :itunes_block do |block|
|
10
|
-
block == 'yes'
|
11
|
-
end
|
8
|
+
base.element :"itunes:block", as: :_itunes_block
|
12
9
|
|
13
10
|
base.element :"itunes:image", as: :itunes_image_href, value: :href do |href|
|
14
11
|
Addressable::URI.parse(href)
|
@@ -22,15 +19,12 @@ module Feedjira
|
|
22
19
|
|
23
20
|
base.element :"itunes:explicit", as: :_itunes_explicit
|
24
21
|
|
25
|
-
base.element :"itunes:isClosedCaptioned", as: :
|
26
|
-
|
27
|
-
end
|
28
|
-
|
22
|
+
base.element :"itunes:isClosedCaptioned", as: :_itunes_is_closed_captioned
|
23
|
+
|
29
24
|
base.element :"itunes:order", as: :itunes_order do |order|
|
30
25
|
order.to_f
|
31
26
|
end
|
32
27
|
|
33
|
-
|
34
28
|
base.element :"itunes:subtitle", as: :itunes_subtitle
|
35
29
|
base.element :"itunes:summary", as: :itunes_summary
|
36
30
|
|
@@ -74,8 +68,12 @@ module Feedjira
|
|
74
68
|
@itunes_image ||= Struct.new(:href).new(itunes_image_href)
|
75
69
|
end
|
76
70
|
|
77
|
-
def
|
71
|
+
def itunes_block
|
72
|
+
@itunes_block ||= (_itunes_block == 'yes')
|
73
|
+
end
|
78
74
|
|
75
|
+
def itunes_is_closed_captioned
|
76
|
+
@itunes_is_closed_captioned ||= (_itunes_is_closed_captioned == 'yes')
|
79
77
|
end
|
80
78
|
|
81
79
|
def itunes_explicit
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: feedjira-podcast
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Kalafarski
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-04-
|
11
|
+
date: 2015-04-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|