nta_ruby 0.1.0
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 +7 -0
- data/.gitignore +11 -0
- data/.rspec +3 -0
- data/.ruby-version +1 -0
- data/.travis.yml +7 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +21 -0
- data/README.md +89 -0
- data/Rakefile +6 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/lib/nta_ruby.rb +15 -0
- data/lib/nta_ruby/connection.rb +70 -0
- data/lib/nta_ruby/options.rb +60 -0
- data/lib/nta_ruby/response.rb +89 -0
- data/lib/nta_ruby/version.rb +3 -0
- data/nta_ruby.gemspec +30 -0
- metadata +116 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 016b092b6106e61e584fe28f41552dca94a76e8004c45f577f6b55c958f4aefb
|
4
|
+
data.tar.gz: eeb58f017fa8b3e80bb92f9412f814a0fd2772de483f0781d2765855e2079563
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: beb401d014dfce3987f561e4e05c57fb58f9fb792ad67a1201048a3794101934e97f50a21302db01ee65bc3f13fabf43230e6fd6d2d2e5763671804ff29b13a3
|
7
|
+
data.tar.gz: e04d4b13c12866b9f08697007a443d2d7202b163c819be292e047410280d706b45d5e94fcb29d82adce80626a1db511715dde7c02b735a817afab2f142963641
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
2.6.5
|
data/.travis.yml
ADDED
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,74 @@
|
|
1
|
+
# Contributor Covenant Code of Conduct
|
2
|
+
|
3
|
+
## Our Pledge
|
4
|
+
|
5
|
+
In the interest of fostering an open and welcoming environment, we as
|
6
|
+
contributors and maintainers pledge to making participation in our project and
|
7
|
+
our community a harassment-free experience for everyone, regardless of age, body
|
8
|
+
size, disability, ethnicity, gender identity and expression, level of experience,
|
9
|
+
nationality, personal appearance, race, religion, or sexual identity and
|
10
|
+
orientation.
|
11
|
+
|
12
|
+
## Our Standards
|
13
|
+
|
14
|
+
Examples of behavior that contributes to creating a positive environment
|
15
|
+
include:
|
16
|
+
|
17
|
+
* Using welcoming and inclusive language
|
18
|
+
* Being respectful of differing viewpoints and experiences
|
19
|
+
* Gracefully accepting constructive criticism
|
20
|
+
* Focusing on what is best for the community
|
21
|
+
* Showing empathy towards other community members
|
22
|
+
|
23
|
+
Examples of unacceptable behavior by participants include:
|
24
|
+
|
25
|
+
* The use of sexualized language or imagery and unwelcome sexual attention or
|
26
|
+
advances
|
27
|
+
* Trolling, insulting/derogatory comments, and personal or political attacks
|
28
|
+
* Public or private harassment
|
29
|
+
* Publishing others' private information, such as a physical or electronic
|
30
|
+
address, without explicit permission
|
31
|
+
* Other conduct which could reasonably be considered inappropriate in a
|
32
|
+
professional setting
|
33
|
+
|
34
|
+
## Our Responsibilities
|
35
|
+
|
36
|
+
Project maintainers are responsible for clarifying the standards of acceptable
|
37
|
+
behavior and are expected to take appropriate and fair corrective action in
|
38
|
+
response to any instances of unacceptable behavior.
|
39
|
+
|
40
|
+
Project maintainers have the right and responsibility to remove, edit, or
|
41
|
+
reject comments, commits, code, wiki edits, issues, and other contributions
|
42
|
+
that are not aligned to this Code of Conduct, or to ban temporarily or
|
43
|
+
permanently any contributor for other behaviors that they deem inappropriate,
|
44
|
+
threatening, offensive, or harmful.
|
45
|
+
|
46
|
+
## Scope
|
47
|
+
|
48
|
+
This Code of Conduct applies both within project spaces and in public spaces
|
49
|
+
when an individual is representing the project or its community. Examples of
|
50
|
+
representing a project or community include using an official project e-mail
|
51
|
+
address, posting via an official social media account, or acting as an appointed
|
52
|
+
representative at an online or offline event. Representation of a project may be
|
53
|
+
further defined and clarified by project maintainers.
|
54
|
+
|
55
|
+
## Enforcement
|
56
|
+
|
57
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
58
|
+
reported by contacting the project team at shinter61@gmail.com. All
|
59
|
+
complaints will be reviewed and investigated and will result in a response that
|
60
|
+
is deemed necessary and appropriate to the circumstances. The project team is
|
61
|
+
obligated to maintain confidentiality with regard to the reporter of an incident.
|
62
|
+
Further details of specific enforcement policies may be posted separately.
|
63
|
+
|
64
|
+
Project maintainers who do not follow or enforce the Code of Conduct in good
|
65
|
+
faith may face temporary or permanent repercussions as determined by other
|
66
|
+
members of the project's leadership.
|
67
|
+
|
68
|
+
## Attribution
|
69
|
+
|
70
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
|
71
|
+
available at [http://contributor-covenant.org/version/1/4][version]
|
72
|
+
|
73
|
+
[homepage]: http://contributor-covenant.org
|
74
|
+
[version]: http://contributor-covenant.org/version/1/4/
|
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2019 shinter61
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,89 @@
|
|
1
|
+
# NtaRuby
|
2
|
+
|
3
|
+
国税庁APIで企業情報を取得するためのgemです。各種情報がobjectとして扱えるようになります。
|
4
|
+
|
5
|
+
## インストール
|
6
|
+
|
7
|
+
この行をgemfileに追記して、
|
8
|
+
|
9
|
+
```ruby
|
10
|
+
gem 'nta_ruby'
|
11
|
+
```
|
12
|
+
|
13
|
+
これを実行してください。
|
14
|
+
|
15
|
+
$ bundle
|
16
|
+
|
17
|
+
もしくは、以下のコマンドをシェルから実行してください。
|
18
|
+
|
19
|
+
$ gem install nta_ruby
|
20
|
+
|
21
|
+
## 使用法
|
22
|
+
|
23
|
+
国税庁へのAPIのリクエストを送りたいファイルで、まずこの行を追加し、国税庁とのネットワークを確立してください。
|
24
|
+
|
25
|
+
```ruby
|
26
|
+
# AAAAAAAA: あなたの国税庁APIの認証ID
|
27
|
+
# 4: 利用したい国税庁APIのバージョン
|
28
|
+
conn = NtaRuby.new(id: 'AAAAAAAAA', version: 4)
|
29
|
+
```
|
30
|
+
|
31
|
+
接続できたら、検索条件を指定するとそれに応じたレスポンスが加工されて返却されます。
|
32
|
+
```ruby
|
33
|
+
resp = conn.throw_request(type: :diff, divide: 2, from: Time.zone.local(2019, 9, 1), to: Time.zone.local(2019, 10, 1))
|
34
|
+
resp.first.name # => '株式会社○△□'
|
35
|
+
```
|
36
|
+
|
37
|
+
### 法人番号検索
|
38
|
+
|
39
|
+
法人番号が「1111111111111」のもので検索したい場合
|
40
|
+
```ruby
|
41
|
+
resp = conn.throw_request(type: :number, divide: false, number: 1111111111111)
|
42
|
+
resp.size # => 1
|
43
|
+
resp.first.name # => '株式会社○△□'
|
44
|
+
```
|
45
|
+
|
46
|
+
法人番号が「1111111111111」のもので検索したい場合(履歴付き)
|
47
|
+
```ruby
|
48
|
+
resp = conn.throw_request(type: :number, divide: false, number: 1111111111111, history: true)
|
49
|
+
resp.size # => 3
|
50
|
+
resp.first.name # => '株式会社○△□'
|
51
|
+
resp[1].name # => '株式会社×××'
|
52
|
+
```
|
53
|
+
|
54
|
+
### 期間検索
|
55
|
+
|
56
|
+
2019年9月1日から2019年10月1日の間に更新されたもので検索したい場合
|
57
|
+
```ruby
|
58
|
+
resp = conn.throw_request(type: :diff, divide: 2, from: Time.zone.local(2019, 9, 1), to: Time.zone.local(2019, 10, 1))
|
59
|
+
resp.size # => 2000
|
60
|
+
resp.first.name # => '株式会社○△□'
|
61
|
+
```
|
62
|
+
|
63
|
+
### 名称検索
|
64
|
+
|
65
|
+
名前が「test」のもので検索したい場合(前方一致)
|
66
|
+
```ruby
|
67
|
+
resp = conn.throw_request(type: :name, divide: false, history: true, mode: 1)
|
68
|
+
resp.size # => 600
|
69
|
+
resp.first.name # => 'test株式会社'
|
70
|
+
```
|
71
|
+
|
72
|
+
|
73
|
+
## Development
|
74
|
+
|
75
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
76
|
+
|
77
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
78
|
+
|
79
|
+
## Contributing
|
80
|
+
|
81
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/nta_ruby. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
82
|
+
|
83
|
+
## License
|
84
|
+
|
85
|
+
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
86
|
+
|
87
|
+
## Code of Conduct
|
88
|
+
|
89
|
+
Everyone interacting in the NtaRuby project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/nta_ruby/blob/master/CODE_OF_CONDUCT.md).
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "nta_ruby"
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require "irb"
|
14
|
+
IRB.start(__FILE__)
|
data/bin/setup
ADDED
data/lib/nta_ruby.rb
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
require "nta_ruby/version"
|
2
|
+
require "nta_ruby/connection"
|
3
|
+
require "nta_ruby/response"
|
4
|
+
require "nta_ruby/options"
|
5
|
+
require "faraday"
|
6
|
+
require "csv"
|
7
|
+
require "time"
|
8
|
+
|
9
|
+
module NtaRuby
|
10
|
+
class << self
|
11
|
+
def new(id, version = 4)
|
12
|
+
NtaRuby::Connection.new(id: id, version: version)
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
@@ -0,0 +1,70 @@
|
|
1
|
+
module NtaRuby
|
2
|
+
class ConnectionNotFoundError < StandardError; end
|
3
|
+
class InvalidRequestTypeError < StandardError; end
|
4
|
+
|
5
|
+
class Connection
|
6
|
+
attr_reader :conn, :id, :version
|
7
|
+
|
8
|
+
def initialize(id:, version:)
|
9
|
+
@conn = Faraday.new(:url => 'https://api.houjin-bangou.nta.go.jp') do |builder|
|
10
|
+
builder.request :url_encoded
|
11
|
+
builder.response :logger
|
12
|
+
builder.adapter :net_http
|
13
|
+
end
|
14
|
+
@id = id
|
15
|
+
@version = version
|
16
|
+
end
|
17
|
+
|
18
|
+
def throw_request(type:, divide:, **option)
|
19
|
+
raise ConnectionNotFoundError.new unless conn
|
20
|
+
|
21
|
+
search_condition = Options.new(type: type, **option).to_h
|
22
|
+
search_condition.merge!({ id: id })
|
23
|
+
|
24
|
+
response = []
|
25
|
+
case type
|
26
|
+
when :number
|
27
|
+
raw_resp = conn.get "#{version}/num", search_condition
|
28
|
+
result, _ = NtaRuby::Response.parse(raw_resp)
|
29
|
+
|
30
|
+
response.concat result
|
31
|
+
when :diff
|
32
|
+
raw_resp = conn.get "#{version}/diff", search_condition
|
33
|
+
result, divide_size = NtaRuby::Response.parse(raw_resp)
|
34
|
+
|
35
|
+
response.concat result
|
36
|
+
|
37
|
+
return response if divide.is_a? Integer
|
38
|
+
|
39
|
+
(1..divide_size).each do |divide_number|
|
40
|
+
next if divide_number == 1
|
41
|
+
|
42
|
+
raw_resp = conn.get "#{version}/diff", search_condition.merge({ divide: divide_number })
|
43
|
+
result, _ = NtaRuby::Response.parse(raw_resp)
|
44
|
+
|
45
|
+
response.concat result
|
46
|
+
end
|
47
|
+
when :name
|
48
|
+
raw_resp = conn.get "#{version}/name", search_condition
|
49
|
+
result, divide_size = NtaRuby::Response.parse(raw_resp)
|
50
|
+
|
51
|
+
response.concat result
|
52
|
+
|
53
|
+
return response if divide.is_a? Integer
|
54
|
+
|
55
|
+
(1..divide_size).each do |divide_number|
|
56
|
+
next if divide_number == 1
|
57
|
+
|
58
|
+
raw_resp = conn.get "#{version}/name", search_condition.merge({ divide: divide_number })
|
59
|
+
result, _ = NtaRuby::Response.parse(raw_resp)
|
60
|
+
|
61
|
+
response.concat result
|
62
|
+
end
|
63
|
+
else
|
64
|
+
raise InvalidRequestTypeError.new
|
65
|
+
end
|
66
|
+
|
67
|
+
response
|
68
|
+
end
|
69
|
+
end
|
70
|
+
end
|
@@ -0,0 +1,60 @@
|
|
1
|
+
module NtaRuby
|
2
|
+
class Options
|
3
|
+
SEARCH_CONDITION_KINDS = %w[
|
4
|
+
number
|
5
|
+
history
|
6
|
+
from
|
7
|
+
to
|
8
|
+
req_type
|
9
|
+
resp_type
|
10
|
+
name
|
11
|
+
address
|
12
|
+
mode
|
13
|
+
kind
|
14
|
+
close
|
15
|
+
divide
|
16
|
+
]
|
17
|
+
|
18
|
+
attr_accessor *SEARCH_CONDITION_KINDS
|
19
|
+
|
20
|
+
alias change history
|
21
|
+
|
22
|
+
def initialize(type:, **option)
|
23
|
+
@number = option[:number] if option[:number]
|
24
|
+
@history = option[:history] === true ? 1 : 0
|
25
|
+
@from = option[:from]&.strftime('%Y-%m-%d') if option[:from]
|
26
|
+
@to = option[:to]&.strftime('%Y-%m-%d') if option[:to]
|
27
|
+
@req_type = type
|
28
|
+
@resp_type = '02'
|
29
|
+
@name = option[:name] if option[:name]
|
30
|
+
@address = option[:address] if option[:address]
|
31
|
+
@mode = option[:mode] if option[:mode]
|
32
|
+
@kind = option[:kind] if option[:kind]
|
33
|
+
@close = option[:close] === true ? 1 : 0
|
34
|
+
@divide = option[:divide]&.to_i || 1
|
35
|
+
end
|
36
|
+
|
37
|
+
def to_h
|
38
|
+
search_hash = {
|
39
|
+
number: number,
|
40
|
+
from: from,
|
41
|
+
to: to,
|
42
|
+
type: resp_type,
|
43
|
+
name: name,
|
44
|
+
address: address,
|
45
|
+
mode: mode,
|
46
|
+
kind: kind,
|
47
|
+
close: close,
|
48
|
+
divide: divide
|
49
|
+
}
|
50
|
+
|
51
|
+
if req_type == :number
|
52
|
+
search_hash.merge({ history: history })
|
53
|
+
elsif req_type == :name
|
54
|
+
search_hash.merge({ change: change })
|
55
|
+
else
|
56
|
+
search_hash
|
57
|
+
end
|
58
|
+
end
|
59
|
+
end
|
60
|
+
end
|
@@ -0,0 +1,89 @@
|
|
1
|
+
module NtaRuby
|
2
|
+
class Response
|
3
|
+
RAW_RESPONSE_COLUMN = %w[
|
4
|
+
sequence_number
|
5
|
+
corporate_number
|
6
|
+
process
|
7
|
+
correct
|
8
|
+
update_date
|
9
|
+
change_date
|
10
|
+
name
|
11
|
+
name_image_id
|
12
|
+
kind
|
13
|
+
prefecture_name
|
14
|
+
city_name
|
15
|
+
street_number
|
16
|
+
address_image_id
|
17
|
+
prefecture_code
|
18
|
+
city_code
|
19
|
+
post_code
|
20
|
+
address_outside
|
21
|
+
address_outside_image_id
|
22
|
+
close_date
|
23
|
+
close_cause
|
24
|
+
successor_corporate_number
|
25
|
+
change_cause
|
26
|
+
assignment_date
|
27
|
+
latest
|
28
|
+
en_name
|
29
|
+
en_prefecture_name
|
30
|
+
en_city_name
|
31
|
+
en_address_outside
|
32
|
+
furigana
|
33
|
+
hihyoji
|
34
|
+
].freeze
|
35
|
+
|
36
|
+
HEADER_COLUMN = %w[
|
37
|
+
last_update_date
|
38
|
+
count
|
39
|
+
divide_number
|
40
|
+
divide_size
|
41
|
+
].freeze
|
42
|
+
|
43
|
+
TIME_COLUMN = %w[
|
44
|
+
update_date
|
45
|
+
change_date
|
46
|
+
close_date
|
47
|
+
assignment_date
|
48
|
+
last_update_date
|
49
|
+
].freeze
|
50
|
+
|
51
|
+
INTEGER_COLUMN = %w[
|
52
|
+
sequence_number
|
53
|
+
corporate_number
|
54
|
+
count
|
55
|
+
divide_number
|
56
|
+
divide_size
|
57
|
+
].freeze
|
58
|
+
|
59
|
+
attr_accessor *RAW_RESPONSE_COLUMN
|
60
|
+
attr_accessor *HEADER_COLUMN
|
61
|
+
|
62
|
+
class << self
|
63
|
+
def parse(raw_resp)
|
64
|
+
parsed_csv = CSV.parse(raw_resp.body)
|
65
|
+
csv_header = parsed_csv.shift
|
66
|
+
|
67
|
+
result = parsed_csv.map { |column| new(column, csv_header) }
|
68
|
+
divide_size = csv_header[3].to_i
|
69
|
+
|
70
|
+
[result, divide_size]
|
71
|
+
end
|
72
|
+
end
|
73
|
+
|
74
|
+
def initialize(column, csv_header)
|
75
|
+
RAW_RESPONSE_COLUMN.each_with_index do |attr, idx|
|
76
|
+
target_val = column[idx]
|
77
|
+
target_val = target_val.to_i if INTEGER_COLUMN.include?(attr) && target_val
|
78
|
+
target_val = Time.parse(target_val) if TIME_COLUMN.include?(attr) && target_val
|
79
|
+
send("#{attr}=", target_val)
|
80
|
+
end
|
81
|
+
HEADER_COLUMN.each_with_index do |attr, idx|
|
82
|
+
target_val = csv_header[idx]
|
83
|
+
target_val = target_val.to_i if INTEGER_COLUMN.include?(attr) && target_val
|
84
|
+
target_val = Time.parse(target_val) if TIME_COLUMN.include?(attr) && target_val
|
85
|
+
send("#{attr}=",target_val)
|
86
|
+
end
|
87
|
+
end
|
88
|
+
end
|
89
|
+
end
|
data/nta_ruby.gemspec
ADDED
@@ -0,0 +1,30 @@
|
|
1
|
+
|
2
|
+
lib = File.expand_path("../lib", __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require "nta_ruby/version"
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "nta_ruby"
|
8
|
+
spec.version = NtaRuby::VERSION
|
9
|
+
spec.authors = ["shinter61"]
|
10
|
+
spec.email = ["shinter61@gmail.com"]
|
11
|
+
|
12
|
+
spec.summary = %q{国税庁APIをrubyで利用するためのgem}
|
13
|
+
spec.description = %q{国税庁の提供する企業情報を取得するためのAPIを、rubyで扱いやすくするためのgemです。法人番号、期間、名称検索などがオプションで指定できます。}
|
14
|
+
spec.homepage = "https://shinter61.github.io/nta_ruby"
|
15
|
+
spec.license = "MIT"
|
16
|
+
|
17
|
+
# Specify which files should be added to the gem when it is released.
|
18
|
+
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
19
|
+
spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
|
20
|
+
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
21
|
+
end
|
22
|
+
spec.bindir = "exe"
|
23
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
24
|
+
spec.require_paths = ["lib"]
|
25
|
+
|
26
|
+
spec.add_development_dependency "bundler", "~> 2.0"
|
27
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
28
|
+
spec.add_development_dependency "rspec", "~> 3.0"
|
29
|
+
spec.add_development_dependency "faraday", "~> 0.17.1"
|
30
|
+
end
|
metadata
ADDED
@@ -0,0 +1,116 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: nta_ruby
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- shinter61
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2019-12-21 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '2.0'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '2.0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '10.0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '10.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rspec
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '3.0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '3.0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: faraday
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 0.17.1
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 0.17.1
|
69
|
+
description: 国税庁の提供する企業情報を取得するためのAPIを、rubyで扱いやすくするためのgemです。法人番号、期間、名称検索などがオプションで指定できます。
|
70
|
+
email:
|
71
|
+
- shinter61@gmail.com
|
72
|
+
executables: []
|
73
|
+
extensions: []
|
74
|
+
extra_rdoc_files: []
|
75
|
+
files:
|
76
|
+
- ".gitignore"
|
77
|
+
- ".rspec"
|
78
|
+
- ".ruby-version"
|
79
|
+
- ".travis.yml"
|
80
|
+
- CODE_OF_CONDUCT.md
|
81
|
+
- Gemfile
|
82
|
+
- LICENSE.txt
|
83
|
+
- README.md
|
84
|
+
- Rakefile
|
85
|
+
- bin/console
|
86
|
+
- bin/setup
|
87
|
+
- lib/nta_ruby.rb
|
88
|
+
- lib/nta_ruby/connection.rb
|
89
|
+
- lib/nta_ruby/options.rb
|
90
|
+
- lib/nta_ruby/response.rb
|
91
|
+
- lib/nta_ruby/version.rb
|
92
|
+
- nta_ruby.gemspec
|
93
|
+
homepage: https://shinter61.github.io/nta_ruby
|
94
|
+
licenses:
|
95
|
+
- MIT
|
96
|
+
metadata: {}
|
97
|
+
post_install_message:
|
98
|
+
rdoc_options: []
|
99
|
+
require_paths:
|
100
|
+
- lib
|
101
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
102
|
+
requirements:
|
103
|
+
- - ">="
|
104
|
+
- !ruby/object:Gem::Version
|
105
|
+
version: '0'
|
106
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
requirements: []
|
112
|
+
rubygems_version: 3.0.3
|
113
|
+
signing_key:
|
114
|
+
specification_version: 4
|
115
|
+
summary: 国税庁APIをrubyで利用するためのgem
|
116
|
+
test_files: []
|