takuhai_status 1.1.3 → 1.2.0

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: 8a22177f7f3a151a3332d28f56bc3aa07e4ced05
4
- data.tar.gz: d14f56a4818319ca5dfb65bb797871e104cd562c
3
+ metadata.gz: 473252d7c70aa15e6532dc81cddc276cb46c87a6
4
+ data.tar.gz: f86a202b6778ccce2858cd220fa9b94b1129f8b8
5
5
  SHA512:
6
- metadata.gz: a197e277b0a35b407ffd67d7fd153fd48aff1de2f78c5ccaae1221dd05050748cc82f9f6990050e787b0495ae2b6660ee7ce45c72b089d4a6732630ded1b1b7d
7
- data.tar.gz: 179cd92895a14ddbad6a8e46e4fe3622be4d33a52983a9076a28d04a85c2e396e148c8d5133a9441433761956b0004103ae54d3b86e4e237b0050d84f3edb3c0
6
+ metadata.gz: c0da30d82d4806c36bd3e43c2b81363c50f63b75e0218cc01187ece57ece4d6a574a01bc5de861279f566123793407add16e3a26a7273723f482dc93824a223c
7
+ data.tar.gz: 974bd36f497878136fbd3eee89c5450baf9a0d6de7af644100e6c6720a5d09e7b17cc709928ba5c273aa08811b95642c1c48eafbd9a4deb8ece1d18383d2c20c
@@ -11,7 +11,7 @@ module TakuhaiStatus
11
11
  end
12
12
 
13
13
  def finish?
14
- return !!(@state =~ /配達は終了致しました。$/)
14
+ return !!(@state =~ /営業所へお問い合わせ下さい。|配達は終了致しました。$/)
15
15
  end
16
16
 
17
17
  private
@@ -16,7 +16,7 @@ module TakuhaiStatus
16
16
 
17
17
  private
18
18
  def check
19
- uri = "http://www.ups.com/WebTracking/processInputRequest?loc=ja_JP&Requester=NES&tracknum=#{@key}"
19
+ uri = "https://www.ups.com/WebTracking/processInputRequest?loc=ja_JP&Requester=NES&tracknum=#{@key}"
20
20
  html = open(uri, &:read)
21
21
  # HTML中に謎の大量ヌル文字が含まれていてnokogiriのパースが止まる対策
22
22
  html.gsub!(/\u0000/,'')
@@ -1,3 +1,3 @@
1
1
  module TakuhaiStatus
2
- VERSION = "1.1.3"
2
+ VERSION = "1.2.0"
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.1.3
4
+ version: 1.2.0
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-10-07 00:00:00.000000000 Z
11
+ date: 2015-11-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday