cloudformation-ruby-dsl 1.2.1 → 1.2.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
  SHA1:
3
- metadata.gz: 9a74e2b70195129a44e2605f4fc8c5291d34abb0
4
- data.tar.gz: 1e51275b59645a9d6106912c33ace46d917e8ffc
3
+ metadata.gz: 5e50cdd68c46e52a0be5b5422e934f9b1eeb6502
4
+ data.tar.gz: 053f917ecc865cd32527e143453d6cf3f329164b
5
5
  SHA512:
6
- metadata.gz: e63740f584fbedb37fdb6c0187e5561ad025e063c58a0fb646b4600d48a0ddc60bc5520141e832bb5e46cbe7e0d97c7bd9da9ce370f9989c7f72c195d5539696
7
- data.tar.gz: 339b178f440f20ad06ad3467356e11a81b37c65e01c57f2c01fbefb9c852f5c130b5822f657743dd54f127afa1d022d9d5212cdde1423efd7117ea63f2ef57b0
6
+ metadata.gz: 497a22f6ddef6207e65a13406905afafaa20f11a4c9d092b4af7c6957698ba85334bcd71b08552e90c8348df1eeaf5472a8205b902ccade737ef7cbdee321602
7
+ data.tar.gz: a699dff512bcc4112720ba0634db1fba5593c54980f45ef9802bc640825887efee6503dd8b86f862e402bc95f49b6fdf40d92e7d46e81492c1cef3dcf6b5902b
@@ -35,7 +35,7 @@ Gem::Specification.new do |gem|
35
35
  gem.add_runtime_dependency 'detabulator'
36
36
  gem.add_runtime_dependency 'json'
37
37
  gem.add_runtime_dependency 'bundler'
38
- gem.add_runtime_dependency 'aws-sdk'
38
+ gem.add_runtime_dependency 'aws-sdk', '2.4.1'
39
39
  gem.add_runtime_dependency 'diffy'
40
40
  gem.add_runtime_dependency 'highline'
41
41
  gem.add_runtime_dependency 'rake'
@@ -15,7 +15,7 @@
15
15
  module Cfn
16
16
  module Ruby
17
17
  module Dsl
18
- VERSION = "1.2.1"
18
+ VERSION = "1.2.2"
19
19
  end
20
20
  end
21
21
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cloudformation-ruby-dsl
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shawn Smith
@@ -15,104 +15,104 @@ authors:
15
15
  autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
- date: 2016-04-04 00:00:00.000000000 Z
18
+ date: 2016-07-26 00:00:00.000000000 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: detabulator
22
22
  requirement: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - '>='
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  type: :runtime
28
28
  prerelease: false
29
29
  version_requirements: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  - !ruby/object:Gem::Dependency
35
35
  name: json
36
36
  requirement: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '>='
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  type: :runtime
42
42
  prerelease: false
43
43
  version_requirements: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - '>='
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  - !ruby/object:Gem::Dependency
49
49
  name: bundler
50
50
  requirement: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - '>='
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  type: :runtime
56
56
  prerelease: false
57
57
  version_requirements: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - '>='
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0'
62
62
  - !ruby/object:Gem::Dependency
63
63
  name: aws-sdk
64
64
  requirement: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - '>='
66
+ - - '='
67
67
  - !ruby/object:Gem::Version
68
- version: '0'
68
+ version: 2.4.1
69
69
  type: :runtime
70
70
  prerelease: false
71
71
  version_requirements: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - '>='
73
+ - - '='
74
74
  - !ruby/object:Gem::Version
75
- version: '0'
75
+ version: 2.4.1
76
76
  - !ruby/object:Gem::Dependency
77
77
  name: diffy
78
78
  requirement: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - '>='
80
+ - - ">="
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
83
  type: :runtime
84
84
  prerelease: false
85
85
  version_requirements: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - '>='
87
+ - - ">="
88
88
  - !ruby/object:Gem::Version
89
89
  version: '0'
90
90
  - !ruby/object:Gem::Dependency
91
91
  name: highline
92
92
  requirement: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - '>='
94
+ - - ">="
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
97
  type: :runtime
98
98
  prerelease: false
99
99
  version_requirements: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - '>='
101
+ - - ">="
102
102
  - !ruby/object:Gem::Version
103
103
  version: '0'
104
104
  - !ruby/object:Gem::Dependency
105
105
  name: rake
106
106
  requirement: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - '>='
108
+ - - ">="
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0'
111
111
  type: :runtime
112
112
  prerelease: false
113
113
  version_requirements: !ruby/object:Gem::Requirement
114
114
  requirements:
115
- - - '>='
115
+ - - ">="
116
116
  - !ruby/object:Gem::Version
117
117
  version: '0'
118
118
  description: Ruby DSL library that provides a wrapper around the CloudFormation.
@@ -126,18 +126,16 @@ email:
126
126
  - Jona.Fenocchi@bazaarvoice.com
127
127
  - Tony.Cui@bazaarvoice.com
128
128
  executables:
129
- - aws-sdk-patch
130
129
  - cfntemplate-to-ruby
131
130
  extensions: []
132
131
  extra_rdoc_files: []
133
132
  files:
134
- - .gitignore
133
+ - ".gitignore"
135
134
  - Gemfile
136
135
  - LICENSE
137
136
  - OWNERS
138
137
  - README.md
139
138
  - Rakefile
