awspec 0.88.2 → 1.0.0.rc

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: 33d2db756bfe666edddb50bead98fea400cfbe5a
4
- data.tar.gz: '096909723914b170022ec21591cbc72606add578'
3
+ metadata.gz: 53f8e307404a7390cdec389876daced0b65433fd
4
+ data.tar.gz: f01a0ef58c319f16a468cabd863015affc5848c7
5
5
  SHA512:
6
- metadata.gz: d6a77790f78a16d96821e17667e752fdbc2425d851e807a4180dcac1e8c5ff79f7df768b37b8c185fc594f56cf8c83a53030fd1c804aa888b02d1b245d8e54f1
7
- data.tar.gz: 1e8e3eed7993b157df1a63dad92187ff5125cc19875f9d4792614e6326b21e0308fd68021b6fd93d382142dd082a7864c707c7a5996323734bae17c255dd298e
6
+ metadata.gz: 673de57df5ecb7a84c94a2a9d49294893a2c124e1b5f02beb46442bd619f3880fcffff339f902de8a17a8c50caf3221767ab3894d3c845aa261972afd9228d91
7
+ data.tar.gz: 17a77095791d0b74a0d2390f224231c09fec3a0b1199c56ce21569023d1d2d375efac1ccb8b5157c82a51462886ea95d3a301816aa9774dac428a207878c05bc
@@ -1,6 +1,15 @@
1
1
  AllCops:
2
2
  TargetRubyVersion: 2.1
3
3
 
4
+ Layout/IndentHeredoc:
5
+ Enabled: false
6
+
7
+ Layout/MultilineOperationIndentation:
8
+ Enabled: false
9
+
10
+ Layout/MultilineMethodCallBraceLayout:
11
+ Enabled: false
12
+
4
13
  Lint/HandleExceptions:
5
14
  Enabled: false
6
15
 
@@ -56,12 +65,6 @@ Style/MethodMissing:
56
65
  Style/MutableConstant:
57
66
  Enabled: false
58
67
 
59
- Style/MultilineOperationIndentation:
60
- Enabled: false
61
-
62
- Style/MultilineMethodCallBraceLayout:
63
- Enabled: false
64
-
65
68
  Style/NumericLiteralPrefix:
66
69
  Enabled: false
67
70
 
@@ -85,3 +88,6 @@ Style/SymbolProc:
85
88
 
86
89
  Style/BracesAroundHashParameters:
87
90
  Enabled: false
91
+
92
+ Style/YodaCondition:
93
+ Enabled: false
@@ -1,8 +1,8 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 2.4.1
4
- - 2.3.4
5
- - 2.2.7
3
+ - 2.4.2
4
+ - 2.3.5
5
+ - 2.2.8
6
6
  - 2.1.10
7
7
 
8
8
  before_install:
@@ -1,4 +1,5 @@
1
1
  # coding: utf-8
2
+
2
3
  lib = File.expand_path('../lib', __FILE__)
3
4
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
5
  require 'awspec/version'
@@ -20,17 +21,17 @@ Gem::Specification.new do |spec|
20
21
  spec.require_paths = ['lib']
21
22
 
22
23
  spec.required_ruby_version = '>= 2.1'
24
+ spec.add_runtime_dependency 'aws-sdk', '~> 3'
25
+ spec.add_runtime_dependency 'awsecrets', '~> 1'
26
+ spec.add_runtime_dependency 'dry-inflector'
27
+ spec.add_runtime_dependency 'ipaddress'
23
28
  spec.add_runtime_dependency 'rspec', '~> 3.0'
24
29
  spec.add_runtime_dependency 'rspec-its'
25
- spec.add_runtime_dependency 'aws-sdk', '>= 2.2', '< 2.11'
26
- spec.add_runtime_dependency 'awsecrets', '~> 1.14'
27
- spec.add_runtime_dependency 'thor'
28
- spec.add_runtime_dependency 'activesupport', '~> 4.0'
29
30
  spec.add_runtime_dependency 'term-ansicolor'
30
- spec.add_runtime_dependency 'ipaddress'
31
+ spec.add_runtime_dependency 'thor'
31
32
  spec.add_development_dependency 'bundler', '~> 1.9'
