furikake 0.1.9 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
data/furikake.gemspec CHANGED
@@ -21,8 +21,8 @@ Gem::Specification.new do |spec|
21
21
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
22
22
  spec.require_paths = ["lib"]
23
23
 
24
- spec.add_development_dependency "bundler", "~> 1.16"
25
- spec.add_development_dependency "rake", "~> 10.0"
24
+ spec.add_development_dependency "bundler", ">= 2.2.10"
25
+ spec.add_development_dependency "rake", "~> 13.0"
26
26
  spec.add_development_dependency "rspec", "~> 3.0"
27
27
  spec.add_development_dependency "octorelease"
28
28
 
@@ -3,6 +3,7 @@
3
3
  module Furikake
4
4
  class Monitor < Report
5
5
  def initialize(options)
6
+ super(true)
6
7
  $stdout.sync = true
7
8
  @logger = Logger.new($stdout)
8
9
  @flag_int = false
@@ -29,7 +29,7 @@ module Furikake
29
29
  rds_infos = []
30
30
  rds.describe_db_instances.db_instances.map(&:to_h).each do |i|
31
31
  instance = []
32
- instance << i[:db_cluster_identifier]
32
+ instance << (!i[:db_cluster_identifier].nil? ? i[:db_cluster_identifier] : 'N/A')
33
33
  instance << i[:db_instance_identifier]
34
34
  instance << i[:db_instance_class]
35
35
  instance << i[:engine]
@@ -0,0 +1,52 @@
1
+ Aws.config[:rds] = {
2
+ stub_responses: {
3
+ describe_db_instances: {
4
+ db_instances: [
5
+ {
6
+ db_instance_identifier: 'my-rds',
7
+ db_instance_arn: 'arn:aws:rds:ap-northeast-1a:123456789012:db:my-rds',
8
+ db_instance_status: 'available',
9
+ db_instance_class: 'db.t2.medium',
10
+ availability_zone: 'ap-northeast-1a',
11
+ multi_az: false,
12
+ endpoint: {
13
+ address: 'my-rds-instance-endpoint'
14
+ },
15
+ engine: 'mysql'
16
+ },
17
+ {
18
+ db_cluster_identifier: 'my-cluster',
19
+ db_instance_identifier: 'my-cluster-instnace',
20
+ db_instance_arn: 'arn:aws:rds:ap-northeast-1a:123456789012:db:my-cluster-instance',
21
+ db_instance_status: 'available',
22
+ db_instance_class: 'db.t2.medium',
23
+ availability_zone: 'ap-northeast-1a',
24
+ multi_az: false,
25
+ endpoint: {
26
+ address: 'my-cluster-endpoint'
27
+ },
28
+ engine: 'aurora'
29
+ }
30
+ ]
31
+ },
32
+ describe_db_clusters: {
33
+ db_clusters: [
34
+ {
35
+ db_cluster_identifier: 'my-cluster',
36
+ endpoint: 'my-cluster-endpoint',
37
+ reader_endpoint: 'my-cluster-reader-endpoint',
38
+ db_cluster_members: [
39
+ {
40
+ db_instance_identifier: 'my-cluster-writer-instance',
41
+ is_cluster_writer: true
42
+ },
43
+ {
44
+ db_instance_identifier: 'my-cluster-reader-instance',
45
+ is_cluster_writer: false
46
+ }
47
+ ]
48
+ }
49
+ ]
50
+ }
51
+ }
52
+ }
@@ -1,3 +1,3 @@
1
1
  module Furikake
2
- VERSION = '0.1.9'
2
+ VERSION = '0.2.3'
3
3
  end
metadata CHANGED
@@ -1,43 +1,43 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: furikake
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.9
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - inokappa
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-12-01 00:00:00.000000000 Z
11
+ date: 2021-08-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '1.16'
19
+ version: 2.2.10
20
20
  type: :development
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: '1.16'
26
+ version: 2.2.10
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '10.0'
33
+ version: '13.0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '10.0'
40
+ version: '13.0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rspec
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -132,9 +132,9 @@ extensions: []
132
132
  extra_rdoc_files: []
133
133
  files:
134
134
  - ".furikake.sample.yml"
135
+ - ".github/workflows/ci.yml"
135
136
  - ".gitignore"
136
137
  - ".rspec"
137
- - ".travis.yml"
138
138
  - Gemfile
139
139
  - Gemfile.lock
140
140
  - LICENSE.txt
@@ -166,6 +166,7 @@ files:
166
166
  - lib/furikake/resources/security_group.rb
167
167
  - lib/furikake/resources/stub.rb
168
168
  - lib/furikake/resources/stub/ec2.rb
169
+ - lib/furikake/resources/stub/rds.rb
169
170
  - lib/furikake/resources/vpc.rb
170
171
  - lib/furikake/resources/vpc_endpoint.rb
171
172
  - lib/furikake/setup.rb
@@ -189,8 +190,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
189
190
  - !ruby/object:Gem::Version
190
191
  version: '0'
191
192
  requirements: []
192
- rubyforge_project:
193
- rubygems_version: 2.7.6
193
+ rubygems_version: 3.0.3
194
194
  signing_key:
195
195
  specification_version: 4
196
196
  summary: It is a command line tool to register your resources in Wiki page (Markdown
data/.travis.yml DELETED
@@ -1,8 +0,0 @@
1
- sudo: false
2
- language: ruby
3
- rvm:
4
- - 2.5.1
5
- - 2.4.3
6
- - 2.3.5
7
- - 2.2.8
8
- before_install: gem install bundler -v 1.16.2