aws-sdk-rails 4.0.3 → 4.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/aws/rails/railtie.rb +19 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '0487e57cf5abffd700526851a6ce35f6fb96c9a62e8c330de841870b528ac419'
|
4
|
+
data.tar.gz: 6e5cd63585548d8b169fc61b88a1607ca2fce692c74882de7ef3b13d19cb8ef9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 657a57cd07e3614de0ca6707e35209cb3acdd5d69960762f345e179552a91eb78699429bd369b10a88817f631c7f61a1f30a6cfda2f68adf66d844eee8092878
|
7
|
+
data.tar.gz: 28322c2ad4dad967ba39ea6f58050725a7db23a6cb9898386058f111eba43cdff9be2acb9c899fa9613f703410755332938d9f0dbcce653176088d786ec9e49f
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
4.0
|
1
|
+
4.1.0
|
data/lib/aws/rails/railtie.rb
CHANGED
@@ -18,6 +18,23 @@ module Aws
|
|
18
18
|
Aws::Rails.add_sqsd_middleware(app)
|
19
19
|
end
|
20
20
|
|
21
|
+
initializer 'aws-sdk-rails.sdk_eager_load' do
|
22
|
+
config.before_eager_load do
|
23
|
+
config.eager_load_namespaces << Aws
|
24
|
+
end
|
25
|
+
|
26
|
+
Aws.define_singleton_method(:eager_load!) do
|
27
|
+
Aws.constants.each do |c|
|
28
|
+
m = Aws.const_get(c)
|
29
|
+
next unless m.is_a?(Module)
|
30
|
+
|
31
|
+
m.constants.each do |constant|
|
32
|
+
m.const_get(constant)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
37
|
+
|
21
38
|
rake_tasks do
|
22
39
|
load 'tasks/dynamo_db/session_store.rake'
|
23
40
|
load 'tasks/aws_record/migrate.rake'
|
@@ -66,6 +83,8 @@ module Aws
|
|
66
83
|
# name of: put_object.S3.aws
|
67
84
|
def self.instrument_sdk_operations
|
68
85
|
Aws.constants.each do |c|
|
86
|
+
next if Aws.autoload?(c)
|
87
|
+
|
69
88
|
m = Aws.const_get(c)
|
70
89
|
if m.is_a?(Module) && m.const_defined?(:Client) &&
|
71
90
|
m.const_get(:Client).superclass == Seahorse::Client::Base
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.0
|
4
|
+
version: 4.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amazon Web Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-09-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-record
|
@@ -254,7 +254,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
254
254
|
- !ruby/object:Gem::Version
|
255
255
|
version: '0'
|
256
256
|
requirements: []
|
257
|
-
rubygems_version: 3.5.
|
257
|
+
rubygems_version: 3.5.9
|
258
258
|
signing_key:
|
259
259
|
specification_version: 4
|
260
260
|
summary: AWS SDK for Ruby on Rails Plugin
|