takuhai_status 1.3.1 → 1.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6a24b81af165a2716d7ae6c1372cf1b8e2f84a3c
4
- data.tar.gz: 81e8b57c9ae11d9e205f11f517a54e1e62e4a916
3
+ metadata.gz: e00546f8f48385326d432823a60bb7be085a6689
4
+ data.tar.gz: 1b550bcc680908baa39a1fd3bf81dbe245695508
5
5
  SHA512:
6
- metadata.gz: b3981fd39ec3eefae092a5410d460b54052bd33e0cdfe6792562e7c0a5a970a3406fc9e4d9cf7d5b748dcf6f6202f873bba0cd1e6ae4be7ab041bfc71cf9c511
7
- data.tar.gz: 3b8fa907c8995157943ada0e47465e290f420e86803139589b8613a42cba0f7df6d84c85725cc42eb628f2b7504839e6fb61a4d2dd13402deb2edc83ca45162d
6
+ metadata.gz: d5e224e270657cf696f7e8e9ce557f48e40ea0e4df39e793a656e543cff85dec45b5a70b734d7db217e005a9a6772a9bb811a348452d821b5441a963ca92fd96
7
+ data.tar.gz: 9264a9db8a8b09feab54a51b92795b908bcf581f5fc2f0468a455b8d2435cafa99a5116bbea3dbaa9bc1c3321500357209a7a5958ea0e59c11eaa1ac0514a0db
data/.tachikoma.yml ADDED
@@ -0,0 +1 @@
1
+ strategy: 'bundler'
@@ -24,7 +24,11 @@ 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\d\/\d\d \d{1,2}:\d\d/)[0]}+0500)"
27
+ begin
28
+ time = "#{doc.css('.secHead ul li')[0].text.match(/\d{4}\/\d\d\/\d\d \d{1,2}:\d\d/)[0]}+0500)"
29
+ rescue NoMethodError
30
+ time = "#{doc.css('.secHead ul li')[0].text.match(/\d{4}\/\d\d\/\d\d/)[0]} 00:00:00+0500)"
31
+ end
28
32
  return Time.parse(time).localtime, state
29
33
  rescue NoMethodError
30
34
  raise NotMyKey
@@ -1,3 +1,3 @@
1
1
  module TakuhaiStatus
2
- VERSION = "1.3.1"
2
+ VERSION = "1.3.2"
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.1
4
+ version: 1.3.2
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-26 00:00:00.000000000 Z
11
+ date: 2016-01-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -117,6 +117,7 @@ extra_rdoc_files: []
117
117
  files:
118
118
  - ".gitignore"
119
119
  - ".rspec"
120
+ - ".tachikoma.yml"
120
121
  - ".travis.yml"
121
122
  - Gemfile
122
123
  - LICENSE.txt
@@ -152,7 +153,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
152
153
  version: '0'
153
154
  requirements: []
154
155
  rubyforge_project:
155
- rubygems_version: 2.4.5.1
156
+ rubygems_version: 2.5.1
156
157
  signing_key:
157
158
  specification_version: 4
158
159
  summary: get delivery status of Takuhai-bin in Japan