32
- spec.add_development_dependency 'rake', '~> 12.0'
33
- spec.add_development_dependency 'rubocop', '~> 0.47.0'
34
33
  spec.add_development_dependency 'octorelease'
35
34
  spec.add_development_dependency 'pry'
35
+ spec.add_development_dependency 'rake', '~> 12.0'
36
+ spec.add_development_dependency 'rubocop', '~> 0.49.0'
36
37
  end
@@ -935,7 +935,7 @@ end
935
935
  ```
936
936
 
937
937
 
938
- ### its(:container_instance_arn), its(:ec2_instance_id), its(:version), its(:version_info), its(:status), its(:agent_connected), its(:running_tasks_count), its(:pending_tasks_count), its(:agent_update_status), its(:attributes), its(:registered_at)
938
+ ### its(:container_instance_arn), its(:ec2_instance_id), its(:version), its(:version_info), its(:status), its(:agent_connected), its(:running_tasks_count), its(:pending_tasks_count), its(:agent_update_status), its(:attributes), its(:registered_at), its(:attachments)
939
939
  ## <a name="ecs_service">ecs_service</a>
940
940
 
941
941
  ECS Service resource type.
@@ -957,7 +957,7 @@ describe ecs_service('my-ecs-service') do
957
957
  end
958
958
  ```
959
959
 
960
- ### its(:service_arn), its(:service_name), its(:cluster_arn), its(:load_balancers), its(:status), its(:desired_count), its(:running_count), its(:pending_count), its(:task_definition), its(:role_arn), its(:created_at), its(:placement_constraints), its(:placement_strategy)
960
+ ### its(:service_arn), its(:service_name), its(:cluster_arn), its(:load_balancers), its(:status), its(:desired_count), its(:running_count), its(:pending_count), its(:task_definition), its(:role_arn), its(:created_at), its(:placement_constraints), its(:placement_strategy), its(:network_configuration)
961
961
  ## <a name="ecs_task_definition">ecs_task_definition</a>
962
962
 
963
963
  ECS Task Definition resource type.
@@ -2065,7 +2065,7 @@ ns-890.awsdns-12.com.'
2065
2065
  end
