active_storage-postgresql 0.3.0 → 0.3.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1212a9c234be19bf6444a03c0bdf66ab92397ad4527ac9e0ce029d0440724a34
4
- data.tar.gz: 7ca4cb2634cac459ee8caf886887293f69d00f989128a41d108b3023bf6ee7e0
3
+ metadata.gz: 02acf670378aa84368856711199795b7af498576ec9532dbbe16042d4e8ac470
4
+ data.tar.gz: 602293dce4f6ec595566c6ce67c997c54116d9dd4d1ac6294e8bdf3edd52364e
5
5
  SHA512:
6
- metadata.gz: 6773b507eae6af885133918d77876e310b946f19221aeeea2a4b122805b852699350d86556a0b04e0dbdd3dda98def4580756e51af0bc44f2611afe45209b04d
7
- data.tar.gz: 6b1617c425df194ae4bcf2b415e11fd8cb16eb76698677036a7a981188120dd71ece4a6307654a336a74d86327cb94bb7fc223347f4db973f9f9e87aff8be944
6
+ metadata.gz: 551113a522736f182a02dce862bbc980eb0b244d757093ca67b27c7ccb3d66c580e47970b0fb3a95366c7a71cf2bdc9645f3bc09e9d4a5ea02b7e9c8967e4261
7
+ data.tar.gz: 3cddd9c9dbd5018c1efb06a72157bd2a0bc4c246a747fb6dd805882d95222e93969718e025892242cbb5ed5e6f94d50eb7ff2519c7a94de489dcc42b0553e71a
data/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # ActiveStorage::PostgreSQL
2
2
 
3
3
  [![Gem Version](https://badge.fury.io/rb/active_storage-postgresql.svg)](https://badge.fury.io/rb/active_storage-postgresql)
4
- [![Build Status](https://travis-ci.com/lsylvester/active_storage-postgresql.svg?branch=master)](https://travis-ci.com/lsylvester/active_storage-postgresql)
4
+ [![Build Status](https://travis-ci.com/lsylvester/active_storage-postgresql.svg?branch=main)](https://travis-ci.com/lsylvester/active_storage-postgresql)
5
5
 
6
6
  ActiveStorage Service to store files PostgeSQL.
7
7
 
@@ -51,4 +51,4 @@ The gem is available as open source under the terms of the [MIT License](https:/
51
51
 
52
52
  ## Code of Conduct
53
53
 
54
- Everyone interacting in the ActiveStorage::PostgreSQL project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/lsylvester/active_storage-postgresql/blob/master/CODE_OF_CONDUCT.md).
54
+ Everyone interacting in the ActiveStorage::PostgreSQL project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/lsylvester/active_storage-postgresql/blob/main/CODE_OF_CONDUCT.md).
@@ -11,8 +11,8 @@ class ActiveStorage::PostgresqlController < ActiveStorage::BaseController
11
11
 
12
12
  def show
13
13
  if key = decode_verified_key
14
- response.headers["Content-Type"] = params[:content_type] || DEFAULT_SEND_FILE_TYPE
15
- response.headers["Content-Disposition"] = params[:disposition] || DEFAULT_SEND_FILE_DISPOSITION
14
+ response.headers["Content-Type"] = key[:content_type] || DEFAULT_SEND_FILE_TYPE
15
+ response.headers["Content-Disposition"] = key[:disposition] || DEFAULT_SEND_FILE_DISPOSITION
16
16
  size = ActiveStorage::PostgreSQL::File.open(key[:key], &:size)
17
17
 
18
18
  ranges = Rack::Utils.get_byte_ranges(request.get_header('HTTP_RANGE'), size)
@@ -1,5 +1,5 @@
1
1
  module ActiveStorage
2
2
  module PostgreSQL
3
- VERSION = '0.3.0'
3
+ VERSION = '0.3.1'
4
4
  end
5
5
  end
@@ -2,6 +2,9 @@ require "active_storage/postgresql/engine"
2
2
 
3
3
  module ActiveStorage
4
4
  module PostgreSQL
5
- # Your code goes here...
5
+ extend ActiveSupport::Autoload
6
+
7
+ autoload :File, "active_storage/postgresql/file"
8
+
6
9
  end
7
10
  end
@@ -1,7 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'active_storage/postgresql/file'
4
-
5
3
  module ActiveStorage
6
4
  # Wraps a PostgreSQL database as an Active Storage service. See ActiveStorage::Service for the generic API
7
5
  # documentation that applies to all services.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_storage-postgresql
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lachlan Sylvester
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-01-25 00:00:00.000000000 Z
11
+ date: 2023-07-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -31,6 +31,45 @@ dependencies:
31
31
  - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '1.0'
34
+ - - "!="
35
+ - !ruby/object:Gem::Version
36
+ version: 1.3.0
37
+ - - "!="
38
+ - !ruby/object:Gem::Version
39
+ version: 1.3.1
40
+ - - "!="
41
+ - !ruby/object:Gem::Version
42
+ version: 1.3.2
43
+ - - "!="
44
+ - !ruby/object:Gem::Version
45
+ version: 1.3.3
46
+ - - "!="
47
+ - !ruby/object:Gem::Version
48
+ version: 1.3.4
49
+ - - "!="
50
+ - !ruby/object:Gem::Version
51
+ version: 1.3.5
52
+ - - "!="
53
+ - !ruby/object:Gem::Version
54
+ version: 1.4.0
55
+ - - "!="
56
+ - !ruby/object:Gem::Version
57
+ version: 1.4.1
58
+ - - "!="
59
+ - !ruby/object:Gem::Version
60
+ version: 1.4.2
61
+ - - "!="
62
+ - !ruby/object:Gem::Version
63
+ version: 1.4.3
64
+ - - "!="
65
+ - !ruby/object:Gem::Version
66
+ version: 1.4.4
67
+ - - "!="
68
+ - !ruby/object:Gem::Version
69
+ version: 1.4.5
70
+ - - "<"
71
+ - !ruby/object:Gem::Version
72
+ version: '2.0'
34
73
  type: :runtime
35
74
  prerelease: false
36
75
  version_requirements: !ruby/object:Gem::Requirement
@@ -38,6 +77,45 @@ dependencies:
38
77
  - - ">="
39
78
  - !ruby/object:Gem::Version
40
79
  version: '1.0'
80
+ - - "!="
81
+ - !ruby/object:Gem::Version
82
+ version: 1.3.0
83
+ - - "!="
84
+ - !ruby/object:Gem::Version
85
+ version: 1.3.1
86
+ - - "!="
87
+ - !ruby/object:Gem::Version
88
+ version: 1.3.2
89
+ - - "!="
90
+ - !ruby/object:Gem::Version
91
+ version: 1.3.3
92
+ - - "!="
93
+ - !ruby/object:Gem::Version
94
+ version: 1.3.4
95
+ - - "!="
96
+ - !ruby/object:Gem::Version
97
+ version: 1.3.5
98
+ - - "!="
99
+ - !ruby/object:Gem::Version
100
+ version: 1.4.0
101
+ - - "!="
102
+ - !ruby/object:Gem::Version
103
+ version: 1.4.1
104
+ - - "!="
105
+ - !ruby/object:Gem::Version
106
+ version: 1.4.2
107
+ - - "!="
108
+ - !ruby/object:Gem::Version
109
+ version: 1.4.3
110
+ - - "!="
111
+ - !ruby/object:Gem::Version
112
+ version: 1.4.4
113
+ - - "!="
114
+ - !ruby/object:Gem::Version
115
+ version: 1.4.5
116
+ - - "<"
117
+ - !ruby/object:Gem::Version
118
+ version: '2.0'
41
119
  - !ruby/object:Gem::Dependency
42
120
  name: pry
43
121
  requirement: !ruby/object:Gem::Requirement
@@ -80,7 +158,7 @@ dependencies:
80
158
  - - ">="
81
159
  - !ruby/object:Gem::Version
82
160
  version: '0'
83
- description:
161
+ description:
84
162
  email:
85
163
  - lachlan.sylvester@hypothetical.com.au
86
164
  executables: []
@@ -104,7 +182,7 @@ homepage: https://github.com/lsylvester/active_storage-postgresql
104
182
  licenses:
105
183
  - MIT
106
184
  metadata: {}
107
- post_install_message:
185
+ post_install_message:
108
186
  rdoc_options: []
109
187
  require_paths:
110
188
  - lib
@@ -119,8 +197,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
119
197
  - !ruby/object:Gem::Version
120
198
  version: '0'
121
199
  requirements: []
122
- rubygems_version: 3.3.4
123
- signing_key:
200
+ rubygems_version: 3.0.1
201
+ signing_key:
124
202
  specification_version: 4
125
203
  summary: PostgreSQL Adapter for Active Storage
126
204
  test_files: []