omf_base 1.0.1 → 1.0.2
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.
- data/Gemfile +1 -1
- data/LICENSE.txt +23 -0
- data/lib/omf_base/load_yaml.rb +6 -1
- data/lib/omf_base/lobject.rb +9 -28
- data/lib/omf_base/{log4r_outputter.rb → log4r/file_outputter.rb} +6 -2
- data/lib/omf_base/thin/logging.rb +6 -0
- data/lib/omf_base/thin/runner.rb +6 -1
- data/lib/omf_base/version.rb +8 -3
- data/lib/omf_base.rb +7 -0
- metadata +4 -3
data/Gemfile
CHANGED
data/LICENSE.txt
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
Copyright (c) 2013 National ICT Australia (NICTA)
|
|
3
|
+
|
|
4
|
+
Permission is hereby granted, free of charge, to any person
|
|
5
|
+
obtaining a copy of this software and associated documentation
|
|
6
|
+
files (the "Software"), to deal in the Software without restriction,
|
|
7
|
+
including without limitation the rights to use, copy, modify, merge,
|
|
8
|
+
publish, distribute, sublicense, and/or sell copies of the Software,
|
|
9
|
+
and to permit persons to whom the Software is furnished to do so,
|
|
10
|
+
subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be
|
|
13
|
+
included in all copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
16
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
|
17
|
+
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
18
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
|
19
|
+
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
20
|
+
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
21
|
+
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
|
22
|
+
OTHER DEALINGS IN THE SOFTWARE.
|
|
23
|
+
|
data/lib/omf_base/load_yaml.rb
CHANGED
|
@@ -1,4 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
#-------------------------------------------------------------------------------
|
|
2
|
+
# Copyright (c) 2013 National ICT Australia Limited (NICTA).
|
|
3
|
+
# This software may be used and distributed solely under the terms of the MIT license (License).
|
|
4
|
+
# You should find a copy of the License in LICENSE.TXT or at http://opensource.org/licenses/MIT.
|
|
5
|
+
# By downloading or using this software you accept the terms and the liability disclaimer in the License.
|
|
6
|
+
#-------------------------------------------------------------------------------
|
|
2
7
|
if $0 == __FILE__
|
|
3
8
|
module OMF; module Common; end; end
|
|
4
9
|
end
|
data/lib/omf_base/lobject.rb
CHANGED
|
@@ -1,39 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
# Copyright (c) 2006-
|
|
3
|
-
#
|
|
1
|
+
#-------------------------------------------------------------------------------
|
|
2
|
+
# Copyright (c) 2006-2013 National ICT Australia (NICTA), Australia
|
|
4
3
|
# Copyright (c) 2004-2009 WINLAB, Rutgers University, USA
|
|
5
|
-
#
|
|
6
|
-
#
|
|
7
|
-
#
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
# copies of the Software, and to permit persons to whom the Software is
|
|
11
|
-
# furnished to do so, subject to the following conditions:
|
|
12
|
-
#
|
|
13
|
-
# The above copyright notice and this permission notice shall be included in
|
|
14
|
-
# all copies or substantial portions of the Software.
|
|
15
|
-
#
|
|
16
|
-
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
17
|
-
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
18
|
-
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
19
|
-
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
20
|
-
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
21
|
-
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
22
|
-
# THE SOFTWARE.
|
|
23
|
-
#
|
|
24
|
-
#
|
|
25
|
-
#
|
|
4
|
+
# This software may be used and distributed solely under the terms of the MIT license (License).
|
|
5
|
+
# You should find a copy of the License in LICENSE.TXT or at http://opensource.org/licenses/MIT.
|
|
6
|
+
# By downloading or using this software you accept the terms and the liability disclaimer in the License.
|
|
7
|
+
#-------------------------------------------------------------------------------
|
|
8
|
+
|
|
26
9
|
require 'rubygems'
|
|
27
10
|
require 'date'
|
|
28
11
|
require 'log4r'
|
|
29
12
|
require 'log4r/configurator'
|
|
30
13
|
require 'log4r/yamlconfigurator'
|
|
31
14
|
require 'log4r/outputter/datefileoutputter'
|
|
32
|
-
require 'omf_base/log4r_outputter'
|
|
33
15
|
|
|
34
|
-
#include Log4r
|
|
35
16
|
|
|
36
|
-
|
|
17
|
+
require 'omf_base'
|
|
18
|
+
require 'omf_base/log4r/file_outputter'
|
|
37
19
|
|
|
38
20
|
#
|
|
39
21
|
# An extended object class with support for logging
|
|
@@ -43,7 +25,6 @@ module OMF::Base
|
|
|
43
25
|
@@logger = nil
|
|
44
26
|
@@rootLoggerName = nil
|
|
45
27
|
|
|
46
|
-
|
|
47
28
|
#
|
|
48
29
|
# Initialize the logger. The 'appName' is used to build some of the defaults.
|
|
49
30
|
# The 'environment' is the name of the root
|
|
@@ -1,5 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
#-------------------------------------------------------------------------------
|
|
2
|
+
# Copyright (c) 2013 National ICT Australia Limited (NICTA).
|
|
3
|
+
# This software may be used and distributed solely under the terms of the MIT license (License).
|
|
4
|
+
# You should find a copy of the License in LICENSE.TXT or at http://opensource.org/licenses/MIT.
|
|
5
|
+
# By downloading or using this software you accept the terms and the liability disclaimer in the License.
|
|
6
|
+
#-------------------------------------------------------------------------------
|
|
3
7
|
require 'log4r/outputter/fileoutputter'
|
|
4
8
|
|
|
5
9
|
module Log4r
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
#-------------------------------------------------------------------------------
|
|
2
|
+
# Copyright (c) 2013 National ICT Australia Limited (NICTA).
|
|
3
|
+
# This software may be used and distributed solely under the terms of the MIT license (License).
|
|
4
|
+
# You should find a copy of the License in LICENSE.TXT or at http://opensource.org/licenses/MIT.
|
|
5
|
+
# By downloading or using this software you accept the terms and the liability disclaimer in the License.
|
|
6
|
+
#-------------------------------------------------------------------------------
|
|
1
7
|
require 'omf_base/lobject'
|
|
2
8
|
|
|
3
9
|
module Thin
|
data/lib/omf_base/thin/runner.rb
CHANGED
|
@@ -1,4 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
#-------------------------------------------------------------------------------
|
|
2
|
+
# Copyright (c) 2013 National ICT Australia Limited (NICTA).
|
|
3
|
+
# This software may be used and distributed solely under the terms of the MIT license (License).
|
|
4
|
+
# You should find a copy of the License in LICENSE.TXT or at http://opensource.org/licenses/MIT.
|
|
5
|
+
# By downloading or using this software you accept the terms and the liability disclaimer in the License.
|
|
6
|
+
#-------------------------------------------------------------------------------
|
|
2
7
|
require 'thin'
|
|
3
8
|
require 'omf_base/thin/logging'
|
|
4
9
|
|
data/lib/omf_base/version.rb
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
#-------------------------------------------------------------------------------
|
|
2
|
+
# Copyright (c) 2013 National ICT Australia Limited (NICTA).
|
|
3
|
+
# This software may be used and distributed solely under the terms of the MIT license (License).
|
|
4
|
+
# You should find a copy of the License in LICENSE.TXT or at http://opensource.org/licenses/MIT.
|
|
5
|
+
# By downloading or using this software you accept the terms and the liability disclaimer in the License.
|
|
6
|
+
#-------------------------------------------------------------------------------
|
|
2
7
|
module OMF
|
|
3
8
|
module Base
|
|
4
|
-
VERSION = '1.0.
|
|
9
|
+
VERSION = '1.0.2'
|
|
5
10
|
end
|
|
6
|
-
end
|
|
11
|
+
end
|
data/lib/omf_base.rb
CHANGED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
#-------------------------------------------------------------------------------
|
|
2
|
+
# Copyright (c) 2013 National ICT Australia Limited (NICTA).
|
|
3
|
+
# This software may be used and distributed solely under the terms of the MIT license (License).
|
|
4
|
+
# You should find a copy of the License in LICENSE.TXT or at http://opensource.org/licenses/MIT.
|
|
5
|
+
# By downloading or using this software you accept the terms and the liability disclaimer in the License.
|
|
6
|
+
#-------------------------------------------------------------------------------
|
|
7
|
+
module OMF; module Base; end end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: omf_base
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.2
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2013-08-
|
|
12
|
+
date: 2013-08-30 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: log4r
|
|
@@ -36,12 +36,13 @@ extra_rdoc_files: []
|
|
|
36
36
|
files:
|
|
37
37
|
- .gitignore
|
|
38
38
|
- Gemfile
|
|
39
|
+
- LICENSE.txt
|
|
39
40
|
- README.md
|
|
40
41
|
- Rakefile
|
|
41
42
|
- lib/omf_base.rb
|
|
42
43
|
- lib/omf_base/load_yaml.rb
|
|
43
44
|
- lib/omf_base/lobject.rb
|
|
44
|
-
- lib/omf_base/
|
|
45
|
+
- lib/omf_base/log4r/file_outputter.rb
|
|
45
46
|
- lib/omf_base/thin/logging.rb
|
|
46
47
|
- lib/omf_base/thin/runner.rb
|
|
47
48
|
- lib/omf_base/version.rb
|