servitude 0.3.0 → 0.4.0

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
  SHA1:
3
- metadata.gz: 9d92cd3bbaeb18254224bf3d04c90ef1076d16d6
4
- data.tar.gz: d821dac504ebe7db88da0d37566908f5625b3e48
3
+ metadata.gz: 53cfb7474208ec999ec104ff7f6cbebc5a95cdfc
4
+ data.tar.gz: 5eb37804b51441b9ac8556eb3b587ecb099751a2
5
5
  SHA512:
6
- metadata.gz: 225a9fe42a13c8114c2574596a7a9540ccbc2e3a191e7b2a2fb53335ecf53f03ca8a62db6a4afddc1fc70ddf5470173f2c024d9bfa8bde11acc0de098b003a82
7
- data.tar.gz: 734f32e55b8eb623eca14dad76e552b6ae6ef9c1e757c9bfcdedbbec2ea5677e7d5aa3d631e5b1f1eba12600aa998faf6d52fac538b830008a1be22b636d10ec
6
+ metadata.gz: 5a84f41870b6242178b9ae7fabe6f710965666be7f59dc376508034f206b57d74f1edb597d0bdcb53501dcc39c194de527020c97a946d9b92bc44fe108c90d5c
7
+ data.tar.gz: cf03f89b9c90305ecfe663fe695ce43ef47c9a125511a4df69e76f2cc35452dcd10c4c9778f0ad19d953bbdb303f701912c3f5edfa2e998131910655d57d2aad
@@ -1,3 +1,5 @@
1
+ # coding: utf-8
2
+
1
3
  require 'servitude'
2
4
 
3
5
  module Servitude
@@ -15,15 +17,15 @@ module Servitude
15
17
  module ClassMethods
16
18
 
17
19
  def boot( host_namespace: raise(ArgumentError, 'host_namespace keyword is required'),
18
- app_id: raise(ArgumentError, 'app_id keyword is required'),
19
- app_name: raise(ArgumentError, 'app_name keyword is required'),
20
+ app_id: host_namespace.name.split( '::' ).join( '-' ).downcase,
21
+ app_name: host_namespace.name.split( '::' ).join( ' ' ),
20
22
  company: raise(ArgumentError, 'company keyword is required'),
21
- use_config: raise(ArgumentError, 'use_config keyword is required'),
22
- default_config_path: raise(ArgumentError, 'default_config_path keyword is required'),
23
- default_log_path: raise(ArgumentError, 'default_log_path keyword is required'),
24
- default_pid_path: raise(ArgumentError, 'default_pid_path keyword is required'),
25
- default_thread_count: raise(ArgumentError, 'default_thread_count keyword is required'),
26
- version_copyright: raise(ArgumentError, 'version_copyright keyword is required') )
23
+ use_config: false,
24
+ default_config_path: nil,
25
+ default_log_path: nil,
26
+ default_pid_path: nil,
27
+ default_thread_count: nil,
28
+ version_copyright: "v#{host_namespace::VERSION} Copyright © #{Time.now.year} #{company}" )
27
29
  Servitude::const_set :NS, host_namespace
28
30
 
29
31
  const_set :APP_ID, app_id
@@ -1,3 +1,3 @@
1
1
  module Servitude
2
- VERSION = "0.3.0"
2
+ VERSION = "0.4.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: servitude
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jason Harrelson