tractive 1.0.20 → 1.0.21
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/tractive/migrator/converter/trac_to_github.rb +9 -2
- data/lib/tractive/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7a10eeb2f828d2d135d48f0f6437f669c939104e17ef1b777e42d29e59aac5dc
|
4
|
+
data.tar.gz: df20934dfee4b890c9f633df93955f60d237987743c48f12a95a4bb8cb1b8806
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8dbc73bbf823c89b05267fb42991401f33c6e1097488b0e49bd4ec87a3c457ddfa500d6d16fd88793a6bb9ccd4a2c27514a74b1ca3e5c10786184284d691ae7f
|
7
|
+
data.tar.gz: ca6165b8852a0c5609737f5794683e8bb82c522934f861d59eb798a2475d8662b95742a76cd19c585a45980aa4a12cfaf3a35f169235c74ae2adb43851b667e4
|
@@ -75,12 +75,19 @@ module Migrator
|
|
75
75
|
# replay all changes in chronological order:
|
76
76
|
comments = changes.map { |x| ticket_change(@singlepost, x) }.select { |x| x }.to_a
|
77
77
|
|
78
|
+
index = 0
|
78
79
|
curr_index = 0
|
79
|
-
changes.
|
80
|
-
|
80
|
+
changes.each do |change|
|
81
|
+
kind = change[:field] || "attachment"
|
82
|
+
|
83
|
+
next unless interested_in_change?(kind, change[:newvalue])
|
84
|
+
|
85
|
+
if kind == "comment" || (kind == "attachment" && change[:description] != "")
|
81
86
|
@comments_map[curr_index] = index
|
82
87
|
curr_index += 1
|
83
88
|
end
|
89
|
+
|
90
|
+
index += 1
|
84
91
|
end
|
85
92
|
|
86
93
|
if @singlepost
|
data/lib/tractive/version.rb
CHANGED