feedjira 2.1.0 → 2.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/.rubocop.yml +9 -2
- data/CHANGELOG.md +4 -0
- data/LICENSE +1 -1
- data/README.md +210 -7
- data/Rakefile +5 -0
- data/feedjira.gemspec +2 -1
- data/lib/feedjira.rb +7 -1
- data/lib/feedjira/configuration.rb +76 -0
- data/lib/feedjira/core_ext/date.rb +1 -0
- data/lib/feedjira/core_ext/string.rb +1 -0
- data/lib/feedjira/core_ext/time.rb +5 -1
- data/lib/feedjira/date_time_utilities.rb +11 -3
- data/lib/feedjira/date_time_utilities/date_time_epoch_parser.rb +13 -0
- data/lib/feedjira/date_time_utilities/date_time_language_parser.rb +2 -0
- data/lib/feedjira/date_time_utilities/date_time_pattern_parser.rb +6 -1
- data/lib/feedjira/feed.rb +87 -69
- data/lib/feedjira/feed_entry_utilities.rb +5 -2
- data/lib/feedjira/feed_utilities.rb +11 -1
- data/lib/feedjira/parser.rb +1 -1
- data/lib/feedjira/parser/atom.rb +1 -0
- data/lib/feedjira/parser/atom_entry.rb +1 -0
- data/lib/feedjira/parser/atom_feed_burner.rb +19 -2
- data/lib/feedjira/parser/atom_feed_burner_entry.rb +1 -0
- data/lib/feedjira/parser/atom_youtube.rb +1 -0
- data/lib/feedjira/parser/atom_youtube_entry.rb +1 -0
- data/lib/feedjira/parser/google_docs_atom.rb +2 -1
- data/lib/feedjira/parser/google_docs_atom_entry.rb +2 -0
- data/lib/feedjira/parser/itunes_rss.rb +1 -0
- data/lib/feedjira/parser/itunes_rss_category.rb +1 -0
- data/lib/feedjira/parser/itunes_rss_owner.rb +1 -0
- data/lib/feedjira/parser/podlove_chapter.rb +2 -0
- data/lib/feedjira/parser/rss.rb +1 -0
- data/lib/feedjira/parser/rss_feed_burner.rb +1 -0
- data/lib/feedjira/parser/rss_feed_burner_entry.rb +1 -0
- data/lib/feedjira/preprocessor.rb +2 -0
- data/lib/feedjira/version.rb +1 -1
- data/spec/feedjira/configuration_spec.rb +25 -0
- data/spec/feedjira/date_time_utilities_spec.rb +6 -0
- data/spec/feedjira/feed_spec.rb +20 -2
- data/spec/feedjira/feed_utilities_spec.rb +18 -0
- data/spec/feedjira/parser/atom_feed_burner_spec.rb +32 -1
- data/spec/sample_feeds.rb +1 -0
- data/spec/sample_feeds/GiantRobotsSmashingIntoOtherGiantRobots.xml +682 -0
- metadata +49 -29
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: feedjira
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Paul Dix
|
@@ -11,144 +11,158 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date:
|
14
|
+
date: 2017-03-03 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: faraday
|
18
18
|
requirement: !ruby/object:Gem::Requirement
|
19
19
|
requirements:
|
20
|
-
- -
|
20
|
+
- - '>='
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: '0.9'
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
26
26
|
requirements:
|
27
|
-
- -
|
27
|
+
- - '>='
|
28
28
|
- !ruby/object:Gem::Version
|
29
29
|
version: '0.9'
|
30
30
|
- !ruby/object:Gem::Dependency
|
31
31
|
name: faraday_middleware
|
32
32
|
requirement: !ruby/object:Gem::Requirement
|
33
33
|
requirements:
|
34
|
-
- -
|
34
|
+
- - '>='
|
35
35
|
- !ruby/object:Gem::Version
|
36
36
|
version: '0.9'
|
37
37
|
type: :runtime
|
38
38
|
prerelease: false
|
39
39
|
version_requirements: !ruby/object:Gem::Requirement
|
40
40
|
requirements:
|
41
|
-
- -
|
41
|
+
- - '>='
|
42
42
|
- !ruby/object:Gem::Version
|
43
43
|
version: '0.9'
|
44
44
|
- !ruby/object:Gem::Dependency
|
45
45
|
name: loofah
|
46
46
|
requirement: !ruby/object:Gem::Requirement
|
47
47
|
requirements:
|
48
|
-
- -
|
48
|
+
- - '>='
|
49
49
|
- !ruby/object:Gem::Version
|
50
50
|
version: '2.0'
|
51
51
|
type: :runtime
|
52
52
|
prerelease: false
|
53
53
|
version_requirements: !ruby/object:Gem::Requirement
|
54
54
|
requirements:
|
55
|
-
- -
|
55
|
+
- - '>='
|
56
56
|
- !ruby/object:Gem::Version
|
57
57
|
version: '2.0'
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: sax-machine
|
60
60
|
requirement: !ruby/object:Gem::Requirement
|
61
61
|
requirements:
|
62
|
-
- -
|
62
|
+
- - '>='
|
63
63
|
- !ruby/object:Gem::Version
|
64
64
|
version: '1.0'
|
65
65
|
type: :runtime
|
66
66
|
prerelease: false
|
67
67
|
version_requirements: !ruby/object:Gem::Requirement
|
68
68
|
requirements:
|
69
|
-
- -
|
69
|
+
- - '>='
|
70
70
|
- !ruby/object:Gem::Version
|
71
71
|
version: '1.0'
|
72
72
|
- !ruby/object:Gem::Dependency
|
73
73
|
name: danger
|
74
74
|
requirement: !ruby/object:Gem::Requirement
|
75
75
|
requirements:
|
76
|
-
- -
|
76
|
+
- - '>='
|
77
77
|
- !ruby/object:Gem::Version
|
78
78
|
version: '0'
|
79
79
|
type: :development
|
80
80
|
prerelease: false
|
81
81
|
version_requirements: !ruby/object:Gem::Requirement
|
82
82
|
requirements:
|
83
|
-
- -
|
83
|
+
- - '>='
|
84
84
|
- !ruby/object:Gem::Version
|
85
85
|
version: '0'
|
86
86
|
- !ruby/object:Gem::Dependency
|
87
87
|
name: danger-commit_lint
|
88
88
|
requirement: !ruby/object:Gem::Requirement
|
89
89
|
requirements:
|
90
|
-
- -
|
90
|
+
- - '>='
|
91
91
|
- !ruby/object:Gem::Version
|
92
92
|
version: '0'
|
93
93
|
type: :development
|
94
94
|
prerelease: false
|
95
95
|
version_requirements: !ruby/object:Gem::Requirement
|
96
96
|
requirements:
|
97
|
-
- -
|
97
|
+
- - '>='
|
98
98
|
- !ruby/object:Gem::Version
|
99
99
|
version: '0'
|
100
100
|
- !ruby/object:Gem::Dependency
|
101
101
|
name: rspec
|
102
102
|
requirement: !ruby/object:Gem::Requirement
|
103
103
|
requirements:
|
104
|
-
- -
|
104
|
+
- - '>='
|
105
105
|
- !ruby/object:Gem::Version
|
106
106
|
version: '0'
|
107
107
|
type: :development
|
108
108
|
prerelease: false
|
109
109
|
version_requirements: !ruby/object:Gem::Requirement
|
110
110
|
requirements:
|
111
|
-
- -
|
111
|
+
- - '>='
|
112
112
|
- !ruby/object:Gem::Version
|
113
113
|
version: '0'
|
114
114
|
- !ruby/object:Gem::Dependency
|
115
115
|
name: rubocop
|
116
116
|
requirement: !ruby/object:Gem::Requirement
|
117
117
|
requirements:
|
118
|
-
- -
|
118
|
+
- - '='
|
119
119
|
- !ruby/object:Gem::Version
|
120
|
-
version: '0'
|
120
|
+
version: '0.46'
|
121
121
|
type: :development
|
122
122
|
prerelease: false
|
123
123
|
version_requirements: !ruby/object:Gem::Requirement
|
124
124
|
requirements:
|
125
|
-
- -
|
125
|
+
- - '='
|
126
126
|
- !ruby/object:Gem::Version
|
127
|
-
version: '0'
|
127
|
+
version: '0.46'
|
128
128
|
- !ruby/object:Gem::Dependency
|
129
129
|
name: vcr
|
130
130
|
requirement: !ruby/object:Gem::Requirement
|
131
131
|
requirements:
|
132
|
-
- -
|
132
|
+
- - '>='
|
133
133
|
- !ruby/object:Gem::Version
|
134
134
|
version: '0'
|
135
135
|
type: :development
|
136
136
|
prerelease: false
|
137
137
|
version_requirements: !ruby/object:Gem::Requirement
|
138
138
|
requirements:
|
139
|
-
- -
|
139
|
+
- - '>='
|
140
140
|
- !ruby/object:Gem::Version
|
141
141
|
version: '0'
|
142
|
+
- !ruby/object:Gem::Dependency
|
143
|
+
name: yard
|
144
|
+
requirement: !ruby/object:Gem::Requirement
|
145
|
+
requirements:
|
146
|
+
- - ~>
|
147
|
+
- !ruby/object:Gem::Version
|
148
|
+
version: '0.9'
|
149
|
+
type: :development
|
150
|
+
prerelease: false
|
151
|
+
version_requirements: !ruby/object:Gem::Requirement
|
152
|
+
requirements:
|
153
|
+
- - ~>
|
154
|
+
- !ruby/object:Gem::Version
|
155
|
+
version: '0.9'
|
142
156
|
description:
|
143
157
|
email: feedjira@gmail.com
|
144
158
|
executables: []
|
145
159
|
extensions: []
|
146
160
|
extra_rdoc_files: []
|
147
161
|
files:
|
148
|
-
-
|
149
|
-
-
|
150
|
-
-
|
151
|
-
-
|
162
|
+
- .gitignore
|
163
|
+
- .rspec
|
164
|
+
- .rubocop.yml
|
165
|
+
- .travis.yml
|
152
166
|
- CHANGELOG.md
|
153
167
|
- Dangerfile
|
154
168
|
- Gemfile
|
@@ -160,11 +174,13 @@ files:
|
|
160
174
|
- fixtures/vcr_cassettes/parse_error.yml
|
161
175
|
- fixtures/vcr_cassettes/success.yml
|
162
176
|
- lib/feedjira.rb
|
177
|
+
- lib/feedjira/configuration.rb
|
163
178
|
- lib/feedjira/core_ext.rb
|
164
179
|
- lib/feedjira/core_ext/date.rb
|
165
180
|
- lib/feedjira/core_ext/string.rb
|
166
181
|
- lib/feedjira/core_ext/time.rb
|
167
182
|
- lib/feedjira/date_time_utilities.rb
|
183
|
+
- lib/feedjira/date_time_utilities/date_time_epoch_parser.rb
|
168
184
|
- lib/feedjira/date_time_utilities/date_time_language_parser.rb
|
169
185
|
- lib/feedjira/date_time_utilities/date_time_pattern_parser.rb
|
170
186
|
- lib/feedjira/feed.rb
|
@@ -191,6 +207,7 @@ files:
|
|
191
207
|
- lib/feedjira/parser/rss_image.rb
|
192
208
|
- lib/feedjira/preprocessor.rb
|
193
209
|
- lib/feedjira/version.rb
|
210
|
+
- spec/feedjira/configuration_spec.rb
|
194
211
|
- spec/feedjira/date_time_utilities_spec.rb
|
195
212
|
- spec/feedjira/feed_entry_utilities_spec.rb
|
196
213
|
- spec/feedjira/feed_spec.rb
|
@@ -222,6 +239,7 @@ files:
|
|
222
239
|
- spec/sample_feeds/FeedBurnerUrlNoAlternate.xml
|
223
240
|
- spec/sample_feeds/FeedBurnerXHTML.xml
|
224
241
|
- spec/sample_feeds/FeedjiraBlog.xml
|
242
|
+
- spec/sample_feeds/GiantRobotsSmashingIntoOtherGiantRobots.xml
|
225
243
|
- spec/sample_feeds/GoogleDocsList.xml
|
226
244
|
- spec/sample_feeds/HREFConsideredHarmful.xml
|
227
245
|
- spec/sample_feeds/HREFConsideredHarmfulFirstEntry.xml
|
@@ -254,21 +272,22 @@ require_paths:
|
|
254
272
|
- lib
|
255
273
|
required_ruby_version: !ruby/object:Gem::Requirement
|
256
274
|
requirements:
|
257
|
-
- -
|
275
|
+
- - '>='
|
258
276
|
- !ruby/object:Gem::Version
|
259
277
|
version: 1.9.3
|
260
278
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
261
279
|
requirements:
|
262
|
-
- -
|
280
|
+
- - '>='
|
263
281
|
- !ruby/object:Gem::Version
|
264
282
|
version: '0'
|
265
283
|
requirements: []
|
266
284
|
rubyforge_project:
|
267
|
-
rubygems_version: 2.
|
285
|
+
rubygems_version: 2.0.14.1
|
268
286
|
signing_key:
|
269
287
|
specification_version: 4
|
270
288
|
summary: A feed fetching and parsing library
|
271
289
|
test_files:
|
290
|
+
- spec/feedjira/configuration_spec.rb
|
272
291
|
- spec/feedjira/date_time_utilities_spec.rb
|
273
292
|
- spec/feedjira/feed_entry_utilities_spec.rb
|
274
293
|
- spec/feedjira/feed_spec.rb
|
@@ -300,6 +319,7 @@ test_files:
|
|
300
319
|
- spec/sample_feeds/FeedBurnerUrlNoAlternate.xml
|
301
320
|
- spec/sample_feeds/FeedBurnerXHTML.xml
|
302
321
|
- spec/sample_feeds/FeedjiraBlog.xml
|
322
|
+
- spec/sample_feeds/GiantRobotsSmashingIntoOtherGiantRobots.xml
|
303
323
|
- spec/sample_feeds/GoogleDocsList.xml
|
304
324
|
- spec/sample_feeds/HREFConsideredHarmful.xml
|
305
325
|
- spec/sample_feeds/HREFConsideredHarmfulFirstEntry.xml
|