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 +4 -4
- data/.tachikoma.yml +1 -0
- data/lib/takuhai_status/ups.rb +5 -1
- data/lib/takuhai_status/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e00546f8f48385326d432823a60bb7be085a6689
|
|
4
|
+
data.tar.gz: 1b550bcc680908baa39a1fd3bf81dbe245695508
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d5e224e270657cf696f7e8e9ce557f48e40ea0e4df39e793a656e543cff85dec45b5a70b734d7db217e005a9a6772a9bb811a348452d821b5441a963ca92fd96
|
|
7
|
+
data.tar.gz: 9264a9db8a8b09feab54a51b92795b908bcf581f5fc2f0468a455b8d2435cafa99a5116bbea3dbaa9bc1c3321500357209a7a5958ea0e59c11eaa1ac0514a0db
|
data/.tachikoma.yml
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
strategy: 'bundler'
|
data/lib/takuhai_status/ups.rb
CHANGED
|
@@ -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
|
-
|
|
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
|
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.
|
|
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:
|
|
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.
|
|
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
|