pluto 1.3.3 → 1.3.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +2 -2
- data/lib/pluto/cli/main.rb +6 -5
- data/lib/pluto/cli/updater.rb +0 -6
- data/lib/pluto/cli/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: de963563ec1c6192bcd914f362d31370028ba272
|
4
|
+
data.tar.gz: 52c668f717f4cd37b87fa187e5f933dd70beb568
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1ba600b1f1beec018cbf43a9b2fffcb69d7f8c4a73804a3e93da33a0ab1a4c3d53f7d7e3f7ee62600c90745fdb80cbfe252007f01f7d1a220f660eaea6c2fe58
|
7
|
+
data.tar.gz: 51fef4f9cc502d1c79991f20477fddc26da3212f142f10af7affaa48fbeca3c6d0c43a59ce6570cd46e12cf83b838058edccc2f0003dd73f7ef2b93fe277e5db
|
data/Rakefile
CHANGED
@@ -18,8 +18,8 @@ Hoe.spec 'pluto' do
|
|
18
18
|
self.history_file = 'CHANGELOG.md'
|
19
19
|
|
20
20
|
self.extra_deps = [
|
21
|
-
['pluto-models', '>= 1.5.
|
22
|
-
['pluto-update', '>= 1.6.
|
21
|
+
['pluto-models', '>= 1.5.4'],
|
22
|
+
['pluto-update', '>= 1.6.3'],
|
23
23
|
['pluto-merge', '>= 1.1.0'],
|
24
24
|
['pluto-tasks', '>= 1.5.3'],
|
25
25
|
['gli', '>= 2.12.2'],
|
data/lib/pluto/cli/main.rb
CHANGED
@@ -90,7 +90,8 @@ command [:fetch, :f] do |c|
|
|
90
90
|
logger.debug 'hello from fetch command'
|
91
91
|
|
92
92
|
## turn on debug flag by default; no need to passing --verbose
|
93
|
-
|
93
|
+
Pluto.config.debug = true
|
94
|
+
Pluto.config.logger.level = :debug
|
94
95
|
opts.verbose = true
|
95
96
|
|
96
97
|
# add dbname as opts property
|
@@ -113,7 +114,6 @@ command [:fetch, :f] do |c|
|
|
113
114
|
pp feed_rec
|
114
115
|
|
115
116
|
fetcher = Pluto::FeedFetcherBasic.new
|
116
|
-
fetcher.debug = true # by default debug is true (only used for debuggin! - save feed to file, etc.)
|
117
117
|
|
118
118
|
feed = fetcher.fetch( feed_rec )
|
119
119
|
## pp feed
|
@@ -353,11 +353,12 @@ pre do |g,c,o,args|
|
|
353
353
|
puts PlutoCli.banner
|
354
354
|
|
355
355
|
if opts.verbose?
|
356
|
-
|
356
|
+
Pluto.config.debug = true
|
357
|
+
Pluto.config.logger.level = :debug
|
357
358
|
elsif opts.warn?
|
358
|
-
|
359
|
+
Pluto.config.logger.level = :warn
|
359
360
|
elsif opts.error?
|
360
|
-
|
361
|
+
Pluto.config.logger.level = :error
|
361
362
|
else
|
362
363
|
## do nothing; keep :info level (default)
|
363
364
|
end
|
data/lib/pluto/cli/updater.rb
CHANGED
@@ -43,17 +43,11 @@ class Updater
|
|
43
43
|
|
44
44
|
###################
|
45
45
|
# step 1) update site subscriptions
|
46
|
-
|
47
|
-
# pass along debug/verbose setting/switch
|
48
|
-
## site_updater.debug = true if opts.verbose?
|
49
46
|
Model::Site.deep_create_or_update_from_hash!( site_key, config )
|
50
47
|
|
51
48
|
##############################
|
52
49
|
# step 2) update feeds
|
53
50
|
feed_refresher = FeedRefresher.new
|
54
|
-
|
55
|
-
# pass along debug/verbose setting/switch
|
56
|
-
feed_refresher.debug = true if opts.verbose?
|
57
51
|
feed_refresher.refresh_feeds_for( site_key )
|
58
52
|
end # method run
|
59
53
|
|
data/lib/pluto/cli/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pluto
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gerald Bauer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-01
|
11
|
+
date: 2020-02-01 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.5.
|
19
|
+
version: 1.5.4
|
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.5.
|
26
|
+
version: 1.5.4
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: pluto-update
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 1.6.
|
33
|
+
version: 1.6.3
|
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: 1.6.
|
40
|
+
version: 1.6.3
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: pluto-merge
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|