mohawk 0.4.1 → 0.4.2

Sign up to get free protection for your applications and to get access to all the features.
data/Changelog CHANGED
@@ -1,3 +1,7 @@
1
+ === Version 0.4.2 / 2014-10-28
2
+ * Enhancements
3
+ * added the ability to pass in the working directory to Mohawk.start
4
+
1
5
  === Version 0.4.1 / 2014-06-09
2
6
  * Enhancements
3
7
  * MenuItem #click and #select will wait until it successfully is able to
@@ -1,3 +1,3 @@
1
1
  module Mohawk
2
- VERSION = "0.4.1"
2
+ VERSION = "0.4.2"
3
3
  end
data/lib/mohawk.rb CHANGED
@@ -24,9 +24,11 @@ module Mohawk
24
24
 
25
25
  attr_reader :adapter
26
26
 
27
- def self.start
27
+ def self.start(working_directory = nil)
28
28
  raise InvalidApplicationPath.new unless @app_path
29
- @app = ChildProcess.build(@app_path).start
29
+ @app = ChildProcess.build(@app_path)
30
+ @app.cwd = working_directory if working_directory
31
+ @app.start
30
32
 
31
33
  wait_until { Uia.find_element pid: @app.pid }
32
34
  end
@@ -44,7 +46,7 @@ module Mohawk
44
46
  def self.app_path=(path)
45
47
  @app_path = path
46
48
  end
47
-
49
+
48
50
  class << self
49
51
  attr_accessor :timeout
50
52
  attr_accessor :default_adapter
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mohawk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-06-09 00:00:00.000000000 Z
12
+ date: 2014-10-29 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: uia
@@ -354,7 +354,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
354
354
  version: '0'
355
355
  segments:
356
356
  - 0
357
- hash: 909285235
357
+ hash: 652197775
358
358
  required_rubygems_version: !ruby/object:Gem::Requirement
359
359
  none: false
360
360
  requirements:
@@ -363,7 +363,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
363
363
  version: '0'
364
364
  segments:
365
365
  - 0
366
- hash: 909285235
366
+ hash: 652197775
367
367
  requirements: []
368
368
  rubyforge_project:
369
369
  rubygems_version: 1.8.28