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 +4 -4
- data/lib/generators/mononoke/init_generator.rb +9 -8
- data/lib/mononoke/version.rb +1 -1
- data/pkg/mononoke-0.0.2.gem +0 -0
- metadata +2 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 24408a4f0eb97fefdf241fc782c98e15c2d8e55b10359b7bfa0ee4fb40fb868c
|
|
4
|
+
data.tar.gz: d7e594b6e2ab55a630e9455e2c443c82aec184dbfd00b6f73fbfe51641c0f64f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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.
|
|
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
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
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
|
data/lib/mononoke/version.rb
CHANGED
|
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.
|
|
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
|