frozen_record 0.27.1 → 0.27.3

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: 38d59eb398601918420c427ca2608c32d88e272948f39f502c831e92be2d6017
4
- data.tar.gz: 1762510ed02e71fdfc67fcfe6f41ba4db83f766231481490e0172a4ea0c91f5b
3
+ metadata.gz: 47909eff31da52e0bf2da2699be17ce81f1aaf6f76bf3f662a63838549153561
4
+ data.tar.gz: 7878df0dabb556e1820141ffde68bd5ca335665ac2796450563088c3010a1cf0
5
5
  SHA512:
6
- metadata.gz: a58d5c272f4beb88c10a2b8186f6664843da73ee67a920a706258b1d3fd0c719fe7dcfd27d1f97485304f743c2cef86b8d5ed8924d59c69d162edf389fb0ab34
7
- data.tar.gz: 1d587f2b2c7043e1137537ae0eb44fd84e1643876d8ca30d1704dc41c45b0739fe6612c71db97d14f32de3950e52fee289fcec34969e57505b7aebb5403264e3
6
+ metadata.gz: c1e7763e9119e0b174f326bf123e9d85114b6e2ec785897bcf07f65c54aaaa87c9f515364d505e2045f400b81fa68ba2d146529388fba1103eff4f47eac73beb
7
+ data.tar.gz: 86c377e682706a4e39149e90adf47e932e1313b22d632cfcc003d7c3fc8dfad7e155aa2440f60053ee8c48f25ab6fb1e4baae5d331813a148a540c37da7a22a1
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Unreleased
2
2
 
3
+ # v0.27.3
4
+
5
+ - Fix compatibility with Rails 8.0.0alpha: https://github.com/rails/rails/pull/52717
6
+
7
+ # v0.27.2
8
+
9
+ - Fix a Ruby warning that was emitted when `frozen_record` is loaded.
10
+
3
11
  # v0.27.1
4
12
 
5
13
  - TestHelper.unload_fixture: handle models without data.
@@ -39,7 +39,7 @@ module FrozenRecord
39
39
 
40
40
  self.backend = FrozenRecord::Backends::Yaml
41
41
 
42
- attribute_method_suffix -'?'
42
+ attribute_method_suffix '?'
43
43
 
44
44
  class ThreadSafeStorage
45
45
 
@@ -80,13 +80,6 @@ module FrozenRecord
80
80
  set_primary_key(-primary_key.to_s)
81
81
  end
82
82
 
83
- alias_method :set_base_path, :base_path=
84
- private :set_base_path
85
- def base_path=(base_path)
86
- @file_path = nil
87
- set_base_path(base_path)
88
- end
89
-
90
83
  attr_accessor :abstract_class
91
84
 
92
85
  def attributes
@@ -115,13 +108,11 @@ module FrozenRecord
115
108
 
116
109
  def file_path
117
110
  raise ArgumentError, "You must define `#{name}.base_path`" unless base_path
118
- @file_path ||= begin
119
- file_path = File.join(base_path, backend.filename(name))
120
- if !File.exist?(file_path) && File.exist?("#{file_path}.erb")
121
- "#{file_path}.erb"
122
- else
123
- file_path
124
- end
111
+ file_path = File.join(base_path, backend.filename(name))
112
+ if !File.exist?(file_path) && File.exist?("#{file_path}.erb")
113
+ "#{file_path}.erb"
114
+ else
115
+ file_path
125
116
  end
126
117
  end
127
118
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module FrozenRecord
4
- VERSION = '0.27.1'
4
+ VERSION = '0.27.3'
5
5
  end
data/spec/spec_helper.rb CHANGED
@@ -1,3 +1,5 @@
1
+ $VERBOSE = true
2
+
1
3
  lib = File.expand_path('../lib', __FILE__)
2
4
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
5
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: frozen_record
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.27.1
4
+ version: 0.27.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jean Boussier
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-02-19 00:00:00.000000000 Z
11
+ date: 2024-08-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemodel
@@ -125,7 +125,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
125
125
  - !ruby/object:Gem::Version
126
126
  version: '0'
127
127
  requirements: []
128
- rubygems_version: 3.5.3
128
+ rubygems_version: 3.5.17
129
129
  signing_key:
130
130
  specification_version: 4
131
131
  summary: ActiveRecord like interface to read only access and query static YAML files