takuhai_status 1.8.10 → 1.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +3 -3
- data/lib/takuhai_status.rb +12 -2
- data/lib/takuhai_status/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c6075c92985d369dfee4fed71033a4cc3c6de5f6edf7c8f54312a3c9a026ace5
|
4
|
+
data.tar.gz: 586ee3b4663baf14cc573d80e8fce20966f6478e9e295d11c455c763bc0a898b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 68247b2310e087d8a8a94321d3ee1443ab6a1154b8588a15f98e6f92efdaf33926b8e210033ee8e2db2ba834e970b9facab315ffe6f7fed4ebe570bc28e2bbf6
|
7
|
+
data.tar.gz: '099c6f1e2b5749c68b6d5ab2fdad59cb2de4d4339a56e0640263f290f96a3da8b03791622094389d0235270c3cc41677e27abee9f27eec644336d6671e54a4c0'
|
data/.travis.yml
CHANGED
data/lib/takuhai_status.rb
CHANGED
@@ -14,13 +14,23 @@ module TakuhaiStatus
|
|
14
14
|
|
15
15
|
# loading plugins
|
16
16
|
@@services = []
|
17
|
-
|
18
|
-
|
17
|
+
# service_class as class
|
18
|
+
def self.add_service(service_class)
|
19
|
+
@@services << service_class
|
19
20
|
end
|
20
21
|
Dir.glob("#{File.dirname(__FILE__)}/takuhai_status/*.rb") do |plugin|
|
21
22
|
require plugin
|
22
23
|
end
|
23
24
|
|
25
|
+
# service_name as symbol, cf. :USPS
|
26
|
+
def self.ignore_service(service_name)
|
27
|
+
begin
|
28
|
+
@@services.delete(TakuhaiStatus.const_get(service_name))
|
29
|
+
rescue NameError
|
30
|
+
return nil
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
24
34
|
def self.scan(key, timeout: 10, logger: Logger.new(nil))
|
25
35
|
services = []
|
26
36
|
[].tap{|threads|
|
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.
|
4
|
+
version: 1.9.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: 2019-
|
11
|
+
date: 2019-12-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -180,7 +180,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
180
180
|
- !ruby/object:Gem::Version
|
181
181
|
version: '0'
|
182
182
|
requirements: []
|
183
|
-
rubygems_version: 3.0.
|
183
|
+
rubygems_version: 3.0.6
|
184
184
|
signing_key:
|
185
185
|
specification_version: 4
|
186
186
|
summary: get delivery status of Takuhai-bin in Japan
|