postfix_status_line 0.1.6 → 0.1.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +2 -1
- data/ext/postfix_status_line_core.c +13 -5
- data/lib/postfix_status_line/version.rb +1 -1
- metadata +16 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9520446497f6f210808c56e1a5f861e4b412036d
|
4
|
+
data.tar.gz: 7ee583ea8a511f2ef8735502e0f452aa39eb4479
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 112285e1abcbac3ee737a3c6ed08056e501b1de248880e8798731319be4b7af0056a62ddf3a7812f10b5878d13a764cc3c3c65a8690e852e941cb351394d7a83
|
7
|
+
data.tar.gz: af9412d375e7a8a1ea2f15929c0dc4f13acf8ff1f066b2c4afbb886f2db20a0cc1b228c0854e00a684e82ad228a2d0de6b8435e36d70c84d02c93fd38fe74ed5
|
data/Rakefile
CHANGED
@@ -127,12 +127,12 @@ static void put_domain(char *value, VALUE hash) {
|
|
127
127
|
}
|
128
128
|
|
129
129
|
static void put_status(char *value, VALUE hash) {
|
130
|
-
char *
|
130
|
+
char *detail = strchr(value, ' ');
|
131
131
|
|
132
|
-
if (
|
133
|
-
*
|
134
|
-
|
135
|
-
rb_hash_aset(hash, rb_str_new2("status_detail"), rb_str_new2(
|
132
|
+
if (detail != NULL) {
|
133
|
+
*detail = '\0';
|
134
|
+
detail++;
|
135
|
+
rb_hash_aset(hash, rb_str_new2("status_detail"), rb_str_new2(detail));
|
136
136
|
}
|
137
137
|
|
138
138
|
rb_hash_aset(hash, rb_str_new2("status"), rb_str_new2(value));
|
@@ -175,6 +175,14 @@ static void split_line2(char *str, int mask, VALUE hash) {
|
|
175
175
|
for (;;) {
|
176
176
|
ptr = split(&str, ", ", 2);
|
177
177
|
|
178
|
+
// status detail includes ", "
|
179
|
+
if (strchr(str, '=') == NULL) {
|
180
|
+
*(str - 1) = ' ';
|
181
|
+
*(str - 2) = ' ';
|
182
|
+
str = ptr;
|
183
|
+
break;
|
184
|
+
}
|
185
|
+
|
178
186
|
if (ptr == NULL) {
|
179
187
|
break;
|
180
188
|
}
|
metadata
CHANGED
@@ -1,69 +1,69 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: postfix_status_line
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Genki Sugawara
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-12-
|
11
|
+
date: 2015-12-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '0'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rspec
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- -
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '0'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- -
|
52
|
+
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: rake-compiler
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- -
|
59
|
+
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: '0'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- -
|
66
|
+
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
69
|
description: Postfix Status Line Log Parser implemented by C.
|
@@ -74,9 +74,9 @@ extensions:
|
|
74
74
|
- ext/extconf.rb
|
75
75
|
extra_rdoc_files: []
|
76
76
|
files:
|
77
|
-
- .gitignore
|
78
|
-
- .rspec
|
79
|
-
- .travis.yml
|
77
|
+
- ".gitignore"
|
78
|
+
- ".rspec"
|
79
|
+
- ".travis.yml"
|
80
80
|
- Gemfile
|
81
81
|
- LICENSE.txt
|
82
82
|
- README.md
|
@@ -100,17 +100,17 @@ require_paths:
|
|
100
100
|
- ext
|
101
101
|
required_ruby_version: !ruby/object:Gem::Requirement
|
102
102
|
requirements:
|
103
|
-
- -
|
103
|
+
- - ">="
|
104
104
|
- !ruby/object:Gem::Version
|
105
105
|
version: '0'
|
106
106
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
|
-
- -
|
108
|
+
- - ">="
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: '0'
|
111
111
|
requirements: []
|
112
112
|
rubyforge_project:
|
113
|
-
rubygems_version: 2.
|
113
|
+
rubygems_version: 2.4.5.1
|
114
114
|
signing_key:
|
115
115
|
specification_version: 4
|
116
116
|
summary: Postfix Status Line Log Parser implemented by C.
|