active_shrine 0.1.1 → 0.2.0
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/.ruby-version +1 -0
- data/lib/active_shrine/model.rb +2 -2
- data/lib/active_shrine/version.rb +1 -1
- metadata +7 -12
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9c8a0f75cce6caf34f444f4cc357181d6e84b77ab248de2e0e847542e5eeb20c
|
|
4
|
+
data.tar.gz: b3c5d383c8f81f8e858e9bdefcd04211129a6fc73305fd1f891b6ccedebf3526
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c710f77147da3af3c770e4122c2bfd079adb0cf6a07db94869c1cc776be556efef142684a5d03904f92f1ab9dda33803e0abed4bcf45998fbd205506f87fe6a4
|
|
7
|
+
data.tar.gz: ebfdb98f4aba7b62c0942767a0d7e8af0e13d9443e7fb46b76275320219d6c7460faf4555e27b463e3b77d8cacf94ff88c63e37b0f44b73fe41cfde5c140d553
|
data/.ruby-version
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
ruby-3.2.2
|
data/lib/active_shrine/model.rb
CHANGED
|
@@ -38,7 +38,7 @@ module ActiveShrine
|
|
|
38
38
|
# has_one_attached :avatar
|
|
39
39
|
# end
|
|
40
40
|
#
|
|
41
|
-
# There is no column defined on the model side,
|
|
41
|
+
# There is no column defined on the model side, ActiveShrine takes
|
|
42
42
|
# care of the mapping between your records and the attachment.
|
|
43
43
|
#
|
|
44
44
|
# To avoid N+1 queries, you can include the attachments in your query like so:
|
|
@@ -110,7 +110,7 @@ module ActiveShrine
|
|
|
110
110
|
# has_many_attached :photos
|
|
111
111
|
# end
|
|
112
112
|
#
|
|
113
|
-
# There are no columns defined on the model side,
|
|
113
|
+
# There are no columns defined on the model side, ActiveShrine takes
|
|
114
114
|
# care of the mapping between your records and the attachments.
|
|
115
115
|
#
|
|
116
116
|
# To avoid N+1 queries, you can include the attachments in your query like so:
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: active_shrine
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Radioactive Labs
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2025-01-11 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: railties
|
|
@@ -16,20 +16,14 @@ dependencies:
|
|
|
16
16
|
requirements:
|
|
17
17
|
- - ">="
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
|
-
version: '
|
|
20
|
-
- - "<"
|
|
21
|
-
- !ruby/object:Gem::Version
|
|
22
|
-
version: '8'
|
|
19
|
+
version: '0'
|
|
23
20
|
type: :runtime
|
|
24
21
|
prerelease: false
|
|
25
22
|
version_requirements: !ruby/object:Gem::Requirement
|
|
26
23
|
requirements:
|
|
27
24
|
- - ">="
|
|
28
25
|
- !ruby/object:Gem::Version
|
|
29
|
-
version: '
|
|
30
|
-
- - "<"
|
|
31
|
-
- !ruby/object:Gem::Version
|
|
32
|
-
version: '8'
|
|
26
|
+
version: '0'
|
|
33
27
|
- !ruby/object:Gem::Dependency
|
|
34
28
|
name: shrine
|
|
35
29
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -122,6 +116,7 @@ extra_rdoc_files: []
|
|
|
122
116
|
files:
|
|
123
117
|
- ".DS_Store"
|
|
124
118
|
- ".rspec"
|
|
119
|
+
- ".ruby-version"
|
|
125
120
|
- CHANGELOG.md
|
|
126
121
|
- CODE_OF_CONDUCT.md
|
|
127
122
|
- LICENSE.txt
|
|
@@ -175,14 +170,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
175
170
|
requirements:
|
|
176
171
|
- - ">="
|
|
177
172
|
- !ruby/object:Gem::Version
|
|
178
|
-
version: 3.
|
|
173
|
+
version: '3.2'
|
|
179
174
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
180
175
|
requirements:
|
|
181
176
|
- - ">="
|
|
182
177
|
- !ruby/object:Gem::Version
|
|
183
178
|
version: '0'
|
|
184
179
|
requirements: []
|
|
185
|
-
rubygems_version: 3.5.
|
|
180
|
+
rubygems_version: 3.5.16
|
|
186
181
|
signing_key:
|
|
187
182
|
specification_version: 4
|
|
188
183
|
summary: A compatible ActiveStorage api for attaching Shrine uploads to ActiveRecord
|