opsask 2.1.4 → 2.1.5
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/lib/opsask/helpers.rb +4 -0
- data/public/js/opsask.js +3 -3
- data/views/_form.erb +4 -3
- 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: 07d5f94aff9cfc77ae9f8566db11891c1028c3a4
|
4
|
+
data.tar.gz: d92da7b7cbabe21ca415985ad2cb137defc475f8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 431378a878b5d1898b3f91d78ee1074e5ec0940728dd1e8b3cdba2d324f1437a6125d3bb2a73e00070020f2155e3808b87de948f939b2f277c0d77adbcaaa118
|
7
|
+
data.tar.gz: 6690b98cbbd0b7d64532afcb53aa72cc70f42d80290a4dd79bf86e9cfce4746ae2a9178a274375313c672f8e3d7d06dca9e570627bdd7d65d02c3b0dfde82a8a
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.1.
|
1
|
+
2.1.5
|
data/lib/opsask/helpers.rb
CHANGED
@@ -291,6 +291,8 @@ module OpsAsk
|
|
291
291
|
end
|
292
292
|
|
293
293
|
def room_for_new_jiras_for? date
|
294
|
+
return true if params[:force]
|
295
|
+
return false if params[:full]
|
294
296
|
return true if ops?
|
295
297
|
jira_count_for(date) < settings.config[:queue_size]
|
296
298
|
end
|
@@ -306,6 +308,8 @@ module OpsAsk
|
|
306
308
|
end
|
307
309
|
|
308
310
|
def room_for_new_jiras?
|
311
|
+
return true if params[:force]
|
312
|
+
return false if params[:full]
|
309
313
|
return true if ops?
|
310
314
|
!date_for_new_jiras.nil?
|
311
315
|
end
|
data/public/js/opsask.js
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
;(function(){
|
2
2
|
$(document).ready(function(){
|
3
3
|
var sawmillLink = document.location.search + document.location.hash;
|
4
|
-
|
4
|
+
var sawmillPrefix = '?sawmill=';
|
5
5
|
|
6
|
-
if (sawmillLink
|
7
|
-
|
6
|
+
if (sawmillLink.indexOf(sawmillPrefix) == 0) {
|
7
|
+
sawmillLink = sawmillLink.replace(sawmillPrefix, '');
|
8
8
|
$('#jira-description').val("Add details for IDs, GUIDs, timeframe, queries, ...\n\n" + sawmillLink);
|
9
9
|
}
|
10
10
|
|
data/views/_form.erb
CHANGED
@@ -4,9 +4,10 @@
|
|
4
4
|
<% elsif not room_for_new_jiras? %>
|
5
5
|
<h3 class="ops-queues-are-full">Sorry, we’re out of room</h3>
|
6
6
|
<p class="ops-queues-are-full">
|
7
|
-
|
8
|
-
|
9
|
-
|
7
|
+
We've reached the maximum number of OpsAsks filed for the next couple of
|
8
|
+
days. Please send your request to the Network Operations mailing list
|
9
|
+
(<a href="mailto:netops@bluejeans.com">netops@bluejeans.com</a>), and we'll
|
10
|
+
respond shortly. Our apologies for any inconvenience.</p>
|
10
11
|
|
11
12
|
<% else %>
|
12
13
|
<form method="post" action="/" data-abide>
|
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.1.
|
4
|
+
version: 2.1.5
|
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-01-
|
11
|
+
date: 2015-01-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|