houjin-bangou 1.0.0 → 1.0.1
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/README.md +22 -20
- data/houjin-bangou.gemspec +1 -1
- data/lib/houjin-bangou/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ca42877cd891b11c43bb2332cc093206da5e744b
|
4
|
+
data.tar.gz: 5761752ca4268d7b62fb1a2d3fc742fd040241ca
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 32eed8c5a10643378db87170505efbc38a9b1353e7b67c3b55191c843b911a72a3a405a311b473c9abb9eb82c44a4f3aeac5a0e986ff21747a8d4d4a4a66f2b4
|
7
|
+
data.tar.gz: 938a5c1bbf891c43adddf83615be705e2fccb75980232db5148f0691151d56501ccc761b76242c1fe9aa301ba44b90f14f2b7224216ad052d687c5e46f3a257a
|
data/README.md
CHANGED
@@ -27,26 +27,28 @@ Or install it yourself as:
|
|
27
27
|
|
28
28
|
## Usage
|
29
29
|
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
30
|
+
```ruby
|
31
|
+
HoujinBangou.application_id = YOUR_APPLICATION_ID
|
32
|
+
|
33
|
+
# Search by number
|
34
|
+
number = ... # String or Array
|
35
|
+
result = HoujinBangou::Num.search(number)
|
36
|
+
result.each do |record|
|
37
|
+
record #=> HoujinBangou::ResultSet::Record
|
38
|
+
record.corporate_number
|
39
|
+
record.name
|
40
|
+
end
|
41
|
+
|
42
|
+
# Search by date span
|
43
|
+
from = ... # Date, Time or String
|
44
|
+
to = ... # Date, Time or String
|
45
|
+
result = HoujinBangou::Diff.search(from, to)
|
46
|
+
result.each do |record|
|
47
|
+
record #=> HoujinBangou::ResultSet::Record
|
48
|
+
record.corporate_number
|
49
|
+
record.name
|
50
|
+
end
|
51
|
+
```
|
50
52
|
|
51
53
|
## Development
|
52
54
|
|
data/houjin-bangou.gemspec
CHANGED
@@ -16,7 +16,7 @@ Gem::Specification.new do |spec|
|
|
16
16
|
|
17
17
|
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^spec/}) }
|
18
18
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
19
|
-
spec.require_paths = %{ lib }
|
19
|
+
spec.require_paths = %w{ lib }
|
20
20
|
|
21
21
|
spec.required_ruby_version = Gem::Requirement.new('>= 2.2.0')
|
22
22
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: houjin-bangou
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- kissy2go
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-01-
|
11
|
+
date: 2017-01-25 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: See http://www.houjin-bangou.nta.go.jp/webapi for details.
|
14
14
|
email:
|
@@ -40,7 +40,7 @@ metadata: {}
|
|
40
40
|
post_install_message:
|
41
41
|
rdoc_options: []
|
42
42
|
require_paths:
|
43
|
-
-
|
43
|
+
- lib
|
44
44
|
required_ruby_version: !ruby/object:Gem::Requirement
|
45
45
|
requirements:
|
46
46
|
- - ">="
|