rdm 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rdm/package_importer.rb +10 -1
- data/lib/rdm/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ef31c5b118ac1b2f38c40dd347c8a4e7b057e92e
|
4
|
+
data.tar.gz: 4a81781639d702320b0358d01166d89acb055504
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 93e19e0a7e7b9e90095ec994f349192a05a7ccf749c1856ec1c084da437ec463aa326387b83a07408b0c224a72061a0610a36bcf5ef3c52ffd7011d3c7b1df6a
|
7
|
+
data.tar.gz: 267f57df8ed739c5fb6888a365ed731d0205d4b7f0a3a82d5c2af9143fcc45d3945f2eec059011cbc7eb8c145e4efef0310cc1be7a1ab1d7d8b9dbb4e4922e95
|
data/lib/rdm/package_importer.rb
CHANGED
@@ -16,6 +16,11 @@ class Rdm::PackageImporter
|
|
16
16
|
def import_package(package_name, packages:, imported_packages: [], group: nil)
|
17
17
|
return if imported_packages.include?(package_name.to_s)
|
18
18
|
package = packages[package_name.to_s]
|
19
|
+
|
20
|
+
if package == nil
|
21
|
+
raise "Can't find package with name: #{package_name.to_s}"
|
22
|
+
end
|
23
|
+
|
19
24
|
init_package(package, group: group)
|
20
25
|
imported_packages << package_name
|
21
26
|
|
@@ -25,7 +30,11 @@ class Rdm::PackageImporter
|
|
25
30
|
end
|
26
31
|
|
27
32
|
# only after importing dependencies - require package itself
|
28
|
-
|
33
|
+
begin
|
34
|
+
require package_name
|
35
|
+
rescue LoadError
|
36
|
+
raise "Can't require package #{package_name}, please create file #{package_name}/lib/#{package_name}.rb"
|
37
|
+
end
|
29
38
|
|
30
39
|
imported_packages
|
31
40
|
end
|
data/lib/rdm/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rdm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Droid Labs
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-03-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|