140
- - bin/aws-sdk-patch
141
139
  - bin/cfntemplate-to-ruby
142
140
  - cloudformation-ruby-dsl.gemspec
143
141
  - docs/Contributing.md
@@ -160,7 +158,6 @@ files:
160
158
  - lib/cloudformation-ruby-dsl/spotprice.rb
161
159
  - lib/cloudformation-ruby-dsl/table.rb
162
160
  - lib/cloudformation-ruby-dsl/version.rb
163
- - share/aws-sdk-patch.sh
164
161
  homepage: http://github.com/bazaarvoice/cloudformation-ruby-dsl
165
162
  licenses: []
166
163
  metadata: {}
@@ -171,17 +168,17 @@ require_paths:
171
168
  - bin
172
169
  required_ruby_version: !ruby/object:Gem::Requirement
173
170
  requirements:
174
- - - '>='
171
+ - - ">="
175
172
  - !ruby/object:Gem::Version
176
173
  version: '0'
177
174
  required_rubygems_version: !ruby/object:Gem::Requirement
178
175
  requirements:
179
- - - '>='
176
+ - - ">="
180
177
  - !ruby/object:Gem::Version
181
178
  version: '0'
182
179
  requirements: []
183
180
  rubyforge_project:
184
- rubygems_version: 2.0.14
181
+ rubygems_version: 2.5.1
185
182
  signing_key:
186
183
  specification_version: 4
187
184
  summary: Ruby DSL library that provides a wrapper around the CloudFormation. Written
data/bin/aws-sdk-patch DELETED
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # Ruby shell to run bash patch file
3
- system( File.join( File.dirname(__FILE__) + "/../share/aws-sdk-patch.sh " + ARGV.join( ) ) )
@@ -1,108 +0,0 @@
1
- #!/usr/bin/env bash
2
-
3
- # There is the temporary solution allows to use the Assume Role parameter in aws-ruby-sdk.
4
- # This script contains patch and allows to apply or revert it.
5
-
6
- # Put the patch content to the variable $PATCH
7
- read -r -d '' PATCH <<EOP
8
- 70c70
9
- < @credentials = Credentials.new(
10
- ---
11
- > credentials = Credentials.new(
12
- 74a75,83
13
- > @credentials = if role_arn = profile['role_arn']
14
- > AssumeRoleCredentials.new(
15
- > role_session_name: [*('A'..'Z')].sample(16).join,
16
- > role_arn: role_arn,
17
- > credentials: credentials
18
- > ).credentials
19
- > else
20
- > credentials
21
- > end
22
- 79c88,92
23
- < profile
24
- ---
25
- > if source = profile.delete('source_profile')
26
- > profiles[source].merge(profile)
27
- > else
28
- > profile
29
- > end
30
- EOP
31
-
32
- # Define the target gem and file
33
- GEM_NAME='aws-sdk-core'
34
- FILE_NAME='shared_credentials.rb'
35
-
36
- # Find the latest version of gem file
37
- GEM_FILE=$(gem contents "${GEM_NAME}" | grep "${FILE_NAME}")
38
-
39
- # Define the commands
40
- TEST_COMMAND='echo "${PATCH}" | patch --dry-run --force --silent '"${GEM_FILE} $@"
41
- PATCH_COMMAND='echo "${PATCH}" | patch '"${GEM_FILE} $@"
42
-
43
- # Parse arguments
44
- while [ $# -gt 0 ]
45
- do
46
- case "$1" in
47
- --help|-h|-\?) pod2usage -verbose 1 "$0"; exit 0 ;;
48
- --man) pod2usage -verbose 2 "$0"; exit 0 ;;
49
- --dry-run) shift; echo == Command: ==; echo "$PATCH_COMMAND"; exit 0 ;;
50
- -R|--reverse) shift ;;
51
- *) echo "Unknown option: $1" >&2; exit 2 ;;
52
- esac
53
- done
54
-
55
- eval $TEST_COMMAND && eval $PATCH_COMMAND
56
- exit $?
57
-
58
- __END__
59
-
60
- =pod
61
-
62
- =head1 NAME
63
-
64
- aws-sdk-patch.sh - Apply or revert patch to aws-ruby-sdk to enable the support of Assume roles
65
-
66
- =head1 SYNOPSIS
67
-
68
- aws-sdk-patch.sh [OPTIONS]
69
-
70
- =head1 OPTIONS
71
-
72
- =over 4
73
-
74
- =item B<--help> | B<-h>
75
-
76
- Print the brief help message and exit.
77
-
78
- =item B<--man>
79
-
80
- Print the manual page and exit.
81
-
82
- =item B<-R> | B<--reverse>
83
-
84
- Revert the previously applied patch
85
-
86
- =item B<--dry-run>
87
-
88
- Print the command and results of applying the patches without actually changing any files.
89
-
90
- =back
91
-
92
- =head1 ARGUMENTS
93
-
94
- Arguments are not allowed.
95
-
96
- =head1 DESCRIPTION
97
-
98
- There is the temporary solution allows to use the Assume Role parameter in aws-ruby-sdk. This script contains patch and allows to apply or revert it.
99
-
100
- =head1 SEE ALSO
101
-
102
- GIT PR #1092, https://github.com/aws/aws-sdk-ruby/pull/1092
103
-
104
- =head1 AUTHOR
105
-
106
- Serhiy Suprun <serhiy.suprun@bazaarvoice.com>
107
-
108
- =cut