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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 572787b07827ff2d2e0279f93bb3b78d37b8865f2063f4076184d792843e6a18
4
- data.tar.gz: 3b53ae4bba8a9e090e872d550e18f7027f5e7d8719778d4e4f3a588ee7eee04d
3
+ metadata.gz: cf9f73312ef84cb1422f307c6cb537b119fdc6ef1503cada5ceffdb1b0bd174d
4
+ data.tar.gz: 1f1a3a6d0f3e615cca0f4b6d9fef763a6ad31540f96773eb51b94ae64c78989c
5
5
  SHA512:
6
- metadata.gz: 6c47c29c44fb5ecd9788814a163d5e2eb28d5f14a1e5d5d362ab0d9182bb5c289d9e93c1032d75875f35a48cfc07c97b205964d2dc0f4bd18a7d3590399d8b05
7
- data.tar.gz: baf11d31820fbcf012aba2bb55ba8d2056f77e90694c1bd6dd7f0d8daef2cda02f1d0323efbaa9c241120bde3d3de55287df9aa6c3a9089a087768b80acf1651
6
+ metadata.gz: 4b31174d14ca964ee86e2a23c8d95a3395bc2d58d781e2ab5d90ac83026da99852660c31a1347983707ad7e820bfa205ff15c1cf42494f23f9c2a172ffe47c66
7
+ data.tar.gz: 6de3b3a983289f8aa988435121635226fc9f0898a7695fc55f17fad40719c56232e0ff4e6d4a7bdeb14dceeedeeb19c657e0cc598dd29c016a75ab228c79fbd9
@@ -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
@@ -1,26 +1,26 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- fixed_record (0.6.0)
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.8.0)
12
- rspec-core (~> 3.8.0)
13
- rspec-expectations (~> 3.8.0)
14
- rspec-mocks (~> 3.8.0)
15
- rspec-core (3.8.2)
16
- rspec-support (~> 3.8.0)
17
- rspec-expectations (3.8.4)
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.8.0)
20
- rspec-mocks (3.8.1)
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.8.0)
23
- rspec-support (3.8.2)
22
+ rspec-support (~> 3.9.0)
23
+ rspec-support (3.9.2)
24
24
 
25
25
  PLATFORMS
26
26
  ruby
@@ -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.0"
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
- self.class.include Enumerable
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.0
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-10 00:00:00.000000000 Z
11
+ date: 2020-04-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler