activestorage-openstack 1.5.1 → 1.5.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3b319aff1bce7b83e7b28c029ace3190bc918ad2c7524b2f8afa55fd5dc60c80
4
- data.tar.gz: bcec102f0f8e18f4745adf0199576758dfe5e121d532203e6f48e4fa5d2b8b5a
3
+ metadata.gz: 43f1f0f286ce5f4af4fbaf238a64ed7a1bce8cd2913308704f06240b85d0857a
4
+ data.tar.gz: 26bec142d446126347874a9aa08a35d4bf2a7d9658ae91c86772dc8848e52043
5
5
  SHA512:
6
- metadata.gz: a4d0d5d3e79cdecf6518a6be8190f64d207d945aca6ee57f51879d535b2a5efdf28c617af4df398448a1230ce94e93740bd70fb344e07146786b672b33c976c4
7
- data.tar.gz: 04c6e56a3b7c23b0bf731c9aed9b2398cccea8cd221784261a66d8f6164f771e3396992e56d100a1e0743ad8f822e1100b7196eaec34fcaa0166de85378add02
6
+ metadata.gz: 14a8c709f352ee499ae0897c60d4fecd2c4f3e127a3c8c942a47698170f20f883a2a5ce0d1f4d0f82baaee19eea2bf75c4360c5c3a88c58a6a3f7c0a65e81786
7
+ data.tar.gz: 7955689218deaff559a3ab46e6357206c7b6d0fc87d23a05c805e0613d73c52b06fbdfd8e2aca4c6ae16b62c07e085ce5955310aefc5e9399ef9859050212225
@@ -1,5 +1,5 @@
1
1
  module ActiveStorage
2
2
  module Openstack
3
- VERSION = '1.5.1'
3
+ VERSION = '1.5.2'
4
4
  end
5
5
  end
@@ -6,14 +6,13 @@ module ActiveStorage
6
6
  class Service
7
7
  # ActiveStorage provider for OpenStack
8
8
  class OpenStackService < Service
9
- attr_reader :client, :container
9
+ attr_reader :settings, :container
10
10
 
11
11
  def initialize(container:, credentials:, public: false, connection_options: {})
12
12
  super()
13
- settings = credentials.reverse_merge(connection_options: connection_options)
13
+ @settings = credentials.reverse_merge(connection_options: connection_options)
14
14
 
15
15
  @public = public
16
- @client = Fog::OpenStack::Storage.new(settings)
17
16
  @container = Fog::OpenStack.escape(container)
18
17
  end
19
18
 
@@ -146,6 +145,10 @@ module ActiveStorage
146
145
 
147
146
  private
148
147
 
148
+ def client
149
+ @client ||= Fog::OpenStack::Storage.new(settings)
150
+ end
151
+
149
152
  def head_for(key)
150
153
  client.head_object(container, key)
151
154
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activestorage-openstack
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.1
4
+ version: 1.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chedli Bourguiba
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-12-24 00:00:00.000000000 Z
11
+ date: 2021-09-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fog-openstack
@@ -127,7 +127,7 @@ homepage: https://github.com/chaadow/activestorage-openstack
127
127
  licenses:
128
128
  - MIT
129
129
  metadata: {}
130
- post_install_message:
130
+ post_install_message:
131
131
  rdoc_options: []
132
132
  require_paths:
133
133
  - lib
@@ -143,7 +143,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
143
143
  version: 1.8.11
144
144
  requirements: []
145
145
  rubygems_version: 3.1.3
146
- signing_key:
146
+ signing_key:
147
147
  specification_version: 4
148
148
  summary: ActiveStorage wrapper for OpenStack Storage
149
149
  test_files: []