kaya 0.0.5 → 0.0.6

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
  SHA1:
3
- metadata.gz: 95fbfa73d6ae01e008c0fe826923df79ee275db0
4
- data.tar.gz: 90e0cea78c2e7c5ff4d106072fd66e2037d98984
3
+ metadata.gz: 28882463492741783a668a8ee6474b7ac42386f5
4
+ data.tar.gz: c4576fbf7c0475bab8af5b72a61bb55bb40154f5
5
5
  SHA512:
6
- metadata.gz: a31c550621204c537142fae10b4fbc48dbb539bc29cc66cea05af1ea47cf4f787e8d14035a81391750fd79947f5193202a38db03d7cf2954f529cbd9a4dd3662
7
- data.tar.gz: bae3fc1377e64f9360a1e01ff0e2ebea4abe05c73047cc35ce26c9a74c770fea357c00d3d5242e2305c1208f2a80143444a52bd5a574980a6411302d519076ef
6
+ metadata.gz: aaa7635743f508331236cf5a8eabba3eb626ba5480a31ec399c359282422cedf1753974517be4be0e3bf1cc4365a894aab58b169043773c84dd594dd3ecf8f7c
7
+ data.tar.gz: a2444c5511122d580b081dd9a209e74878a004aaac367272ea0387ad41fe50e006a1b2b7df66578209989ab5547be64f118955879fe03281a2eeacba5849250e
@@ -142,7 +142,7 @@ module Kaya
142
142
  # Returns last saved commit info
143
143
  # @return [Hash] if exist
144
144
  def self.last_commit
145
- data = @@commits.find({}).to_a.first
145
+ data = @@commits.find({}).to_a.last
146
146
  data["log"] if data
147
147
  end
148
148
 
@@ -51,18 +51,6 @@ module Kaya
51
51
  end
52
52
 
53
53
  def self.update_suites
54
-
55
- # if Kaya::Support::Configuration.use_git?
56
- # if Kaya::Database::MongoConnector.last_commit != (last_repo_commit = Kaya::Support::Git.last_commit)
57
- # Kaya::Support::Git.reset_hard_and_pull
58
- # self.update!
59
- # Kaya::Database::MongoConnector.insert_commit(last_repo_commit)
60
- # else
61
- # $K_LOG.debug "No git changes!"
62
- # end
63
- # else
64
- # self.update!
65
- # end
66
54
  self.update! if Kaya::Support::ChangeInspector.is_there_a_change?
67
55
  end
68
56
 
@@ -21,11 +21,12 @@ module Kaya
21
21
  if File.exist?("#{path}")
22
22
  FileUtils.cp(path, "#{path}~")
23
23
  all_content = IO.read("#{path}~")
24
- content = if all_content.split("\n").size > 500
25
- all_content.split("\n")[-500..-1].join("<br>")
26
- else
27
- all_content.gsub("\n","<br>")
28
- end
24
+ # content = if all_content.split("\n").size > 1000
25
+ # all_content.split("\n")[-1000..-1].join("<br>")
26
+ # else
27
+ # all_content.gsub("\n","<br>")
28
+ # end
29
+ content = all_content.gsub("\n","<br>")
29
30
  File.delete("#{path}~")
30
31
  else
31
32
  content = ""
data/lib/kaya/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Kaya
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
@@ -1,10 +1,12 @@
1
- <footer>
2
- <div style='width: 100%; display: table;'>
3
- <div style='display: table-row'>
4
- <div style='width: 600px; display: table-cell;'>{{Kaya::Support::Configuration.company}}</div>
5
- <div align='right' style='display: table-cell;'>
6
- <p>Kaya {{Kaya::VERSION}}</p>
1
+ <div class="well">
2
+ <footer>
3
+ <div style='width: 100%; display: table;'>
4
+ <div style='display: table-row'>
5
+ <div style='width: 600px; display: table-cell;'>{{Kaya::Support::Configuration.company}}</div>
6
+ <div align='right' style='display: table-cell;'>
7
+ <p>Kaya {{Kaya::VERSION}}</p>
8
+ </div>
7
9
  </div>
8
10
  </div>
9
- </div>
10
- </footer>
11
+ </footer>
12
+ </div>
@@ -3,10 +3,15 @@
3
3
  <h4>
4
4
  Working on branch <strong>{{Kaya::Support::Git.branch}}</strong>
5
5
  </h4>
6
- <h4>
6
+
7
7
  <small>
8
8
  <span title='{{Kaya::Support::Git.log_last_commit}}'>Commit ID:{{Kaya::Support::Git.get_last_commit_id}}</span>
9
9
  </small>
10
+ % else
11
+ <h4>
12
+ Working on server with local files
13
+ </h4>
14
+
10
15
  % end
11
16
  % unless ["help","logs", "features"].include? section.downcase
12
17
  <div class='btn-group pull-right' role='group'>
@@ -16,6 +21,5 @@
16
21
  </div>
17
22
  </button>
18
23
  </div>
19
- </h4>
20
24
  % end
21
25
  </div>
@@ -54,7 +54,6 @@
54
54
  <br>
55
55
  <p style='text-align:right'>{{results_size_text}}</p>
56
56
  </div>
57
- <div class='well'>
58
57
 
59
58
  % if results_list.size > 0
60
59
  % result_info = Mote.parse(File.read("#{Kaya::View.path}/results/detailed_info.mote"), self, [:result])
@@ -1,5 +1,9 @@
1
- % suites_list = Kaya::API::Suites.list({})
2
- % if suites_list["suites"].size > 0
1
+ % suites_list = Kaya::API::Suites.list({active:true})
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>
5
+ </div>
6
+ % if number_of_suites > 0
3
7
  % suite_template = Mote.parse(File.read("#{Kaya::View.path}/suites/suite.mote"), self, [:suite])
4
8
  % suites_list = suites_list["suites"]
5
9
  % suites_list.select!{|suite| suite["name"]==suite_name} if suite_name
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.5
4
+ version: 0.0.6
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-24 00:00:00.000000000 Z
11
+ date: 2015-04-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor