aws-sdk-resources 3.54.0 → 3.54.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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/bin/aws-v3.rb +14 -5
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3b308ee67d4a69e79e9068216ad2a3985c9333af
4
- data.tar.gz: 42653814742d69bd997fc3f381fa335a41626caa
3
+ metadata.gz: 62127ba6602852df850d3bea539f6aab95a55a90
4
+ data.tar.gz: d698411f22f3e5f5b3b23595338e28f9c9187733
5
5
  SHA512:
6
- metadata.gz: 18de6a355778c6708d7f70c2ef7ceec21aeac5ee7b4905db8578600300329a769fadf2d77eb7b466daa828a2e7f67d3f6765bdf14169d2cbc37306f9f482c534
7
- data.tar.gz: 1728ea92ce2a48e4cc5bb7a7ecb23ba3367ffeb44eae9b8b02b969534e2f0937f8c6dc425bd8f591d9325bd5765b89655ee35e8311992961e8bae3efc51d913e
6
+ metadata.gz: a998b5d9f03a93e314e699c4d9af37fd8bd80c33fb250254de8388f118342c485c5d0e16c387ef45a04b8c52e155e381b37e41fef399897b43647a2ac75ae47b
7
+ data.tar.gz: bd6f2fbc6ec1ccdd1ee681af02a3a2781ae284691f2dca9a2d9e668ef69670ad6975b128b7460f7eafef91e9fccc9bd2a7eee6dea114c931aa3dd5fcfb1bb7d9
@@ -89,16 +89,25 @@ options[:load_paths].each do |path|
89
89
  $LOAD_PATH.unshift(path)
90
90
  end
91
91
 
92
- # need to load `aws-sdk-core` first
93
- $LOAD_PATH.unshift(File.expand_path("../../../aws-sdk-core/lib", __FILE__))
92
+ # When running the REPL locally, we want to load all of the gems from source.
93
+ # First load aws-sdk-core and its dependencies.
94
+ # (Sigv2 is still used by the deprecated SimpleDB service gem)
95
+ core_gems = %w(aws-sdk-core aws-sigv4 aws-partitions aws-eventstream aws-sigv2)
96
+ core_gems.each do |gem_name|
97
+ $LOAD_PATH.unshift(File.expand_path("../../../#{gem_name}/lib", __FILE__))
98
+ end
94
99
 
95
- # load the aws-sdk-resources gem
100
+ # Then load and require aws-sdk-resources. Without loading the core gems before
101
+ # requiring aws-sdk-resources, we would get locally installed gems instead of
102
+ # from source.
96
103
  $LOAD_PATH.unshift(File.expand_path('../../lib', __FILE__))
104
+
105
+ # The Aws namespace used to check autoload requires aws-sdk-resources.
97
106
  require 'aws-sdk-resources'
98
107
 
99
- # when running the REPL locally, we want to load all of the gems from source
108
+ # Finally load all of the gems. Core is loaded a second time because of STS.
100
109
  if File.directory?(File.expand_path('../../../../build_tools', __FILE__))
101
- gems = %w(aws-sdk-core aws-sigv4 aws-sigv2 aws-partitions aws-eventstream)
110
+ gems = []
102
111
  Aws.constants.each do |const_name|
103
112
  if Aws.autoload?(const_name)
104
113
  gems << "aws-sdk-#{const_name.downcase}"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-resources
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.54.0
4
+ version: 3.54.1
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: 2019-09-12 00:00:00.000000000 Z
11
+ date: 2019-09-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-acm