opsask 2.3.1 → 2.3.2
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/app.rb +4 -2
- data/lib/opsask/helpers.rb +0 -14
- data/views/_form.erb +2 -2
- data/views/days.erb +2 -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: 53b67250a3b7e7db5e619794065276d5cb8b5967
|
4
|
+
data.tar.gz: 3bdd20e256b8e3c565d5097587c5b59cc4e4a78c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 34fc0675d2cc43bd15bca002494ebc781e29021c542abb61a55441c2992efa8acc2390b7b17085b5bed550b7ff3ff8835e6f51051cb0b093b205011da18c82af
|
7
|
+
data.tar.gz: 1bfca809319e175787dab642108f3186deb26e2fb2f8c7702084723c913d5c6364f3dfd805b1ca88b872e48d1ddcdd30ef06645166913b2e4af2835feac4f422
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.3.
|
1
|
+
2.3.2
|
data/lib/opsask/app.rb
CHANGED
@@ -16,6 +16,7 @@ module OpsAsk
|
|
16
16
|
include OpsAsk::Helpers
|
17
17
|
|
18
18
|
@@room = nil
|
19
|
+
@@room_json = '{}'
|
19
20
|
|
20
21
|
set :root, OpsAsk::ROOT
|
21
22
|
|
@@ -84,8 +85,9 @@ module OpsAsk
|
|
84
85
|
date = today n * one_day
|
85
86
|
@@room[date] = room_for_new_jiras_for? date
|
86
87
|
end
|
88
|
+
@@room_json = JSON.generate(@@room)
|
87
89
|
end
|
88
|
-
|
90
|
+
@@room_json
|
89
91
|
end
|
90
92
|
|
91
93
|
get '/untracked' do
|
@@ -180,7 +182,7 @@ module OpsAsk
|
|
180
182
|
component, summary, description, assign_to_me, epic, ops_only, datepicker = validate_jira_params
|
181
183
|
|
182
184
|
if datepicker.nil? || datepicker.empty?
|
183
|
-
duedate =
|
185
|
+
duedate = date_for_new_jiras
|
184
186
|
else
|
185
187
|
duedate = datepicker
|
186
188
|
end
|
data/lib/opsask/helpers.rb
CHANGED
@@ -333,20 +333,6 @@ module OpsAsk
|
|
333
333
|
end
|
334
334
|
end
|
335
335
|
|
336
|
-
def room_for_new_jiras? really=false
|
337
|
-
return true if params[:force]
|
338
|
-
return false if params[:full]
|
339
|
-
return true if ops? && !really
|
340
|
-
!date_for_new_jiras(really).nil?
|
341
|
-
end
|
342
|
-
|
343
|
-
def validate_room_for_new_jiras
|
344
|
-
duedate = date_for_new_jiras
|
345
|
-
return duedate unless duedate.nil?
|
346
|
-
flash[:error] = [ "Sorry, there's is no room for new JIRAs" ]
|
347
|
-
redirect '/'
|
348
|
-
end
|
349
|
-
|
350
336
|
def validate_jira_params
|
351
337
|
flash[:error] = []
|
352
338
|
flash[:error] << 'Summary is required' if params['jira-summary'].empty?
|
data/views/_form.erb
CHANGED
@@ -17,9 +17,9 @@
|
|
17
17
|
</div>
|
18
18
|
<div class="row actions">
|
19
19
|
<div class="small-8 columns">
|
20
|
-
<input type="checkbox" name="jira-assign_to_me" id="jira-assign_to_me" />
|
21
|
-
<label for="jira-assign_to_me">Assign to me</label>
|
22
20
|
<% if ops? %>
|
21
|
+
<input type="checkbox" name="jira-assign_to_me" id="jira-assign_to_me" />
|
22
|
+
<label for="jira-assign_to_me">Assign to me</label>
|
23
23
|
<input type="checkbox" name="jira-ops_only" id="jira-ops_only" />
|
24
24
|
<label for="jira-ops_only">Ops Only</label>
|
25
25
|
<% end %>
|
data/views/days.erb
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
<div class="row">
|
2
|
-
<% c = 12.0 / jiras_by_day.keys.length.to_f
|
2
|
+
<% c = 12.0 / jiras_by_day.keys.length.to_f %>
|
3
|
+
<% c = c > 12 ? 12 : c.floor %>
|
3
4
|
<% i = 0 %>
|
4
5
|
<% jiras_by_day.each do |date, jiras| %>
|
5
6
|
<div id="ops-queue-<%= i %>" class="ops-queue small-<%= c %> columns">
|
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.2
|
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-08-
|
11
|
+
date: 2015-08-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|