kaya 0.0.10 → 0.0.11

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: 8c3297f1d73f1e546c0332257f9844b1e5744e2a
4
- data.tar.gz: 9bc15c57ac5916db0ac45abf286820624eb83dc5
3
+ metadata.gz: e80a49a5c4d6f014f5bdfee76811c843e15e9338
4
+ data.tar.gz: b142503bb3327a2f5eee7e0e1d0e4ab9b7a3f013
5
5
  SHA512:
6
- metadata.gz: 81215d73a2e5768c6cf9883da57d729180a2a969d3bbcca611c3ef2b5ee1a101d5541b9ff7b33476fcc117484ecc40742f1f3893888121cdd9430ef338aafa4a
7
- data.tar.gz: a773c5717f0db26358b3bede1f9b9fd38f7f3a82721b880e16225b3dc97dcaa01dbd24b02610fc0ccfaa684c69f8e3772408076451c4761bea9ddb66486b02e2
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.last_commit)
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)
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Kaya
2
- VERSION = "0.0.10"
2
+ VERSION = "0.0.11"
3
3
  end
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.10
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-30 00:00:00.000000000 Z
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
@@ -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"