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 +4 -0
- data/lib/mohawk/version.rb +1 -1
- data/lib/mohawk.rb +5 -3
- metadata +4 -4
data/Changelog
CHANGED
data/lib/mohawk/version.rb
CHANGED
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)
|
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.
|
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-
|
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:
|
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:
|
366
|
+
hash: 652197775
|
367
367
|
requirements: []
|
368
368
|
rubyforge_project:
|
369
369
|
rubygems_version: 1.8.28
|