aws_metadata 0.2.4 → 0.3.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
  SHA1:
3
- metadata.gz: be2b8f9ab237f3ccf374674eb5c9b54e04c30ff5
4
- data.tar.gz: 4d3dc54a4f0a7b22a062a24f97277e9d29c4f86d
3
+ metadata.gz: 82c4e73e744ce991dddeb9e8c8688214a579fba7
4
+ data.tar.gz: cb6a220050ddcc5c94bf301d5f150ab50e12ee21
5
5
  SHA512:
6
- metadata.gz: d7d1e33250af7c1efd295a839a348b1300a9fb176c1222a8d4121073aa8abcedd30188747784201d48d8e60d6c717c7d0afe16cb0760cff6e0e58b42b1ea5b3c
7
- data.tar.gz: 851f3a25b3281d58098e92a2740eb54925b504ca0f036a7983c3f921ae5f470aabaf3e1f664198b1a6cd6b6810931df7dd3397048e15ce6a854985e375b80645
6
+ metadata.gz: bfe67a900e61c78b4bb93f44fe989e5c65969b7f8c6d2bb4960f304b92d784bd386dac3ce5413adae418e6db3a20853f5791ac9b5f64529be39b453aaefbd800
7
+ data.tar.gz: 474d0a51ecd12e7b759ec3fefc6ce94efc683240b97bf457af75155639767890b8dfd099cc23a26c04665ca7e278fcb7d7db95c8fcc875666ef2e63dd7e19b91
@@ -1,19 +1,11 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- aws_metadata (0.2.3)
5
- aws-sdk
4
+ aws_metadata (0.3.0)
6
5
 
7
6
  GEM
8
7
  remote: https://rubygems.org/
9
8
  specs:
10
- aws-sdk (2.1.36)
11
- aws-sdk-resources (= 2.1.36)
12
- aws-sdk-core (2.1.36)
13
- jmespath (~> 1.0)
14
- aws-sdk-resources (2.1.36)
15
- aws-sdk-core (= 2.1.36)
16
- jmespath (1.1.3)
17
9
  rake (10.4.2)
18
10
  rdiscount (2.2.0.1)
19
11
  yard (0.9.5)
@@ -29,4 +21,4 @@ DEPENDENCIES
29
21
  yard
30
22
 
31
23
  BUNDLED WITH
32
- 1.11.2
24
+ 1.15.4
data/README.md CHANGED
@@ -4,7 +4,7 @@ AWS::Metadata has 2 components to it. `AWS::Instance` and `AWS::StackOutput`
4
4
 
5
5
  This first, `AWS::Instance`, is mostly identical to https://github.com/airbnb/gem-aws-instmd and exposes the instance metadata information through a Ruby API.
6
6
 
7
- The second, `AWS::StackOutput`, gives you access to the Cloud Formation Outputs you define in your CFN template given a template name.
7
+ The second, `AWS::StackOutput`, gives you access to the Cloud Formation Outputs you define in your CFN template given a template name. Usage of `AWS::StackOuput` requires installing and requiring the CloudFormation SDK.
8
8
 
9
9
  ## Installation
10
10
 
@@ -43,14 +43,12 @@ puts AWS::Instance.dynamic(path: 'instance-identity/document').account_id
43
43
 
44
44
  This has the added benefit of reducing the number of HTTP calls even further if needed/desired. For instance `AWS::Instance.metadata.instance_id`
45
45
  will make 2 calls, 1 for `/meta-data` and another for `meta-data/instance-id`, where `AWS::Instance.metadata(path: 'instance-id')`
46
- will only make a single call to `/meta-data/instance-id`.
46
+ will only make a single call to `/meta-data/instance-id`.
47
47
 
48
48
  All calls are cached.
49
49
 
50
50
  Calls are retried upto 10 times in 1 second intervals if a 200 response is not received.
51
51
 
52
-
53
-
54
52
  To return stubbed responses, you can add this to an initializer:
55
53
 
56
54
  ```ruby
@@ -68,7 +66,7 @@ AWS::Metadata.stub_responses = Rails.env =~ /development|test/
68
66
  This will prevent HTTP calls to 169.254.169.254 and return canned results.
69
67
 
70
68
  If you have `stub_responses` set to true, you can create a `aws_identity_stubs.yml` file with the data you want returned.
71
- By default, the gem will look for `aws_identity_stubs.yml` in the `config` directory of a Rails app.
69
+ By default, the gem will look for `aws_identity_stubs.yml` in the `config` directory of a Rails app.
72
70
  If you don't setup your own `aws_identity_stubs.yml`, then the gem will use it's own found in test/fixtures/aws_identity_stubs.yml. You can also use this file as a template for creating your own with custom data.
73
71
  If you are not using this gem in a Rails app, then you need to specify the path in the initializer.
74
72
 
@@ -79,7 +77,7 @@ AWS::Metadata.configure do |config|
79
77
  end
80
78
  ```
81
79
 
82
- or
80
+ or
83
81
 
84
82
  ```ruby
85
83
  AWS::Metadata.stub_responses = Rails.env =~ /development|test/
@@ -129,7 +127,7 @@ AWS::Metadata.configure do |config|
129
127
  end
130
128
  ```
131
129
 
132
- or
130
+ or
133
131
 
134
132
  ```ruby
135
133
  AWS::Metadata.cfn_stack_name = 'your_cfn_stack_name'
@@ -23,6 +23,4 @@ Gem::Specification.new do |spec|
23
23
  spec.add_development_dependency "rake", "~> 10.0"
24
24
  spec.add_development_dependency 'yard'
25
25
  spec.add_development_dependency 'rdiscount'
26
-
27
- spec.add_runtime_dependency 'aws-sdk'
28
26
  end
@@ -1,5 +1,5 @@
1
1
  module AWS
2
2
  module Metadata
3
- VERSION = "0.2.4"
3
+ VERSION = "0.3.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws_metadata
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Evident.io
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-03-08 00:00:00.000000000 Z
11
+ date: 2017-10-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -66,20 +66,6 @@ dependencies:
66
66
  - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
- - !ruby/object:Gem::Dependency
70
- name: aws-sdk
71
- requirement: !ruby/object:Gem::Requirement
72
- requirements:
73
- - - ">="
74
- - !ruby/object:Gem::Version
75
- version: '0'
76
- type: :runtime
77
- prerelease: false
78
- version_requirements: !ruby/object:Gem::Requirement
79
- requirements:
80
- - - ">="
81
- - !ruby/object:Gem::Version
82
- version: '0'
83
69
  description:
84
70
  email:
85
71
  - support@evident.io
@@ -128,7 +114,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
128
114
  version: '0'
129
115
  requirements: []
130
116
  rubyforge_project:
131
- rubygems_version: 2.4.8
117
+ rubygems_version: 2.4.5.1
132
118
  signing_key:
133
119
  specification_version: 4
134
120
  summary: Gem to provide the Instance Metadata and Cloud Formation template outputs.