mutx 0.1.68 → 0.1.69

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9a6c7713437e8e4983f496e0b0f762363db81e8d
4
- data.tar.gz: c92160615c037d83c774a08489763fb9558bfdf3
3
+ metadata.gz: 062cdb96cdcc5ace600646147f1f6669f5346db9
4
+ data.tar.gz: 4bea2de7bc4af28fa74849280989fb3e8451b789
5
5
  SHA512:
6
- metadata.gz: b48c7fa1243e65c2a2f2d2d6b7e5a09c615f00136ff9ef7d479e917602c1ba1f18b04e3386c607609c8dcd149c146ffcd060cf34182e32de8a7f9225f82ee230
7
- data.tar.gz: 5a7bd7865fe3c4ae9f8e38bfa8644824648e63431474f53d17eed4e0ee5a23cb5a9c89cfc3c7287a850f59ef2cbd2a8598dca6f06f1d671f5f6a3d63e6985868
6
+ metadata.gz: 96720e875c0d5c442284376ee0a79c76b190f61ee3852f139d067a837783c16d50747a9d14d37fb249019cc386f863b653dfdb134b9c98a29507021760854834
7
+ data.tar.gz: cfb84d8cba5a5df5ddc4070c6eafbf855731034c75426a238d1408887ddc10763537f73a4b1f4b9e814053395f6936c72ecee87b9de3c1f29d9d798bb3ea4793
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- mutx (0.1.68)
4
+ mutx (0.1.69)
5
5
  basica
6
6
  bson_ext
7
7
  byebug
@@ -101,8 +101,8 @@ module Mutx
101
101
  def set_results_collection
102
102
  Mutx::Support::Log.debug "Setting db results collection" if Mutx::Support::Log
103
103
  $results = $db.collection("results")
104
- $results.ensure_index({"started_at" => 1})
105
- $results.ensure_index({"_id" => 1})
104
+ # $results.ensure_index({"started_at" => 1})
105
+ # $results.ensure_index({"_id" => 1})
106
106
  end
107
107
 
108
108
  def set_documentation_collection
@@ -1,3 +1,3 @@
1
1
  module Mutx
2
- VERSION = "0.1.68"
2
+ VERSION = "0.1.69"
3
3
  end
@@ -20,6 +20,23 @@ else
20
20
  "ready"
21
21
  end
22
22
 
23
+ run_on = []
24
+ run_on << 'Sunday' if task["su"]=="on"
25
+ run_on << 'Monday' if task["mo"]=="on"
26
+ run_on << 'Tuesday' if task["tu"]=="on"
27
+ run_on << 'Wednesday' if task["we"]=="on"
28
+ run_on << 'Thursday' if task["th"]=="on"
29
+ run_on << 'Friday' if task["fr"]=="on"
30
+ run_on << 'Saturday' if task["sa"]=="on"
31
+
32
+ if run_on.empty?
33
+ run_on << "everyday"
34
+ end
35
+
36
+ if task["start_time"] and task["stop_time"]
37
+ from_to = "from " + task["start_time"] + " to " + task["stop_time"]
38
+ end
39
+
23
40
  color = Mutx::View.color(status)
24
41
 
25
42
  ?>
@@ -34,12 +51,6 @@ color = Mutx::View.color(status)
34
51
 
35
52
  <div class='panel-body collapse in' id='{{task["name"].gsub(' ','')}}'>
36
53
  <ul class='list-group'>
37
- <!--
38
- <li class='list-group-item'>
39
- Command: {{task["command"]}}
40
- </li>
41
- -->
42
-
43
54
  <!-- Si la task está en running se muestran las ejecuciones -->
44
55
  % if running_results.size > 0
45
56
  <li class='list-group-item'>
@@ -71,20 +82,72 @@ color = Mutx::View.color(status)
71
82
  {{custom_template.call(custom_params:task["custom_params"])}}
72
83
  % end
73
84
  <br><br>
74
- <input type='submit' class='btn btn-success' value='Execute {{task["type"]=="test" ? 'Test' : 'Task'}}'>&nbsp;
85
+ <button type='submit' class='btn btn-success' value='Execute'/>Execute&nbsp;
86
+ <span class="glyphicon glyphicon-send" aria-hidden="true"></span>
87
+ </button>
75
88
  <input type='text' name='execution_name' class='customParam' title='This value could be used to identify the result execution from other execution of this task. E.g: You could use the release your are going to test' placeholder='Identify your execution' value='{{Mutx::Support::Configuration.auto_execution_id}}' style='height: 34px; padding: 6px 12px; font-size: 14px; line-height: 1.42857143; color: #555; background-color: #fff; background-image: none; border: 1px solid #ccc; border-radius: 4px; font-weight:normal;' />
76
89
  <button type='button' class='btn btn-default' aria-label='Left Align' data-toggle='modal' data-target='#myModal' onclick='javascript:starterLink("{{task['name']}}","{{task['type']}}");'>
77
- <span class='glyphicon glyphicon-star' aria-hidden='true'>
78
- Link
79
- </span>
90
+ <span class='glyphicon glyphicon-share' aria-hidden='true'></span>
91
+ Share
80
92
  </button>
