actir 1.2.7 → 1.2.8

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: 2445be9204188e6e716aa15bf8b7238596aac648
4
- data.tar.gz: a440c35100ed673fb39f162c218370613ff0c82f
3
+ metadata.gz: a336c865b4c3c033939c965e0fcb9648c30bef45
4
+ data.tar.gz: 6efc7758c7d616ac83d6b009a8c8b65333c80788
5
5
  SHA512:
6
- metadata.gz: a6bac987114f96068adcfad4eb13671031d5360cb3ca41fa0a7c7b75ad1352cafedd290bea15e716f381d2ec4c5f69ce152af4ccbc6d05dc9cd4b87e0d79dd9c
7
- data.tar.gz: 8c47bbc3a9e004f79a751d1576efb5f646adfb1807d5e141d6edfea7e75e11a05766e2ce2b7a30a3efcab63d5ab6d1b8011cdbc47c14817d88b92dce5880f07f
6
+ metadata.gz: 0722b48e11c6ecb42ceea3f347772bc95d3f259ebdf249aca1ca33e6731cc9e2ae7797a9eb70bbe7af60e9d7f31896be6f1a79855bf03411f6148427164746a6
7
+ data.tar.gz: b582217d60fac84774fc9e522d5df2d1e85267cb1875ec9fd2f63e6ea13364ea9a74191f398d38eb1df06aa71c9196df43600cd865025ca7c714b755eab1a73d
@@ -260,7 +260,13 @@ module Actir
260
260
  def get_project_path(argv)
261
261
  testcode_path = ""
262
262
  (argv || []).map do |file_or_folder|
263
- test_path = File.join(Dir.pwd , file_or_folder)
263
+ # 如果传入的路径是绝对路径,那么直接将传入的路径作为test_path
264
+ if file_or_folder =~ /^\//
265
+ test_path = file_or_folder
266
+ # 如果传入的路径是相对路径,那么将当前路径与传入的相对路径做拼接生成test_path
267
+ else
268
+ test_path = File.join(Dir.pwd , file_or_folder)
269
+ end
264
270
  #获取testcode文件夹的path
265
271
  if test_path =~ /(\/.*\/testcode)/
266
272
  testcode_path = $1
@@ -61,7 +61,9 @@ module Actir
61
61
 
62
62
  # 更新baidu_cookies失败后的清理操作。目前需要手动调用,后续优化
63
63
  def clear_after_failure
64
- @browser.close
64
+ if @browser != nil
65
+ @browser.close
66
+ end
65
67
  end
66
68
 
67
69
  private
@@ -1,3 +1,3 @@
1
1
  module Actir
2
- VERSION = "1.2.7"
2
+ VERSION = "1.2.8"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: actir
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.7
4
+ version: 1.2.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - hub
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-01-05 00:00:00.000000000 Z
11
+ date: 2016-01-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: test-unit