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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5ea19856bf3dafff4f98499ac4f212b159d5cd61
4
- data.tar.gz: 38a079285be5f6bfe81e8581950cf334ca28179b
3
+ metadata.gz: ef31c5b118ac1b2f38c40dd347c8a4e7b057e92e
4
+ data.tar.gz: 4a81781639d702320b0358d01166d89acb055504
5
5
  SHA512:
6
- metadata.gz: ee7e39bad8d6f984471dd2303909cb3992256a7dd44311e8580e0090f9afe07679f528ed9cb5977f168fe0c63de5a105c7129eec70a2693ed62cc383cbe42b58
7
- data.tar.gz: 624a6f0e065e9675a07d2feafc994248300396b0ebaa42e56c3fec4aa542c41bfe07d4c8a30cf34d62d5f812f7829c01b2a94ba5b41e7bb4f2609aa1076601df
6
+ metadata.gz: 93e19e0a7e7b9e90095ec994f349192a05a7ccf749c1856ec1c084da437ec463aa326387b83a07408b0c224a72061a0610a36bcf5ef3c52ffd7011d3c7b1df6a
7
+ data.tar.gz: 267f57df8ed739c5fb6888a365ed731d0205d4b7f0a3a82d5c2af9143fcc45d3945f2eec059011cbc7eb8c145e4efef0310cc1be7a1ab1d7d8b9dbb4e4922e95
@@ -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
- require package_name
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
@@ -1,3 +1,3 @@
1
1
  module Rdm
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
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
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-02-03 00:00:00.000000000 Z
11
+ date: 2016-03-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler