actir 1.4.1.2 → 1.4.1.3

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: 2bbe3f0c07210d39bcb30aa9fb2c2afe8825bfea
4
- data.tar.gz: 4ae125fda640b391ea8b660a5aa024bc0aa1466e
3
+ metadata.gz: f893b2a08e16d02bda24b542460e64593346ee4e
4
+ data.tar.gz: 4473e22322a40df9acd73d4de8bdebbc00bf5b05
5
5
  SHA512:
6
- metadata.gz: 73fb13a2a9acacdd9f952245a75052030e797b662775b59d5e7f66b650b6d9647e6dfaa0837e7da23d5144eb12dbb840e9e5923901aade3f12df7b9190173bde
7
- data.tar.gz: 06fa469e900bd145c7ba6cc97809949a6d6a5232048c34e22cc88c96f14decdfca61f39cf78549ce39a9585c0c036bc79d676b0bfabfd3c749c7182d0fce9241
6
+ metadata.gz: 9b5f36f880aaca09b07df9eec89dfe54aa62c615cffe6a6c7e5290fdf178610ce9d5bbb43ab83e6d0cd6b21ecbe37523d80486491ac70f9b422b8bb307138759
7
+ data.tar.gz: bf237b98db9052f8a5b75632cf6211e0630611b03bf3ba496e2bedbce45381656329057ec7c0f173ecbad65e8d30ae9429c35169a4050c42fafb78067cf11f7a
@@ -39,7 +39,7 @@ module Actir
39
39
  Dir.glob(File.join @item_path, '**', '*.rb').select {|p| p =~ /\.rb$/}.each do |i|
40
40
  puts i if $debug
41
41
  require "#{i}"
42
- end
42
+ end #each
43
43
  end
44
44
 
45
45
  def load_user
@@ -1,12 +1,12 @@
1
1
  card1:
2
- BAIDUID: "CA5C0BFFF8A6BCB719914F355E613A1E%3AFG%3D1"
3
- BDUSS: "EFtRFVRZ3FQblIySk1xeTlvSTVRS3JPTEdyQ35iUXFxdGt1bFNmTXgzU3hZUE5XQUFBQUFBJCQAAAAAAAAAAAEAAAD-BrRddGVzdHdsMjAxNAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAALHTy1ax08tWV"
2
+ BDUSS: "VEU1hqU3Z5dFZHcm9HSjJRSVhwWFp4QXVRRFRuaEtXM1JEU0NjNEl0Y1kzenRYQUFBQUFBJCQAAAAAAAAAAAEAAAD-BrRddGVzdHdsMjAxNAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABhSFFcYUhRXc0"
3
+ STOKEN: "1b54ebe1214d9a3d8eb4613888466a03f54bdd9ffce389416d360761d5b39b0d"
4
4
  card2:
5
- BAIDUID:
6
5
  BDUSS:
6
+ STOKEN:
7
7
  card3:
8
- BAIDUID:
9
8
  BDUSS:
9
+ STOKEN:
10
10
  card4:
11
- BAIDUID:
12
11
  BDUSS:
12
+ STOKEN:
@@ -56,8 +56,9 @@ module Actir
56
56
  if value["available"] == true
57
57
  # 顺便取一下cookies
58
58
  baidu_card_cookies = Actir::Config.get("cookies." + key, cookies_path)
59
- value["BAIDUID"] = baidu_card_cookies["BAIDUID"]
59
+ # value["BAIDUID"] = baidu_card_cookies["BAIDUID"]
60
60
  value["BDUSS"] = baidu_card_cookies["BDUSS"]
61
+ value["STOKEN"] = baidu_card_cookies["STOKEN"]
61
62
  #有可用的卡,取出cookies等参数
62
63
  card.store(key, value)
63
64
  break
@@ -122,12 +123,14 @@ module Actir
122
123
  # 获取cookies
123
124
  def get_baifubao_cookies
124
125
  sleep 3
125
- id = @browser.cookies[:BAIDUID][:value]
126
+ # id = @browser.cookies[:BAIDUID][:value]
126
127
  ss = @browser.cookies[:BDUSS][:value]
