bucket_store 0.6.0 → 0.8.0

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: 4a5f88aa8903c932c2de1c7ed531bf78f58f72e9785ba8732a4cca7e44605549
4
- data.tar.gz: f2d8e01ad1f54acf7c44a71df268576131df013e656dfced91f700b80927f036
3
+ metadata.gz: 03157b41e6129f5b8224f304ceaa6985000649e743a18f58b075ec2c8052f1d1
4
+ data.tar.gz: 4b1b82b3e720cd5388df39b632233c16adb2d81f5d8b2aea25a01a3338d5f92f
5
5
  SHA512:
6
- metadata.gz: 22ba164e42115a064b4aa6f7833d3d5c86931fe7c35d2da873725fa2488ab6849ce2481bf09bc9d93f7eab085a0132d957e1d81fad8855e89060663895aa5428
7
- data.tar.gz: 9c88e6bf881ecab6686255cabfa416be09985a8f48b200726f89e7589e5925dd5ab13700a865aa69c49b4050d654447c09e802b71852b62ef331c5e80568b369
6
+ metadata.gz: 7bac339e6203f2a9dce145b22379245b85528f81a2e31cfe2584475bd70584b687284ebf3a2ed0d389275b852792b81f14ca272df8491b5c28ffa3d2b147fcea
7
+ data.tar.gz: 063edd8b20541fa44ba52eb91c139a13d0ba70ae5429b276aff5f3cfabb515c932e5313d5e8cc4641a5084ee295813b5b238b1894750e8a47aec2669f0db7f82
@@ -3,17 +3,21 @@
3
3
  require "stringio"
4
4
  require "uri"
5
5
 
6
- require "google/cloud/storage"
7
-
8
6
  module BucketStore
9
7
  class Gcs
10
8
  DEFAULT_TIMEOUT_SECONDS = 30
11
9
 
10
+ def self.load_client_library
11
+ @load_client_library ||= require "google/cloud/storage"
12
+ end
13
+
12
14
  def self.build(timeout_seconds = DEFAULT_TIMEOUT_SECONDS)
13
- Gcs.new(timeout_seconds)
15
+ new(timeout_seconds)
14
16
  end
15
17
 
16
18
  def initialize(timeout_seconds)
19
+ self.class.load_client_library
20
+
17
21
  # Ruby's GCS library does not natively support setting up a simulator, but it allows
18
22
  # for a specific endpoint to be passed down which has the same effect. The simulator
19
23
  # needs to be special cased as in that case we want to bypass authentication,
@@ -2,18 +2,22 @@
2
2
 
3
3
  require "uri"
4
4
 
5
- require "aws-sdk-s3"
6
-
7
5
  module BucketStore
8
6
  class S3
9
7
  DEFAULT_TIMEOUT_SECONDS = 30
10
8
 
9
+ def self.load_client_library
10
+ @load_client_library ||= require "aws-sdk-s3"
11
+ end
12
+
11
13
  def self.build(open_timeout_seconds = DEFAULT_TIMEOUT_SECONDS,
12
14
  read_timeout_seconds = DEFAULT_TIMEOUT_SECONDS)
13
- S3.new(open_timeout_seconds, read_timeout_seconds)
15
+ new(open_timeout_seconds, read_timeout_seconds)
14
16
  end
15
17
 
16
18
  def initialize(open_timeout_seconds, read_timeout_seconds)
