awspec 1.18.1 → 1.18.2

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: caa6a43b5cba1728d82811cc636ba64e94dd1d524dd35c719fa09663d8484c6c
4
- data.tar.gz: e98167e9eaac8f5620a56b5f4b49e6495f116ad377a634e0fd2fdceb6996adc2
3
+ metadata.gz: 733898476ad809cb9ba0e2b92ca1037cdff5293cce4518b63eba160b5efa10cd
4
+ data.tar.gz: e224b157c145b236495857c21d0895f892724bd7bb61cee81e924ac9c7c58420
5
5
  SHA512:
6
- metadata.gz: 66a145fcc87b19afa3fc52ee2cb1f06b71c6d8b98708cfa23bdf1d90e83cc87f26e22288577c97804203461c029d49324ca58c97b7f060db28f1dd71826043a7
7
- data.tar.gz: 7f1788ca6a3b1e86bd8377c5b342687ace58ad7ecd0764c020a594f5b30c90a57279b0988b8c819c4dfdbb4bb92cbf6266397d95738b69644a12da1a58fcfadf
6
+ metadata.gz: 0f1e654eefddc6f84527661c13e1bd89dc27fd28434c3fbbbfb4672d4d5ccd89283a71b9d99cc789a02be0c31b721e006047c7a0438f79a5144255e0356ba678
7
+ data.tar.gz: 075ea1941cc6420619bbdfa2de120d4a84853c001b8dc0f4d19ccee92ac6bf5d0f6817738d032172df7c214aa95f83d267bc78c699a89ce3c845b6c503865ac8
data/Rakefile CHANGED
@@ -57,3 +57,8 @@ if defined?(RSpec)
57
57
  RuboCop::RakeTask.new
58
58
  end
59
59
  end
60
+
61
+ task :generate_docs do
62
+ docs = Awspec::Generator::Doc::Type.generate_doc
63
+ File.write('doc/resource_types.md', docs + "\n")
64
+ end
@@ -6,7 +6,7 @@
6
6
  2. Generate template files (`bundle exec bin/toolbox template redshift`)
7
7
  3. Fill files with code.
8
8
  4. `bundle update` to update gems.
9
- 5. Generate [doc/resource_types.md](doc/resource_types.md) (`bundle exec bin/toolbox docgen > doc/resource_types.md`)
9
+ 5. Generate [doc/resource_types.md](resource_types.md) (`bundle exec rake generate_docs`)
10
10
  6. Run test (`bundle exec rake spec`)
11
11
  7. Push to the branch (`git push origin add-type-redshift`)
12
12
  8. Create a new Pull Request
@@ -15,7 +15,7 @@
15
15
 
16
16
  #### CI Failed 'Awspec::Generator::Doc::Type generate_doc output should be the same as doc/resource_types.md'
17
17
 
18
- Maybe, your `aws-sdk-ruby` is not latest. Please exec `bundle update` and `bundle exec bin/toolbox docgen > doc/resource_types.md`.
18
+ Maybe, your `aws-sdk-ruby` is not latest. Please exec `bundle update` and `bundle exec rake generate_docs`.
19
19
 
20
20
  ( `aws-sdk-ruby` is often updated. )
21
21
 
@@ -24,7 +24,7 @@ Maybe, your `aws-sdk-ruby` is not latest. Please exec `bundle update` and `bundl
24
24
  1. Create your feature branch (`git checkout -b add-type-cf-limit`)
25
25
  2. Generate template files (`bundle exec bin/toolbox template cloudformation_account_attributes -a`) **with -a option**
26
26
  3. Fill files with code.
27
- 4. Generate [doc/resource_types.md](doc/resource_types.md) (`bundle exec bin/toolbox docgen > doc/resource_types.md`)
27
+ 4. Generate [doc/resource_types.md](resource_types.md) (`bundle exec rake generate_docs`)
28
28
  5. Run test (`bundle exec rake spec`)
29
29
  6. Push to the branch (`git push origin add-type-cf-limit`)
30
30
  7. Create a new Pull Request
@@ -1319,7 +1319,7 @@ describe eks('my-eks') do
1319
1319
  end
1320
1320
  ```
1321
1321
 
1322
- ### its(:name), its(:arn), its(:created_at), its(:version), its(:endpoint), its(:role_arn), its(:logging), its(:status), its(:client_request_token), its(:platform_version)
1322
+ ### its(:name), its(:arn), its(:created_at), its(:version), its(:endpoint), its(:role_arn), its(:logging), its(:identity), its(:status), its(:client_request_token), its(:platform_version), its(:tags)
1323
1323
  ## <a name="elasticache">elasticache</a>
1324
1324
 
1325
1325
  Elasticache resource type.
@@ -2296,7 +2296,7 @@ describe mq('my-mq') do
2296
2296
  end
