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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c74111143a620177a8d42e331fb6db8bec991624
4
- data.tar.gz: e670baf832cc96497443b113de38211cb72c3b22
3
+ metadata.gz: 9520446497f6f210808c56e1a5f861e4b412036d
4
+ data.tar.gz: 7ee583ea8a511f2ef8735502e0f452aa39eb4479
5
5
  SHA512:
6
- metadata.gz: 83090fc2af2f238d61de9eb71f428d6266dfdd518aeeecddcb0e10a8bae60c5a9f365672e610bcafcb9bcc0a747d29c69ac7bec72b73f88a5f2f0520b30c1b96
7
- data.tar.gz: 6354c6cad36dcfb88e06e4d5eb8b2c84e82ce93becbf937557530983672d970c036675789e69eba473f4d28dd69fb82487ddb7f93d599d19d55c095d15b546c6
6
+ metadata.gz: 112285e1abcbac3ee737a3c6ed08056e501b1de248880e8798731319be4b7af0056a62ddf3a7812f10b5878d13a764cc3c3c65a8690e852e941cb351394d7a83
7
+ data.tar.gz: af9412d375e7a8a1ea2f15929c0dc4f13acf8ff1f066b2c4afbb886f2db20a0cc1b228c0854e00a684e82ad228a2d0de6b8435e36d70c84d02c93fd38fe74ed5
data/Rakefile CHANGED
@@ -8,4 +8,5 @@ Rake::ExtensionTask.new('postfix_status_line_core') do |ext|
8
8
  ext.ext_dir = 'ext'
9
9
  end
10
10
 
11
- task :default => [:compile, :spec]
11
+ task :default => [:spec]
12
+ task :spec => [:compile]
@@ -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 *reason = strchr(value, ' ');
130
+ char *detail = strchr(value, ' ');
131
131
 
132
- if (reason != NULL) {
133
- *reason = '\0';
134
- reason++;
135
- rb_hash_aset(hash, rb_str_new2("status_detail"), rb_str_new2(reason));
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
  }
@@ -1,3 +1,3 @@
1
1
  module PostfixStatusLine
2
- VERSION = '0.1.6'
2
+ VERSION = '0.1.7'
3
3
  end
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.6
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-22 00:00:00.000000000 Z
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.0.14.1
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.