barthes 0.0.40 → 0.0.41

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,21 @@
1
+ ["feature", "Q3", [
2
+ ["scenario", "Interrupt", [
3
+ ["action", "one action", {
4
+ "params": {
5
+ "Action": "CreateQueue",
6
+ "QueueName": "before"
7
+ },
8
+ "cache": {
9
+ "xpath": "//*",
10
+ "key": "test"
11
+ }
12
+ }],
13
+ ["action", "another action", {
14
+ "sleep": 10000,
15
+ "params": {
16
+ "Action": "CreateQueue",
17
+ "QueueName": "after"
18
+ }
19
+ }]
20
+ ]]
21
+ ]]
@@ -49,22 +49,27 @@ module Barthes
49
49
  end
50
50
 
51
51
  def run(paths)
52
- files = expand_paths(paths, '_spec.json')
53
- results = []
54
- @reporter.report(:run, results) do
55
- @num = 1
56
- files.each do |file|
57
- json = JSON.parse File.read(file)
58
- @reporter.report(:feature, json[1]) do
59
- walk_json(json.last, [file])
60
- results << json
61
- json
52
+ begin
53
+ files = expand_paths(paths, '_spec.json')
54
+ results = []
55
+ @reporter.report(:run, results) do
56
+ @num = 1
57
+ files.each do |file|
58
+ json = JSON.parse File.read(file)
59
+ @reporter.report(:feature, json[1]) do
60
+ walk_json(json.last, [file])
61
+ results << json
62
+ json
63
+ end
62
64
  end
65
+ results
66
+ end
67
+ rescue StandardError => e
68
+ raise e
69
+ ensure
70
+ if !Barthes::Cache.empty?
71
+ File.write Barthes::Config[:cache], JSON.pretty_generate(Barthes::Cache) + "\n"
63
72
  end
64
- results
65
- end
66
- if !Barthes::Cache.empty?
67
- File.write Barthes::Config[:cache], JSON.pretty_generate(Barthes::Cache) + "\n"
68
73
  end
69
74
  exit @failed ? 1 : 0
70
75
  end
@@ -1,3 +1,3 @@
1
1
  module Barthes
2
- VERSION = "0.0.40"
2
+ VERSION = "0.0.41"
3
3
  end
metadata CHANGED
@@ -1,18 +1,20 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: barthes
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.40
4
+ version: 0.0.41
5
+ prerelease:
5
6
  platform: ruby
6
7
  authors:
7
8
  - tily
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2015-03-08 00:00:00.000000000 Z
12
+ date: 2015-04-03 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: bundler
15
16
  requirement: !ruby/object:Gem::Requirement
17
+ none: false
16
18
  requirements:
17
19
  - - ~>
18
20
  - !ruby/object:Gem::Version
@@ -20,6 +22,7 @@ dependencies:
20
22
  type: :development
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
@@ -27,48 +30,55 @@ dependencies:
27
30
  - !ruby/object:Gem::Dependency
28
31
  name: rake
29
32
  requirement: !ruby/object:Gem::Requirement
33
+ none: false
30
34
  requirements:
31
- - - '>='
35
+ - - ! '>='
32
36
  - !ruby/object:Gem::Version
33
37
  version: '0'
34
38
  type: :development
35
39
  prerelease: false
36
40
  version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
37
42
  requirements:
38
- - - '>='
43
+ - - ! '>='
39
44
  - !ruby/object:Gem::Version
40
45
  version: '0'
41
46
  - !ruby/object:Gem::Dependency
42
47
  name: json
43
48
  requirement: !ruby/object:Gem::Requirement
49
+ none: false
44
50
  requirements:
45
- - - '>='
51
+ - - ! '>='
46
52
  - !ruby/object:Gem::Version
47
53
  version: '0'
48
54
  type: :runtime
49
55
  prerelease: false
50
56
  version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
51
58
  requirements:
