ruby-tapas-downloader 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/ruby-tapas-downloader.rb +1 -0
- data/lib/ruby_tapas_downloader/config.rb +12 -4
- data/lib/ruby_tapas_downloader/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ead20e84b9acad5174d882fd8df88d0500ed9ea6
|
4
|
+
data.tar.gz: 575b76bd539f6bf27f80fda9b9640ba890db4bc4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 82921b9f4ec176dfdd797212b711c1466c17fbfc4d5f9f47d8f73495e6a43fdec71fba4a98ab11a396f460b3179d1a60dbba36ddae345f965d93816e8271b71d
|
7
|
+
data.tar.gz: 955b4d6aaeff3c24251281d25a693c88b214d85e79fb1efdc630047d5624858992a39228391f2015cdf9d3ae43c3eb6e334df872abbeeb88624ff89f635d708f
|
@@ -1,8 +1,16 @@
|
|
1
1
|
# Retrieve configurations.
|
2
2
|
class RubyTapasDownloader::Config
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
3
|
+
class << self
|
4
|
+
# Retrieve urls stored in `urls.yml`.
|
5
|
+
# @return [Hash] the urls stored in `urls.yml`.
|
6
|
+
def urls
|
7
|
+
@urls ||= YAML.load_file urls_config_path
|
8
|
+
end
|
9
|
+
|
10
|
+
private
|
11
|
+
|
12
|
+
def urls_config_path
|
13
|
+
Pathname File.expand_path('../../../config/urls.yml', __FILE__)
|
14
|
+
end
|
7
15
|
end
|
8
16
|
end
|