actir 1.0.4 → 1.0.5

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: 6bee56605ce4434f097728d26c6dde7b27a53710
4
- data.tar.gz: 288b65f1fbb5fc2fbf1dcabf632be101073154e2
3
+ metadata.gz: 55d2de0515f074ce1f2c19a08d1a78cc75bdc50e
4
+ data.tar.gz: dab76e4796b89fdacda52fb26c3a631acf86ace2
5
5
  SHA512:
6
- metadata.gz: ff3b96881e93341e5f74528f497eda357b0c715237eee1bdd87256e9cfa52e5b57857c7329a2d2630d0b7c109d09e8bbf6b93ecdb9516559095baddcc5fd715e
7
- data.tar.gz: 3c2c0f3f8b7b62ab3d84741e824e36afc980bb1149068a6b1adb8ada76d5cf81cd35ca7e2025e76edd0176f203ec09766b27737e6879e53d42ed629c8a8e8912
6
+ metadata.gz: 831d2d11bae36eaeca6381ca6360fd6134074f8feada932a9f806404d7324eb6b0749e21510e91590dee7fdcef37995ad8147e35e3e5ee5f957f1dc7787f56c9
7
+ data.tar.gz: 9b462c84fe3741415b26251304b82a9098ceb56830ef75e5de358351b0cb27f98a5be8315ffe1f497fa3994b7c18ae746dc8959a334814fccaf1e67e68d69c3c
@@ -145,7 +145,7 @@ module Actir
145
145
  month = $1
146
146
  day = $2
147
147
  #若果是1-9,则在前面加个0
148
- if month == "" and day == ""
148
+ if month == "" || day == "" || month == nil || day == nil
149
149
  return ""
150
150
  else
151
151
  month = "0" + month if month.to_i <= 9 && month.to_i >= 1
@@ -97,6 +97,7 @@ module Actir
97
97
 
98
98
  # 获取cookies
99
99
  def get_baifubao_cookies
100
+ sleep 5
100
101
  id = @browser.cookies[:BAIDUID][:value]
101
102
  ss = @browser.cookies[:BDUSS][:value]
102
103
  @browser.close
@@ -1,3 +1,3 @@
1
1
  module Actir
2
- VERSION = "1.0.4"
2
+ VERSION = "1.0.5"
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.0.4
4
+ version: 1.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - hub
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-27 00:00:00.000000000 Z
11
+ date: 2015-07-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: test-unit
@@ -168,7 +168,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
168
168
  version: '0'
169
169
  requirements: []
170
170
  rubyforge_project:
171
- rubygems_version: 2.0.14
171
+ rubygems_version: 2.4.7
172
172
  signing_key:
173
173
  specification_version: 4
174
174
  summary: Application Concurrence Test in Ruby.