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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 28882463492741783a668a8ee6474b7ac42386f5
4
- data.tar.gz: c4576fbf7c0475bab8af5b72a61bb55bb40154f5
3
+ metadata.gz: 849203aa79f721fc52d36711c3ebdef3e7134eac
4
+ data.tar.gz: 8195dc1eb253f15c08ea82501aec4f8258866056
5
5
  SHA512:
6
- metadata.gz: aaa7635743f508331236cf5a8eabba3eb626ba5480a31ec399c359282422cedf1753974517be4be0e3bf1cc4365a894aab58b169043773c84dd594dd3ecf8f7c
7
- data.tar.gz: a2444c5511122d580b081dd9a209e74878a004aaac367272ea0387ad41fe50e006a1b2b7df66578209989ab5547be64f118955879fe03281a2eeacba5849250e
6
+ metadata.gz: 7e3e305a12110084e87e24913b40a7e9f26064c627d6fc578b52b5da772044e69bbe8f356e1e1b8f78d9ba8bee2b7361d0f9a3d6a5d31934d1eb66d15bb90dab
7
+ data.tar.gz: ca05ed024da9fc1fe727bfea132960a4219d78d3ddb58eba6454dbec08d2ccf4c3dac7cdb6636bef2b4f68802e0a88bc7ce07e5aa24649c91e04147afcd142a7
@@ -197,6 +197,10 @@ module Kaya
197
197
  @@suites.find({"active" => true}).to_a
198
198
  end
199
199
 
200
+ def self.active_suites
201
+ self.suites true
202
+ end
203
+
200
204
 
201
205
 
202
206
  ######################################3
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Kaya
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
@@ -13,7 +13,7 @@
13
13
  </h4>
14
14
 
15
15
  % end
16
- % unless ["help","logs", "features"].include? section.downcase
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'>
@@ -31,7 +31,7 @@
31
31
  document.getElementById('myLargeModalLabel').innerHTML= title;
32
32
  document.getElementById('my-largeModal').innerHTML= all_html;
33
33
  }
34
- function go_clean(){
34
+ function go_clean(url){
35
35
  window.location.href = url;
36
36
  }
37
37
  function refresh_and_open(url){
@@ -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
- <div class="bs-callout bs-callout-danger">
4
- <h4>&nbsp;&nbsp;&nbsp;Showing {{number_of_suites}} suites</h4>
3
+ % unless suite_name
4
+ <div class="bs-callout bs-callout-danger">
5
+ <h4>&nbsp;&nbsp;&nbsp;Showing {{number_of_suites}} suites<small>&nbsp;&nbsp;Click on any suite to open it</small></h4>
6
+
5
7
  </div>
8
+ % end
6
9
  % if number_of_suites > 0
7
- % suite_template = Mote.parse(File.read("#{Kaya::View.path}/suites/suite.mote"), self, [:suite])
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.6
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-27 00:00:00.000000000 Z
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