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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e889fb6a73357717e499e489f0dec6ce37d68ea1087e6d47e642575efc5ab94b
4
- data.tar.gz: fdeccb99c4d51b6da8de6552ec5934fc0dde3b82cd0b3c7fe34ac0177e511e62
3
+ metadata.gz: 82176bde24b25487dbd1f757d1c940459772e56d4a3cf322474f4bb5d0e10499
4
+ data.tar.gz: 64a793096581c84f932604d037e750447efb9cbebe19d1dce07ad1781c80405f
5
5
  SHA512:
6
- metadata.gz: 33da00bcb14f9f1019e35b871630b2f35c148b96e8bfc26ff8dadccf0b5e9b3ca4c39b6ceeb7c1dd8e6185b7fd53a66e2b3df81541ce9ddd3c900aa9e86fb659
7
- data.tar.gz: bffe43b00730c103bff61611c77a9251d82a5ada956669576d012c50aac022d259a932cf161e25e15f2d8dab3d38a74247e1996f03c25463d6d2aad898ae92ff
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
@@ -0,0 +1,15 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
9
+
10
+ # rspec failure tracking
11
+ .rspec_status
12
+
13
+ /spec/dummy/tmp
14
+ /spec/dummy/storage
15
+ /spec/dummy/log
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
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
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Activestorage
4
4
  module Memory
5
- VERSION = '0.2.2'
5
+ VERSION = '0.2.3'
6
6
  end
7
7
  end
@@ -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
  TRANSACTION (0.0ms) rollback transaction
