zensana 1.7.0 → 1.8.0
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/zensana/commands/view.rb +15 -6
- data/lib/zensana/version.rb +1 -1
- 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: bd5aaefb80cc6a26f574f7282f794acab96437ef
|
4
|
+
data.tar.gz: 135b08aeb5e875e0631bb2e0d62ecf982dad4d33
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a47d34f7ad03e37a1ddde0f32b3f39fda3ad6565aa586aaa65e86f8bab0296ed0bae275f6f541ccfc5bd6ec687d3bc9093967084bf3cfba8a6330678a9032743
|
7
|
+
data.tar.gz: 0a44e3a11a20c43ed6e8b76d815b0c5fb0333c6b3dafb3a8372ef7911a4b8da91557c49baca4de62bcb83a0a5fc4d19376cf1da8e5e395f4e9fc66cd90e13f94
|
@@ -27,7 +27,7 @@ module Zensana
|
|
27
27
|
Dir.chdir file_dir = File.join(Dir.home, 'Downloads')
|
28
28
|
|
29
29
|
CSV.open(csv_file, 'w') do |output|
|
30
|
-
output << %w(Id Status Subject Component Description Requester RequestDate SolvedDate Duration)
|
30
|
+
output << %w(Id Status Subject Component Description Requester RequestDate SolvedDate Duration DevEscalated?)
|
31
31
|
tickets.each do |ticket|
|
32
32
|
output.puts transform_ticket(ticket)
|
33
33
|
end
|
@@ -52,6 +52,7 @@ module Zensana
|
|
52
52
|
fields << created.to_s
|
53
53
|
fields << updated.to_s
|
54
54
|
fields << (updated - created).to_i
|
55
|
+
fields << jira_escalated?(ticket['tags'])
|
55
56
|
end
|
56
57
|
|
57
58
|
def get_user_name(id)
|
@@ -60,7 +61,15 @@ module Zensana
|
|
60
61
|
end
|
61
62
|
|
62
63
|
def get_component(fields)
|
63
|
-
get_custom_field(fields,
|
64
|
+
get_custom_field(fields, component_key).split('_').last
|
65
|
+
end
|
66
|
+
|
67
|
+
def component_key
|
68
|
+
'24375555'
|
69
|
+
end
|
70
|
+
|
71
|
+
def jira_escalated?(fields)
|
72
|
+
fields.include? 'jira_escalated'
|
64
73
|
end
|
65
74
|
|
66
75
|
def get_custom_field(fields, id)
|
@@ -87,11 +96,11 @@ module Zensana
|
|
87
96
|
|
88
97
|
def ignore_list
|
89
98
|
[
|
90
|
-
'Original Message',
|
91
|
-
'
|
92
|
-
'
|
99
|
+
'Original Message',
|
100
|
+
'From:', 'Sent:', 'To:', 'Cc:',
|
101
|
+
'Subject:','---', '___',
|
102
|
+
'Hello', 'Hi ', 'Hi,'
|
93
103
|
]
|
94
104
|
end
|
95
|
-
|
96
105
|
end
|
97
106
|
end
|
data/lib/zensana/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: zensana
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Warren Bain
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-11-
|
11
|
+
date: 2015-11-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: awesome_print
|