52
- - - '>='
59
+ - - ! '>='
53
60
  - !ruby/object:Gem::Version
54
61
  version: '0'
55
62
  - !ruby/object:Gem::Dependency
56
63
  name: erubis
57
64
  requirement: !ruby/object:Gem::Requirement
65
+ none: false
58
66
  requirements:
59
- - - '>='
67
+ - - ! '>='
60
68
  - !ruby/object:Gem::Version
61
69
  version: '0'
62
70
  type: :runtime
63
71
  prerelease: false
64
72
  version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
65
74
  requirements:
66
- - - '>='
75
+ - - ! '>='
67
76
  - !ruby/object:Gem::Version
68
77
  version: '0'
69
78
  - !ruby/object:Gem::Dependency
70
79
  name: slop
71
80
  requirement: !ruby/object:Gem::Requirement
81
+ none: false
72
82
  requirements:
73
83
  - - '='
74
84
  - !ruby/object:Gem::Version
@@ -76,6 +86,7 @@ dependencies:
76
86
  type: :runtime
77
87
  prerelease: false
78
88
  version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
79
90
  requirements:
80
91
  - - '='
81
92
  - !ruby/object:Gem::Version
@@ -83,62 +94,71 @@ dependencies:
83
94
  - !ruby/object:Gem::Dependency
84
95
  name: term-ansicolor
85
96
  requirement: !ruby/object:Gem::Requirement
97
+ none: false
86
98
  requirements:
87
- - - '>='
99
+ - - ! '>='
88
100
  - !ruby/object:Gem::Version
89
101
  version: '0'
90
102
  type: :runtime
91
103
  prerelease: false
92
104
  version_requirements: !ruby/object:Gem::Requirement
105
+ none: false
93
106
  requirements:
94
- - - '>='
107
+ - - ! '>='
95
108
  - !ruby/object:Gem::Version
96
109
  version: '0'
97
110
  - !ruby/object:Gem::Dependency
98
111
  name: activesupport
99
112
  requirement: !ruby/object:Gem::Requirement
113
+ none: false
100
114
  requirements:
101
- - - '>='
115
+ - - ! '>='
102
116
  - !ruby/object:Gem::Version
103
117
  version: '0'
104
118
  type: :runtime
105
119
  prerelease: false
106
120
  version_requirements: !ruby/object:Gem::Requirement
121
+ none: false
107
122
  requirements:
108
- - - '>='
123
+ - - ! '>='
109
124
  - !ruby/object:Gem::Version
110
125
  version: '0'
111
126
  - !ruby/object:Gem::Dependency
112
127
  name: nokogiri
113
128
  requirement: !ruby/object:Gem::Requirement
129
+ none: false
114
130
  requirements:
115
- - - '>='
131
+ - - ! '>='
116
132
  - !ruby/object:Gem::Version
117
133
  version: '0'
118
134
  type: :runtime
119
135
  prerelease: false
120
136
  version_requirements: !ruby/object:Gem::Requirement
137
+ none: false
121
138
  requirements:
122
- - - '>='
139
+ - - ! '>='
123
140
  - !ruby/object:Gem::Version
124
141
  version: '0'
125
142
  - !ruby/object:Gem::Dependency
126
143
  name: chronic
127
144
  requirement: !ruby/object:Gem::Requirement
145
+ none: false
128
146
  requirements:
129
- - - '>='
147
+ - - ! '>='
130
148
  - !ruby/object:Gem::Version
131
149
  version: '0'
132
150
  type: :runtime
133
151
  prerelease: false
134
152
  version_requirements: !ruby/object:Gem::Requirement
153
+ none: false
135
154
  requirements:
136
- - - '>='
155
+ - - ! '>='
137
156
  - !ruby/object:Gem::Version
138
157
  version: '0'
139
158
  - !ruby/object:Gem::Dependency
140
159
  name: httparty
