kaya 0.0.6 → 0.0.7
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/lib/kaya/database/mongo_connector.rb +4 -0
- data/lib/kaya/suites/suites.rb +1 -1
- data/lib/kaya/version.rb +1 -1
- data/lib/kaya/view/git_information.mote +1 -1
- data/lib/kaya/view/javascript.mote +1 -1
- data/lib/kaya/view/suites/suite_item.mote +23 -0
- data/lib/kaya/view/suites/suites.mote +10 -3
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 849203aa79f721fc52d36711c3ebdef3e7134eac
|
|
4
|
+
data.tar.gz: 8195dc1eb253f15c08ea82501aec4f8258866056
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7e3e305a12110084e87e24913b40a7e9f26064c627d6fc578b52b5da772044e69bbe8f356e1e1b8f78d9ba8bee2b7361d0f9a3d6a5d31934d1eb66d15bb90dab
|
|
7
|
+
data.tar.gz: ca05ed024da9fc1fe727bfea132960a4219d78d3ddb58eba6454dbec08d2ccf4c3dac7cdb6636bef2b4f68802e0a88bc7ce07e5aa24649c91e04147afcd142a7
|
data/lib/kaya/suites/suites.rb
CHANGED
|
@@ -51,7 +51,7 @@ module Kaya
|
|
|
51
51
|
end
|
|
52
52
|
|
|
53
53
|
def self.update_suites
|
|
54
|
-
self.update! if Kaya::Support::ChangeInspector.is_there_a_change?
|
|
54
|
+
self.update! if Kaya::Support::ChangeInspector.is_there_a_change? or Kaya::Database::MongoConnector.active_suites.size.zero?
|
|
55
55
|
end
|
|
56
56
|
|
|
57
57
|
def self.update!
|
data/lib/kaya/version.rb
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
</h4>
|
|
14
14
|
|
|
15
15
|
% end
|
|
16
|
-
%
|
|
16
|
+
% if section.downcase == "all results"
|
|
17
17
|
<div class='btn-group pull-right' role='group'>
|
|
18
18
|
<button type='button' class='btn btn-default' aria-label='Left Align' title='Toggle collapse' onclick="auto_collapse()" title='collapse all panels'>
|
|
19
19
|
<div id='collapse_icon'>
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
<div class='starter-template'>
|
|
2
|
+
<div class='panel panel-{{Kaya::View.color(suite["status"])}}'>
|
|
3
|
+
<div class='panel-heading'">
|
|
4
|
+
<h3 class='panel-title' onclick="go_clean('/{{Kaya::Support::Configuration.hostname}}/kaya/suites/{{suite["name"].gsub(' ','%20')}}');">
|
|
5
|
+
{{suite["name"]}}
|
|
6
|
+
</h3>
|
|
7
|
+
% unless suite["status"]=="READY"
|
|
8
|
+
<div class="spinner">
|
|
9
|
+
<div class="bounce1"></div>
|
|
10
|
+
<div class="bounce2"></div>
|
|
11
|
+
<div class="bounce3"></div>
|
|
12
|
+
</div>
|
|
13
|
+
% end
|
|
14
|
+
</div>
|
|
15
|
+
<div class="panel-body">
|
|
16
|
+
<a href='/{{Kaya::Support::Configuration.hostname}}/kaya/suites/{{suite["name"].gsub(' ','%20')}}' class='label label-success'>
|
|
17
|
+
Open</a>
|
|
18
|
+
<a href='/{{Kaya::Support::Configuration.hostname}}/kaya/results/suite/{{suite["name"].gsub(' ','%20')}}' class='label label-info'>
|
|
19
|
+
{{Kaya::Results.results_ids_for(suite["_id"]).size}} results</a>
|
|
20
|
+
|
|
21
|
+
</div>
|
|
22
|
+
</div>
|
|
23
|
+
</div>
|
|
@@ -1,10 +1,17 @@
|
|
|
1
1
|
% suites_list = Kaya::API::Suites.list({active:true})
|
|
2
2
|
% number_of_suites = suites_list["suites"].size
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
% unless suite_name
|
|
4
|
+
<div class="bs-callout bs-callout-danger">
|
|
5
|
+
<h4> Showing {{number_of_suites}} suites<small> Click on any suite to open it</small></h4>
|
|
6
|
+
|
|
5
7
|
</div>
|
|
8
|
+
% end
|
|
6
9
|
% if number_of_suites > 0
|
|
7
|
-
%
|
|
10
|
+
% if suite_name
|
|
11
|
+
% suite_template = Mote.parse(File.read("#{Kaya::View.path}/suites/suite.mote"), self, [:suite])
|
|
12
|
+
% else
|
|
13
|
+
% suite_template = Mote.parse(File.read("#{Kaya::View.path}/suites/suite_item.mote"), self, [:suite])
|
|
14
|
+
% end
|
|
8
15
|
% suites_list = suites_list["suites"]
|
|
9
16
|
% suites_list.select!{|suite| suite["name"]==suite_name} if suite_name
|
|
10
17
|
% suites_list.each do |suite_data|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: kaya
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.7
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Roman Rodriguez
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-04-
|
|
11
|
+
date: 2015-04-28 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: thor
|
|
@@ -349,6 +349,7 @@ files:
|
|
|
349
349
|
- lib/kaya/view/sections.rb
|
|
350
350
|
- lib/kaya/view/styles.mote
|
|
351
351
|
- lib/kaya/view/suites/suite.mote
|
|
352
|
+
- lib/kaya/view/suites/suite_item.mote
|
|
352
353
|
- lib/kaya/view/suites/suites.mote
|
|
353
354
|
- lib/kaya/view/view.rb
|
|
354
355
|
- test/features/install.feature
|