drntest 1.1.7 → 1.1.8

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: c0c19ccd2bace04dca8a22e5d86a93ba4fd08c22
4
- data.tar.gz: 9e9afc625d1edfb8ca0b2504438a770af3e8f802
3
+ metadata.gz: 22d9861eb68606fc7f21c98ed259719b9a51412a
4
+ data.tar.gz: f8b4225dc6c33436455f064c0a608767207c2104
5
5
  SHA512:
6
- metadata.gz: e7c1e940fba97105138550e923405a71b3f292a21c22ae6c49ca0112b9b6444027d81c0d914f8a5e2fe3d213972e33953031edf825ad2cc86cc542b519e0c644
7
- data.tar.gz: e6594d1b7c690bd1172f81c044152cd5b87fda7abe44a9ffb0ed4c9d665c47f30e799afd196dfd062865f40e175ee3548420d78711c5d70898b5bc29536c5caf
6
+ metadata.gz: b2c07f1823b51ee9c1ef76db7f68afeeaeae0e7c1f5a96648073c61ecaa61ac62e245d7d91b64b12005afb1d15ed59303b2e4452445cd56fd491a686bac1d1c4
7
+ data.tar.gz: d671572c7f581f2f2a760882bee477b9afbafaa7196560b1db4bcbb490eec347fa78c13b02405e8641d51f86e9508df36196950b92bda2478776a65457d8e690
@@ -73,12 +73,25 @@ module Drntest
73
73
  def normalize_errors(errors)
74
74
  normalized_errors = {}
75
75
  error_details = errors.values
76
+ error_details.each do |error_detail|
77
+ normalize_error_detail!(error_detail)
78
+ end
76
79
  errors.keys.each_with_index do |source, index|
77
80
  normalized_errors["sources#{index}"] = error_details[index]
78
81
  end
79
82
  normalized_errors
80
83
  end
81
84
 
85
+ def normalize_error_detail!(error_detail)
86
+ case error_detail["body"]["name"]
87
+ when "InvalidValue"
88
+ message = error_detail["body"]["message"]
89
+ message = message.lines.first.chomp
90
+ message = message.gsub(/\#<(Groonga::[a-zA-Z]+) .*>\z/, "\#<\\1 ...>")
91
+ error_detail["body"]["message"] = message
92
+ end
93
+ end
94
+
82
95
  def normalize_groonga_command_response!(response)
83
96
  normalize_groonga_command_header!(response[0])
84
97
  normalize_groonga_command_body!(response[1..-1])
@@ -14,5 +14,5 @@
14
14
  # along with this program. If not, see <http://www.gnu.org/licenses/>.
15
15
 
16
16
  module Drntest
17
- VERSION = "1.1.7"
17
+ VERSION = "1.1.8"
18
18
  end
metadata CHANGED
@@ -1,111 +1,111 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: drntest
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.7
4
+ version: 1.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Droonga Project
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-11-18 00:00:00.000000000 Z
11
+ date: 2014-12-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json
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: :runtime
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: yajl-ruby
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: :runtime
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: droonga-client
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - '>='
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: 0.1.1
48
48
  type: :runtime
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.1.1
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: bundler
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
  - !ruby/object:Gem::Dependency
70
70
  name: rake
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - '>='
73
+ - - ">="
74
74
  - !ruby/object:Gem::Version
75
75
  version: '0'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - '>='
80
+ - - ">="
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: packnga
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - '>='
87
+ - - ">="
88
88
  - !ruby/object:Gem::Version
89
89
  version: '0'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - '>='
94
+ - - ">="
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: kramdown
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - '>='
101
+ - - ">="
102
102
  - !ruby/object:Gem::Version
103
103
  version: '0'
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - '>='
108
+ - - ">="
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0'
111
111
  description: ''
@@ -145,19 +145,20 @@ require_paths:
145
145
  - lib
146
146
  required_ruby_version: !ruby/object:Gem::Requirement
147
147
  requirements:
148
- - - '>='
148
+ - - ">="
149
149
  - !ruby/object:Gem::Version
150
150
  version: '0'
151
151
  required_rubygems_version: !ruby/object:Gem::Requirement
152
152
  requirements:
153
- - - '>='
153
+ - - ">="
154
154
  - !ruby/object:Gem::Version
155
155
  version: '0'
156
156
  requirements: []
157
157
  rubyforge_project:
158
- rubygems_version: 2.4.1
158
+ rubygems_version: 2.2.2
159
159
  signing_key:
160
160
  specification_version: 4
161
161
  summary: Drntest is a testing framework for Droonga. You can write a test for Droonga
162
162
  by writing Droonga commands and expected result.
163
163
  test_files: []
164
+ has_rdoc: