feedjira-podcast 0.9.12 → 0.9.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +2 -1
- data/lib/feedjira/podcast/channel/apple.rb +1 -1
- data/lib/feedjira/podcast/channel/cloud.rb +1 -1
- data/lib/feedjira/podcast/channel/optional.rb +16 -8
- data/lib/feedjira/podcast/item/optional.rb +1 -1
- 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: 32e4244cae0df127d6ece06578dd18da48ef0ac7
|
4
|
+
data.tar.gz: 00d5a28e2a5ee031f25a0f92e8bdf6fbadb9cf1d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 282515aee2ab9162f79e87f9ed25d43af89f5b5033ffa374f8956c07cd042e49e846137b6e2964504e848470600b0178c1b29c468fb8f3b8528a9acce6aa902e
|
7
|
+
data.tar.gz: 7ee5e0c7d546ac32ab318542d582f5d62e360ead921233603c58e6d519aa6628518aa1f96529634f2a3a8f8148620f701fa177fe1bb98b2d37c53174c384008f
|
data/.travis.yml
CHANGED
@@ -93,7 +93,7 @@ module Feedjira
|
|
93
93
|
|
94
94
|
# Legacy support
|
95
95
|
|
96
|
-
base.element :"itunes:keywords", as: :itunes_keywords do |keywords|
|
96
|
+
base.element :"itunes:keywords", as: :itunes_keywords, default: "" do |keywords|
|
97
97
|
keywords.split(",").map(&:strip).select { |k| !k.empty? }
|
98
98
|
end
|
99
99
|
end
|
@@ -16,16 +16,13 @@ module Feedjira
|
|
16
16
|
end
|
17
17
|
|
18
18
|
def skip
|
19
|
-
@skip ||=
|
20
|
-
skip_hours.hours,
|
21
|
-
skip_days.days
|
22
|
-
)
|
19
|
+
@skip ||= skip_struct.new(*skip_params)
|
23
20
|
end
|
24
21
|
|
25
22
|
private
|
26
23
|
|
27
24
|
def cloud_struct
|
28
|
-
Struct.new(:domain, :port, :path, :
|
25
|
+
Struct.new(:domain, :port, :path, :register_procedure, :protocol)
|
29
26
|
end
|
30
27
|
|
31
28
|
def cloud_params
|
@@ -35,7 +32,7 @@ module Feedjira
|
|
35
32
|
_cloud.domain,
|
36
33
|
_cloud.port,
|
37
34
|
_cloud.path,
|
38
|
-
_cloud.
|
35
|
+
_cloud.register_procedure,
|
39
36
|
_cloud.protocol
|
40
37
|
]
|
41
38
|
end
|
@@ -56,6 +53,17 @@ module Feedjira
|
|
56
53
|
_image.description
|
57
54
|
]
|
58
55
|
end
|
56
|
+
|
57
|
+
def skip_struct
|
58
|
+
Struct.new(:hours, :days)
|
59
|
+
end
|
60
|
+
|
61
|
+
def skip_params
|
62
|
+
[
|
63
|
+
skip_hours.hours,
|
64
|
+
skip_days.days
|
65
|
+
]
|
66
|
+
end
|
59
67
|
end
|
60
68
|
|
61
69
|
def self.included(base)
|
@@ -98,8 +106,8 @@ module Feedjira
|
|
98
106
|
|
99
107
|
base.element :rating
|
100
108
|
base.element :textInput, as: :text_input, class: TextInput, default: Struct.new(:title, :description, :name, :link).new
|
101
|
-
base.element :skipHours, as: :skip_hours, class: SkipHours
|
102
|
-
base.element :skipDays, as: :skip_days, class: SkipDays
|
109
|
+
base.element :skipHours, as: :skip_hours, class: SkipHours, default: Struct.new(:hours).new([])
|
110
|
+
base.element :skipDays, as: :skip_days, class: SkipDays, default: Struct.new(:days).new([])
|
103
111
|
end
|
104
112
|
end
|
105
113
|
end
|
@@ -39,7 +39,7 @@ module Feedjira
|
|
39
39
|
|
40
40
|
base.element :enclosure, as: :enclosure_type, value: :type
|
41
41
|
|
42
|
-
base.element :guid, as: :guid, class: GUID, default: Struct.new(:guid, :perma_link?).new
|
42
|
+
base.element :guid, as: :guid, class: GUID, default: Struct.new(:guid, :perma_link?).new(nil, false)
|
43
43
|
|
44
44
|
base.element :pubDate, as: :pub_date do |date|
|
45
45
|
begin
|
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.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Kalafarski
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-01-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|