syslog_helpers 0.1.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.
@@ -0,0 +1,4 @@
1
+ pkg/*
2
+ *.gem
3
+ .bundle
4
+ Gemfile.lock
@@ -0,0 +1,2 @@
1
+ = 0.1.0 (12/22/10)
2
+ Initial Release
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source "http://rubygems.org"
2
+
3
+ # Specify your gem's dependencies in syslog_helpers.gemspec
4
+ gemspec
data/LICENSE ADDED
@@ -0,0 +1,19 @@
1
+ Copyright (c) 2010 Thomas Bishop
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy
4
+ of this software and associated documentation files (the "Software"), to deal
5
+ in the Software without restriction, including without limitation the rights
6
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
+ copies of the Software, and to permit persons to whom the Software is
8
+ furnished to do so, subject to the following conditions:
9
+
10
+ The above copyright notice and this permission notice shall be included in
11
+ all copies or substantial portions of the Software.
12
+
13
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THr sell
19
+ copies of the Software, and to pe
@@ -0,0 +1,48 @@
1
+ = Syslog Helpers
2
+ This aims to make working with syslog message content a little bit easier.
3
+
4
+
5
+ == Installation
6
+ gem install syslog_helpers
7
+
8
+
9
+ == Usage
10
+ require 'syslog_helpers'
11
+
12
+
13
+ === Priority
14
+ This provides helpers to assist in translatng syslog priority codes (per RFC3164 http://www.ietf.org/rfc/rfc3164.txt).
15
+
16
+ You can get a hash of all possible severities
17
+ SyslogHelpers::Priority.severities
18
+ => {5=>"notice", 0=>"emerg", 6=>"info", 1=>"alert", 7=>"debug", 2=>"crit", 3=>"err", 4=>"warning"}
19
+
20
+ And the same for all possible facilities
21
+ SyslogHelpers::Priority.severities
22
+ => {16=>"local0", 5=>"syslog", 22=>"local6", 11=>"ftp", 0=>"kern", 17=>"local1", 6=>"lpr", 23=>"local7", 12=>"ntp", 1=>"user", 18=>"local2", 7=>"news", 13=>"audit", 2=>"mail", 19=>"local3", 8=>"uucp", 14=>"alert", 3=>"daemon", 20=>"local4", 9=>"cron", 15=>"clock", 4=>"auth", 21=>"local5", 10=>"authpriv"}
23
+
24
+ You can also get a hash of the associated data for a specific priority
25
+ SyslogHelpers::Priority.data_for_priority(150)
26
+ => {"facility"=>"local2", "severity"=>"info"}
27
+
28
+ If you just want the severity, you can also use
29
+ SyslogHelpers::Priority.severity_for_priority(150)
30
+ => "info"
31
+
32
+ And the same goes for just grabbing the facility
33
+ SyslogHelpers::Priority.facility_for_priority(150)
34
+ => "local2"
35
+
36
+ To grab every possible combination, you can use
37
+ SyslogHelpers::Priority.priority_map
38
+ => { 0 => { 'facility' => 'kern', 'severity' => 'emerg'}, ...} # truncated
39
+
40
+
41
+ == Contributing
42
+ * Fork the project.
43
+ * Make your feature addition or bug fix (with tests) in a topic branch.
44
+ * Send a pull request and I'll get it integrated.
45
+
46
+
47
+ == Copyright
48
+ Copyright (c) 2010 Thomas Bishop. See LICENSE for details.
@@ -0,0 +1,9 @@
1
+ require 'bundler'
2
+ Bundler::GemHelper.install_tasks
3
+
4
+ require 'rspec/core/rake_task'
5
+
6
+ desc 'Run specs'
7
+ RSpec::Core::RakeTask.new do |t|
8
+ t.rspec_opts = %w(-fs --color)
9
+ end
@@ -0,0 +1,3 @@
1
+ module SyslogHelpers
2
+ autoload :Priority, 'syslog_helpers/priority'
3
+ end
@@ -0,0 +1,67 @@
1
+ module SyslogHelpers
2
+ class Priority
3
+
4
+ @@priorities = (0..191).to_a
5
+
6
+ def self.severities
7
+ { 0 => 'emerg',
8
+ 1 => 'alert',
9
+ 2 => 'crit',
10
+ 3 => 'err',
11
+ 4 => 'warning',
12
+ 5 => 'notice',
13
+ 6 => 'info',
14
+ 7 => 'debug' }
15
+ end
16
+
17
+ def self.facilities
18
+ { 0 => 'kern',
19
+ 1 => 'user',
20
+ 2 => 'mail',
21
+ 3 => 'daemon',
22
+ 4 => 'auth',
23
+ 5 => 'syslog',
24
+ 6 => 'lpr',
25
+ 7 => 'news',
26
+ 8 => 'uucp',
27
+ 9 => 'cron',
28
+ 10 => 'authpriv',
29
+ 11 => 'ftp',
30
+ 12 => 'ntp',
31
+ 13 => 'audit',
32
+ 14 => 'alert',
33
+ 15 => 'clock',
34
+ 16 => 'local0',
35
+ 17 => 'local1',
36
+ 18 => 'local2',
37
+ 19 => 'local3',
38
+ 20 => 'local4',
39
+ 21 => 'local5',
40
+ 22 => 'local6',
41
+ 23 => 'local7' }
42
+ end
43
+
44
+ def self.data_for_priority(priority)
45
+ { 'facility' => facility_for_priority(priority), 'severity' => severity_for_priority(priority) }
46
+ end
47
+
48
+ def self.priority_map
49
+ data = {}
50
+
51
+ @@priorities.sort.each do |priority|
52
+ data[priority] = data_for_priority(priority)
53
+ end
54
+
55
+ data
56
+ end
57
+
58
+ def self.severity_for_priority(priority)
59
+ severities[(priority - ((priority / 8) * 8))]
60
+ end
61
+
62
+ def self.facility_for_priority(priority)
63
+ facilities[(priority / 8)]
64
+ end
65
+ end
66
+
67
+ end
@@ -0,0 +1,3 @@
1
+ module SyslogHelpers
2
+ VERSION = "0.1.0"
3
+ end
@@ -0,0 +1,6 @@
1
+ require 'rspec'
2
+ require 'syslog_helpers'
3
+
4
+ RSpec.configure do |config|
5
+
6
+ end
@@ -0,0 +1,170 @@
1
+ require File.expand_path('../spec_helper.rb', __FILE__)
2
+
3
+ describe SyslogHelpers::Priority do
4
+ describe "severities" do
5
+ it "should return all of the severities" do
6
+ SyslogHelpers::Priority.severities.should == { 0 => 'emerg',
7
+ 1 => 'alert',
8
+ 2 => 'crit',
9
+ 3 => 'err',
10
+ 4 => 'warning',
11
+ 5 => 'notice',
12
+ 6 => 'info',
13
+ 7 => 'debug' }
14
+
15
+ end
16
+ end
17
+
18
+ describe "severity_for_priority" do
19
+ it "should return the severity for the priority" do
20
+ SyslogHelpers::Priority.severity_for_priority(150).should == 'info'
21
+ end
22
+ end
23
+
24
+ describe "facility_for_priority" do
25
+ it "should return the facility for the priority" do
26
+ SyslogHelpers::Priority.facility_for_priority(150).should == 'local2'
27
+ end
28
+ end
29
+
30
+ describe "data_for_priority" do
31
+ it "should return the data for the priority" do
32
+ SyslogHelpers::Priority.data_for_priority(150).should == { 'facility' => 'local2', 'severity' => 'info' }
33
+ end
34
+ end
35
+
36
+ describe "facilities" do
37
+ it "should return all of the facilities" do
38
+ SyslogHelpers::Priority.facilities.should == { 0 => 'kern',
39
+ 1 => 'user',
40
+ 2 => 'mail',
41
+ 3 => 'daemon',
42
+ 4 => 'auth',
43
+ 5 => 'syslog',
44
+ 6 => 'lpr',
45
+ 7 => 'news',
46
+ 8 => 'uucp',
47
+ 9 => 'cron',
48
+ 10 => 'authpriv',
49
+ 11 => 'ftp',
50
+ 12 => 'ntp',
51
+ 13 => 'audit',
52
+ 14 => 'alert',
53
+ 15 => 'clock',
54
+ 16 => 'local0',
55
+ 17 => 'local1',
56
+ 18 => 'local2',
57
+ 19 => 'local3',
58
+ 20 => 'local4',
59
+ 21 => 'local5',
60
+ 22 => 'local6',
61
+ 23 => 'local7' }
62
+
63
+ end
64
+ end
65
+
66
+ describe "priority_map" do
67
+ it "should return the priority map data" do
68
+ priority_map_data = { 0 => { 'facility' => 'kern', 'severity' => 'emerg' }, 1 => { 'facility' => 'kern', 'severity' => 'alert' },
69
+ 2 => { 'facility' => 'kern', 'severity' => 'crit' }, 3 => { 'facility' => 'kern', 'severity' => 'err' },
70
+ 4 => { 'facility' => 'kern', 'severity' => 'warning' }, 5 => { 'facility' => 'kern', 'severity' => 'notice' },
71
+ 6 => { 'facility' => 'kern', 'severity' => 'info' }, 7 => { 'facility' => 'kern', 'severity' => 'debug' },
72
+ 8 => { 'facility' => 'user', 'severity' => 'emerg' }, 9 => { 'facility' => 'user', 'severity' => 'alert' },
73
+ 10 => { 'facility' => 'user', 'severity' => 'crit' }, 11 => { 'facility' => 'user', 'severity' => 'err' },
74
+ 12 => { 'facility' => 'user', 'severity' => 'warning' }, 13 => { 'facility' => 'user', 'severity' => 'notice' },
75
+ 14 => { 'facility' => 'user', 'severity' => 'info' }, 15 => { 'facility' => 'user', 'severity' => 'debug' },
76
+ 16 => { 'facility' => 'mail', 'severity' => 'emerg' }, 17 => { 'facility' => 'mail', 'severity' => 'alert' },
77
+ 18 => { 'facility' => 'mail', 'severity' => 'crit' }, 19 => { 'facility' => 'mail', 'severity' => 'err' },
78
+ 20 => { 'facility' => 'mail', 'severity' => 'warning' }, 21 => { 'facility' => 'mail', 'severity' => 'notice' },
79
+ 22 => { 'facility' => 'mail', 'severity' => 'info' }, 23 => { 'facility' => 'mail', 'severity' => 'debug' },
80
+ 24 => { 'facility' => 'daemon', 'severity' => 'emerg' }, 25 => { 'facility' => 'daemon', 'severity' => 'alert' },
81
+ 26 => { 'facility' => 'daemon', 'severity' => 'crit' }, 27 => { 'facility' => 'daemon', 'severity' => 'err' },
82
+ 28 => { 'facility' => 'daemon', 'severity' => 'warning' }, 29 => { 'facility' => 'daemon', 'severity' => 'notice' },
83
+ 30 => { 'facility' => 'daemon', 'severity' => 'info' }, 31 => { 'facility' => 'daemon', 'severity' => 'debug' },
84
+ 32 => { 'facility' => 'auth', 'severity' => 'emerg' }, 33 => { 'facility' => 'auth', 'severity' => 'alert' },
85
+ 34 => { 'facility' => 'auth', 'severity' => 'crit' }, 35 => { 'facility' => 'auth', 'severity' => 'err' },
86
+ 36 => { 'facility' => 'auth', 'severity' => 'warning' }, 37 => { 'facility' => 'auth', 'severity' => 'notice' },
87
+ 38 => { 'facility' => 'auth', 'severity' => 'info' }, 39 => { 'facility' => 'auth', 'severity' => 'debug' },
88
+ 40 => { 'facility' => 'syslog', 'severity' => 'emerg' }, 41 => { 'facility' => 'syslog', 'severity' => 'alert' },
89
+ 42 => { 'facility' => 'syslog', 'severity' => 'crit' }, 43 => { 'facility' => 'syslog', 'severity' => 'err' },
90
+ 44 => { 'facility' => 'syslog', 'severity' => 'warning' }, 45 => { 'facility' => 'syslog', 'severity' => 'notice' },
91
+ 46 => { 'facility' => 'syslog', 'severity' => 'info' }, 47 => { 'facility' => 'syslog', 'severity' => 'debug' },
92
+ 48 => { 'facility' => 'lpr', 'severity' => 'emerg' }, 49 => { 'facility' => 'lpr', 'severity' => 'alert' },
93
+ 50 => { 'facility' => 'lpr', 'severity' => 'crit' }, 51 => { 'facility' => 'lpr', 'severity' => 'err' },
94
+ 52 => { 'facility' => 'lpr', 'severity' => 'warning' }, 53 => { 'facility' => 'lpr', 'severity' => 'notice' },
95
+ 54 => { 'facility' => 'lpr', 'severity' => 'info' }, 55 => { 'facility' => 'lpr', 'severity' => 'debug' },
96
+ 56 => { 'facility' => 'news', 'severity' => 'emerg' }, 57 => { 'facility' => 'news', 'severity' => 'alert' },
97
+ 58 => { 'facility' => 'news', 'severity' => 'crit' }, 59 => { 'facility' => 'news', 'severity' => 'err' },
98
+ 60 => { 'facility' => 'news', 'severity' => 'warning' }, 61 => { 'facility' => 'news', 'severity' => 'notice' },
99
+ 62 => { 'facility' => 'news', 'severity' => 'info' }, 63 => { 'facility' => 'news', 'severity' => 'debug' },
100
+ 64 => { 'facility' => 'uucp', 'severity' => 'emerg' }, 65 => { 'facility' => 'uucp', 'severity' => 'alert' },
101
+ 66 => { 'facility' => 'uucp', 'severity' => 'crit' }, 67 => { 'facility' => 'uucp', 'severity' => 'err' },
102
+ 68 => { 'facility' => 'uucp', 'severity' => 'warning' }, 69 => { 'facility' => 'uucp', 'severity' => 'notice' },
103
+ 70 => { 'facility' => 'uucp', 'severity' => 'info' }, 71 => { 'facility' => 'uucp', 'severity' => 'debug' },
104
+ 72 => { 'facility' => 'cron', 'severity' => 'emerg' }, 73 => { 'facility' => 'cron', 'severity' => 'alert' },
105
+ 74 => { 'facility' => 'cron', 'severity' => 'crit' }, 75 => { 'facility' => 'cron', 'severity' => 'err' },
106
+ 76 => { 'facility' => 'cron', 'severity' => 'warning' }, 77 => { 'facility' => 'cron', 'severity' => 'notice' },
107
+ 78 => { 'facility' => 'cron', 'severity' => 'info' }, 79 => { 'facility' => 'cron', 'severity' => 'debug' },
108
+ 80 => { 'facility' => 'authpriv', 'severity' => 'emerg' }, 81 => { 'facility' => 'authpriv', 'severity' => 'alert' },
109
+ 82 => { 'facility' => 'authpriv', 'severity' => 'crit' }, 83 => { 'facility' => 'authpriv', 'severity' => 'err' },
110
+ 84 => { 'facility' => 'authpriv', 'severity' => 'warning' }, 85 => { 'facility' => 'authpriv', 'severity' => 'notice' },
111
+ 86 => { 'facility' => 'authpriv', 'severity' => 'info' }, 87 => { 'facility' => 'authpriv', 'severity' => 'debug' },
112
+ 88 => { 'facility' => 'ftp', 'severity' => 'emerg' }, 89 => { 'facility' => 'ftp', 'severity' => 'alert' },
113
+ 90 => { 'facility' => 'ftp', 'severity' => 'crit' }, 91 => { 'facility' => 'ftp', 'severity' => 'err' },
114
+ 92 => { 'facility' => 'ftp', 'severity' => 'warning' }, 93 => { 'facility' => 'ftp', 'severity' => 'notice' },
115
+ 94 => { 'facility' => 'ftp', 'severity' => 'info' }, 95 => { 'facility' => 'ftp', 'severity' => 'debug' },
116
+ 96 => { 'facility' => 'ntp', 'severity' => 'emerg' }, 97 => { 'facility' => 'ntp', 'severity' => 'alert' },
117
+ 98 => { 'facility' => 'ntp', 'severity' => 'crit' }, 99 => { 'facility' => 'ntp', 'severity' => 'err' },
118
+ 100 => { 'facility' => 'ntp', 'severity' => 'warning' }, 101 => { 'facility' => 'ntp', 'severity' => 'notice' },
119
+ 102 => { 'facility' => 'ntp', 'severity' => 'info' }, 103 => { 'facility' => 'ntp', 'severity' => 'debug' },
120
+ 104 => { 'facility' => 'audit', 'severity' => 'emerg' }, 105 => { 'facility' => 'audit', 'severity' => 'alert' },
121
+ 106 => { 'facility' => 'audit', 'severity' => 'crit' }, 107 => { 'facility' => 'audit', 'severity' => 'err' },
122
+ 108 => { 'facility' => 'audit', 'severity' => 'warning' }, 109 => { 'facility' => 'audit', 'severity' => 'notice' },
123
+ 110 => { 'facility' => 'audit', 'severity' => 'info' }, 111 => { 'facility' => 'audit', 'severity' => 'debug' },
124
+ 112 => { 'facility' => 'alert', 'severity' => 'emerg' }, 113 => { 'facility' => 'alert', 'severity' => 'alert' },
125
+ 114 => { 'facility' => 'alert', 'severity' => 'crit' }, 115 => { 'facility' => 'alert', 'severity' => 'err' },
126
+ 116 => { 'facility' => 'alert', 'severity' => 'warning' }, 117 => { 'facility' => 'alert', 'severity' => 'notice' },
127
+ 118 => { 'facility' => 'alert', 'severity' => 'info' }, 119 => { 'facility' => 'alert', 'severity' => 'debug' },
128
+ 120 => { 'facility' => 'clock', 'severity' => 'emerg' }, 121 => { 'facility' => 'clock', 'severity' => 'alert' },
129
+ 122 => { 'facility' => 'clock', 'severity' => 'crit' }, 123 => { 'facility' => 'clock', 'severity' => 'err' },
130
+ 124 => { 'facility' => 'clock', 'severity' => 'warning' }, 125 => { 'facility' => 'clock', 'severity' => 'notice' },
131
+ 126 => { 'facility' => 'clock', 'severity' => 'info' }, 127 => { 'facility' => 'clock', 'severity' => 'debug' },
132
+ 128 => { 'facility' => 'local0', 'severity' => 'emerg' }, 129 => { 'facility' => 'local0', 'severity' => 'alert' },
133
+ 130 => { 'facility' => 'local0', 'severity' => 'crit' }, 131 => { 'facility' => 'local0', 'severity' => 'err' },
134
+ 132 => { 'facility' => 'local0', 'severity' => 'warning' }, 133 => { 'facility' => 'local0', 'severity' => 'notice' },
135
+ 134 => { 'facility' => 'local0', 'severity' => 'info' }, 135 => { 'facility' => 'local0', 'severity' => 'debug' },
136
+ 136 => { 'facility' => 'local1', 'severity' => 'emerg' }, 137 => { 'facility' => 'local1', 'severity' => 'alert' },
137
+ 138 => { 'facility' => 'local1', 'severity' => 'crit' }, 139 => { 'facility' => 'local1', 'severity' => 'err' },
138
+ 140 => { 'facility' => 'local1', 'severity' => 'warning' }, 141 => { 'facility' => 'local1', 'severity' => 'notice' },
139
+ 142 => { 'facility' => 'local1', 'severity' => 'info' }, 143 => { 'facility' => 'local1', 'severity' => 'debug' },
140
+ 144 => { 'facility' => 'local2', 'severity' => 'emerg' }, 145 => { 'facility' => 'local2', 'severity' => 'alert' },
141
+ 146 => { 'facility' => 'local2', 'severity' => 'crit' }, 147 => { 'facility' => 'local2', 'severity' => 'err' },
142
+ 148 => { 'facility' => 'local2', 'severity' => 'warning' }, 149 => { 'facility' => 'local2', 'severity' => 'notice' },
143
+ 150 => { 'facility' => 'local2', 'severity' => 'info' }, 151 => { 'facility' => 'local2', 'severity' => 'debug' },
144
+ 152 => { 'facility' => 'local3', 'severity' => 'emerg' }, 153 => { 'facility' => 'local3', 'severity' => 'alert' },
145
+ 154 => { 'facility' => 'local3', 'severity' => 'crit' }, 155 => { 'facility' => 'local3', 'severity' => 'err' },
146
+ 156 => { 'facility' => 'local3', 'severity' => 'warning' }, 157 => { 'facility' => 'local3', 'severity' => 'notice' },
147
+ 158 => { 'facility' => 'local3', 'severity' => 'info' }, 159 => { 'facility' => 'local3', 'severity' => 'debug' },
148
+ 160 => { 'facility' => 'local4', 'severity' => 'emerg' }, 161 => { 'facility' => 'local4', 'severity' => 'alert' },
149
+ 162 => { 'facility' => 'local4', 'severity' => 'crit' }, 163 => { 'facility' => 'local4', 'severity' => 'err' },
150
+ 164 => { 'facility' => 'local4', 'severity' => 'warning' }, 165 => { 'facility' => 'local4', 'severity' => 'notice' },
151
+ 166 => { 'facility' => 'local4', 'severity' => 'info' }, 167 => { 'facility' => 'local4', 'severity' => 'debug' },
152
+ 168 => { 'facility' => 'local5', 'severity' => 'emerg' }, 169 => { 'facility' => 'local5', 'severity' => 'alert' },
153
+ 170 => { 'facility' => 'local5', 'severity' => 'crit' }, 171 => { 'facility' => 'local5', 'severity' => 'err' },
154
+ 172 => { 'facility' => 'local5', 'severity' => 'warning' }, 173 => { 'facility' => 'local5', 'severity' => 'notice' },
155
+ 174 => { 'facility' => 'local5', 'severity' => 'info' }, 175 => { 'facility' => 'local5', 'severity' => 'debug' },
156
+ 176 => { 'facility' => 'local6', 'severity' => 'emerg' }, 177 => { 'facility' => 'local6', 'severity' => 'alert' },
157
+ 178 => { 'facility' => 'local6', 'severity' => 'crit' }, 179 => { 'facility' => 'local6', 'severity' => 'err' },
158
+ 180 => { 'facility' => 'local6', 'severity' => 'warning' }, 181 => { 'facility' => 'local6', 'severity' => 'notice' },
159
+ 182 => { 'facility' => 'local6', 'severity' => 'info' }, 183 => { 'facility' => 'local6', 'severity' => 'debug' },
160
+ 184 => { 'facility' => 'local7', 'severity' => 'emerg' }, 185 => { 'facility' => 'local7', 'severity' => 'alert' },
161
+ 186 => { 'facility' => 'local7', 'severity' => 'crit' }, 187 => { 'facility' => 'local7', 'severity' => 'err' },
162
+ 188 => { 'facility' => 'local7', 'severity' => 'warning' }, 189 => { 'facility' => 'local7', 'severity' => 'notice' },
163
+ 190 => { 'facility' => 'local7', 'severity' => 'info' }, 191 => { 'facility' => 'local7', 'severity' => 'debug' }
164
+ }
165
+
166
+ SyslogHelpers::Priority.priority_map.should == priority_map_data
167
+ end
168
+ end
169
+
170
+ end
@@ -0,0 +1,22 @@
1
+ # -*- encoding: utf-8 -*-
2
+ $:.push File.expand_path("../lib", __FILE__)
3
+ require "syslog_helpers/version"
4
+
5
+ Gem::Specification.new do |s|
6
+ s.name = "syslog_helpers"
7
+ s.version = SyslogHelpers::VERSION
8
+ s.platform = Gem::Platform::RUBY
9
+ s.authors = ["Tommy Bishop"]
10
+ s.email = ["bishop.thomas@gmail.com"]
11
+ s.homepage = "https://github.com/thbishop/syslog_helpers"
12
+ s.summary = %q{Helpers for syslog messages}
13
+ s.description = %q{Hopefully making life easier when working with syslog message content}
14
+
15
+ s.rubyforge_project = "syslog_helpers"
16
+
17
+ s.files = `git ls-files`.split("\n")
18
+ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
19
+ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
20
+ s.require_paths = ["lib"]
21
+ s.add_development_dependency 'rspec', '~> 2.3'
22
+ end
metadata ADDED
@@ -0,0 +1,94 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: syslog_helpers
3
+ version: !ruby/object:Gem::Version
4
+ hash: 27
5
+ prerelease: false
6
+ segments:
7
+ - 0
8
+ - 1
9
+ - 0
10
+ version: 0.1.0
11
+ platform: ruby
12
+ authors:
13
+ - Tommy Bishop
14
+ autorequire:
15
+ bindir: bin
16
+ cert_chain: []
17
+
18
+ date: 2010-12-22 00:00:00 -08:00
19
+ default_executable:
20
+ dependencies:
21
+ - !ruby/object:Gem::Dependency
22
+ name: rspec
23
+ prerelease: false
24
+ requirement: &id001 !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ~>
28
+ - !ruby/object:Gem::Version
29
+ hash: 5
30
+ segments:
31
+ - 2
32
+ - 3
33
+ version: "2.3"
34
+ type: :development
35
+ version_requirements: *id001
36
+ description: Hopefully making life easier when working with syslog message content
37
+ email:
38
+ - bishop.thomas@gmail.com
39
+ executables: []
40
+
41
+ extensions: []
42
+
43
+ extra_rdoc_files: []
44
+
45
+ files:
46
+ - .gitignore
47
+ - CHANGELOG.rdoc
48
+ - Gemfile
49
+ - LICENSE
50
+ - README.rdoc
51
+ - Rakefile
52
+ - lib/syslog_helpers.rb
53
+ - lib/syslog_helpers/priority.rb
54
+ - lib/syslog_helpers/version.rb
55
+ - spec/spec_helper.rb
56
+ - spec/syslog_helpers_priority_spec.rb
57
+ - syslog_helpers.gemspec
58
+ has_rdoc: true
59
+ homepage: https://github.com/thbishop/syslog_helpers
60
+ licenses: []
61
+
62
+ post_install_message:
63
+ rdoc_options: []
64
+
65
+ require_paths:
66
+ - lib
67
+ required_ruby_version: !ruby/object:Gem::Requirement
68
+ none: false
69
+ requirements:
70
+ - - ">="
71
+ - !ruby/object:Gem::Version
72
+ hash: 3
73
+ segments:
74
+ - 0
75
+ version: "0"
76
+ required_rubygems_version: !ruby/object:Gem::Requirement
77
+ none: false
78
+ requirements:
79
+ - - ">="
80
+ - !ruby/object:Gem::Version
81
+ hash: 3
82
+ segments:
83
+ - 0
84
+ version: "0"
85
+ requirements: []
86
+
87
+ rubyforge_project: syslog_helpers
88
+ rubygems_version: 1.3.7
89
+ signing_key:
90
+ specification_version: 3
91
+ summary: Helpers for syslog messages
92
+ test_files:
93
+ - spec/spec_helper.rb
94
+ - spec/syslog_helpers_priority_spec.rb