RubyApp 0.0.9 → 0.0.10
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +1 -1
- data/lib/ruby_app/application.rb +12 -4
- data/lib/ruby_app/version.rb +1 -1
- metadata +3 -3
data/Gemfile.lock
CHANGED
data/lib/ruby_app/application.rb
CHANGED
@@ -18,6 +18,16 @@ module RubyApp
|
|
18
18
|
@environment = {}
|
19
19
|
end
|
20
20
|
|
21
|
+
def start!
|
22
|
+
RubyApp::Log.open!
|
23
|
+
RubyApp::Configuration.load!
|
24
|
+
end
|
25
|
+
|
26
|
+
def stop!
|
27
|
+
RubyApp::Configuration.unload!
|
28
|
+
RubyApp::Log.close!
|
29
|
+
end
|
30
|
+
|
21
31
|
def self.get
|
22
32
|
@@_application ||= nil
|
23
33
|
end
|
@@ -32,13 +42,11 @@ module RubyApp
|
|
32
42
|
_options.configuration_paths = [File.join(RubyApp::ROOT, %w[config.yml])] + ( _options.configuration_paths.is_a?(Array) ? _options.configuration_paths : [_options.configuration_paths] )
|
33
43
|
_options.translations_paths = [File.join(RubyApp::ROOT, %w[translations])] + ( _options.translations_paths.is_a?(Array) ? _options.translations_paths : [_options.translations_paths] )
|
34
44
|
@@_application = _options.application_class.new(_options)
|
35
|
-
|
36
|
-
RubyApp::Configuration.load!
|
45
|
+
@@_application.start!
|
37
46
|
end
|
38
47
|
|
39
48
|
def self.destroy!
|
40
|
-
|
41
|
-
RubyApp::Log.close!
|
49
|
+
@@_application.stop!
|
42
50
|
@@_application = nil
|
43
51
|
end
|
44
52
|
|
data/lib/ruby_app/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: RubyApp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 11
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 10
|
10
|
+
version: 0.0.10
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Frank G. Ficnar
|