stddtool 0.5.0.2 → 0.5.1.1
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.
- checksums.yaml +4 -4
- data/lib/stddtool.rb +17 -16
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d9abc3cd97256698f2c6f3a48cbcaf46dae6ab7d
|
4
|
+
data.tar.gz: 6059684187c5b8ebfe8d9d34f315f7e2fd47e2f0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ce14f5b2ed26793b3ee82a6ded758acb206268f145af4d2e5ca89c1ecfbcb360dced5ff7429bf69f12003b7e28f5df64ed94524e8b8c4e359e33a1bde7c709cc
|
7
|
+
data.tar.gz: 0c90ac7a4551bc3ef53656d6576825a084b591f20bb61b601c754943a725ab582f099794bf3b58ba29e27fd97664b0384395e8d887e89c30c8462a591b91b879
|
data/lib/stddtool.rb
CHANGED
@@ -57,7 +57,7 @@ module Cucumber
|
|
57
57
|
@module = response
|
58
58
|
else
|
59
59
|
@connection_error = response
|
60
|
-
puts @connection_error
|
60
|
+
@io.puts @connection_error
|
61
61
|
end
|
62
62
|
end
|
63
63
|
|
@@ -71,6 +71,7 @@ module Cucumber
|
|
71
71
|
|
72
72
|
#Run
|
73
73
|
create_run_if_not_exists(@project.id,run_name,run_source,run_revision)
|
74
|
+
|
74
75
|
|
75
76
|
end
|
76
77
|
|
@@ -81,9 +82,9 @@ module Cucumber
|
|
81
82
|
|
82
83
|
# Om kunden finns
|
83
84
|
if(valid && response)
|
84
|
-
puts "Customer already exists"
|
85
|
+
@io.puts "Customer already exists"
|
85
86
|
else
|
86
|
-
puts "Customer does not exist, creating new.."
|
87
|
+
@io.puts "Customer does not exist, creating new.."
|
87
88
|
# Skapa en kund
|
88
89
|
valid, response = @stdd_client.create_customer customer_name
|
89
90
|
end
|
@@ -93,7 +94,7 @@ module Cucumber
|
|
93
94
|
return true
|
94
95
|
else
|
95
96
|
@connection_error = response
|
96
|
-
puts @connection_error
|
97
|
+
@io.puts @connection_error
|
97
98
|
return false
|
98
99
|
end
|
99
100
|
|
@@ -106,12 +107,12 @@ module Cucumber
|
|
106
107
|
|
107
108
|
# Om projektet finns
|
108
109
|
if(valid)
|
109
|
-
puts "Project already exists"
|
110
|
+
@io.puts "Project already exists"
|
110
111
|
@project = response
|
111
112
|
return true
|
112
113
|
end
|
113
114
|
|
114
|
-
puts "Project does not exist, creating new.."
|
115
|
+
@io.puts "Project does not exist, creating new.."
|
115
116
|
# Skapa ett projekt
|
116
117
|
valid, response = @stdd_client.create_project customer_id, project_name
|
117
118
|
if valid
|
@@ -119,7 +120,7 @@ module Cucumber
|
|
119
120
|
return true
|
120
121
|
else
|
121
122
|
@connection_error = response
|
122
|
-
puts @connection_error
|
123
|
+
@io.puts @connection_error
|
123
124
|
return false
|
124
125
|
end
|
125
126
|
|
@@ -132,12 +133,12 @@ module Cucumber
|
|
132
133
|
|
133
134
|
# If run exist
|
134
135
|
if(valid)
|
135
|
-
puts "Run already exists"
|
136
|
+
@io.puts "Run already exists"
|
136
137
|
@run = response
|
137
138
|
return true
|
138
139
|
end
|
139
140
|
|
140
|
-
puts "Run does not exist, creating new.."
|
141
|
+
@io.puts "Run does not exist, creating new.."
|
141
142
|
# Create run
|
142
143
|
#Run
|
143
144
|
valid, response = @stdd_client.create_run(@project.id,run_name,run_source,run_revision)
|
@@ -145,7 +146,7 @@ module Cucumber
|
|
145
146
|
@run = response
|
146
147
|
else
|
147
148
|
@connection_error = response
|
148
|
-
puts @connection_error
|
149
|
+
@io.puts @connection_error
|
149
150
|
end
|
150
151
|
|
151
152
|
end
|
@@ -163,14 +164,14 @@ module Cucumber
|
|
163
164
|
#success
|
164
165
|
else
|
165
166
|
@connection_error = response
|
166
|
-
puts @connection_error
|
167
|
+
@io.puts @connection_error
|
167
168
|
end
|
168
169
|
end
|
169
170
|
end
|
170
171
|
|
171
172
|
def before_feature(feature)
|
172
173
|
return if @connection_error
|
173
|
-
# puts feature.source_tag_names
|
174
|
+
# @io.puts feature.source_tag_names
|
174
175
|
@feature = STDDAPI::Objects::Feature.new(@module.id,feature.title,Time.now)
|
175
176
|
@feature.description = feature.description
|
176
177
|
@feature.tags = feature.source_tag_names
|
@@ -181,7 +182,7 @@ module Cucumber
|
|
181
182
|
@feature.id = response
|
182
183
|
else
|
183
184
|
@connection_error = response
|
184
|
-
puts @connection_error
|
185
|
+
@io.puts @connection_error
|
185
186
|
end
|
186
187
|
|
187
188
|
# @feature_element = FeatureElement.new
|
@@ -238,7 +239,7 @@ module Cucumber
|
|
238
239
|
@scenario.id = response
|
239
240
|
else
|
240
241
|
@connection_error = response
|
241
|
-
puts @connection_error
|
242
|
+
@io.puts @connection_error
|
242
243
|
end
|
243
244
|
end
|
244
245
|
|
@@ -256,7 +257,7 @@ module Cucumber
|
|
256
257
|
# success
|
257
258
|
else
|
258
259
|
@connection_error = response
|
259
|
-
puts @connection_error
|
260
|
+
@io.puts @connection_error
|
260
261
|
end
|
261
262
|
end
|
262
263
|
|
@@ -267,7 +268,7 @@ module Cucumber
|
|
267
268
|
@module = response
|
268
269
|
else
|
269
270
|
@connection_error = response
|
270
|
-
puts @connection_error
|
271
|
+
@io.puts @connection_error
|
271
272
|
end
|
272
273
|
end
|
273
274
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: stddtool
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Anton Danielsson
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2014-02
|
13
|
+
date: 2014-04-02 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: stdd_api
|