packspec 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/cli.rb +6 -1
  3. data/packspec.gemspec +1 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b8c668e116454f961a1b72ecf2d483ad27fdad6e
4
- data.tar.gz: 706ff5a19b3a2a600d1804cc1571b140521fa2be
3
+ metadata.gz: fdccff439b67f0c82bb09ae8df1e7a4530581a88
4
+ data.tar.gz: a9cf00c46fbc8b171057e0494cbc7b0f2643fbbc
5
5
  SHA512:
6
- metadata.gz: deca3968f28df4ff7cfa7404e048b09a34526863018e39e70e5409f3727bf9cbb6f523f8bc80432111c5685c15f7b8f61c8f02dc3596d05f8fe08663ac919058
7
- data.tar.gz: 66258b5429c14282d1be372fe6714b893068ebced6344639ca1360654be38908d3d48bb4ae3d30393d98ed93e4be99f322dfa577c6cc4043d340ab8038dcaf9f
6
+ metadata.gz: ce25e03506b5d43b8cdd33fc60e368d2cfa73732855053b140befa3e341cffbe03a3ef844a61a9dc7a2e78dcd732ff46435e60a38cfa0efad0e1462f430b94a1
7
+ data.tar.gz: f722b541d83493877688570b81d9ee77826b74ce3b466a1fa8dc2a5bbe21f445120abdd613cc8d344bc3b25f27b115e8399e5e79c77b8960a3d715815b2c82c3
data/lib/cli.rb CHANGED
@@ -342,7 +342,12 @@ class BuiltinFunctions
342
342
  attributes = {}
343
343
  require(package)
344
344
  for item in ObjectSpace.each_object
345
- if package == String(item).downcase
345
+ begin
346
+ item_name = String(item).downcase
347
+ rescue Exception
348
+ next
349
+ end
350
+ if package == item_name
346
351
  begin
347
352
  scope = Kernel.const_get(item)
348
353
  rescue Exception
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "packspec"
7
- spec.version = "0.2.0"
7
+ spec.version = "0.2.1"
8
8
  spec.authors = ["Evgeny Karev\n"]
9
9
  spec.email = ["eskarev@gmail.com"]
10
10
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: packspec
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - |
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2017-08-27 00:00:00.000000000 Z
12
+ date: 2017-08-28 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler