frozen_record 0.27.2 → 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: e47fc697be74381e4202860b94854c7634c3dbf689cf32acbe57d5c15bed9f83
4
- data.tar.gz: 3e78652cd4102592513af618648f555bd936a96c97a71a9cc9af6a33bebd0d74
3
+ metadata.gz: 47909eff31da52e0bf2da2699be17ce81f1aaf6f76bf3f662a63838549153561
4
+ data.tar.gz: 7878df0dabb556e1820141ffde68bd5ca335665ac2796450563088c3010a1cf0
5
5
  SHA512:
6
- metadata.gz: d04577bfa1b97b5a0ada49555147cac4ce31c39187e10acf2e0367c80d00a224f0a5d2ec36d350775d92417fb92b6bfc67fa99c859a01628844805121c9a91e4
7
- data.tar.gz: bfeed5194bd51706fae613df484de29f8629a314947e96c4abc6b65b1ce7b2eab26d950760c78368daa752b6ae8e1692d21d7383f493ac5a972f3f24049018a3
6
+ metadata.gz: c1e7763e9119e0b174f326bf123e9d85114b6e2ec785897bcf07f65c54aaaa87c9f515364d505e2045f400b81fa68ba2d146529388fba1103eff4f47eac73beb
7
+ data.tar.gz: 86c377e682706a4e39149e90adf47e932e1313b22d632cfcc003d7c3fc8dfad7e155aa2440f60053ee8c48f25ab6fb1e4baae5d331813a148a540c37da7a22a1
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
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
+
3
7
  # v0.27.2
4
8
 
5
9
  - Fix a Ruby warning that was emitted when `frozen_record` is loaded.
@@ -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.2'
4
+ VERSION = '0.27.3'
5
5
  end
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.2
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-07-01 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.9
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