rasti-db 0.2.7 → 0.2.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1d89eb87b65dc22b36bc3774325e96fc5170902a
4
- data.tar.gz: 60baea5f7737a43060d54a5f8c8f8a35764f8e48
3
+ metadata.gz: c80d9d9eadee5892e6875e7654a5b2c4810bf3eb
4
+ data.tar.gz: 98e644bf49e22e0058cc89942ad9a97b7daeee6e
5
5
  SHA512:
6
- metadata.gz: 64105cfa6be8315080047c1447521f105b525a90e51627de77a988f88369cc461f5390c78c0b7262add692acea32fa36a6206a026c896e421ee8187e15935d08
7
- data.tar.gz: 51842d19c1e5696299d85c1e001bc0a1b58ef791012394e75693cd0f113084d51b240d8e918666d20eb350f1e404d19fdc3a6955ceebbca017a73b38d91f8e0a
6
+ metadata.gz: 0476caf5b11d900690e236f417588f9e3baf1727f54a4defe274e43d34b67043fcb5b93e5d404f6ee8b111c91e438a41378f23c2f563db0b22c2a8d8c6fa54d5
7
+ data.tar.gz: 5d6d0c017703afc6b232c517e5baf80a229fac38536e43f30e2efb37da55ec39a8270259ad4b6fa644e56a62ef4a1c6c52ed9a5825c36c2776143818a6591b4b
@@ -48,7 +48,7 @@ module Rasti
48
48
  attributes << name
49
49
 
50
50
  define_method name do
51
- attributes.key?(name) ? attributes[name] : raise(UninitializedAttributeError, name)
51
+ fetch_attribute name
52
52
  end
53
53
  end
54
54
  end
@@ -99,6 +99,10 @@ module Rasti
99
99
  private
100
100
 
101
101
  attr_reader :attributes
102
+
103
+ def fetch_attribute(name)
104
+ attributes.key?(name) ? attributes[name] : raise(UninitializedAttributeError, name)
105
+ end
102
106
 
103
107
  end
104
108
  end
@@ -1,5 +1,5 @@
1
1
  module Rasti
2
2
  module DB
3
- VERSION = '0.2.7'
3
+ VERSION = '0.2.8'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rasti-db
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.7
4
+ version: 0.2.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gabriel Naiman
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-10-09 00:00:00.000000000 Z
11
+ date: 2017-12-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sequel