mobility_active_storage 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +16 -13
- data/lib/mobility_active_storage/version.rb +1 -1
- 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: f4973582dfa47dc2c6bdd8f1003bf6b3e4347be60ab61ab653e588629cee3588
|
|
4
|
+
data.tar.gz: fbc607bf032ac1c19dc3f73ce41ceabba5ce8372e2cb71977158a8f17bc45e55
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7cc3a587ed7f117a685b9d7236597a3b50eef206537e83554e27b32ac9d803560d08f93f99e2df554afee1af1cf558d6025942da2b9bd8c4514d36d63e6cde49
|
|
7
|
+
data.tar.gz: fbb2f83b8e98ea1f26019a2302fab216dd7fd9b6b677a09e5fb1b785766ed149e6df0c5479e27cac85f92748474f49637791e47953c51fae215ba1bc61e69abe
|
data/CHANGELOG.md
CHANGED
|
@@ -1,8 +1,22 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
## [
|
|
3
|
+
## [0.1.1] - 2026-08-10
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
- No user-facing changes. Released to verify the trusted-publishing workflow; the packaged files
|
|
6
|
+
are identical to 0.1.0.
|
|
7
|
+
|
|
8
|
+
## [0.1.0] - 2026-08-10
|
|
9
|
+
|
|
10
|
+
- Initial release.
|
|
11
|
+
- `has_one_translated_attached` and `has_many_translated_attached` macros on Active Record models.
|
|
12
|
+
- `Mobility::Backends` registrations for `:active_storage` and `:active_storage_many`.
|
|
13
|
+
- Per-locale attachments stored under locale-suffixed Active Storage attachment names
|
|
14
|
+
(`document_en`, `document_fr`), requiring no migration.
|
|
15
|
+
- Opt-in per-attribute fallbacks, where reads resolve through the fallback chain while writes
|
|
16
|
+
stay in the current locale.
|
|
17
|
+
- `#{attribute}_locales` and a current-locale `with_attached_#{attribute}` scope.
|
|
18
|
+
|
|
19
|
+
Fixes from a security review of the initial commit, all included in this release:
|
|
6
20
|
|
|
7
21
|
- A `fallback:` read option is now honoured only where the attribute actually configures
|
|
8
22
|
fallbacks. Previously `document(fallback: :ja)` cross-read another locale even on an attribute
|
|
@@ -28,14 +42,3 @@ Pre-release fixes from a security review of the initial commit.
|
|
|
28
42
|
- CI runs a Rails 7.2/8.0/latest matrix on Ruby 3.2 through 4.0, plus `bundler-audit`. Actions are
|
|
29
43
|
pinned by SHA.
|
|
30
44
|
- README: strong-parameters guidance for the per-locale writers, and Rails version security notes.
|
|
31
|
-
|
|
32
|
-
## [0.1.0] - 2026-08-07
|
|
33
|
-
|
|
34
|
-
- Initial release.
|
|
35
|
-
- `has_one_translated_attached` and `has_many_translated_attached` macros on Active Record models.
|
|
36
|
-
- `Mobility::Backends` registrations for `:active_storage` and `:active_storage_many`.
|
|
37
|
-
- Per-locale attachments stored under locale-suffixed Active Storage attachment names
|
|
38
|
-
(`document_en`, `document_fr`), requiring no migration.
|
|
39
|
-
- Opt-in per-attribute fallbacks, where reads resolve through the fallback chain while writes
|
|
40
|
-
stay in the current locale.
|
|
41
|
-
- `#{attribute}_locales` and a current-locale `with_attached_#{attribute}` scope.
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: mobility_active_storage
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Glen Barnes
|
|
@@ -103,7 +103,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
103
103
|
- !ruby/object:Gem::Version
|
|
104
104
|
version: '0'
|
|
105
105
|
requirements: []
|
|
106
|
-
rubygems_version: 4.0.
|
|
106
|
+
rubygems_version: 4.0.16
|
|
107
107
|
specification_version: 4
|
|
108
108
|
summary: Translated Active Storage attachments for Mobility.
|
|
109
109
|
test_files: []
|