opsask 2.3.8 → 2.3.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/bin/opsask-generate-email-summary.rb +3 -3
- data/bin/opsask-send-email-summary.sh +1 -1
- data/lib/opsask/helpers.rb +1 -2
- data/lib/opsask/main.rb +2 -2
- data/views/_queue.erb +2 -2
- 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: 66b2d7d52742349bbb006880e8f19526a6805c24
|
4
|
+
data.tar.gz: 113d88d98edcc7f1eeaa1f152a9b03af7671110a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 310e4d32c626986366f389818b8022c2ace0484e2f2ff9432c1071c58d083dabbba89765a2dfe1f71ec39096d227860a23567d74beff3528099e90af658e52d7
|
7
|
+
data.tar.gz: 9535abf09bc6999f41ab3907ec202470d0285d3bf2b148a24e9b84b32881abd623bdfa49312d4bfc71f7095ca1d55a7184164f4bb10b3573694bcceed735b7c1
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.3.
|
1
|
+
2.3.9
|
@@ -1,9 +1,9 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
require 'json'
|
3
3
|
|
4
|
-
JIRA = 'http://jira.
|
5
|
-
UNTRACKED = "http://opsask.
|
6
|
-
STRAGGLERS = "http://opsask.
|
4
|
+
JIRA = 'http://jira.bjn.io'
|
5
|
+
UNTRACKED = "http://opsask.bjn.io/untracked"
|
6
|
+
STRAGGLERS = "http://opsask.bjn.io/stragglers"
|
7
7
|
|
8
8
|
# Don't run on the weekend
|
9
9
|
exit 0 if Time.now.saturday? || Time.now.sunday?
|
@@ -6,7 +6,7 @@ email_summary=/tmp/opsask-$(date +%s).txt
|
|
6
6
|
ruby opsask-generate-email-summary.rb $jira_user $jira_pass > $email_summary
|
7
7
|
if [ -s $email_summary ] ; then
|
8
8
|
echo 'Sending out daily summary'
|
9
|
-
cat $email_summary | mail -a 'From: noreply@opsask.
|
9
|
+
cat $email_summary | mail -a 'From: noreply@opsask.bjn.io' -a 'Content-Type: text/html' -s "OpsAsk Summary for $(date '+%B %-d')" $email_to
|
10
10
|
else
|
11
11
|
echo 'Nothing to send'
|
12
12
|
fi
|
data/lib/opsask/helpers.rb
CHANGED
@@ -275,8 +275,7 @@ module OpsAsk
|
|
275
275
|
def jira_count_for_tomorrow really=false ; jira_count_for(tomorrow, really) end
|
276
276
|
|
277
277
|
def raw_classes_for jira
|
278
|
-
|
279
|
-
classes << jira.fields['assignee']['name'].downcase.gsub(/\W+/, '')
|
278
|
+
[ jira.fields['resolution'].nil? ? 'open' : 'closed' ]
|
280
279
|
end
|
281
280
|
|
282
281
|
def classes_for jira
|
data/lib/opsask/main.rb
CHANGED
@@ -50,7 +50,7 @@ module OpsAsk
|
|
50
50
|
assignee: 'denimcores',
|
51
51
|
jira_user: nil,
|
52
52
|
jira_pass: nil,
|
53
|
-
jira_url: 'http://jira.
|
53
|
+
jira_url: 'http://jira.bjn.io',
|
54
54
|
queue_size: 10,
|
55
55
|
cutoff_hour: 18, # 6pm
|
56
56
|
project_key: 'INF',
|
@@ -76,4 +76,4 @@ module OpsAsk
|
|
76
76
|
raise_errors: true
|
77
77
|
end
|
78
78
|
end
|
79
|
-
end
|
79
|
+
end
|
data/views/_queue.erb
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
<ul class="queue square">
|
5
5
|
<% jiras.each do |jira| %>
|
6
6
|
<li class="jira <%= classes_for jira %>">
|
7
|
-
<a href="http://jira.
|
7
|
+
<a href="http://jira.bjn.io/browse/<%= jira.key %>">
|
8
8
|
<% labels = jira.fields['labels'].reject { |i|
|
9
9
|
i == 'OpsAsk' || i =~ /Sprint/
|
10
10
|
}.map { |l|
|
@@ -23,4 +23,4 @@
|
|
23
23
|
</li>
|
24
24
|
<% end %>
|
25
25
|
</ul>
|
26
|
-
<% end %>
|
26
|
+
<% end %>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: opsask
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.3.
|
4
|
+
version: 2.3.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sean Clemmer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-01-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|