141
160
  requirement: !ruby/object:Gem::Requirement
161
+ none: false
142
162
  requirements:
143
163
  - - '='
144
164
  - !ruby/object:Gem::Version
@@ -146,6 +166,7 @@ dependencies:
146
166
  type: :runtime
147
167
  prerelease: false
148
168
  version_requirements: !ruby/object:Gem::Requirement
169
+ none: false
149
170
  requirements:
150
171
  - - '='
151
172
  - !ruby/object:Gem::Version
@@ -153,20 +174,23 @@ dependencies:
153
174
  - !ruby/object:Gem::Dependency
154
175
  name: builder
155
176
  requirement: !ruby/object:Gem::Requirement
177
+ none: false
156
178
  requirements:
157
- - - '>='
179
+ - - ! '>='
158
180
  - !ruby/object:Gem::Version
159
181
  version: '0'
160
182
  type: :runtime
161
183
  prerelease: false
162
184
  version_requirements: !ruby/object:Gem::Requirement
185
+ none: false
163
186
  requirements:
164
- - - '>='
187
+ - - ! '>='
165
188
  - !ruby/object:Gem::Version
166
189
  version: '0'
167
190
  - !ruby/object:Gem::Dependency
168
191
  name: ace-client
169
192
  requirement: !ruby/object:Gem::Requirement
193
+ none: false
170
194
  requirements:
171
195
  - - '='
172
196
  - !ruby/object:Gem::Version
@@ -174,6 +198,7 @@ dependencies:
174
198
  type: :runtime
175
199
  prerelease: false
176
200
  version_requirements: !ruby/object:Gem::Requirement
201
+ none: false
177
202
  requirements:
178
203
  - - '='
179
204
  - !ruby/object:Gem::Version
@@ -194,6 +219,7 @@ files:
194
219
  - Rakefile
195
220
  - barthes.gemspec
196
221
  - bin/barthes
222
+ - example/interrupt_spec.json
197
223
  - example/q3_env.json
198
224
  - example/q3_spec.json
199
225
  - lib/barthes.rb
@@ -217,25 +243,26 @@ files:
217
243
  homepage: ''
218
244
  licenses:
219
245
  - MIT
220
- metadata: {}
221
246
  post_install_message:
222
247
  rdoc_options: []
223
248
  require_paths:
224
249
  - lib
225
250
  required_ruby_version: !ruby/object:Gem::Requirement
251
+ none: false
226
252
  requirements:
227
- - - '>='
253
+ - - ! '>='
228
254
  - !ruby/object:Gem::Version
229
255
  version: '0'
230
256
  required_rubygems_version: !ruby/object:Gem::Requirement
257
+ none: false
231
258
  requirements:
232
- - - '>='
259
+ - - ! '>='
233
260
  - !ruby/object:Gem::Version
234
261
  version: '0'
235
262
  requirements: []
236
263
  rubyforge_project:
237
- rubygems_version: 2.3.0
264
+ rubygems_version: 1.8.24
238
265
  signing_key:
239
- specification_version: 4
266
+ specification_version: 3
240
267
  summary: lightweight scenario test framework
241
268
  test_files: []
checksums.yaml DELETED
@@ -1,7 +0,0 @@
1
- ---
2
- SHA1:
3
- metadata.gz: ce010b1f65abecde54e0b86aa1c96d45c7072914
4
- data.tar.gz: 62bc9819e219f749dd3f1f33aa28e992fc81b61e
5
- SHA512:
6
- metadata.gz: 342a992070f2ed957b4f2bc0061c1582983518597382de2ee81d1cf72e642b182ca5531101a6bea8922f8c40c4dbe80da16c4797ed70648e243b1f1687ffa422
7
- data.tar.gz: c6b6c257208432362ea327bad13c93929669ad561043af8f7ee8a8f0708a08e38948c7365796068badcadc64fe8c80b57af210f8b0386dfc69100b1a62714457