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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 36f48bde6e33990a902c142f1192bda4863273d829531f7bc74056970885efd8
4
- data.tar.gz: 3ad6b113e5fab07e35116336cebabdf399f8193508f526f33cb626272969ced7
3
+ metadata.gz: c6075c92985d369dfee4fed71033a4cc3c6de5f6edf7c8f54312a3c9a026ace5
4
+ data.tar.gz: 586ee3b4663baf14cc573d80e8fce20966f6478e9e295d11c455c763bc0a898b
5
5
  SHA512:
6
- metadata.gz: aa31f2d5002fbc425de03b4d5b918013752516a18e54a3ac23eca4d274856cefe5b08495ee610bf6677b32d2bad0b4484db38d10f217db4b065499e87c1a8a37
7
- data.tar.gz: 3c7c6dd8805774d67ca45cb8ae52075d52f33aee7b40eea25f19d10b4ec07b7d628cc52e32098e7580683e37edc7fb981c3dcec16ae3f4bea4c6faf47836cac1
6
+ metadata.gz: 68247b2310e087d8a8a94321d3ee1443ab6a1154b8588a15f98e6f92efdaf33926b8e210033ee8e2db2ba834e970b9facab315ffe6f7fed4ebe570bc28e2bbf6
7
+ data.tar.gz: '099c6f1e2b5749c68b6d5ab2fdad59cb2de4d4339a56e0640263f290f96a3da8b03791622094389d0235270c3cc41677e27abee9f27eec644336d6671e54a4c0'
data/.travis.yml CHANGED
@@ -4,9 +4,9 @@ cache: bundler
4
4
  before_install:
5
5
  - gem install bundler -v '> 1.5.0'
6
6
  rvm:
7
- - 2.4.5
8
- - 2.5.2
9
- - 2.6.0
7
+ - 2.4.7
8
+ - 2.5.7
9
+ - 2.6.5
10
10
  deploy:
11
11
  provider: rubygems
12
12
  api_key:
@@ -14,13 +14,23 @@ module TakuhaiStatus
14
14
 
15
15
  # loading plugins
16
16
  @@services = []
17
- def self.add_service(service_name)
18
- @@services << service_name
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|
@@ -1,3 +1,3 @@
1
1
  module TakuhaiStatus
2
- VERSION = "1.8.10"
2
+ VERSION = "1.9.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.8.10
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-26 00:00:00.000000000 Z
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.3
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