activestorage-memory 0.2.2 → 0.2.3
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/.github/workflows/main.yml +18 -0
- data/.gitignore +15 -0
- data/.rspec +3 -0
- data/Gemfile +12 -0
- data/Gemfile.lock +218 -0
- data/LICENSE.txt +21 -0
- data/activestorage-memory.gemspec +33 -0
- data/bin/console +15 -0
- data/bin/rails +14 -0
- data/bin/setup +8 -0
- data/lib/activestorage/memory/version.rb +1 -1
- data/spec/dummy/log/test.log +101 -0
- metadata +14 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 82176bde24b25487dbd1f757d1c940459772e56d4a3cf322474f4bb5d0e10499
|
4
|
+
data.tar.gz: 64a793096581c84f932604d037e750447efb9cbebe19d1dce07ad1781c80405f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 021f7be982ad7657293d8ccb56bff9b99986d422d4f3c9448f6d296ab8471e98aa2aab41b323aeb57a4cacae0165430793cff76d092bc3a3b8d9a24a76c6625c
|
7
|
+
data.tar.gz: fad03dc631b2daff77b47bf5e719b16bd6e0afce7753e41810e348f4813239173a9f889b8450b39b669ac11debb3cec57e0e607cac758b58231d32b22b791c9a
|
@@ -0,0 +1,18 @@
|
|
1
|
+
name: Ruby
|
2
|
+
|
3
|
+
on: [push,pull_request]
|
4
|
+
|
5
|
+
jobs:
|
6
|
+
build:
|
7
|
+
runs-on: ubuntu-latest
|
8
|
+
steps:
|
9
|
+
- uses: actions/checkout@v4
|
10
|
+
- name: Set up Ruby
|
11
|
+
uses: ruby/setup-ruby@v1
|
12
|
+
with:
|
13
|
+
ruby-version: 3.2.2
|
14
|
+
- name: Run the default task
|
15
|
+
run: |
|
16
|
+
gem install bundler -v 2.2.4
|
17
|
+
bundle install
|
18
|
+
bundle exec rake
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/Gemfile
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
source "https://rubygems.org"
|
4
|
+
|
5
|
+
# Specify your gem's dependencies in activestorage-memory.gemspec
|
6
|
+
gemspec
|
7
|
+
|
8
|
+
gem "sqlite3", ">= 2.1"
|
9
|
+
|
10
|
+
group :development, :test do
|
11
|
+
gem "debug", platforms: %i[ mri windows ]
|
12
|
+
end
|
data/Gemfile.lock
ADDED
@@ -0,0 +1,218 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
activestorage-memory (0.2.3)
|
5
|
+
rails (~> 8.0)
|
6
|
+
|
7
|
+
GEM
|
8
|
+
remote: https://rubygems.org/
|
9
|
+
specs:
|
10
|
+
actioncable (8.0.1)
|
11
|
+
actionpack (= 8.0.1)
|
12
|
+
activesupport (= 8.0.1)
|
13
|
+
nio4r (~> 2.0)
|
14
|
+
websocket-driver (>= 0.6.1)
|
15
|
+
zeitwerk (~> 2.6)
|
16
|
+
actionmailbox (8.0.1)
|
17
|
+
actionpack (= 8.0.1)
|
18
|
+
activejob (= 8.0.1)
|
19
|
+
activerecord (= 8.0.1)
|
20
|
+
activestorage (= 8.0.1)
|
21
|
+
activesupport (= 8.0.1)
|
22
|
+
mail (>= 2.8.0)
|
23
|
+
actionmailer (8.0.1)
|
24
|
+
actionpack (= 8.0.1)
|
25
|
+
actionview (= 8.0.1)
|
26
|
+
activejob (= 8.0.1)
|
27
|
+
activesupport (= 8.0.1)
|
28
|
+
mail (>= 2.8.0)
|
29
|
+
rails-dom-testing (~> 2.2)
|
30
|
+
actionpack (8.0.1)
|
31
|
+
actionview (= 8.0.1)
|
32
|
+
activesupport (= 8.0.1)
|
33
|
+
nokogiri (>= 1.8.5)
|
34
|
+
rack (>= 2.2.4)
|
35
|
+
rack-session (>= 1.0.1)
|
36
|
+
rack-test (>= 0.6.3)
|
37
|
+
rails-dom-testing (~> 2.2)
|
38
|
+
rails-html-sanitizer (~> 1.6)
|
39
|
+
useragent (~> 0.16)
|
40
|
+
actiontext (8.0.1)
|
41
|
+
actionpack (= 8.0.1)
|
42
|
+
activerecord (= 8.0.1)
|
43
|
+
activestorage (= 8.0.1)
|
44
|
+
activesupport (= 8.0.1)
|
45
|
+
globalid (>= 0.6.0)
|
46
|
+
nokogiri (>= 1.8.5)
|
47
|
+
actionview (8.0.1)
|
48
|
+
activesupport (= 8.0.1)
|
49
|
+
builder (~> 3.1)
|
50
|
+
erubi (~> 1.11)
|
51
|
+
rails-dom-testing (~> 2.2)
|
52
|
+
rails-html-sanitizer (~> 1.6)
|
53
|
+
activejob (8.0.1)
|
54
|
+
activesupport (= 8.0.1)
|
55
|
+
globalid (>= 0.3.6)
|
56
|
+
activemodel (8.0.1)
|
57
|
+
activesupport (= 8.0.1)
|
58
|
+
activerecord (8.0.1)
|
59
|
+
activemodel (= 8.0.1)
|
60
|
+
activesupport (= 8.0.1)
|
61
|
+
timeout (>= 0.4.0)
|
62
|
+
activestorage (8.0.1)
|
63
|
+
actionpack (= 8.0.1)
|
64
|
+
activejob (= 8.0.1)
|
65
|
+
activerecord (= 8.0.1)
|
66
|
+
activesupport (= 8.0.1)
|
67
|
+
marcel (~> 1.0)
|
68
|
+
activesupport (8.0.1)
|
69
|
+
base64
|
70
|
+
benchmark (>= 0.3)
|
71
|
+
bigdecimal
|
72
|
+
concurrent-ruby (~> 1.0, >= 1.3.1)
|
73
|
+
connection_pool (>= 2.2.5)
|
74
|
+
drb
|
75
|
+
i18n (>= 1.6, < 2)
|
76
|
+
logger (>= 1.4.2)
|
77
|
+
minitest (>= 5.1)
|
78
|
+
securerandom (>= 0.3)
|
79
|
+
tzinfo (~> 2.0, >= 2.0.5)
|
80
|
+
uri (>= 0.13.1)
|
81
|
+
base64 (0.2.0)
|
82
|
+
benchmark (0.4.0)
|
83
|
+
bigdecimal (3.1.6)
|
84
|
+
builder (3.2.4)
|
85
|
+
concurrent-ruby (1.3.5)
|
86
|
+
connection_pool (2.4.1)
|
87
|
+
crass (1.0.6)
|
88
|
+
date (3.3.4)
|
89
|
+
debug (1.9.1)
|
90
|
+
irb (~> 1.10)
|
91
|
+
reline (>= 0.3.8)
|
92
|
+
diff-lcs (1.5.1)
|
93
|
+
drb (2.2.1)
|
94
|
+
erubi (1.12.0)
|
95
|
+
globalid (1.2.1)
|
96
|
+
activesupport (>= 6.1)
|
97
|
+
i18n (1.14.1)
|
98
|
+
concurrent-ruby (~> 1.0)
|
99
|
+
io-console (0.7.2)
|
100
|
+
irb (1.15.1)
|
101
|
+
pp (>= 0.6.0)
|
102
|
+
rdoc (>= 4.0.0)
|
103
|
+
reline (>= 0.4.2)
|
104
|
+
logger (1.6.6)
|
105
|
+
loofah (2.22.0)
|
106
|
+
crass (~> 1.0.2)
|
107
|
+
nokogiri (>= 1.12.0)
|
108
|
+
mail (2.8.1)
|
109
|
+
mini_mime (>= 0.1.1)
|
110
|
+
net-imap
|
111
|
+
net-pop
|
112
|
+
net-smtp
|
113
|
+
marcel (1.0.4)
|
114
|
+
mini_mime (1.1.5)
|
115
|
+
minitest (5.22.2)
|
116
|
+
net-imap (0.4.10)
|
117
|
+
date
|
118
|
+
net-protocol
|
119
|
+
net-pop (0.1.2)
|
120
|
+
net-protocol
|
121
|
+
net-protocol (0.2.2)
|
122
|
+
timeout
|
123
|
+
net-smtp (0.5.0)
|
124
|
+
net-protocol
|
125
|
+
nio4r (2.7.1)
|
126
|
+
nokogiri (1.16.2-x86_64-darwin)
|
127
|
+
racc (~> 1.4)
|
128
|
+
pp (0.6.2)
|
129
|
+
prettyprint
|
130
|
+
prettyprint (0.2.0)
|
131
|
+
psych (5.1.2)
|
132
|
+
stringio
|
133
|
+
racc (1.7.3)
|
134
|
+
rack (3.0.9.1)
|
135
|
+
rack-session (2.0.0)
|
136
|
+
rack (>= 3.0.0)
|
137
|
+
rack-test (2.1.0)
|
138
|
+
rack (>= 1.3)
|
139
|
+
rackup (2.1.0)
|
140
|
+
rack (>= 3)
|
141
|
+
webrick (~> 1.8)
|
142
|
+
rails (8.0.1)
|
143
|
+
actioncable (= 8.0.1)
|
144
|
+
actionmailbox (= 8.0.1)
|
145
|
+
actionmailer (= 8.0.1)
|
146
|
+
actionpack (= 8.0.1)
|
147
|
+
actiontext (= 8.0.1)
|
148
|
+
actionview (= 8.0.1)
|
149
|
+
activejob (= 8.0.1)
|
150
|
+
activemodel (= 8.0.1)
|
151
|
+
activerecord (= 8.0.1)
|
152
|
+
activestorage (= 8.0.1)
|
153
|
+
activesupport (= 8.0.1)
|
154
|
+
bundler (>= 1.15.0)
|
155
|
+
railties (= 8.0.1)
|
156
|
+
rails-dom-testing (2.2.0)
|
157
|
+
activesupport (>= 5.0.0)
|
158
|
+
minitest
|
159
|
+
nokogiri (>= 1.6)
|
160
|
+
rails-html-sanitizer (1.6.0)
|
161
|
+
loofah (~> 2.21)
|
162
|
+
nokogiri (~> 1.14)
|
163
|
+
railties (8.0.1)
|
164
|
+
actionpack (= 8.0.1)
|
165
|
+
activesupport (= 8.0.1)
|
166
|
+
irb (~> 1.13)
|
167
|
+
rackup (>= 1.0.0)
|
168
|
+
rake (>= 12.2)
|
169
|
+
thor (~> 1.0, >= 1.2.2)
|
170
|
+
zeitwerk (~> 2.6)
|
171
|
+
rake (13.1.0)
|
172
|
+
rdoc (6.6.2)
|
173
|
+
psych (>= 4.0.0)
|
174
|
+
reline (0.4.3)
|
175
|
+
io-console (~> 0.5)
|
176
|
+
rspec-core (3.13.0)
|
177
|
+
rspec-support (~> 3.13.0)
|
178
|
+
rspec-expectations (3.13.0)
|
179
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
180
|
+
rspec-support (~> 3.13.0)
|
181
|
+
rspec-mocks (3.13.0)
|
182
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
183
|
+
rspec-support (~> 3.13.0)
|
184
|
+
rspec-rails (6.1.0)
|
185
|
+
actionpack (>= 6.1)
|
186
|
+
activesupport (>= 6.1)
|
187
|
+
railties (>= 6.1)
|
188
|
+
rspec-core (~> 3.12)
|
189
|
+
rspec-expectations (~> 3.12)
|
190
|
+
rspec-mocks (~> 3.12)
|
191
|
+
rspec-support (~> 3.12)
|
192
|
+
rspec-support (3.13.1)
|
193
|
+
securerandom (0.4.1)
|
194
|
+
sqlite3 (2.5.0-x86_64-darwin)
|
195
|
+
stringio (3.1.0)
|
196
|
+
thor (1.3.1)
|
197
|
+
timeout (0.4.1)
|
198
|
+
tzinfo (2.0.6)
|
199
|
+
concurrent-ruby (~> 1.0)
|
200
|
+
uri (1.0.3)
|
201
|
+
useragent (0.16.11)
|
202
|
+
webrick (1.8.1)
|
203
|
+
websocket-driver (0.7.6)
|
204
|
+
websocket-extensions (>= 0.1.0)
|
205
|
+
websocket-extensions (0.1.5)
|
206
|
+
zeitwerk (2.6.13)
|
207
|
+
|
208
|
+
PLATFORMS
|
209
|
+
x86_64-darwin-22
|
210
|
+
|
211
|
+
DEPENDENCIES
|
212
|
+
activestorage-memory!
|
213
|
+
debug
|
214
|
+
rspec-rails (~> 6.0)
|
215
|
+
sqlite3 (>= 2.1)
|
216
|
+
|
217
|
+
BUNDLED WITH
|
218
|
+
2.4.10
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2024 kykt35
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
@@ -0,0 +1,33 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative 'lib/activestorage/memory/version'
|
4
|
+
|
5
|
+
Gem::Specification.new do |spec|
|
6
|
+
spec.name = 'activestorage-memory'
|
7
|
+
spec.version = Activestorage::Memory::VERSION
|
8
|
+
spec.authors = ['kykt35']
|
9
|
+
spec.email = ['kykt35@gmail.com']
|
10
|
+
|
11
|
+
spec.summary = 'Rails ActiveStorage in-memory service adopter.'
|
12
|
+
spec.homepage = 'https://github.com/kykt35/activestorage-memory'
|
13
|
+
spec.license = 'MIT'
|
14
|
+
spec.required_ruby_version = Gem::Requirement.new('>= 2.7.0')
|
15
|
+
|
16
|
+
spec.metadata['homepage_uri'] = spec.homepage
|
17
|
+
spec.metadata['source_code_uri'] = 'https://github.com/kykt35/activestorage-memory'
|
18
|
+
spec.metadata['changelog_uri'] = 'https://github.com/kykt35/activestorage-memory'
|
19
|
+
|
20
|
+
spec.files = Dir.chdir(File.expand_path(__dir__)) do
|
21
|
+
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
22
|
+
end
|
23
|
+
spec.bindir = 'exe'
|
24
|
+
spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
|
25
|
+
spec.require_paths = ['lib']
|
26
|
+
spec.test_files = Dir["spec/**/*"]
|
27
|
+
|
28
|
+
spec.add_dependency 'rails', '~> 8.0'
|
29
|
+
spec.add_development_dependency 'rspec-rails', '~> 6.0'
|
30
|
+
|
31
|
+
# For more information and examples about making a new gem, checkout our
|
32
|
+
# guide at: https://bundler.io/guides/creating_gem.html
|
33
|
+
end
|
data/bin/console
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
4
|
+
require 'bundler/setup'
|
5
|
+
require 'active_storage/memory'
|
6
|
+
|
7
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
8
|
+
# with your gem easier. You can also use a different console, if you like.
|
9
|
+
|
10
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
11
|
+
# require "pry"
|
12
|
+
# Pry.start
|
13
|
+
|
14
|
+
require 'irb'
|
15
|
+
IRB.start(__FILE__)
|
data/bin/rails
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# This command will automatically be run when you run "rails" with Rails gems
|
3
|
+
# installed from the root of your application.
|
4
|
+
|
5
|
+
ENGINE_ROOT = File.expand_path('..', __dir__)
|
6
|
+
ENGINE_PATH = File.expand_path('../lib/active_storage/memory/engine', __dir__)
|
7
|
+
APP_PATH = File.expand_path('../spec/dummy/config/application', __dir__)
|
8
|
+
|
9
|
+
# Set up gems listed in the Gemfile.
|
10
|
+
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __dir__)
|
11
|
+
require 'bundler/setup' if File.exist?(ENV['BUNDLE_GEMFILE'])
|
12
|
+
|
13
|
+
require 'rails/all'
|
14
|
+
require 'rails/engine/commands'
|
data/bin/setup
ADDED
data/spec/dummy/log/test.log
CHANGED
@@ -4818,3 +4818,104 @@ Processing by Activestorage::Memory::MemoryController#update as HTML
|
|
4818
4818
|
Parameters: {"encoded_token"=>"[FILTERED]"}
|
4819
4819
|
Completed 404 Not Found in 0ms (ActiveRecord: 0.0ms | Allocations: 67)
|
4820
4820
|
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
4821
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.4ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [[nil, "schema_sha1"]]
|
4822
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
4823
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[36mBEGIN deferred TRANSACTION[0m
|
4824
|
+
[36m Memory Storage (0.0ms) [0m[32mUploaded file to key: key[0m
|
4825
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mROLLBACK TRANSACTION[0m
|
4826
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mBEGIN deferred TRANSACTION[0m
|
4827
|
+
[36m Memory Storage (0.2ms) [0m[34mDownloaded file from key: key[0m
|
4828
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mROLLBACK TRANSACTION[0m
|
4829
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mBEGIN deferred TRANSACTION[0m
|
4830
|
+
[36m Memory Storage (0.0ms) [0m[32mUploaded file to key: key[0m
|
4831
|
+
[36m Memory Storage (0.0ms) [0m[34mDownloaded file from key: key[0m
|
4832
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mROLLBACK TRANSACTION[0m
|
4833
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mBEGIN deferred TRANSACTION[0m
|
4834
|
+
[36m Memory Storage (0.0ms) [0m[31mDeleted file from key: key[0m
|
4835
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mROLLBACK TRANSACTION[0m
|
4836
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mBEGIN deferred TRANSACTION[0m
|
4837
|
+
[36m Memory Storage (0.0ms) [0m[32mUploaded file to key: key[0m
|
4838
|
+
[36m Memory Storage (0.0ms) [0m[31mDeleted file from key: key[0m
|
4839
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mROLLBACK TRANSACTION[0m
|
4840
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mBEGIN deferred TRANSACTION[0m
|
4841
|
+
[36m Memory Storage (0.0ms) [0m[34mChecked if file exists at key: key (no)[0m
|
4842
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mROLLBACK TRANSACTION[0m
|
4843
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mBEGIN deferred TRANSACTION[0m
|
4844
|
+
[36m Memory Storage (0.0ms) [0m[32mUploaded file to key: key[0m
|
4845
|
+
[36m Memory Storage (0.0ms) [0m[34mChecked if file exists at key: key (yes)[0m
|
4846
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mROLLBACK TRANSACTION[0m
|
4847
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[36mBEGIN deferred TRANSACTION[0m
|
4848
|
+
[36m Memory Storage (0.0ms) [0m[32mUploaded file to key: key[0m
|
4849
|
+
[36m Memory Storage (29.2ms) [0m[34mGenerated URL for file at key: key (http://example.com/rails/active_storage/memory/eyJfcmFpbHMiOnsiZGF0YSI6eyJrZXkiOiJrZXkiLCJkaXNwb3NpdGlvbiI6ImlubGluZTsgZmlsZW5hbWU9XCJmaWxlbmFtZVwiOyBmaWxlbmFtZSo9VVRGLTgnJ2ZpbGVuYW1lIiwiY29udGVudF90eXBlIjoiaW1hZ2UvanBlZyIsInNlcnZpY2VfbmFtZSI6bnVsbH0sImV4cCI6IjIwMjUtMDItMjdUMTA6MjM6NTQuODcyWiIsInB1ciI6ImJsb2Jfa2V5In19--c44bcb879d2bbb222c5a3845361c793a7e4f4ab6/filename)[0m
|
4850
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[31mROLLBACK TRANSACTION[0m
|
4851
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mBEGIN deferred TRANSACTION[0m
|
4852
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mROLLBACK TRANSACTION[0m
|
4853
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mBEGIN deferred TRANSACTION[0m
|
4854
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mROLLBACK TRANSACTION[0m
|
4855
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mBEGIN deferred TRANSACTION[0m
|
4856
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
4857
|
+
[1m[36mActiveStorage::Blob Create (1.0ms)[0m [1m[32mINSERT INTO "active_storage_blobs" ("key", "filename", "content_type", "metadata", "service_name", "byte_size", "checksum", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id"[0m [["key", "file_key"], ["filename", "file.jpg"], ["content_type", "image/jpeg"], ["metadata", "{\"identified\":true}"], ["service_name", "memory"], ["byte_size", 7], ["checksum", "mgNkuembtIDdJeHwKEyFVQ=="], ["created_at", "2025-02-27 10:18:54.932216"]]
|
4858
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
4859
|
+
[36m Memory Storage (0.0ms) [0m[32mUploaded file to key: file_key[0m
|
4860
|
+
Started GET "/rails/active_storage/memory/eyJfcmFpbHMiOnsiZGF0YSI6eyJrZXkiOiJmaWxlX2tleSIsInNlcnZpY2VfbmFtZSI6Im1lbW9yeSIsImNvbnRlbnRfdHlwZSI6ImltYWdlL2pwZWciLCJkaXNwb3NpdGlvbiI6ImlubGluZTsgZmlsZW5hbWU9XCJmaWxlLmpwZ1wiOyBmaWxlbmFtZSo9VVRGLTgnJ2ZpbGUuanBnIn0sImV4cCI6IjIwMjUtMDItMjdUMTA6MjM6NTQuOTM0WiIsInB1ciI6ImJsb2Jfa2V5In19--bbc3a252a8f4790672e4917734b75cc8ffb7921f/file.jpg" for 127.0.0.1 at 2025-02-27 19:18:54 +0900
|
4861
|
+
Processing by Activestorage::Memory::MemoryController#show as JPEG
|
4862
|
+
Parameters: {"encoded_key"=>"[FILTERED]", "filename"=>"file"}
|
4863
|
+
[36m Memory Storage (0.0ms) [0m[34mChecked if file exists at key: file_key (yes)[0m
|
4864
|
+
Rendering text template
|
4865
|
+
Rendered text template (Duration: 0.0ms | GC: 0.0ms)
|
4866
|
+
Sent data (6.3ms)
|
4867
|
+
Completed 200 OK in 11ms (Views: 5.2ms | ActiveRecord: 0.0ms (0 queries, 0 cached) | GC: 0.0ms)
|
4868
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[31mROLLBACK TRANSACTION[0m
|
4869
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mBEGIN deferred TRANSACTION[0m
|
4870
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
4871
|
+
[1m[36mActiveStorage::Blob Create (0.2ms)[0m [1m[32mINSERT INTO "active_storage_blobs" ("key", "filename", "content_type", "metadata", "service_name", "byte_size", "checksum", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id"[0m [["key", "file_key"], ["filename", "file.jpg"], ["content_type", "image/jpeg"], ["metadata", "{\"identified\":true}"], ["service_name", "memory"], ["byte_size", 7], ["checksum", "mgNkuembtIDdJeHwKEyFVQ=="], ["created_at", "2025-02-27 10:18:54.962747"]]
|
4872
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
4873
|
+
[36m Memory Storage (0.0ms) [0m[32mUploaded file to key: file_key[0m
|
4874
|
+
[36m Memory Storage (0.0ms) [0m[31mDeleted file from key: file_key[0m
|
4875
|
+
Started GET "/rails/active_storage/memory/eyJfcmFpbHMiOnsiZGF0YSI6eyJrZXkiOiJmaWxlX2tleSIsInNlcnZpY2VfbmFtZSI6Im1lbW9yeSIsImNvbnRlbnRfdHlwZSI6ImltYWdlL2pwZWciLCJkaXNwb3NpdGlvbiI6ImlubGluZTsgZmlsZW5hbWU9XCJmaWxlLmpwZ1wiOyBmaWxlbmFtZSo9VVRGLTgnJ2ZpbGUuanBnIn0sImV4cCI6IjIwMjUtMDItMjdUMTA6MjM6NTQuOTYzWiIsInB1ciI6ImJsb2Jfa2V5In19--e4bb2492d9f5b3847a979e72d344bc57a9173cd3/file.jpg" for 127.0.0.1 at 2025-02-27 19:18:54 +0900
|
4876
|
+
Processing by Activestorage::Memory::MemoryController#show as JPEG
|
4877
|
+
Parameters: {"encoded_key"=>"[FILTERED]", "filename"=>"file"}
|
4878
|
+
[36m Memory Storage (0.0ms) [0m[34mChecked if file exists at key: file_key (no)[0m
|
4879
|
+
Completed 404 Not Found in 0ms (ActiveRecord: 0.0ms (0 queries, 0 cached) | GC: 0.0ms)
|
4880
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mROLLBACK TRANSACTION[0m
|
4881
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mBEGIN deferred TRANSACTION[0m
|
4882
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
4883
|
+
[1m[36mActiveStorage::Blob Create (0.2ms)[0m [1m[32mINSERT INTO "active_storage_blobs" ("key", "filename", "content_type", "metadata", "service_name", "byte_size", "checksum", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id"[0m [["key", "file_key"], ["filename", "file.jpg"], ["content_type", "image/jpeg"], ["metadata", "{\"identified\":true}"], ["service_name", "memory"], ["byte_size", 7], ["checksum", "mgNkuembtIDdJeHwKEyFVQ=="], ["created_at", "2025-02-27 10:18:54.967425"]]
|
4884
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
4885
|
+
[36m Memory Storage (0.0ms) [0m[32mUploaded file to key: file_key[0m
|
4886
|
+
Started GET "/rails/active_storage/memory/invalid_key/file.jpg" for 127.0.0.1 at 2025-02-27 19:18:54 +0900
|
4887
|
+
Processing by Activestorage::Memory::MemoryController#show as JPEG
|
4888
|
+
Parameters: {"encoded_key"=>"[FILTERED]", "filename"=>"file"}
|
4889
|
+
Completed 404 Not Found in 0ms (ActiveRecord: 0.0ms (0 queries, 0 cached) | GC: 0.0ms)
|
4890
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mROLLBACK TRANSACTION[0m
|
4891
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mBEGIN deferred TRANSACTION[0m
|
4892
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
4893
|
+
[1m[36mActiveStorage::Blob Create (0.5ms)[0m [1m[32mINSERT INTO "active_storage_blobs" ("key", "filename", "content_type", "metadata", "service_name", "byte_size", "checksum", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id"[0m [["key", "file_key"], ["filename", "file.jpg"], ["content_type", "image/jpeg"], ["metadata", "{\"identified\":true}"], ["service_name", "memory"], ["byte_size", 7], ["checksum", "mgNkuembtIDdJeHwKEyFVQ=="], ["created_at", "2025-02-27 10:18:54.971697"]]
|
4894
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
4895
|
+
[36m Memory Storage (0.0ms) [0m[32mUploaded file to key: file_key[0m
|
4896
|
+
Started PUT "/rails/active_storage/memory/eyJfcmFpbHMiOnsiZGF0YSI6eyJrZXkiOiJmaWxlX2tleSIsInNlcnZpY2VfbmFtZSI6Im1lbW9yeSIsImNoZWNrc3VtIjoibWdOa3VlbWJ0SURkSmVId0tFeUZWUT09IiwiY29udGVudF90eXBlIjoiaW1hZ2UvanBlZyIsImNvbnRlbnRfbGVuZ3RoIjo3fSwicHVyIjoiYmxvYl90b2tlbiJ9fQ==--24675e333d643fc477c178edb1992e8437aa8143" for 127.0.0.1 at 2025-02-27 19:18:54 +0900
|
4897
|
+
Processing by Activestorage::Memory::MemoryController#update as HTML
|
4898
|
+
Parameters: {"encoded_token"=>"[FILTERED]"}
|
4899
|
+
[36m Memory Storage (0.0ms) [0m[32mUploaded file to key: file_key[0m
|
4900
|
+
Completed 204 No Content in 0ms (ActiveRecord: 0.0ms (0 queries, 0 cached) | GC: 0.0ms)
|
4901
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mROLLBACK TRANSACTION[0m
|
4902
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mBEGIN deferred TRANSACTION[0m
|
4903
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
4904
|
+
[1m[36mActiveStorage::Blob Create (0.2ms)[0m [1m[32mINSERT INTO "active_storage_blobs" ("key", "filename", "content_type", "metadata", "service_name", "byte_size", "checksum", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id"[0m [["key", "file_key"], ["filename", "file.jpg"], ["content_type", "image/jpeg"], ["metadata", "{\"identified\":true}"], ["service_name", "memory"], ["byte_size", 7], ["checksum", "mgNkuembtIDdJeHwKEyFVQ=="], ["created_at", "2025-02-27 10:18:54.976284"]]
|
4905
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
4906
|
+
[36m Memory Storage (0.0ms) [0m[32mUploaded file to key: file_key[0m
|
4907
|
+
Started PUT "/rails/active_storage/memory/eyJfcmFpbHMiOnsiZGF0YSI6eyJrZXkiOiJmaWxlX2tleSIsInNlcnZpY2VfbmFtZSI6Im1lbW9yeSIsImNoZWNrc3VtIjoibWdOa3VlbWJ0SURkSmVId0tFeUZWUT09IiwiY29udGVudF90eXBlIjoiaW1hZ2UvanBlZyIsImNvbnRlbnRfbGVuZ3RoIjo3fSwicHVyIjoiYmxvYl90b2tlbiJ9fQ==--24675e333d643fc477c178edb1992e8437aa8143" for 127.0.0.1 at 2025-02-27 19:18:54 +0900
|
4908
|
+
Processing by Activestorage::Memory::MemoryController#update as HTML
|
4909
|
+
Parameters: {"encoded_token"=>"[FILTERED]"}
|
4910
|
+
Completed 422 Unprocessable Entity in 0ms (ActiveRecord: 0.0ms (0 queries, 0 cached) | GC: 0.0ms)
|
4911
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mROLLBACK TRANSACTION[0m
|
4912
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mBEGIN deferred TRANSACTION[0m
|
4913
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
4914
|
+
[1m[36mActiveStorage::Blob Create (0.4ms)[0m [1m[32mINSERT INTO "active_storage_blobs" ("key", "filename", "content_type", "metadata", "service_name", "byte_size", "checksum", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id"[0m [["key", "file_key"], ["filename", "file.jpg"], ["content_type", "image/jpeg"], ["metadata", "{\"identified\":true}"], ["service_name", "memory"], ["byte_size", 7], ["checksum", "mgNkuembtIDdJeHwKEyFVQ=="], ["created_at", "2025-02-27 10:18:54.980533"]]
|
4915
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
4916
|
+
[36m Memory Storage (0.0ms) [0m[32mUploaded file to key: file_key[0m
|
4917
|
+
Started PUT "/rails/active_storage/memory/invalid_token" for 127.0.0.1 at 2025-02-27 19:18:54 +0900
|
4918
|
+
Processing by Activestorage::Memory::MemoryController#update as HTML
|
4919
|
+
Parameters: {"encoded_token"=>"[FILTERED]"}
|
4920
|
+
Completed 404 Not Found in 0ms (ActiveRecord: 0.0ms (0 queries, 0 cached) | GC: 0.0ms)
|
4921
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mROLLBACK TRANSACTION[0m
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activestorage-memory
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- kykt35
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2025-02-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -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: 7.0.0
|
19
|
+
version: '8.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: 7.0.0
|
26
|
+
version: '8.0'
|
33
27
|
- !ruby/object:Gem::Dependency
|
34
28
|
name: rspec-rails
|
35
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -51,9 +45,19 @@ executables: []
|
|
51
45
|
extensions: []
|
52
46
|
extra_rdoc_files: []
|
53
47
|
files:
|
48
|
+
- ".github/workflows/main.yml"
|
49
|
+
- ".gitignore"
|
50
|
+
- ".rspec"
|
51
|
+
- Gemfile
|
52
|
+
- Gemfile.lock
|
53
|
+
- LICENSE.txt
|
54
54
|
- README.md
|
55
55
|
- Rakefile
|
56
|
+
- activestorage-memory.gemspec
|
56
57
|
- app/controllers/activestorage/memory/memory_controller.rb
|
58
|
+
- bin/console
|
59
|
+
- bin/rails
|
60
|
+
- bin/setup
|
57
61
|
- config/routes.rb
|
58
62
|
- lib/active_storage/service/memory_service.rb
|
59
63
|
- lib/activestorage/memory.rb
|