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 CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- RubyApp (0.0.9)
4
+ RubyApp (0.0.10)
5
5
  BlueCloth
6
6
  chronic_duration
7
7
  facets
@@ -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
- RubyApp::Log.open!
36
- RubyApp::Configuration.load!
45
+ @@_application.start!
37
46
  end
38
47
 
39
48
  def self.destroy!
40
- RubyApp::Configuration.unload!
41
- RubyApp::Log.close!
49
+ @@_application.stop!
42
50
  @@_application = nil
43
51
  end
44
52
 
@@ -1,4 +1,4 @@
1
1
  module RubyApp
2
- VERSION = "0.0.9"
2
+ VERSION = "0.0.10"
3
3
  ROOT = File.expand_path(File.dirname(__FILE__))
4
4
  end
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: 13
4
+ hash: 11
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 9
10
- version: 0.0.9
9
+ - 10
10
+ version: 0.0.10
11
11
  platform: ruby
12
12
  authors:
13
13
  - Frank G. Ficnar