takuhai_status 1.1.1 → 1.1.2

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: 21cb9f1d537db9981ac2dd7b1a3312ceb2dcdfca
4
- data.tar.gz: 4fac0bb5c9ee5485d2fe2ef84800aea76a50ee1c
3
+ metadata.gz: 56ebcfccdf508840d2c531bc1361eddffd0e1d34
4
+ data.tar.gz: 0b584393b77ea9fa30d7b0090949c8f3abd0e95d
5
5
  SHA512:
6
- metadata.gz: d6ffb4a9fa91e91da4f96102b05cfc559fe9ce8f228aaaa354e3ee90de5f9e7fa296e08dc0b64bc94bf0cd4ca15877f24e4ee1a3aaa273aaf3fd7d8d6f4beea2
7
- data.tar.gz: 2e55da81faee789df2e18281f498802e050b97f7eb7540943cde77d9186104e165318940d3ec4695e93087d9597a1827fdbd386dc9925d57fa48d17a1f47b46f
6
+ metadata.gz: 3552a97f76306bd395fea6d97e2e6b2a9f2043a1ad16d273fbfffc286178e32bf6c3e5b48911bc60dc49d50df0b4d5c1e4fddd14fc82a748bee0f158fcf48cc5
7
+ data.tar.gz: d7eed04d387d8f02874ffae26f7e5c453f73a632134fd54d23a7b313abcdd75ec26a95441175095d72a8c9265478225f712e650e247bd39139e1fed6c98f9ebc
@@ -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
@@ -24,8 +24,8 @@ module TakuhaiStatus
24
24
 
25
25
  begin
26
26
  state = doc.css('.newstatus #ttc_tt_spStatus h3')[0].text.strip
27
- time = "#{doc.css('.secHead ul li')[0].text.match(/\d{4}\/\d{2}\/\d{2} \d{1,2}:\d{2}/)[0]}+5000)"
28
- return Time.parse(time), state
27
+ time = "#{doc.css('.secHead ul li')[0].text.match(/\d{4}\/\d\d\/\d\d \d{1,2}:\d\d/)[0]}+0500)"
28
+ return Time.parse(time).localtime, state
29
29
  rescue NoMethodError
30
30
  raise NotMyKey
31
31
  rescue ArgumentError
@@ -1,3 +1,3 @@
1
1
  module TakuhaiStatus
2
- VERSION = "1.1.1"
2
+ VERSION = "1.1.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: takuhai_status
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - TADA Tadashi