const_lookup 0.5.0 → 0.5.1

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: 6272f106053cfae63ddee05a1ee5e21636d40852
4
- data.tar.gz: b8393dacdefb03921a50aa5b613d483414ad2abb
3
+ metadata.gz: 98df710f86e4e9651585c81360b46e2ec1510a07
4
+ data.tar.gz: 9042044d08f74d2721dd33d52c1412b0c64b7d22
5
5
  SHA512:
6
- metadata.gz: f5fbc355c841826f7fe708fdc6a806c59fd49fdc637f78360ba3297cd335a64f66756a9205efaf77c287a3e415e2330ffd618acc3b14ae59ea95e41c067d68fa
7
- data.tar.gz: e01ed3588c93c7ff9a3c67bd01fbc51eb1244cc5b39ec78aa5330fe5640aedda3edc45e74b8057ba76fef505b6614f88564d89651ebd70ad094efa632ac70c53
6
+ metadata.gz: 09752c925c80469b934bce132da5b82c1cdeccd788147a5c0f0443093005e9fc934bcf0bc14d06ab46b953e73bb9d496f8edffeeaa8ce06cba2e6d58167640c3
7
+ data.tar.gz: cf729d5332dc4a39daad47375db6779eb95ea688cc216c5f781f70f5903ca8c2b6bbd645a2d5d21125672de85fa495d59fbe4e4e1366fdbaca9a7ec7a334f495
@@ -6,7 +6,7 @@ class ConstLookup
6
6
  end
7
7
 
8
8
  def initialize namespace
9
- raise ArgumentError unless namespace.is_a? Module
9
+ raise ArgumentError, 'namespace must be a Module' unless namespace.is_a? Module
10
10
  @namespace = namespace.to_s
11
11
  end
12
12
 
@@ -1,3 +1,3 @@
1
1
  class ConstLookup
2
- VERSION = '0.5.0'
2
+ VERSION = '0.5.1'
3
3
  end
@@ -32,7 +32,9 @@ describe ConstLookup do
32
32
  end
33
33
 
34
34
  it "raises an ArgumentError when the namespace is not a Class/Module" do
35
- expect { ConstLookup.new(Object.new) }.to raise_error ArgumentError
35
+ expect do
36
+ ConstLookup.new(Object.new)
37
+ end.to raise_error ArgumentError, 'namespace must be a Module'
36
38
  end
37
39
  end
38
40
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: const_lookup
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Marshall
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-08-27 00:00:00.000000000 Z
11
+ date: 2013-08-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler