codesake-commons 0.80.0 → 0.83.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.
- data/lib/codesake/commons/logging.rb +7 -7
- data/lib/codesake/commons/version.rb +1 -1
- metadata +13 -9
- checksums.yaml +0 -7
|
@@ -82,13 +82,13 @@ module Codesake
|
|
|
82
82
|
def send_to_syslog(msg, level)
|
|
83
83
|
return false unless @syslog
|
|
84
84
|
|
|
85
|
-
log = Syslog.open("codesake") unless Syslog.opened?
|
|
86
|
-
log = Syslog.reopen("codesake") if Syslog.opened?
|
|
87
|
-
log
|
|
88
|
-
log
|
|
89
|
-
log
|
|
90
|
-
log
|
|
91
|
-
log
|
|
85
|
+
# log = Syslog.open("codesake") unless Syslog.opened?
|
|
86
|
+
# log = Syslog.reopen("codesake") if Syslog.opened?
|
|
87
|
+
Syslog.log(Syslog::LOG_DEBUG, msg.to_s) if level == :debug
|
|
88
|
+
Syslog.log(Syslog::LOG_WARNING, msg.to_s) if level == :warn
|
|
89
|
+
Syslog.log(Syslog::LOG_INFO, msg.to_s) if level == :helo
|
|
90
|
+
Syslog.log(Syslog::LOG_INFO, msg.to_s) if level == :log
|
|
91
|
+
Syslog.log(Syslog::LOG_ERR, msg.to_s) if level == :error
|
|
92
92
|
|
|
93
93
|
true
|
|
94
94
|
end
|
metadata
CHANGED
|
@@ -1,27 +1,30 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: codesake-commons
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.83.0
|
|
5
|
+
prerelease:
|
|
5
6
|
platform: ruby
|
|
6
7
|
authors:
|
|
7
8
|
- Paolo Perego
|
|
8
9
|
autorequire:
|
|
9
10
|
bindir: bin
|
|
10
11
|
cert_chain: []
|
|
11
|
-
date: 2013-
|
|
12
|
+
date: 2013-10-11 00:00:00.000000000 Z
|
|
12
13
|
dependencies:
|
|
13
14
|
- !ruby/object:Gem::Dependency
|
|
14
15
|
name: rainbow
|
|
15
16
|
requirement: !ruby/object:Gem::Requirement
|
|
17
|
+
none: false
|
|
16
18
|
requirements:
|
|
17
|
-
- - '>='
|
|
19
|
+
- - ! '>='
|
|
18
20
|
- !ruby/object:Gem::Version
|
|
19
21
|
version: '0'
|
|
20
22
|
type: :runtime
|
|
21
23
|
prerelease: false
|
|
22
24
|
version_requirements: !ruby/object:Gem::Requirement
|
|
25
|
+
none: false
|
|
23
26
|
requirements:
|
|
24
|
-
- - '>='
|
|
27
|
+
- - ! '>='
|
|
25
28
|
- !ruby/object:Gem::Version
|
|
26
29
|
version: '0'
|
|
27
30
|
description: codesake.com is an application security startup providing code review
|
|
@@ -52,26 +55,27 @@ files:
|
|
|
52
55
|
- spec/spec_helper.rb
|
|
53
56
|
homepage: http://codesake.com
|
|
54
57
|
licenses: []
|
|
55
|
-
metadata: {}
|
|
56
58
|
post_install_message:
|
|
57
59
|
rdoc_options: []
|
|
58
60
|
require_paths:
|
|
59
61
|
- lib
|
|
60
62
|
required_ruby_version: !ruby/object:Gem::Requirement
|
|
63
|
+
none: false
|
|
61
64
|
requirements:
|
|
62
|
-
- - '>='
|
|
65
|
+
- - ! '>='
|
|
63
66
|
- !ruby/object:Gem::Version
|
|
64
67
|
version: '0'
|
|
65
68
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
69
|
+
none: false
|
|
66
70
|
requirements:
|
|
67
|
-
- - '>='
|
|
71
|
+
- - ! '>='
|
|
68
72
|
- !ruby/object:Gem::Version
|
|
69
73
|
version: '0'
|
|
70
74
|
requirements: []
|
|
71
75
|
rubyforge_project:
|
|
72
|
-
rubygems_version:
|
|
76
|
+
rubygems_version: 1.8.25
|
|
73
77
|
signing_key:
|
|
74
|
-
specification_version:
|
|
78
|
+
specification_version: 3
|
|
75
79
|
summary: codesake_commons is the gem containing common ground routines useful across
|
|
76
80
|
the codesake.com project
|
|
77
81
|
test_files:
|
checksums.yaml
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
SHA1:
|
|
3
|
-
metadata.gz: c1e14abf73528a87db938dcba416280c60514d51
|
|
4
|
-
data.tar.gz: a5a3738e1f7d24a6e592db346c915d4c1b7eb27f
|
|
5
|
-
SHA512:
|
|
6
|
-
metadata.gz: 489c5f8b6de78aa309ddae1fc1ffc16db2389eba15adeee67e3f6136986ddb08070b612cf5c809ce7b7d32e8fbe06ef4b53380c0690e24f6014f1ba4918a4725
|
|
7
|
-
data.tar.gz: ebbe704e9f06ec16efcecf8e7fbad06269e0e8535d37843eef7da0cae375df7dd96ad213f280f84fa7980ad52741d2d81c4776a8b9234ef71bcdba8243ed97f6
|