19
+ self.class.load_client_library
20
+
17
21
  @storage = Aws::S3::Client.new(
18
22
  http_open_timeout: open_timeout_seconds,
19
23
  http_read_timeout: read_timeout_seconds,
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module BucketStore
4
- VERSION = "0.6.0"
4
+ VERSION = "0.8.0"
5
5
  end
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bucket_store
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - GoCardless Engineering
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2023-09-14 00:00:00.000000000 Z
10
+ date: 2025-01-13 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: aws-sdk-s3
@@ -16,98 +15,28 @@ dependencies:
16
15
  requirements:
17
16
  - - ">="
18
17
  - !ruby/object:Gem::Version
19
- version: '1.104'
18
+ version: '1.177'
20
19
  type: :runtime
21
20
  prerelease: false
22
21
  version_requirements: !ruby/object:Gem::Requirement
23
22
  requirements:
24
23
  - - ">="
25
24
  - !ruby/object:Gem::Version
26
- version: '1.104'
25
+ version: '1.177'
27
26
  - !ruby/object:Gem::Dependency
28
27
  name: google-cloud-storage
29
28
  requirement: !ruby/object:Gem::Requirement
30
29
  requirements:
31
30
  - - ">="
32
31
  - !ruby/object:Gem::Version
33
- version: '1.34'
32
+ version: '1.54'
34
33
  type: :runtime
35
34
  prerelease: false
36
35
  version_requirements: !ruby/object:Gem::Requirement
37
36
  requirements:
38
37
  - - ">="
39
38
  - !ruby/object:Gem::Version
40
- version: '1.34'
41
- - !ruby/object:Gem::Dependency
42
- name: gc_ruboconfig
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - "~>"
46
- - !ruby/object:Gem::Version
47
- version: 4.3.0
48
- type: :development
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - "~>"
53
- - !ruby/object:Gem::Version
54
- version: 4.3.0
55
- - !ruby/object:Gem::Dependency
56
- name: pry-byebug
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - "~>"
60
- - !ruby/object:Gem::Version
61
- version: '3.9'
62
- type: :development
63
- prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - "~>"
67
- - !ruby/object:Gem::Version
68
- version: '3.9'
69
- - !ruby/object:Gem::Dependency
70
- name: rspec
71
- requirement: !ruby/object:Gem::Requirement
72
- requirements:
73
- - - "~>"
74
- - !ruby/object:Gem::Version
75
- version: '3.10'
76
- type: :development
77
- prerelease: false
78
- version_requirements: !ruby/object:Gem::Requirement
79
- requirements:
80
- - - "~>"
81
- - !ruby/object:Gem::Version
82
- version: '3.10'
83
- - !ruby/object:Gem::Dependency
84
- name: rspec-github
85
- requirement: !ruby/object:Gem::Requirement
86
- requirements:
87
- - - "~>"
88
- - !ruby/object:Gem::Version
89
- version: 2.4.0
90
- type: :development
91
- prerelease: false
92
- version_requirements: !ruby/object:Gem::Requirement
93
- requirements:
94
- - - "~>"
95
- - !ruby/object:Gem::Version
96
- version: 2.4.0
97
- - !ruby/object:Gem::Dependency
98
- name: rubocop
99
- requirement: !ruby/object:Gem::Requirement
100
- requirements:
101
- - - ">="
102
- - !ruby/object:Gem::Version
103
- version: '1.49'
104
- type: :development
105
- prerelease: false
106
- version_requirements: !ruby/object:Gem::Requirement
107
- requirements:
108
- - - ">="
109
- - !ruby/object:Gem::Version
110
- version: '1.49'
39
+ version: '1.54'
111
40
  description: " A helper library to access cloud storage services such as Google
112
41
  Cloud Storage or S3.\n"
113
42
  email:
@@ -133,7 +62,6 @@ licenses:
133
62
  - MIT
134
63
  metadata:
135
64
  rubygems_mfa_required: 'true'
136
- post_install_message:
137
65
  rdoc_options: []
138
66
  require_paths:
139
67
  - lib
@@ -141,15 +69,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
141
69
  requirements:
142
70
  - - ">="
143
71
  - !ruby/object:Gem::Version
144
- version: '2.7'
72
+ version: '3.1'
145
73
  required_rubygems_version: !ruby/object:Gem::Requirement
146
74
  requirements:
147
75
  - - ">="
148
76
  - !ruby/object:Gem::Version
149
77
  version: '0'
150
78
  requirements: []
151
- rubygems_version: 3.3.3
152
- signing_key:
79
+ rubygems_version: 3.6.2
153
80
  specification_version: 4
154
81
  summary: A helper library to access cloud storage services
155
82
  test_files: []