houston-core 0.8.1 → 0.8.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/app/assets/stylesheets/houston/application/modals.scss +5 -0
- data/app/controllers/actions_controller.rb +7 -0
- data/app/controllers/teams_controller.rb +1 -1
- data/app/helpers/actions_helper.rb +8 -2
- data/app/models/action.rb +4 -0
- data/app/views/actions/_actions.html.erb +1 -0
- data/app/views/actions/running.html.erb +1 -1
- data/app/views/actions/show.html.erb +2 -1
- data/app/views/errors/_actions.html.erb +1 -0
- data/app/views/errors/index.html.erb +3 -2
- data/config/routes.rb +1 -0
- data/lib/houston/version.rb +1 -1
- data/templates/new-module/lib/houston/%name%.rb +0 -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: bf0ac73eb3d8a6d5977d5ddbc3fa9e0fb3606963
|
4
|
+
data.tar.gz: 66f2cd060849457e67edf8aa391cd22a526bb23b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8b6cbfb3977ab6a5fc3e3975a298bbd4663dbc529cc815b2604e2ddc969628d05d19d0f49c5c28d150656208ea1799a3f1e533a0ed80a9a16b5f574c365bcf27
|
7
|
+
data.tar.gz: 7bf5d4111369ac82f6cf90bae84ac075cc0095f0b7c743955bb1dcfb7fb8aea8b0ebddde30cd4809f092eecdf5b10b5cfb8306f43a9c85c4d659b46215cf331d
|
data/Gemfile.lock
CHANGED
@@ -44,4 +44,11 @@ class ActionsController < ApplicationController
|
|
44
44
|
redirect_to "/actions", notice: "#{params[:slug]} is running"
|
45
45
|
end
|
46
46
|
|
47
|
+
def retry
|
48
|
+
authorize! :run, Action
|
49
|
+
action = Action.find(params[:id])
|
50
|
+
action.retry!
|
51
|
+
redirect_to "/actions/#{action.name}", notice: "#{action.name} is running"
|
52
|
+
end
|
53
|
+
|
47
54
|
end
|
@@ -6,8 +6,14 @@ module ActionsHelper
|
|
6
6
|
<div class="action-params-short">
|
7
7
|
<pre>{ #{params.keys.map(&:inspect).join(", ")} }</pre>
|
8
8
|
</div>
|
9
|
-
<div class="action-params-full">
|
10
|
-
<
|
9
|
+
<div class="action-params-full modal">
|
10
|
+
<div class="modal-header">
|
11
|
+
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
12
|
+
<h3><code>{ #{params.keys.map(&:inspect).join(", ")} }</code></h3>
|
13
|
+
</div>
|
14
|
+
<div class="modal-body">
|
15
|
+
<pre>#{_add_white_space Houston::ParamsSerializer.new.dump(params)}</pre>
|
16
|
+
</div>
|
11
17
|
</div>
|
12
18
|
HTML
|
13
19
|
end
|
data/app/models/action.rb
CHANGED
@@ -16,6 +16,7 @@
|
|
16
16
|
<th class="action-params">Params</th>
|
17
17
|
<th class="action-succeded">Succeeded</th>
|
18
18
|
<th class="action-exception">Exception</th>
|
19
|
+
<th class="action-retry">Retry</th>
|
19
20
|
<td class="table-margin"></td>
|
20
21
|
</tr>
|
21
22
|
</thead>
|
@@ -31,7 +32,7 @@
|
|
31
32
|
$('#actions')
|
32
33
|
.tablesorter()
|
33
34
|
.on('click', '.action-params-short', function() {
|
34
|
-
$(this).
|
35
|
+
$(this).next().modal();
|
35
36
|
});
|
36
37
|
});
|
37
38
|
new InfiniteScroll({
|
@@ -14,6 +14,7 @@
|
|
14
14
|
<th class="action-trigger">Trigger</th>
|
15
15
|
<th class="action-params">Params</th>
|
16
16
|
<th class="action-error-message">Message</th>
|
17
|
+
<th class="action-retry">Retry</th>
|
17
18
|
<td class="table-margin"></td>
|
18
19
|
</tr>
|
19
20
|
</thead>
|
@@ -27,10 +28,10 @@
|
|
27
28
|
<% content_for :javascripts do %>
|
28
29
|
<script type="text/javascript">
|
29
30
|
$(function() {
|
30
|
-
$('#
|
31
|
+
$('#errors')
|
31
32
|
.tablesorter()
|
32
33
|
.on('click', '.action-params-short', function() {
|
33
|
-
$(this).
|
34
|
+
$(this).next().modal();
|
34
35
|
});
|
35
36
|
});
|
36
37
|
new InfiniteScroll({
|
data/config/routes.rb
CHANGED
@@ -95,6 +95,7 @@ Rails.application.routes.draw do
|
|
95
95
|
get "actions/running", to: "actions#running", as: :running_actions
|
96
96
|
get "actions/:slug", to: "actions#show", as: :action, constraints: { slug: /[^\/]+/ }
|
97
97
|
post "actions/:slug", to: "actions#run", as: :run_action, constraints: { slug: /[^\/]+/ }
|
98
|
+
post "actions/:id/retry", to: "actions#retry", as: :retry_action
|
98
99
|
|
99
100
|
|
100
101
|
|
data/lib/houston/version.rb
CHANGED
@@ -33,7 +33,6 @@ module Houston
|
|
33
33
|
#
|
34
34
|
# add_navigation_renderer :<%= name %> do
|
35
35
|
# name "<%= camelized %>"
|
36
|
-
# icon "fa-thumbs-up"
|
37
36
|
# path { Houston::<%= camelized %>::Engine.routes.url_helpers.<%= name %>_path }
|
38
37
|
# ability { |ability| ability.can? :read, Project }
|
39
38
|
# end
|
@@ -43,7 +42,6 @@ module Houston
|
|
43
42
|
#
|
44
43
|
# add_project_feature :<%= name %> do
|
45
44
|
# name "<%= camelized %>"
|
46
|
-
# icon "fa-thumbs-up"
|
47
45
|
# path { |project| Houston::<%= camelized %>::Engine.routes.url_helpers.project_<%= name %>_path(project) }
|
48
46
|
# ability { |ability, project| ability.can? :read, project }
|
49
47
|
# end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: houston-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bob Lail
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-02-
|
11
|
+
date: 2017-02-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|