4821
+ ActiveRecord::InternalMetadata Load (0.4ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "schema_sha1"]]
4822
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
4823
+ TRANSACTION (0.1ms) BEGIN deferred TRANSACTION
4824
+  Memory Storage (0.0ms) Uploaded file to key: key
4825
+ TRANSACTION (0.0ms) ROLLBACK TRANSACTION
4826
+ TRANSACTION (0.0ms) BEGIN deferred TRANSACTION
4827
+  Memory Storage (0.2ms) Downloaded file from key: key
4828
+ TRANSACTION (0.0ms) ROLLBACK TRANSACTION
4829
+ TRANSACTION (0.0ms) BEGIN deferred TRANSACTION
4830
+  Memory Storage (0.0ms) Uploaded file to key: key
4831
+  Memory Storage (0.0ms) Downloaded file from key: key
4832
+ TRANSACTION (0.0ms) ROLLBACK TRANSACTION
4833
+ TRANSACTION (0.0ms) BEGIN deferred TRANSACTION
4834
+  Memory Storage (0.0ms) Deleted file from key: key
4835
+ TRANSACTION (0.0ms) ROLLBACK TRANSACTION
4836
+ TRANSACTION (0.0ms) BEGIN deferred TRANSACTION
4837
+  Memory Storage (0.0ms) Uploaded file to key: key
4838
+  Memory Storage (0.0ms) Deleted file from key: key
4839
+ TRANSACTION (0.0ms) ROLLBACK TRANSACTION
4840
+ TRANSACTION (0.0ms) BEGIN deferred TRANSACTION
4841
+  Memory Storage (0.0ms) Checked if file exists at key: key (no)
4842
+ TRANSACTION (0.0ms) ROLLBACK TRANSACTION
4843
+ TRANSACTION (0.0ms) BEGIN deferred TRANSACTION
4844
+  Memory Storage (0.0ms) Uploaded file to key: key
4845
+  Memory Storage (0.0ms) Checked if file exists at key: key (yes)
4846
+ TRANSACTION (0.0ms) ROLLBACK TRANSACTION
4847
+ TRANSACTION (0.1ms) BEGIN deferred TRANSACTION
4848
+  Memory Storage (0.0ms) Uploaded file to key: key
4849
+  Memory Storage (29.2ms) Generated URL for file at key: key (http://example.com/rails/active_storage/memory/eyJfcmFpbHMiOnsiZGF0YSI6eyJrZXkiOiJrZXkiLCJkaXNwb3NpdGlvbiI6ImlubGluZTsgZmlsZW5hbWU9XCJmaWxlbmFtZVwiOyBmaWxlbmFtZSo9VVRGLTgnJ2ZpbGVuYW1lIiwiY29udGVudF90eXBlIjoiaW1hZ2UvanBlZyIsInNlcnZpY2VfbmFtZSI6bnVsbH0sImV4cCI6IjIwMjUtMDItMjdUMTA6MjM6NTQuODcyWiIsInB1ciI6ImJsb2Jfa2V5In19--c44bcb879d2bbb222c5a3845361c793a7e4f4ab6/filename)
4850
+ TRANSACTION (0.1ms) ROLLBACK TRANSACTION
4851
+ TRANSACTION (0.0ms) BEGIN deferred TRANSACTION
4852
+ TRANSACTION (0.0ms) ROLLBACK TRANSACTION
4853
+ TRANSACTION (0.0ms) BEGIN deferred TRANSACTION
4854
+ TRANSACTION (0.0ms) ROLLBACK TRANSACTION
4855
+ TRANSACTION (0.0ms) BEGIN deferred TRANSACTION
4856
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
4857
+ ActiveStorage::Blob Create (1.0ms) INSERT INTO "active_storage_blobs" ("key", "filename", "content_type", "metadata", "service_name", "byte_size", "checksum", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
4859
+  Memory Storage (0.0ms) Uploaded file to key: file_key
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
+  Memory Storage (0.0ms) Checked if file exists at key: file_key (yes)
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
+ TRANSACTION (0.1ms) ROLLBACK TRANSACTION
4869
+ TRANSACTION (0.0ms) BEGIN deferred TRANSACTION
4870
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
4871
+ ActiveStorage::Blob Create (0.2ms) INSERT INTO "active_storage_blobs" ("key", "filename", "content_type", "metadata", "service_name", "byte_size", "checksum", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
4873
+  Memory Storage (0.0ms) Uploaded file to key: file_key
4874
+  Memory Storage (0.0ms) Deleted file from key: file_key
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
+  Memory Storage (0.0ms) Checked if file exists at key: file_key (no)
4879
+ Completed 404 Not Found in 0ms (ActiveRecord: 0.0ms (0 queries, 0 cached) | GC: 0.0ms)
4880
+ TRANSACTION (0.0ms) ROLLBACK TRANSACTION
4881
+ TRANSACTION (0.0ms) BEGIN deferred TRANSACTION
4882
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
4883
+ ActiveStorage::Blob Create (0.2ms) INSERT INTO "active_storage_blobs" ("key", "filename", "content_type", "metadata", "service_name", "byte_size", "checksum", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
4885
+  Memory Storage (0.0ms) Uploaded file to key: file_key
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
+ TRANSACTION (0.0ms) ROLLBACK TRANSACTION
4891
+ TRANSACTION (0.0ms) BEGIN deferred TRANSACTION
4892
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
4893
+ ActiveStorage::Blob Create (0.5ms) INSERT INTO "active_storage_blobs" ("key", "filename", "content_type", "metadata", "service_name", "byte_size", "checksum", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
4895
+  Memory Storage (0.0ms) Uploaded file to key: file_key
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
+  Memory Storage (0.0ms) Uploaded file to key: file_key
4900
+ Completed 204 No Content in 0ms (ActiveRecord: 0.0ms (0 queries, 0 cached) | GC: 0.0ms)
4901
+ TRANSACTION (0.0ms) ROLLBACK TRANSACTION
4902
+ TRANSACTION (0.0ms) BEGIN deferred TRANSACTION
4903
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
4904
+ ActiveStorage::Blob Create (0.2ms) INSERT INTO "active_storage_blobs" ("key", "filename", "content_type", "metadata", "service_name", "byte_size", "checksum", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
4906
+  Memory Storage (0.0ms) Uploaded file to key: file_key
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
+ TRANSACTION (0.0ms) ROLLBACK TRANSACTION
4912
+ TRANSACTION (0.0ms) BEGIN deferred TRANSACTION
4913
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
4914
+ ActiveStorage::Blob Create (0.4ms) INSERT INTO "active_storage_blobs" ("key", "filename", "content_type", "metadata", "service_name", "byte_size", "checksum", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
4916
+  Memory Storage (0.0ms) Uploaded file to key: file_key
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
+ TRANSACTION (0.0ms) ROLLBACK TRANSACTION
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.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: 2024-09-23 00:00:00.000000000 Z
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: '7.0'
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: '7.0'
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