sidekiq_adhoc_job 0.1.2 → 0.1.3

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
  SHA256:
3
- metadata.gz: cbb78def72673141d39f88a5cdd7b3142da526620ce4ec42829cac57cc35f398
4
- data.tar.gz: ae4d22cb3bcaeef550515011c282368bd6f6ccb75b93a9b6fc397af87cdd9662
3
+ metadata.gz: d343fd5493049cf0f38225bfde6a3d5329e1bf9aa97d9c57a78b2896cd615ad1
4
+ data.tar.gz: 3e5b08a0e5a81ab52070158ec10e64c6f92a34726244d356a096259981a0d62d
5
5
  SHA512:
6
- metadata.gz: 50288dad7f7287ceed184e0327febe69b26eccf994a81f335819aa6b15bc9c8c300e7da3c373dce6ea3de3beb5b4cabf0539c25765dab3659cda63041d97cb9e
7
- data.tar.gz: e6f3e09e7c731034059bfc6085219a20c401385d65b52fd57d659ab739a0d6d4c41d8a1fd330d47256ebb62b9d5e7c841711383897ed36db0ebfc6ed8988b541
6
+ metadata.gz: f0b0a21ab330712ab59a2c0a356f5ca6c1c31ff9a704b9c08ab3b5ced2f22d11deee0a831c4e1bac51592e9420f74cbfea18aa4bab5f184e44e51f9e36c17d2a
7
+ data.tar.gz: c37d32257e371b2cf4851733ee3f9f32a31d495e372801411c6c491aae2ce482f654e409561e8300dfa602d63d01506b6962a4e6201fcd817d8bb18fbd360964
@@ -1,3 +1,3 @@
1
1
  module SidekiqAdhocJob
2
- VERSION = '0.1.2'.freeze
2
+ VERSION = '0.1.3'.freeze
3
3
  end
@@ -4,7 +4,7 @@ module SidekiqAdhocJob
4
4
  class JobPresenter
5
5
  include Sidekiq::WebHelpers
6
6
 
7
- attr_reader :name, :path_name, :queue, :required_args, :optional_args, :has_rest_args, :args
7
+ attr_reader :name, :path_name, :queue, :has_rest_args, :args
8
8
 
9
9
  StringUtil ||= ::SidekiqAdhocJob::Utils::String
10
10
 
@@ -1,11 +1,10 @@
1
1
  en:
2
2
  adhoc_jobs: Adhoc Jobs
3
3
  adhoc_jobs_actions: Actions
4
+ adhoc_jobs_arguments: Required Arguments
4
5
  adhoc_jobs_go_back: Go Back
5
6
  adhoc_jobs_has_rest_arguments: Has Rest Arguments
6
7
  adhoc_jobs_name: Job Name
7
- adhoc_jobs_optional_arguments: Optional Arguments
8
8
  adhoc_jobs_queue: Job Queue
9
- adhoc_jobs_required_arguments: Required Arguments
10
9
  adhoc_jobs_run_job: Run Job
11
10
  adhoc_jobs_view_job: View Job
@@ -6,8 +6,7 @@
6
6
  <tr>
7
7
  <th><%= t('adhoc_jobs_name') %></th>
8
8
  <th><%= t('adhoc_jobs_queue') %></th>
9
- <th><%= t('adhoc_jobs_required_arguments') %></th>
10
- <th><%= t('adhoc_jobs_optional_arguments') %></th>
9
+ <th><%= t('adhoc_jobs_arguments') %></th>
11
10
  <th><%= t('adhoc_jobs_has_rest_arguments') %></th>
12
11
  <th><%= t('adhoc_jobs_actions') %></th>
13
12
  </tr>
@@ -18,8 +17,7 @@
18
17
  <tr>
19
18
  <td><%= job.name %></td>
20
19
  <td><%= job.queue %></td>
21
- <td><%= job.required_args.join(', ') %></td>
22
- <td><%= job.optional_args.join(', ') %></td>
20
+ <td><%= job.args.join(', ') %></td>
23
21
  <td><%= job.has_rest_args %></td>
24
22
  <td class="text-center">
25
23
  <a class="btn btn-warn btn-xs" href="<%= root_path %>adhoc-jobs/<%= URI.escape(job.path_name) %>">
@@ -5,7 +5,7 @@
5
5
  <% if @presented_job.args.empty? && !@presented_job.has_rest_args %>
6
6
  <p>No job arguments</p>
7
7
  <% else %>
8
- <% @presented_job.required_args.each do |arg| %>
8
+ <% @presented_job.args.each do |arg| %>
9
9
  <div class="form-group row">
10
10
  <label class="col-sm-2 col-form-label" for="<%= arg %>">*<%= arg %>:</label>
11
11
  <div class="col-sm-4">
@@ -13,14 +13,6 @@
13
13
  </div>
14
14
  </div>
15
15
  <% end %>
16
- <% @presented_job.optional_args.each do |arg| %>
17
- <div class="form-group row">
18
- <label class="col-sm-2 col-form-label" for="<%= arg %>"><%= arg %>:</label>
19
- <div class="col-sm-4">
20
- <input class="form-control" type="text" name="<%= arg %>" id="<%= arg %>"/>
21
- </div>
22
- </div>
23
- <% end %>
24
16
  <% if @presented_job.has_rest_args %>
25
17
  <div class="form-group row">
26
18
  <label class="col-sm-2 col-form-label" for="rest_args">*Rest arguments (please separate each argument by comma):</label>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sidekiq_adhoc_job
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Goh Khoon Hiang