mutx 0.1.22 → 0.1.23

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: 6935c2a937ccf67e728a9713d635016f5faefee8
4
- data.tar.gz: feea9d1ffec8f8abb41b19f2f0c823eacb208d37
3
+ metadata.gz: 7c97577f5c4b39d0c8ab15f815b835fad5fea9b1
4
+ data.tar.gz: f4c56b9d6b6c7dd172d2d26879a6a8e5fa5aff6c
5
5
  SHA512:
6
- metadata.gz: 376f2fcd658ade54c231be65cbf1b8844a5c8ece8eb12a42fe582b98be31fc3bf82170ef8debc0141ee64df9bafb32bec2d768d07eef462de1841ff40c322e6c
7
- data.tar.gz: 2805316f500938db023ac71231d0623bbc8313f545ca1654e983b610337a0d674161c654da81005b4c3896ff382d1e2d3d3d38de4dec6750771128a8db9e3961
6
+ metadata.gz: 2d123486ed284aeb4cc3b3bbbb8d801316e342f27bc1ee5cafd3ad0a0c04c7e3cd9415890c6f5147c68d9c39fd1c56084c5f6bd44809691ad1431c6bc3abdd90
7
+ data.tar.gz: 916286b31b26f4480192a635f384a920a4b97892938566c236aeb8bb7cff83915076773a4f2675b42d1f5527b248863e4a96855e5efacb42a5d5b0af1e4fa90b
data/lib/mutx/routes.rb CHANGED
@@ -163,9 +163,13 @@ Cuba.define do
163
163
  on get do
164
164
 
165
165
  on "logout" do
166
- a = env["HTTP_REFERER"]
167
- logout = a.match(/\D{4,5}:\/\//).to_s+"user:pass@"+env["SERVER_NAME"].to_s+":"+env["SERVER_PORT"].to_s
168
- res.redirect "#{logout}/tasks"
166
+ if env["SERVER_NAME"].eql? "localhost"
167
+ a = env["HTTP_REFERER"]
168
+ logout = a.match(/\D{4,5}:\/\//).to_s+"user:pass@"+env["SERVER_NAME"].to_s+":"+env["SERVER_PORT"].to_s
169
+ res.redirect "#{logout}/tasks"
170
+ else
171
+ res.redirect "http://user@mutx.garba.ninja/tasks"
172
+ end
169
173
  end
170
174
 
171
175
  # ========================================================================
@@ -660,10 +664,14 @@ Cuba.define do
660
664
  on "favicon" do
661
665
  res.write ""
662
666
  end
667
+
668
+ on "pull" do
669
+ #When go to pull, check for updates on the branch and make a pull if its outdated
670
+ Mutx::Support::Git.pull unless Mutx::Support::Git.up_to_date?
671
+ res.redirect "/tasks"
672
+ end
663
673
 
664
674
  on root do
665
- #When go to root path, check for updates on the branch and make a pull if its outdated
666
- Mutx::Support::Git.pull unless Mutx::Support::Git.up_to_date?
667
675
  res.redirect "/tasks"
668
676
  end
669
677
 
data/lib/mutx/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Mutx
2
- VERSION = "0.1.22"
2
+ VERSION = "0.1.23"
3
3
  end
@@ -20,7 +20,11 @@
20
20
  % results_list = Mutx::API::Result.results_list_for(task["_id"])
21
21
  % if results_list.size > 0
22
22
  % size = results_list.size
23
- % if ((size > 200) && (size < 300))
23
+ % if ((size > 300) && (size < 400))
24
+ % results_list_size = "300+"
25
+ % elsif ((size > 400) && (size < 500))
26
+ % results_list_size = "400+"
27
+ % elsif ((size > 200) && (size < 300))
24
28
  % results_list_size = "200+"
25
29
  % elsif ((size > 100) && (size < 200))
26
30
  % results_list_size = "100+"
@@ -31,7 +35,7 @@
31
35
  <div class="panel-heading" data-toggle="collapse" data-target='#{{task["_id"]}}'>
32
36
  <h3 class="panel-title">
33
37
  {{task["name"]}}
34
- <div class="pull-right">{{results_list.size}} Results</div>
38
+ <div class="pull-right">{{results_list_size}} Results</div>
35
39
  </h3>
36
40
  <div></div>
37
41
  </div>
@@ -78,6 +78,7 @@ color = Mutx::View.color(status)
78
78
  Link
79
79
  </span>
80
80
  </button>
81
+ <a href='/results/task/{{task["name"].gsub(' ','%20')}}' class='btn btn-primary'>Results for: {{task["name"]}}</a>
81
82
  % if task["information"]
82
83
  <div style="text-align:right">
83
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>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mutx
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.22
4
+ version: 0.1.23
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roman Rodriguez