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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fdf721149b07f29d14acb1c3b11eb104ae2798fc
4
- data.tar.gz: 56f45d3c535362be0ae2367e49b33520d8f47e2b
3
+ metadata.gz: 66b2d7d52742349bbb006880e8f19526a6805c24
4
+ data.tar.gz: 113d88d98edcc7f1eeaa1f152a9b03af7671110a
5
5
  SHA512:
6
- metadata.gz: e0e216dc3b56b9b69c55811369d30af0ca7784bb52e65d4c4abe40327f1ecbe91471a843e86e47cedfd082fe0532ddbc8a1922f4bced50e935655e33ecfdab6d
7
- data.tar.gz: e3f6cf3e1b1fd895fdfc77ab7c9ed470f393b86d25193dad7342a254dab27834dcd6ec8d3e9e676b5e3eef4ae9508859f6ecc6c8ca6a144f303dc565b6547017
6
+ metadata.gz: 310e4d32c626986366f389818b8022c2ace0484e2f2ff9432c1071c58d083dabbba89765a2dfe1f71ec39096d227860a23567d74beff3528099e90af658e52d7
7
+ data.tar.gz: 9535abf09bc6999f41ab3907ec202470d0285d3bf2b148a24e9b84b32881abd623bdfa49312d4bfc71f7095ca1d55a7184164f4bb10b3573694bcceed735b7c1
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.3.8
1
+ 2.3.9
@@ -1,9 +1,9 @@
1
1
  #!/usr/bin/env ruby
2
2
  require 'json'
3
3
 
4
- JIRA = 'http://jira.bluejeansnet.com'
5
- UNTRACKED = "http://opsask.bluejeansnet.com/untracked"
6
- STRAGGLERS = "http://opsask.bluejeansnet.com/stragglers"
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.bluejeansnet.com' -a 'Content-Type: text/html' -s "OpsAsk Summary for $(date '+%B %-d')" $email_to
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
@@ -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
- classes = [ jira.fields['resolution'].nil? ? 'open' : 'closed' ]
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.bluejeansnet.com',
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.bluejeansnet.com/browse/<%= jira.key %>">
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.8
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: 2015-11-25 00:00:00.000000000 Z
11
+ date: 2016-01-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor