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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e727dbf5120083f7e2e71d72e66c5ada92d91e06
4
- data.tar.gz: 0dc30bb855a6c080b0db66c4756360151954c13e
3
+ metadata.gz: 32e4244cae0df127d6ece06578dd18da48ef0ac7
4
+ data.tar.gz: 00d5a28e2a5ee031f25a0f92e8bdf6fbadb9cf1d
5
5
  SHA512:
6
- metadata.gz: c5dcdaf2fc7e6b3184a2fdfa3075adcffd116b920b2143a07c3bf5834e5a08ce157662a2386f583402d09e9e0235491023bbb882fff0abf1938ddb9cd3dec372
7
- data.tar.gz: 9174dedf20e290eb715a138117099b25cb88989542d9de74d441920da17d3a9b91db7d4f92670c79082a9cb25add1b915dea8633b360ebf59ed4a032cab44304
6
+ metadata.gz: 282515aee2ab9162f79e87f9ed25d43af89f5b5033ffa374f8956c07cd042e49e846137b6e2964504e848470600b0178c1b29c468fb8f3b8528a9acce6aa902e
7
+ data.tar.gz: 7ee5e0c7d546ac32ab318542d582f5d62e360ead921233603c58e6d519aa6628518aa1f96529634f2a3a8f8148620f701fa177fe1bb98b2d37c53174c384008f
data/.travis.yml CHANGED
@@ -2,6 +2,7 @@ sudo: false
2
2
  language: ruby
3
3
  rvm:
4
4
  - 2.2.1
5
- - 2.2.3
5
+ - 2.2.4
6
+ - 2.3.0
6
7
  cache: bundler
7
8
  script: "bundle exec rake test"
@@ -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
@@ -8,7 +8,7 @@ module Feedjira
8
8
  attribute :domain
9
9
  attribute :port
10
10
  attribute :path
11
- attribute :registerProcedure
11
+ attribute :registerProcedure, as: :register_procedure
12
12
  attribute :protocol
13
13
  end
14
14
  end
@@ -16,16 +16,13 @@ module Feedjira
16
16
  end
17
17
 
18
18
  def skip
19
- @skip ||= Struct.new(:hours, :days).new(
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, :registerProcedure, :protocol)
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.registerProcedure,
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
@@ -1,5 +1,5 @@
1
1
  module Feedjira
2
2
  module Podcast
3
- VERSION = "0.9.12"
3
+ VERSION = "0.9.13"
4
4
  end
5
5
  end
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.12
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: 2015-12-12 00:00:00.000000000 Z
11
+ date: 2016-01-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler