pluto-feedfetcher 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/{HISTORY.md → CHANGELOG.md} +0 -0
- data/Manifest.txt +8 -8
- data/Rakefile +4 -4
- data/lib/pluto/feedfetcher/cond_get_with_cache.rb +2 -2
- data/lib/pluto/feedfetcher/version.rb +1 -1
- metadata +9 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a3d38e5f21dc0dec7d7ceecf37aa9c66414a6282
|
4
|
+
data.tar.gz: 7c74e7bfb8c5e05b1d22b8773af983c6b9ddbb71
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 125263cf9a4447e8459e5b43374a209ff0afd489ad94b52180e90ca7fd2cf4f4b15293fcf58c302f45a37ebb2b77987a32862456641698bb79f0245893649d57
|
7
|
+
data.tar.gz: 1298797fab13d0097f27858cb8a5e5e2ff9ded8fd120b985c445c4ab0c40c0adc1b7fc084814d3b6d94479358f3da964c39acf024ff50017782519512ef95039
|
data/{HISTORY.md → CHANGELOG.md}
RENAMED
File without changes
|
data/Manifest.txt
CHANGED
@@ -1,8 +1,8 @@
|
|
1
|
-
|
2
|
-
Manifest.txt
|
3
|
-
README.md
|
4
|
-
Rakefile
|
5
|
-
lib/pluto/feedfetcher.rb
|
6
|
-
lib/pluto/feedfetcher/basic.rb
|
7
|
-
lib/pluto/feedfetcher/cond_get_with_cache.rb
|
8
|
-
lib/pluto/feedfetcher/version.rb
|
1
|
+
CHANGELOG.md
|
2
|
+
Manifest.txt
|
3
|
+
README.md
|
4
|
+
Rakefile
|
5
|
+
lib/pluto/feedfetcher.rb
|
6
|
+
lib/pluto/feedfetcher/basic.rb
|
7
|
+
lib/pluto/feedfetcher/cond_get_with_cache.rb
|
8
|
+
lib/pluto/feedfetcher/version.rb
|
data/Rakefile
CHANGED
@@ -15,17 +15,17 @@ Hoe.spec 'pluto-feedfetcher' do
|
|
15
15
|
|
16
16
|
# switch extension to .markdown for gihub formatting
|
17
17
|
self.readme_file = 'README.md'
|
18
|
-
self.history_file = '
|
18
|
+
self.history_file = 'CHANGELOG.md'
|
19
19
|
|
20
20
|
self.extra_deps = [
|
21
|
-
['pluto-models', '>= 1.
|
22
|
-
['fetcher', '>= 0.4.
|
21
|
+
['pluto-models', '>= 1.5.2'],
|
22
|
+
['fetcher', '>= 0.4.5'],
|
23
23
|
]
|
24
24
|
|
25
25
|
self.licenses = ['Public Domain']
|
26
26
|
|
27
27
|
self.spec_extras = {
|
28
|
-
required_ruby_version: '>=
|
28
|
+
required_ruby_version: '>= 2.2.2'
|
29
29
|
}
|
30
30
|
|
31
31
|
end
|
@@ -67,7 +67,7 @@ class FeedFetcherCondGetWithCache
|
|
67
67
|
md5: nil,
|
68
68
|
fetched: feed_fetched
|
69
69
|
}
|
70
|
-
feed_rec.
|
70
|
+
feed_rec.update!( feed_attribs )
|
71
71
|
|
72
72
|
## add log error activity -- in future add to error log - better - why? why not?
|
73
73
|
Activity.create!( text: "*** error: fetching feed '#{feed_key}' - HTTP status #{response.code} #{response.message}" )
|
@@ -162,7 +162,7 @@ class FeedFetcherCondGetWithCache
|
|
162
162
|
# in the future check for different charset than utf-8 ?? possible?? how to deal with non-utf8 charsets??
|
163
163
|
|
164
164
|
begin
|
165
|
-
feed_rec.
|
165
|
+
feed_rec.update!( feed_attribs )
|
166
166
|
rescue Exception => e
|
167
167
|
# log db error; and continue
|
168
168
|
logger.error "*** error: updating feed database record '#{feed_key}' - #{e.to_s}"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pluto-feedfetcher
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gerald Bauer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-01-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pluto-models
|
@@ -16,28 +16,28 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 1.
|
19
|
+
version: 1.5.2
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 1.
|
26
|
+
version: 1.5.2
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: fetcher
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 0.4.
|
33
|
+
version: 0.4.5
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 0.4.
|
40
|
+
version: 0.4.5
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rdoc
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -72,11 +72,11 @@ email: wwwmake@googlegroups.com
|
|
72
72
|
executables: []
|
73
73
|
extensions: []
|
74
74
|
extra_rdoc_files:
|
75
|
-
-
|
75
|
+
- CHANGELOG.md
|
76
76
|
- Manifest.txt
|
77
77
|
- README.md
|
78
78
|
files:
|
79
|
-
-
|
79
|
+
- CHANGELOG.md
|
80
80
|
- Manifest.txt
|
81
81
|
- README.md
|
82
82
|
- Rakefile
|
@@ -98,7 +98,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
98
98
|
requirements:
|
99
99
|
- - ">="
|
100
100
|
- !ruby/object:Gem::Version
|
101
|
-
version:
|
101
|
+
version: 2.2.2
|
102
102
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
103
103
|
requirements:
|
104
104
|
- - ">="
|