active_hash_ext 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -0
- data/lib/active_hash_ext.rb +4 -0
- data/lib/active_hash_ext/version.rb +1 -1
- data/spec/lib/active_hash_ext_spec.rb +4 -0
- 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: e8b9a4b92980b4284b54b4197167245e8df89bb2
|
4
|
+
data.tar.gz: 65927e38c883a6ed8b55cf4b1dc793cedc146639
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 091ec28d36a20cc7fae281cfe451256cfc4a88b42f512a22c210152ebaa8c942984b314e2937ee3b9d7fa660a1b3ca17c50e18e5daf44fe9d003597b8e6dd6c7
|
7
|
+
data.tar.gz: ba7173d679cdec9ed686fe3b5f826be3b9fdfdee923fbc0566c8c87cf8d7c77412fc4cdee549d279c586ec6e300bb9d963244940217c9b911a8ada11c5b14f48
|
data/README.md
CHANGED
@@ -63,6 +63,10 @@ Or install it yourself as:
|
|
63
63
|
expect(SchemaHash.first.name).to eq 'Fred'
|
64
64
|
end
|
65
65
|
|
66
|
+
it 'will raise an exception if table does not exist' do
|
67
|
+
-> {TestHash.read_schema('custodian','schema.rb')}.should raise_error('Table Name not Found!')
|
68
|
+
end
|
69
|
+
|
66
70
|
end
|
67
71
|
|
68
72
|
end
|
data/lib/active_hash_ext.rb
CHANGED
@@ -44,6 +44,10 @@ describe 'ActiveHashExt' do
|
|
44
44
|
expect(SchemaHash.first.name).to eq 'Fred'
|
45
45
|
end
|
46
46
|
|
47
|
+
it 'will raise an exception if table does not exist' do
|
48
|
+
-> {TestHash.read_schema('custodian', File.new('schema.rb', 'r'))}.should raise_error('Table Name not Found!')
|
49
|
+
end
|
50
|
+
|
47
51
|
end
|
48
52
|
|
49
53
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: active_hash_ext
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dustin Zeisler
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-12-
|
11
|
+
date: 2013-12-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|