mononoke 0.0.2 → 0.0.3

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: 061c8fc4e4d77194350bb9efc5fa6dc9c06f227ff799c215dbc6a05365bc8ff2
4
- data.tar.gz: f4c1e51d899f6bad7426f25f6863b9b3bc28e067e9763cebb0d3f28f943f78e8
3
+ metadata.gz: 24408a4f0eb97fefdf241fc782c98e15c2d8e55b10359b7bfa0ee4fb40fb868c
4
+ data.tar.gz: d7e594b6e2ab55a630e9455e2c443c82aec184dbfd00b6f73fbfe51641c0f64f
5
5
  SHA512:
6
- metadata.gz: 686b9ebb095cfe9bcdbb4e248d5842c2df83e05f51e797dc6270d4d5664b15825788594507e888895e4c47d35410d7ea4f2f2ef849ddd54fcfb5d3bd586da33c
7
- data.tar.gz: b8022637444e6aeb92b99e2a393677046369a48fb772e8b3e3c42f8533e945f258ad3cf002de7bdee2c7e33015b8d1da2129be325c879eb3b9de20c55a932b2f
6
+ metadata.gz: 868550bbdabe91923dec0eba0f79a4e03933cdd92527108ae70ba69d4a3fc83c154fc7e670af19315c6e96ce15cbbb0ae16f14a9fc50c0d30e86d30164ce24c1
7
+ data.tar.gz: af91bea5de542110fd3ccc9cee4bddcc77274ef5f47db56311fb32930bd11613dec9595826f9ff8a47b28e69479e05d77357765862d9ba16258610413b5f54e2
@@ -7,7 +7,7 @@ module Mononoke
7
7
  desc 'Generate totoro config file'
8
8
 
9
9
  def copy_config_file
10
- template 'uptime.rb', File.join('config/initializers', 'uptime.yml')
10
+ template 'uptime.rb', File.join('config/initializers', 'uptime.rb')
11
11
  template 'health_check_controller.rb', File.join('app/controllers', 'health_check_controller.rb')
12
12
  append_diagostics_routes unless File.foreach('config/routes.rb').grep(/diagnostics/).present?
13
13
  end
@@ -15,6 +15,7 @@ module Mononoke
15
15
  private
16
16
 
17
17
  def append_diagostics_routes
18
+ p 'Add Diagnostics routes in `configs/routes.rb`'
18
19
  tempfile = File.open('routes.tmp', 'w')
19
20
  f = File.new('config/routes.rb')
20
21
  f.each do |line|
@@ -28,13 +29,13 @@ module Mononoke
28
29
 
29
30
  def diagnostics_str
30
31
  @diagnostics_str ||= <<~FOO
31
- root to: 'health_check#index'
32
- scope '/diagnostics' do
33
- get '/quickhealth', to: 'health_check#quick_health'
34
- get '/health', to: 'health_check#health'
35
- get '/version', to: 'health_check#version'
36
- get '/uptime', to: 'health_check#uptime'
37
- end
32
+ root to: 'health_check#index'
33
+ scope '/diagnostics' do
34
+ get '/quickhealth', to: 'health_check#quick_health'
35
+ get '/health', to: 'health_check#health'
36
+ get '/version', to: 'health_check#version'
37
+ get '/uptime', to: 'health_check#uptime'
38
+ end
38
39
  FOO
39
40
  end
40
41
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Mononoke
4
- VERSION = '0.0.2'
4
+ VERSION = '0.0.3'
5
5
  end
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mononoke
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shu Hui
@@ -74,6 +74,7 @@ files:
74
74
  - mononoke.gemspec
75
75
  - pkg/howl-0.0.1.gem
76
76
  - pkg/mononoke-0.0.1.gem
77
+ - pkg/mononoke-0.0.2.gem
77
78
  - spec/howl_spec.rb
78
79
  - spec/spec_helper.rb
79
80
  homepage: https://github.com/blockchaintech-au/mononoke