2066
2066
  ```
2067
2067
 
2068
- ### its(:id), its(:name), its(:caller_reference), its(:config), its(:resource_record_set_count)
2068
+ ### its(:id), its(:name), its(:caller_reference), its(:config), its(:resource_record_set_count), its(:linked_service)
2069
2069
  ## <a name="route_table">route_table</a>
2070
2070
 
2071
2071
  RouteTable resource type.
@@ -2,17 +2,17 @@ require 'rubygems'
2
2
  require 'rspec'
3
3
  require 'rspec/its'
4
4
  require 'time'
5
- require 'active_support/inflector'
5
+ require 'dry/inflector'
6
6
  require 'ipaddr'
7
7
  require 'ipaddress'
8
8
  require 'awsecrets'
9
9
  require 'awspec/version'
10
+ require 'awspec/ext'
10
11
  require 'awspec/error'
11
12
  require 'awspec/cli'
12
13
  require 'awspec/stub'
13
14
  require 'awspec/matcher'
14
15
  require 'awspec/helper'
15
- require 'awspec/ext'
16
16
  require 'awspec/generator'
17
17
  require 'awspec/toolbox'
18
18
  require 'awspec/resource_reader'
@@ -1,3 +1,4 @@
1
+ require 'awspec/ext/array'
1
2
  require 'awspec/ext/hash'
3
+ require 'awspec/ext/string'
2
4
  require 'awspec/ext/struct'
3
- require 'awspec/ext/array'
@@ -0,0 +1,17 @@
1
+ class String
2
+ def camelize
3
+ Dry::Inflector.new.camelize(self)
4
+ end
5
+
6
+ def pluralize
7
+ Dry::Inflector.new.pluralize(self)
8
+ end
9
+
10
+ def underscore
11
+ Dry::Inflector.new.underscore(self)
12
+ end
13
+
14
+ def demodulize
15
+ Dry::Inflector.new.demodulize(self)
16
+ end
17
+ end
@@ -9,8 +9,7 @@ module Awspec
9
9
  raise CalledMethodInBlackList, "Method call #{name.inspect} is black-listed"
10
10
  end
11
11
  attr = delegate_to.send(name)
12
- case attr
13
- when Aws::Resources::Resource
12
+ if !attr.is_a?(Struct) && attr.class.name.match(/^Aws::/)
14
13
  ResourceReader.new(attr)
15
14
  else
16
15
  attr
@@ -1,3 +1,3 @@
1
1
  module Awspec
2
- VERSION = '0.88.2'
2
+ VERSION = '1.0.0.rc'
3
3
  end
metadata CHANGED
@@ -1,31 +1,45 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: awspec
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.88.2
4
+ version: 1.0.0.rc
5
5
  platform: ruby
6
6
  authors:
7
7
  - k1LoW
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-11-10 00:00:00.000000000 Z
11
+ date: 2017-11-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: rspec
14
+ name: aws-sdk
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '3.0'
19
+ version: '3'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '3.0'
26
+ version: '3'
27
27
  - !ruby/object:Gem::Dependency
28
- name: rspec-its
28
+ name: awsecrets
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '1'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '1'
41
+ - !ruby/object:Gem::Dependency
42
+ name: dry-inflector
29
43
  requirement: !ruby/object:Gem::Requirement
30
44
  requirements:
31
45
  - - ">="
@@ -39,41 +53,35 @@ dependencies:
39
53
  - !ruby/object:Gem::Version
40
54
  version: '0'
41
55
  - !ruby/object:Gem::Dependency
42
- name: aws-sdk
56
+ name: ipaddress
43
57
  requirement: !ruby/object:Gem::Requirement
44
58
  requirements:
45
59
  - - ">="
46
60
  - !ruby/object:Gem::Version
47
- version: '2.2'
48
- - - "<"
49
- - !ruby/object:Gem::Version
50
- version: '2.11'
61
+ version: '0'
51
62
  type: :runtime
52
63
  prerelease: false
53
64
  version_requirements: !ruby/object:Gem::Requirement
54
65
  requirements:
55
66
  - - ">="
56
67
  - !ruby/object:Gem::Version
57
- version: '2.2'
58
- - - "<"
59
- - !ruby/object:Gem::Version
60
- version: '2.11'
68
+ version: '0'
61
69
  - !ruby/object:Gem::Dependency
62
- name: awsecrets
70
+ name: rspec
63
71
  requirement: !ruby/object:Gem::Requirement
64
72
  requirements:
65
73
  - - "~>"
66
74
  - !ruby/object:Gem::Version
67
- version: '1.14'
75
+ version: '3.0'
68
76
  type: :runtime
69
77
  prerelease: false
70
78
  version_requirements: !ruby/object:Gem::Requirement
71
79
  requirements:
72
80
  - - "~>"
73
81
  - !ruby/object:Gem::Version
74
- version: '1.14'
82
+ version: '3.0'
75
83
  - !ruby/object:Gem::Dependency
76
- name: thor
84
+ name: rspec-its
77
85
  requirement: !ruby/object:Gem::Requirement
78
86
  requirements:
79
87
  - - ">="
@@ -86,20 +94,6 @@ dependencies:
86
94
  - - ">="
87
95
  - !ruby/object:Gem::Version
88
96
  version: '0'
89
- - !ruby/object:Gem::Dependency
90
- name: activesupport
91
- requirement: !ruby/object:Gem::Requirement
92
- requirements:
93
- - - "~>"
94
- - !ruby/object:Gem::Version
95
- version: '4.0'
96
- type: :runtime
97
- prerelease: false
98
- version_requirements: !ruby/object:Gem::Requirement
99
- requirements:
100
- - - "~>"
101
- - !ruby/object:Gem::Version
102
- version: '4.0'
103
97
  - !ruby/object:Gem::Dependency
104
98
  name: term-ansicolor
105
99
  requirement: !ruby/object:Gem::Requirement
@@ -115,7 +109,7 @@ dependencies:
115
109
  - !ruby/object:Gem::Version
116
110
  version: '0'
117
111
  - !ruby/object:Gem::Dependency
118
- name: ipaddress
112
+ name: thor
119
113
  requirement: !ruby/object:Gem::Requirement
120
114
  requirements:
121
115
  - - ">="
@@ -143,61 +137,61 @@ dependencies:
143
137
  - !ruby/object:Gem::Version
144
138
  version: '1.9'
145
139
  - !ruby/object:Gem::Dependency
146
- name: rake
140
+ name: octorelease
147
141
  requirement: !ruby/object:Gem::Requirement
148
142
  requirements:
149
- - - "~>"
143
+ - - ">="
150
144
  - !ruby/object:Gem::Version
151
- version: '12.0'
145
+ version: '0'
152
146
  type: :development
153
147
  prerelease: false
154
148
  version_requirements: !ruby/object:Gem::Requirement
155
149
  requirements:
156
- - - "~>"
150
+ - - ">="
157
151
  - !ruby/object:Gem::Version
158
- version: '12.0'
152
+ version: '0'
159
153
  - !ruby/object:Gem::Dependency
160
- name: rubocop
154
+ name: pry
161
155
  requirement: !ruby/object:Gem::Requirement
162
156
  requirements:
163
- - - "~>"
157
+ - - ">="
164
158
  - !ruby/object:Gem::Version
165
- version: 0.47.0
159
+ version: '0'
166
160
  type: :development
167
161
  prerelease: false
168
162
  version_requirements: !ruby/object:Gem::Requirement
169
163
  requirements:
170
- - - "~>"
164
+ - - ">="
171
165
  - !ruby/object:Gem::Version
172
- version: 0.47.0
166
+ version: '0'
173
167
  - !ruby/object:Gem::Dependency
174
- name: octorelease
168
+ name: rake
175
169
  requirement: !ruby/object:Gem::Requirement
176
170
  requirements:
177
- - - ">="
171
+ - - "~>"
178
172
  - !ruby/object:Gem::Version
179
- version: '0'
173
+ version: '12.0'
180
174
  type: :development
181
175
  prerelease: false
182
176
  version_requirements: !ruby/object:Gem::Requirement
183
177
  requirements:
184
- - - ">="
178
+ - - "~>"
185
179
  - !ruby/object:Gem::Version
186
- version: '0'
180
+ version: '12.0'
187
181
  - !ruby/object:Gem::Dependency
188
- name: pry
182
+ name: rubocop
189
183
  requirement: !ruby/object:Gem::Requirement
190
184
  requirements:
191
- - - ">="
185
+ - - "~>"
192
186
  - !ruby/object:Gem::Version
193
- version: '0'
187
+ version: 0.49.0
194
188
  type: :development
195
189
  prerelease: false
196
190
  version_requirements: !ruby/object:Gem::Requirement
197
191
  requirements:
198
- - - ">="
192
+ - - "~>"
199
193
  - !ruby/object:Gem::Version
200
- version: '0'
194
+ version: 0.49.0
201
195
  description: RSpec tests for your AWS resources.
202
196
  email:
203
197
  - k1lowxb@gmail.com
@@ -286,6 +280,7 @@ files:
286
280
  - lib/awspec/ext.rb
287
281
  - lib/awspec/ext/array.rb
288
282
  - lib/awspec/ext/hash.rb
283
+ - lib/awspec/ext/string.rb
289
284
  - lib/awspec/ext/struct.rb
290
285
  - lib/awspec/generator.rb
291
286
  - lib/awspec/generator/doc/type.rb
@@ -590,12 +585,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
590
585
  version: '2.1'
591
586
  required_rubygems_version: !ruby/object:Gem::Requirement
592
587
  requirements:
593
- - - ">="
588
+ - - ">"
594
589
  - !ruby/object:Gem::Version
595
- version: '0'
590
+ version: 1.3.1
596
591
  requirements: []
597
592
  rubyforge_project:
598
- rubygems_version: 2.5.2
593
+ rubygems_version: 2.6.13
599
594
  signing_key:
600
595
  specification_version: 4
601
596
  summary: RSpec tests for your AWS resources.