81
- <a href='/results/task/{{task["name"].gsub(' ','%20')}}' class='btn btn-primary'>Results for: {{task["name"]}}</a>
82
- % if task["information"]
83
- <div style="text-align:right">
84
- <a href='#'><span title='{{task["information"]}}' class='glyphicon glyphicon-info-sign' aria-hidden='true' data-toggle='modal' data-target='#myModal' onclick="javascript:info('Information about {{task["name"]}}','{{task["information"].gsub('\n','<br>')}}', null);"></span>
85
- </a><b>Information</b>&nbsp;&nbsp;
86
- </div>
87
- % end
93
+ <a href='/results/task/{{task["name"].gsub(' ','%20')}}' class='btn btn-primary'>
94
+ <span class="glyphicon glyphicon-list" aria-hidden="true"></span>
95
+ Results
96
+ </a>
97
+ <br>
98
+
99
+ <!--
100
+ <li class='list-group-item'>
101
+ Command: {{task["command"]}}
102
+ </li>
103
+ -->
104
+
105
+ <!-- cron info -->
106
+
107
+ % if task["cronneable"]=="on"
108
+ <br>
109
+ <li class="list-group-item">
110
+ <span class="glyphicon glyphicon-repeat" aria-hidden="true"></span> Run every {{task["cron_time"]}} minutes
111
+
112
+ % unless run_on.empty?
113
+ <br>
114
+ on:
115
+ % run_on.each do |day|
116
+ <span class='label label-default'>{{day}}&nbsp;</span>
117
+ % end
118
+
119
+ % end
120
+ % if from_to
121
+ <br>
122
+ {{from_to}}
123
+
124
+ % end
125
+ </li>
126
+ % end
127
+
128
+ <!-- end cron info -->
129
+
130
+ <!-- notification info -->
131
+ % if task["notifications"]=="on"
132
+ <br>
133
+ <li class="list-group-item">
134
+ <span class="glyphicon glyphicon-envelope" aria-hidden="true"></span> Notification on {{task["notify_on"]}}
135
+ <br>
136
+ Recipients: {{task["mail"]}}
137
+ <br>
138
+ Subject: {{task["subject"]}}
139
+ </li>
140
+ % end
141
+ <!-- end notification info -->
142
+
143
+ % if task["information"]
144
+ <br><br>
145
+ <p><figure class="highlight">{{task["information"].gsub('\n','<br>')}}</figure></p>
146
+
147
+ <br>
148
+ % end
149
+
150
+
88
151
 
89
152
  </form>
90
153
  </li>
@@ -36,12 +36,12 @@ color = Mutx::View.color(status)
36
36
  </div>
37
37
  <div class="panel-body">
38
38
  % if (task["task_status"].eql? "off")
39
- <a href="task/status/{{task["name"].gsub(' ','%20')}}" title= "Click to allow task to be cronned" class="label label-danger" aria-hidden="true">&nbsp;<i <span class="glyphicon glyphicon-off"></span> OFF </i></a>
39
+ <a href="task/status/{{task["name"].gsub(' ','%20')}}" title= "Click to allow task to be cronned" class="label label-danger" aria-hidden="true">&nbsp;<i>OFF</i></a>
40
40
  % elsif (task["task_status"].eql? "on")
41
- <a href="task/status/{{task["name"].gsub(' ','%20')}}" title= "Click to stop task and cannot be cronned" class="label label-success" aria-hidden="true">&nbsp;<i <span class="glyphicon glyphicon-play-circle"></span> ON </i></a>
41
+ <a href="task/status/{{task["name"].gsub(' ','%20')}}" title= "Click to stop task and cannot be cronned" class="label label-success" aria-hidden="true">&nbsp;<i>ON</i>&nbsp;</a>
42
42
  % end
43
43
  <a href='/{{task["type"]}}s/{{task["name"].gsub(' ','%20')}}' class='label label-success'>
44
- Open</a>
44
+ Details</a>
45
45
  <a href='/results/task/{{task["name"].gsub(' ','%20')}}' class='label label-info'>
46
46
  {{Mutx::Results.results_ids_for(task["_id"]).size}} results</a>
47
47
  % if task["information"]
@@ -19,7 +19,7 @@
19
19
  % unless args[:task_name]
20
20
  % number_of_tasks = tasks_list["tasks"].size
21
21
  <div class="bs-callout bs-callout-danger">
22
- <h4>&nbsp;&nbsp;&nbsp;Showing {{number_of_tasks}} {{type}}{{number_of_tasks>1 ? 's':''}}<small>&nbsp;&nbsp;Click on any task to open it</small></h4>
22
+ <h4>&nbsp;&nbsp;&nbsp;Showing {{number_of_tasks}} {{type}}{{number_of_tasks>1 ? 's':''}}<small>&nbsp;&nbsp;Click on any task title or details button to see more about a task</small></h4>
23
23
  </div>
24
24
  % end
25
25
  % if args[:task_name]
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mutx
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.68
4
+ version: 0.1.69
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roman Rodriguez
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-02-02 00:00:00.000000000 Z
11
+ date: 2017-02-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -356,8 +356,6 @@ extensions: []
356
356
  extra_rdoc_files: []
357
357
  files:
358
358
  - ".gitignore"
359
- - ".ruby-gemset"
360
- - ".ruby-version"
361
359
  - Gemfile
362
360
  - Gemfile.lock
363
361
  - LICENSE.txt
@@ -547,7 +545,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
547
545
  version: '0'
548
546
  requirements: []
549
547
  rubyforge_project:
550
- rubygems_version: 2.4.8
548
+ rubygems_version: 2.5.2
551
549
  signing_key:
552
550
  specification_version: 4
553
551
  summary: Mutx lets you expose executions easily
@@ -1 +0,0 @@
1
- mutx
@@ -1 +0,0 @@
1
- ruby-2.3.0