fixed_record 0.6.0 → 0.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/Gemfile.lock +12 -12
- data/lib/fixed_record.rb +6 -4
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cf9f73312ef84cb1422f307c6cb537b119fdc6ef1503cada5ceffdb1b0bd174d
|
4
|
+
data.tar.gz: 1f1a3a6d0f3e615cca0f4b6d9fef763a6ad31540f96773eb51b94ae64c78989c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4b31174d14ca964ee86e2a23c8d95a3395bc2d58d781e2ab5d90ac83026da99852660c31a1347983707ad7e820bfa205ff15c1cf42494f23f9c2a172ffe47c66
|
7
|
+
data.tar.gz: 6de3b3a983289f8aa988435121635226fc9f0898a7695fc55f17fad40719c56232e0ff4e6d4a7bdeb14dceeedeeb19c657e0cc598dd29c016a75ab228c79fbd9
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,10 @@
|
|
1
1
|
# Gem fixed_record Changelog
|
2
2
|
|
3
|
+
## 0.6.1
|
4
|
+
* Fixed bug which resulted in the module Enumerable being included
|
5
|
+
in class _Class_, resulting in very confusing errors when using
|
6
|
+
RSpec feature specifications in programs using the gem.
|
7
|
+
|
3
8
|
## 0.6.0
|
4
9
|
* Internal refactoring - after reading _Metaprogramming Ruby_!
|
5
10
|
* Added size and length methods
|
data/Gemfile.lock
CHANGED
@@ -1,26 +1,26 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
fixed_record (0.6.
|
4
|
+
fixed_record (0.6.1)
|
5
5
|
|
6
6
|
GEM
|
7
7
|
remote: https://rubygems.org/
|
8
8
|
specs:
|
9
9
|
diff-lcs (1.3)
|
10
10
|
rake (13.0.1)
|
11
|
-
rspec (3.
|
12
|
-
rspec-core (~> 3.
|
13
|
-
rspec-expectations (~> 3.
|
14
|
-
rspec-mocks (~> 3.
|
15
|
-
rspec-core (3.
|
16
|
-
rspec-support (~> 3.
|
17
|
-
rspec-expectations (3.
|
11
|
+
rspec (3.9.0)
|
12
|
+
rspec-core (~> 3.9.0)
|
13
|
+
rspec-expectations (~> 3.9.0)
|
14
|
+
rspec-mocks (~> 3.9.0)
|
15
|
+
rspec-core (3.9.1)
|
16
|
+
rspec-support (~> 3.9.1)
|
17
|
+
rspec-expectations (3.9.1)
|
18
18
|
diff-lcs (>= 1.2.0, < 2.0)
|
19
|
-
rspec-support (~> 3.
|
20
|
-
rspec-mocks (3.
|
19
|
+
rspec-support (~> 3.9.0)
|
20
|
+
rspec-mocks (3.9.1)
|
21
21
|
diff-lcs (>= 1.2.0, < 2.0)
|
22
|
-
rspec-support (~> 3.
|
23
|
-
rspec-support (3.
|
22
|
+
rspec-support (~> 3.9.0)
|
23
|
+
rspec-support (3.9.2)
|
24
24
|
|
25
25
|
PLATFORMS
|
26
26
|
ruby
|
data/lib/fixed_record.rb
CHANGED
@@ -5,7 +5,7 @@ require 'set'
|
|
5
5
|
|
6
6
|
# Provides error-checked simplified access to a YAML data file
|
7
7
|
class FixedRecord
|
8
|
-
VERSION = "0.6.
|
8
|
+
VERSION = "0.6.1"
|
9
9
|
|
10
10
|
# Lazy load data from given filename
|
11
11
|
# creating accessors for top level attributes
|
@@ -18,7 +18,7 @@ class FixedRecord
|
|
18
18
|
# we are defining variables and methods in the context of the child class which
|
19
19
|
# called us
|
20
20
|
class_eval do
|
21
|
-
# Use @x names for class variables to simplify access
|
21
|
+
# Use @x names for class variables to simplify / restrict access
|
22
22
|
@filename = filename
|
23
23
|
@valid_keys = Set.new( required )
|
24
24
|
@valid_keys.merge( optional )
|
@@ -93,7 +93,7 @@ class FixedRecord
|
|
93
93
|
load!
|
94
94
|
@valid_keys
|
95
95
|
end
|
96
|
-
end #class_eval
|
96
|
+
end # class_eval
|
97
97
|
|
98
98
|
if singleton
|
99
99
|
class_eval do # class methods for singleton object
|
@@ -106,7 +106,9 @@ class FixedRecord
|
|
106
106
|
end # class_eval
|
107
107
|
else
|
108
108
|
# Add methods for Coillection based objects
|
109
|
-
|
109
|
+
class << self
|
110
|
+
include Enumerable
|
111
|
+
end
|
110
112
|
class_eval do
|
111
113
|
def self.all
|
112
114
|
load!
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fixed_record
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mike Bell
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-04-
|
11
|
+
date: 2020-04-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|