trackinator 0.0.12 → 0.0.13
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +3 -0
- data/Rakefile +2 -1
- data/lib/trackinator.rb +0 -1
- data/lib/trackinator/version.rb +1 -1
- data/lib/trackinator/you_track.rb +3 -3
- data/spec/spec_helper.rb +15 -0
- data/spec/trackinator/google_spec.rb +7 -0
- data/spec/trackinator/importer_spec.rb +7 -0
- data/spec/trackinator/you_track_spec.rb +7 -0
- metadata +11 -3
data/Gemfile
CHANGED
data/Rakefile
CHANGED
data/lib/trackinator.rb
CHANGED
data/lib/trackinator/version.rb
CHANGED
@@ -118,8 +118,6 @@ module Trackinator
|
|
118
118
|
end
|
119
119
|
|
120
120
|
def set_summary_and_description issue_id, summary, description, outcome
|
121
|
-
return true if summary.nil? || description.nil?
|
122
|
-
|
123
121
|
response = @connection.post("#{@path_prefix}rest/issue/#{issue_id}/?summary=#{url_encode(summary)}&description=#{url_encode(construct_description(description, outcome))}&disableNotifications=true", nil, { 'Cookie' => @cookie })
|
124
122
|
response.header.msg.eql? "OK"
|
125
123
|
end
|
@@ -153,9 +151,11 @@ module Trackinator
|
|
153
151
|
end
|
154
152
|
|
155
153
|
def construct_description description, outcome
|
154
|
+
return if description.nil?
|
155
|
+
|
156
156
|
template = ERB.new <<-EOF
|
157
157
|
<% unless outcome.nil? %>'''Steps'''<% end %>
|
158
|
-
<% if description.split(';').length > 1 %><% description.split(';').each do |step| %>
|
158
|
+
<% if !description.nil? && description.split(';').length > 1 %><% description.split(';').each do |step| %>
|
159
159
|
*<%= step.strip %><% end %>
|
160
160
|
<% else %>
|
161
161
|
<%= description %>
|
data/spec/spec_helper.rb
ADDED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: trackinator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.13
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-08-
|
12
|
+
date: 2012-08-16 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: gdata_19
|
@@ -66,6 +66,10 @@ files:
|
|
66
66
|
- lib/trackinator/importer.rb
|
67
67
|
- lib/trackinator/version.rb
|
68
68
|
- lib/trackinator/you_track.rb
|
69
|
+
- spec/spec_helper.rb
|
70
|
+
- spec/trackinator/google_spec.rb
|
71
|
+
- spec/trackinator/importer_spec.rb
|
72
|
+
- spec/trackinator/you_track_spec.rb
|
69
73
|
- trackinator.gemspec
|
70
74
|
homepage: https://github.com/justincbeck/trackinator
|
71
75
|
licenses: []
|
@@ -91,4 +95,8 @@ rubygems_version: 1.8.24
|
|
91
95
|
signing_key:
|
92
96
|
specification_version: 3
|
93
97
|
summary: Imports a spreadsheet in to YouTrack
|
94
|
-
test_files:
|
98
|
+
test_files:
|
99
|
+
- spec/spec_helper.rb
|
100
|
+
- spec/trackinator/google_spec.rb
|
101
|
+
- spec/trackinator/importer_spec.rb
|
102
|
+
- spec/trackinator/you_track_spec.rb
|