wikian 0.2.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/wikian/subcommand.rb +2 -1
- data/lib/wikian/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4cae14274502ac01e5cf329b8a252ac275aae719b6bc1c3744b767cde19d6aed
|
4
|
+
data.tar.gz: 9efbfc03f6f86468ee4156035b29572dae7e80020a2edf07fc06c4b3980e166a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 96abbb700231c2da44492719500a2c0c85284cfff9e97bc6aadebc534cbb4fd0c7c878c9ade610c421188ba29f47fcd4f32777ba6baa71bdfad84ee97e81067a
|
7
|
+
data.tar.gz: 4255b20473b74cd31d7f0afc00b67fc03623bea91babcfb9c875d71970cf3e8717d26abe3777fd81aa8800f08263a1fa366b0ecc0abd18ed4cf5b99a9211f5b4
|
data/Gemfile.lock
CHANGED
data/lib/wikian/subcommand.rb
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
class Wikian
|
2
2
|
class WikianSubcommandError < StandardError; end
|
3
3
|
class BadUrlError < WikianSubcommandError; end
|
4
|
+
class InitializeError < WikianSubcommandError; end
|
4
5
|
|
5
6
|
# class to be inherited by other Wikian classes
|
6
7
|
class Subcommand
|
@@ -27,7 +28,7 @@ class Wikian
|
|
27
28
|
|
28
29
|
# some params like 'titles' can contain multiple entries joined by '|'. More info in Wikipedia API docs
|
29
30
|
@params = Hash[config['api'].keys.zip(config['api'].values.map{|arr| arr.join("|")})]
|
30
|
-
rescue
|
31
|
+
rescue InitializeError => e
|
31
32
|
puts "#{e.class} try passing the '-t' option to generate #{Wikian::CONFIG_FILE} in #{__FILE__}"
|
32
33
|
exit
|
33
34
|
end
|
data/lib/wikian/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wikian
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- sergioro
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-09-
|
11
|
+
date: 2020-09-17 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Get and update Wikipedia articles
|
14
14
|
email:
|