2297
2297
  ```
2298
2298
 
2299
- ### its(:vpc_id), its(:auto_minor_version_upgrade), its(:broker_arn), its(:broker_id), its(:broker_name), its(:broker_state), its(:created), its(:deployment_mode), its(:encryption_options), its(:engine_type), its(:engine_version), its(:host_instance_type), its(:pending_engine_version), its(:publicly_accessible), its(:security_groups), its(:subnet_ids)
2299
+ ### its(:vpc_id), its(:auto_minor_version_upgrade), its(:broker_arn), its(:broker_id), its(:broker_name), its(:broker_state), its(:created), its(:deployment_mode), its(:encryption_options), its(:engine_type), its(:engine_version), its(:host_instance_type), its(:pending_engine_version), its(:pending_security_groups), its(:pending_host_instance_type), its(:publicly_accessible), its(:security_groups), its(:subnet_ids)
2300
2300
  ## <a name="nat_gateway">nat_gateway</a>
2301
2301
 
2302
2302
  NatGateway resource type.
@@ -2856,7 +2856,7 @@ describe redshift('my-redshift') do
2856
2856
  end
2857
2857
  ```
2858
2858
 
2859
- ### its(:vpc_id), its(:cluster_identifier), its(:node_type), its(:cluster_status), its(:cluster_availability_status), its(:modify_status), its(:master_username), its(:db_name), its(:endpoint), its(:cluster_create_time), its(:automated_snapshot_retention_period), its(:manual_snapshot_retention_period), its(:cluster_security_groups), its(:cluster_subnet_group_name), its(:vpc_id), its(:availability_zone), its(:preferred_maintenance_window), its(:pending_modified_values), its(:cluster_version), its(:allow_version_upgrade), its(:number_of_nodes), its(:publicly_accessible), its(:encrypted), its(:restore_status), its(:data_transfer_progress), its(:hsm_status), its(:cluster_snapshot_copy_status), its(:cluster_public_key), its(:cluster_nodes), its(:elastic_ip_status), its(:cluster_revision_number), its(:kms_key_id), its(:enhanced_vpc_routing), its(:iam_roles), its(:pending_actions), its(:maintenance_track_name), its(:elastic_resize_number_of_node_options), its(:deferred_maintenance_windows), its(:snapshot_schedule_identifier), its(:snapshot_schedule_state), its(:expected_next_snapshot_schedule_time), its(:expected_next_snapshot_schedule_time_status), its(:resize_info)
2859
+ ### its(:vpc_id), its(:cluster_identifier), its(:node_type), its(:cluster_status), its(:cluster_availability_status), its(:modify_status), its(:master_username), its(:db_name), its(:endpoint), its(:cluster_create_time), its(:automated_snapshot_retention_period), its(:manual_snapshot_retention_period), its(:cluster_security_groups), its(:cluster_subnet_group_name), its(:vpc_id), its(:availability_zone), its(:preferred_maintenance_window), its(:pending_modified_values), its(:cluster_version), its(:allow_version_upgrade), its(:number_of_nodes), its(:publicly_accessible), its(:encrypted), its(:restore_status), its(:data_transfer_progress), its(:hsm_status), its(:cluster_snapshot_copy_status), its(:cluster_public_key), its(:cluster_nodes), its(:elastic_ip_status), its(:cluster_revision_number), its(:kms_key_id), its(:enhanced_vpc_routing), its(:iam_roles), its(:pending_actions), its(:maintenance_track_name), its(:elastic_resize_number_of_node_options), its(:deferred_maintenance_windows), its(:snapshot_schedule_identifier), its(:snapshot_schedule_state), its(:expected_next_snapshot_schedule_time), its(:expected_next_snapshot_schedule_time_status), its(:next_maintenance_window_start_time), its(:resize_info)
2860
2860
  ## <a name="redshift_cluster_parameter_group">redshift_cluster_parameter_group</a>
2861
2861
 
2862
2862
  RedshiftClusterParameterGroup resource type.
@@ -16,8 +16,10 @@ module Awspec::Type
16
16
  name = name.gsub(/\*/, '\\\052') # wildcard support
17
17
 
18
18
  record_sets = resource_via_client_record_sets.select { |record| record.name == name }
19
+ return false if record_sets.empty?
20
+
19
21
  # Check if the given record is registered regardless of type and value
20
- return !record_sets.empty? if type.nil? && value.nil? && options.nil?
22
+ return true if type.nil? && value.nil? && options.nil?
21
23
 
22
24
  record_sets.select! { |record_set| record_set.type.casecmp(type) == 0 }
23
25
  return !record_sets.empty? if value.nil? && options.nil? || value.nil? && options.empty?
@@ -1,3 +1,3 @@
1
1
  module Awspec
2
- VERSION = '1.18.1'
2
+ VERSION = '1.18.2'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: awspec
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.18.1
4
+ version: 1.18.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - k1LoW
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-08-18 00:00:00.000000000 Z
11
+ date: 2019-10-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk
@@ -719,8 +719,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
719
719
  - !ruby/object:Gem::Version
720
720
  version: '0'
721
721
  requirements: []
722
- rubyforge_project:
723
- rubygems_version: 2.7.6
722
+ rubygems_version: 3.0.3
724
723
  signing_key:
725
724
  specification_version: 4
726
725
  summary: RSpec tests for your AWS resources.