128
+ stoken = @browser.cookies[:STOKEN][:value]
127
129
  @browser.close
128
130
  #cookies = " BAIDUID:\s\s\s\s\s\s\"" + id + "\"\n BDUSS:\s\s\s\s\s\s\s\s\"" + ss + "\"\n"
129
131
  #以hash形式返回
130
- {:BAIDUID => id, :BDUSS => ss }
132
+ # {:BAIDUID => id, :BDUSS => ss }
133
+ {:BDUSS => ss, :STOKEN => stoken}
131
134
  end
132
135
 
133
136
  def modify_cookies(card, cookies)
@@ -1,3 +1,3 @@
1
1
  module Actir
2
- VERSION = "1.4.1.2"
2
+ VERSION = "1.4.1.3"
3
3
  end
metadata CHANGED
@@ -1,111 +1,111 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: actir
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.1.2
4
+ version: 1.4.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - hub
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-28 00:00:00.000000000 Z
11
+ date: 2016-04-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: test-unit
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ~>
18
18
  - !ruby/object:Gem::Version
19
19
  version: '3.0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ~>
25
25
  - !ruby/object:Gem::Version
26
26
  version: '3.0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: watir-webdriver
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ~>
32
32
  - !ruby/object:Gem::Version
33
33
  version: 0.6.11
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - "~>"
38
+ - - ~>
39
39
  - !ruby/object:Gem::Version
40
40
  version: 0.6.11
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: selenium-webdriver
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - "~>"
45
+ - - ~>
46
46
  - !ruby/object:Gem::Version
47
47
  version: '2.45'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - "~>"
52
+ - - ~>
53
53
  - !ruby/object:Gem::Version
54
54
  version: '2.45'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: parallel
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - "~>"
59
+ - - ~>
60
60
  - !ruby/object:Gem::Version
61
61
  version: '1.4'
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - "~>"
66
+ - - ~>
67
67
  - !ruby/object:Gem::Version
68
68
  version: '1.4'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: facets
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - "~>"
73
+ - - ~>
74
74
  - !ruby/object:Gem::Version
75
75
  version: '2.9'
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - "~>"
80
+ - - ~>
81
81
  - !ruby/object:Gem::Version
82
82
  version: '2.9'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: bundler
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - "~>"
87
+ - - ~>
88
88
  - !ruby/object:Gem::Version
89
89
  version: '1.7'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - "~>"
94
+ - - ~>
95
95
  - !ruby/object:Gem::Version
96
96
  version: '1.7'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: rake
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - "~>"
101
+ - - ~>
102
102
  - !ruby/object:Gem::Version
103
103
  version: '10.0'
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - "~>"
108
+ - - ~>
109
109
  - !ruby/object:Gem::Version
110
110
  version: '10.0'
111
111
  description: Distribut automated testing framework for Web or App.
@@ -117,8 +117,8 @@ executables:
117
117
  extensions: []
118
118
  extra_rdoc_files: []
119
119
  files:
120
- - ".gitignore"
121
- - ".travis.yml"
120
+ - .gitignore
121
+ - .travis.yml
122
122
  - CODE_OF_CONDUCT.md
123
123
  - Gemfile
124
124
  - README.md
@@ -162,17 +162,17 @@ require_paths:
162
162
  - lib
163
163
  required_ruby_version: !ruby/object:Gem::Requirement
164
164
  requirements:
165
- - - ">="
165
+ - - '>='
166
166
  - !ruby/object:Gem::Version
167
167
  version: '0'
168
168
  required_rubygems_version: !ruby/object:Gem::Requirement
169
169
  requirements:
170
- - - ">="
170
+ - - '>='
171
171
  - !ruby/object:Gem::Version
172
172
  version: '0'
173
173
  requirements: []
174
174
  rubyforge_project:
175
- rubygems_version: 2.4.3
175
+ rubygems_version: 2.4.7
176
176
  signing_key:
177
177
  specification_version: 4
178
178
  summary: Application Concurrence Test in Ruby.