active_hash_ext 0.0.1 → 0.0.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: a0b391b4def9555b2a7043e9130c4b2adb11510b
4
- data.tar.gz: 26ebe7692c6e972ac5a8238214fc74b7e3fcbf63
3
+ metadata.gz: e8b9a4b92980b4284b54b4197167245e8df89bb2
4
+ data.tar.gz: 65927e38c883a6ed8b55cf4b1dc793cedc146639
5
5
  SHA512:
6
- metadata.gz: ba385e1f62f137d2564f24471dcf30cac926603560b4997fa04140d4af3c186e5de0bdc93ca46f34fe66e7a0381344e89ff1d5c3dc133653e64858548753e740
7
- data.tar.gz: a94a166b81ae12e48a12a5706c33c74933f8d38043b1358cc3398879c2beae2a378aaef76ebf0f1adc03bd2692eb448bc80b2bb8f4177a353baf0fd2722255e2
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
@@ -18,6 +18,10 @@ module ActiveHashExt
18
18
  end
19
19
  end
20
20
 
21
+ if table.first.nil?
22
+ raise "Table Name not Found!"
23
+ end
24
+
21
25
  end
22
26
 
23
27
  def destroy_all
@@ -1,3 +1,3 @@
1
1
  module ActiveHashExt
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
@@ -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.1
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-28 00:00:00.000000000 Z
11
+ date: 2013-12-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler