inventory 1.5.1 → 1.5.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b09d7ee8f9a48c732414365f0fcdb38f0e47ded3
4
- data.tar.gz: 70e1bd01822637d7a08d1657f330b1dbbe743a49
3
+ metadata.gz: 65855cbefc445a1caa407505c0b105c02861f069
4
+ data.tar.gz: 07f5979d22d090655597189243fab92d37e6d759
5
5
  SHA512:
6
- metadata.gz: 18a6529364771e9bec72d1ea55ca4acd1a5530e10b98ce1203d515c721b937a8d93530e83bfbc9921721a4945cf5fffdf7040425b32a2b93dc503a7a3860e4a0
7
- data.tar.gz: 9e69ee09f130d01a1a23a4ad90199bd5299d5eb5e1dab9c6f4c3137070b514760510a28f5bb700fdada513b798850f9ea695c840391a506f43367f667329dfa0
6
+ metadata.gz: 9d17eaac3626704ba91262e8f4eabadce50a640ea3f48ba3012c7c5fb3a434e461f8816a6842c457a1e53c8b8d6ef4dcefa96b517ecb4a68e86c5aa9fe9c9955
7
+ data.tar.gz: 7a3623a3a5215f22f164b6a6c9cef0208174b2c28bdc522e82bff48aabe18203f1c3e1e2c3baa9fde30c1bfb5ede325acce07aae66b9939f74c3a3ccb32def57
data/README CHANGED
@@ -211,7 +211,7 @@
211
211
  donation to now@disu.se¹. Thanks! Your support won’t go unnoticed!
212
212
 
213
213
  ¹ Send a donation:
214
- https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=now%40disu%2ese&item_name=Nikolai%20Weibull%20Software%20Services
214
+ https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=now@disu.se&item_name=Inventory
215
215
 
216
216
  § Reporting Bugs
217
217
 
@@ -223,3 +223,13 @@
223
223
 
224
224
  Nikolai Weibull wrote the code, the tests, the documentation, and this
225
225
  README.
226
+
227
+ § Licensing
228
+
229
+ Inventory is free software: you may redistribute it and/or modify it under
230
+ the terms of the {GNU Lesser General Public License, version 3}¹ or later²,
231
+ as published by the {Free Software Foundation}³.
232
+
233
+ ¹ See http://disu.se/licenses/lgpl-3.0/
234
+ ² See http://gnu.org/licenses/
235
+ ³ See http://fsf.org/
@@ -31,12 +31,14 @@ module Inventory::Dependency
31
31
  def require
32
32
  super feature
33
33
  rescue LoadError => e
34
- if not e.respond_to? :path or e.path.end_with? feature
34
+ if @altfeature and (not e.respond_to? :path or e.path.end_with? feature)
35
35
  begin
36
36
  super @altfeature
37
37
  rescue LoadError
38
38
  raise e
39
39
  end
40
+ else
41
+ raise e
40
42
  end
41
43
  end
42
44
 
@@ -1,7 +1,7 @@
1
1
  # -*- coding: utf-8 -*-
2
2
 
3
3
  class Inventory
4
- Version = Inventory.new(1, 5, 1){
4
+ Version = Inventory.new(1, 5, 2){
5
5
  def authors
6
6
  Authors.new{
7
7
  author 'Nikolai Weibull', 'now@disu.se'
@@ -9,7 +9,7 @@ class Inventory
9
9
  end
10
10
 
11
11
  def homepage
12
- 'http://disu.se/software/inventory'
12
+ 'http://disu.se/software/inventory/'
13
13
  end
14
14
 
15
15
  def licenses
@@ -6,4 +6,17 @@ Expectations do
6
6
  development 'test', 1, 0, 0
7
7
  }.map(&:name)
8
8
  end
9
+
10
+ expect LoadError do
11
+ Inventory::Dependencies.new{
12
+ runtime '-this-package-does-not-exist-so-do-not-create-it', 1, 0, 0
13
+ }.require
14
+ end
15
+
16
+ expect LoadError do
17
+ Inventory::Dependencies.new{
18
+ runtime '-this-package-does-not-exist-so-do-not-create-it', 1, 0, 0,
19
+ :feature => '-this-package-does-not-exist-so-do-not-create-it'
20
+ }.require
21
+ end
9
22
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: inventory
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.1
4
+ version: 1.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nikolai Weibull
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-09-04 00:00:00.000000000 Z
11
+ date: 2013-09-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: inventory-rake
@@ -308,7 +308,7 @@ description: |2
308
308
  donation to now@disu.se┬╣. Thanks! Your support wonΓÇÖt go unnoticed!
309
309
 
310
310
  ┬╣ Send a donation:
311
- https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=now%40disu%2ese&item_name=Nikolai%20Weibull%20Software%20Services
311
+ https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=now@disu.se&item_name=Inventory
312
312
 
313
313
  ┬º Reporting Bugs
314
314
 
@@ -320,6 +320,16 @@ description: |2
320
320
 
321
321
  Nikolai Weibull wrote the code, the tests, the documentation, and this
322
322
  README.
323
+
324
+ § Licensing
325
+
326
+ Inventory is free software: you may redistribute it and/or modify it under
327
+ the terms of the {GNU Lesser General Public License, version 3}┬╣ or later┬▓,
328
+ as published by the {Free Software Foundation}┬│.
329
+
330
+ ┬╣ See http://disu.se/licenses/lgpl-3.0/
331
+ ┬▓ See http://gnu.org/licenses/
332
+ ┬│ See http://fsf.org/
323
333
  email:
324
334
  - now@disu.se
325
335
  executables: []
@@ -352,7 +362,7 @@ files:
352
362
  - test/unit/inventory-1.0/version.rb
353
363
  - README
354
364
  - Rakefile
355
- homepage: http://disu.se/software/inventory
365
+ homepage: http://disu.se/software/inventory/
356
366
  licenses:
357
367
  - LGPLv3+
358
368
  metadata: {}