takuhai_status 1.3.0 → 1.3.1

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: 41c1c118ffc27f4ee1d7d49d814d1c32bd1b8918
4
- data.tar.gz: 5e0cb11bb1733ef54ea1bb49705d185f1ad45011
3
+ metadata.gz: 6a24b81af165a2716d7ae6c1372cf1b8e2f84a3c
4
+ data.tar.gz: 81e8b57c9ae11d9e205f11f517a54e1e62e4a916
5
5
  SHA512:
6
- metadata.gz: 1bc7dc093158478be889ce62bad9a50d401521376a47c87893382b9200d3eca907dcffa6d83c870fe73e236b24930fd2e64e97f64c1dd4909d1ad148bc4dee9b
7
- data.tar.gz: da5240397fc3f8833e58abb7358b06b0eb0c633dae14600b0bdec90543f6705565288f6a8284e96e0cc2494ac9ed76f2dbb2c3ba34812425d6c8a1a24e560752
6
+ metadata.gz: b3981fd39ec3eefae092a5410d460b54052bd33e0cdfe6792562e7c0a5a970a3406fc9e4d9cf7d5b748dcf6f6202f873bba0cd1e6ae4be7ab041bfc71cf9c511
7
+ data.tar.gz: 3b8fa907c8995157943ada0e47465e290f420e86803139589b8613a42cba0f7df6d84c85725cc42eb628f2b7504839e6fb61a4d2dd13402deb2edc83ca45162d
@@ -25,11 +25,11 @@ module TakuhaiStatus
25
25
  state = "#{cells[0].text.strip} [#{cells[2].text.strip}]".sub(/^./, '')
26
26
  time = Time.parse(cells[1].text.strip)
27
27
  return time, state
28
- rescue NoMethodError
28
+ rescue NoMethodError # detail2 table not found, use detail table
29
29
  begin
30
30
  time = Time.now
31
31
  state = doc.css('.table_okurijo_detail').first.css('tr').last.css('td').text.strip
32
- if state == '恐れ入りますが、お問い合せ送り状NOをお確かめください。'
32
+ if state =~ /恐れ入りますが、お問い合せ送り状NOをお確かめください。|お荷物データが登録されておりません。/
33
33
  raise NotMyKey.new('invalid key')
34
34
  end
35
35
  return time, state
@@ -1,3 +1,3 @@
1
1
  module TakuhaiStatus
2
- VERSION = "1.3.0"
2
+ VERSION = "1.3.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: takuhai_status
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - TADA Tadashi
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-11-23 00:00:00.000000000 Z
11
+ date: 2015-11-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday