kaya 0.0.10 → 0.0.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +8 -0
- data/lib/kaya/support/change_inspector.rb +1 -1
- data/lib/kaya/support/git.rb +14 -0
- data/lib/kaya/version.rb +1 -1
- metadata +2 -3
- data/lib/kaya/support/ricardo.rb +0 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e80a49a5c4d6f014f5bdfee76811c843e15e9338
|
4
|
+
data.tar.gz: b142503bb3327a2f5eee7e0e1d0e4ab9b7a3f013
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1f020b7f10921c7d11278384a3605dd91d51f24d4a9b77295dbc1179df506d27c8265b68271df05aaf52e7a3e26b848e8960a231fa8e538a092a90f5123db1ae
|
7
|
+
data.tar.gz: 8a0288ba9892532ac35007af66932beb361ef95ca7f34f985ab22320c4be7361c2d409d1a6e996de34a088a4d883f444feac4a8df8301ca28d3e077aa0b4c849
|
data/README.md
CHANGED
@@ -13,23 +13,31 @@ Kaya
|
|
13
13
|
- MongoDb (version >= 2.6) See http://www.mongodb.org/downloads
|
14
14
|
|
15
15
|
$ sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10
|
16
|
+
|
16
17
|
$ sudo apt-get update
|
18
|
+
|
17
19
|
$ sudo apt-get install mongodb
|
20
|
+
|
18
21
|
$ sudo service mongodb start
|
19
22
|
|
20
23
|
- Redis (http://tosbourn.com/install-latest-version-redis-ubuntu/)
|
21
24
|
|
22
25
|
$ sudo apt-get install -y python-software-properties
|
26
|
+
|
23
27
|
$ sudo add-apt-repository -y ppa:rwky/redis
|
28
|
+
|
24
29
|
$ sudo apt-get update
|
30
|
+
|
25
31
|
$ sudo apt-get install -y redis-server
|
26
32
|
|
27
33
|
- If you want to run GUI tests using WebDriver in headless mode you should install xvfb package
|
34
|
+
|
28
35
|
$sudo apt-get intall xvfb
|
29
36
|
|
30
37
|
- While running in headless mode you may face an error like:
|
31
38
|
LIBDBUSMENU-GLIB-WARNING **: Unable to get session bus: Error spawning command line `dbus-launch --autolaunch
|
32
39
|
This coulb be solved by installing dbus-x11 package
|
40
|
+
|
33
41
|
$apt-get install dbus-x11
|
34
42
|
|
35
43
|
|
@@ -10,7 +10,7 @@ module Kaya
|
|
10
10
|
|
11
11
|
def self.is_there_a_change?
|
12
12
|
if Kaya::Support::Configuration.use_git?
|
13
|
-
if Kaya::Database::MongoConnector.last_commit != (last_repo_commit = Kaya::Support::Git.
|
13
|
+
if Kaya::Database::MongoConnector.last_commit != (last_repo_commit = Kaya::Support::Git.last_remote_commit)
|
14
14
|
$K_LOG.debug "Git has been changed. Perform code update" if $K_LOG
|
15
15
|
Kaya::Support::Git.reset_hard_and_pull
|
16
16
|
Kaya::Database::MongoConnector.insert_commit(last_repo_commit)
|
data/lib/kaya/support/git.rb
CHANGED
@@ -132,6 +132,20 @@ module Kaya
|
|
132
132
|
line.start_with? "commit "
|
133
133
|
end
|
134
134
|
|
135
|
+
def self.last_remote_commit
|
136
|
+
self.remote_commits.first
|
137
|
+
end
|
138
|
+
|
139
|
+
def self.remote_commits
|
140
|
+
self.remote_log.split("commit")[1..-1]
|
141
|
+
end
|
142
|
+
|
143
|
+
def self.remote_log
|
144
|
+
self.fetch
|
145
|
+
# Kaya::Support::Console.execute "git log HEAD origin"
|
146
|
+
Kaya::Support::Console.execute "git log origin/#{self.actual_branch}"
|
147
|
+
end
|
148
|
+
|
135
149
|
def self.log
|
136
150
|
Kaya::Support::Console.execute "git log"
|
137
151
|
end
|
data/lib/kaya/version.rb
CHANGED
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.11
|
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-05-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|
@@ -314,7 +314,6 @@ files:
|
|
314
314
|
- lib/kaya/support/processes.rb
|
315
315
|
- lib/kaya/support/query_string.rb
|
316
316
|
- lib/kaya/support/request.rb
|
317
|
-
- lib/kaya/support/ricardo.rb
|
318
317
|
- lib/kaya/support/risk.rb
|
319
318
|
- lib/kaya/support/time_helper.rb
|
320
319
|
- lib/kaya/support/update.rb
|
data/lib/kaya/support/ricardo.rb
DELETED
@@ -1,10 +0,0 @@
|
|
1
|
-
require 'selenium-webdriver'
|
2
|
-
|
3
|
-
def buscar_en_google palabra
|
4
|
-
@browser = Selenium::WebDriver.for :firefox
|
5
|
-
@browser.get "http://google.com"
|
6
|
-
campo_de_busqueda = @browser.find_element(:id, "q")
|
7
|
-
campo_de_busqueda.send_keys("#{palabra}\n")
|
8
|
-
end
|
9
|
-
|
10
|
-
buscar_en_google "curso de automatizacion de pruebas"
|