zensana 1.7.0 → 1.8.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 26228bf1614321af4ecf3045084e0fdf3970fba6
4
- data.tar.gz: 39b1f80fc6b4fe3323fd3711d6ae550d6ac65fb2
3
+ metadata.gz: bd5aaefb80cc6a26f574f7282f794acab96437ef
4
+ data.tar.gz: 135b08aeb5e875e0631bb2e0d62ecf982dad4d33
5
5
  SHA512:
6
- metadata.gz: 092da1a5c00e8d1e8c4f80f76d6928883649bfd7ea2a5b62ebd49ebfaedc5e566f7b347a317150752354b2ae670f47d6c17ee418aa14e694d0b705a6b6cf60b0
7
- data.tar.gz: 8c89f95b12f3df61e704f90a5d5d0c3eeb26cb1a931797f703298c2960e2c88780d3823fa956b6685d75386a8624d8b29858e7aacec6c033bad2e598910def8e
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, '24375555').split('_').last
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', 'From:', 'Sent:',
91
- 'To:', 'Cc:', 'Subject:',
92
- '---', '___', 'Hi ', 'Hi,'
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
@@ -1,3 +1,3 @@
1
1
  module Zensana
2
- VERSION = "1.7.0"
2
+ VERSION = "1.8.0"
3
3
  end
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.7.0
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-09 00:00:00.000000000 Z
11
+ date: 2015-11-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: awesome_print