kendama 0.2.3 → 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/CHANGELOG.md +6 -0
- data/Gemfile +5 -4
- data/Gemfile.lock +33 -33
- data/README.md +5 -5
- data/Rakefile +1 -6
- data/bin/console +11 -0
- data/bin/setup +8 -0
- data/kendama.gemspec +46 -0
- data/lib/kendama/api/v1_api.rb +2 -2
- data/lib/kendama/api_client.rb +3 -3
- data/lib/kendama/api_error.rb +2 -2
- data/lib/kendama/configuration.rb +11 -9
- data/lib/kendama/models/announcement.rb +60 -19
- data/lib/kendama/models/response_body.rb +32 -25
- data/lib/kendama/version.rb +3 -3
- data/lib/kendama.rb +2 -2
- data/openapi/root.yaml +17 -0
- data/openapi/v1/announcement.yaml +179 -0
- data/openapi/v1/diff.yaml +87 -0
- data/openapi/v1/num.yaml +66 -0
- data/openapi/v1/valid.yaml +65 -0
- data/pkg/kendama-1.0.0.gem +0 -0
- data/pkg/kendama-1.0.1.gem +0 -0
- data/spec/api/v1_api_spec.rb +35 -3
- data/spec/api_client_spec.rb +2 -2
- data/spec/configuration_spec.rb +2 -2
- data/spec/models/announcement_spec.rb +24 -4
- data/spec/models/response_body_spec.rb +3 -3
- data/spec/spec_helper.rb +2 -2
- metadata +14 -10
- data/.openapi-generator/FILES +0 -18
- data/.openapi-generator/VERSION +0 -1
- data/.openapi-generator-ignore +0 -30
- data/.rspec +0 -3
- data/.rubocop.yml +0 -155
- data/.travis.yml +0 -11
@@ -1,12 +1,12 @@
|
|
1
1
|
=begin
|
2
2
|
#国税庁API
|
3
3
|
|
4
|
-
|
4
|
+
#国税庁が提供するインボイス制度適格請求書発行事業者公表システムWeb-APIを使用するためのクライアントAPI(https://www.invoice-kohyo.nta.go.jp/web-api/index.html)
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 0.1
|
6
|
+
The version of the OpenAPI document: 1.0.1
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version:
|
9
|
+
OpenAPI Generator version: 7.0.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -20,7 +20,7 @@ require 'date'
|
|
20
20
|
describe Kendama::Announcement do
|
21
21
|
let(:instance) { Kendama::Announcement.new }
|
22
22
|
|
23
|
-
describe 'test an instance of Announcement' do
|
23
|
+
describe 'test an instance of Announcement', skip: 'instance do not have anything' do
|
24
24
|
it 'should create an instance of Announcement' do
|
25
25
|
expect(instance).to be_instance_of(Kendama::Announcement)
|
26
26
|
end
|
@@ -40,30 +40,50 @@ describe Kendama::Announcement do
|
|
40
40
|
describe 'test attribute "process"' do
|
41
41
|
it 'should work' do
|
42
42
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
43
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["01", "02", "03", "04", "99"])
|
44
|
+
# validator.allowable_values.each do |value|
|
45
|
+
# expect { instance.process = value }.not_to raise_error
|
46
|
+
# end
|
43
47
|
end
|
44
48
|
end
|
45
49
|
|
46
50
|
describe 'test attribute "correct"' do
|
47
51
|
it 'should work' do
|
48
52
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
53
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["0", "1", ""])
|
54
|
+
# validator.allowable_values.each do |value|
|
55
|
+
# expect { instance.correct = value }.not_to raise_error
|
56
|
+
# end
|
49
57
|
end
|
50
58
|
end
|
51
59
|
|
52
60
|
describe 'test attribute "kind"' do
|
53
61
|
it 'should work' do
|
54
62
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
63
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["1", "2"])
|
64
|
+
# validator.allowable_values.each do |value|
|
65
|
+
# expect { instance.kind = value }.not_to raise_error
|
66
|
+
# end
|
55
67
|
end
|
56
68
|
end
|
57
69
|
|
58
70
|
describe 'test attribute "country"' do
|
59
71
|
it 'should work' do
|
60
72
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
73
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["1", "2", "3"])
|
74
|
+
# validator.allowable_values.each do |value|
|
75
|
+
# expect { instance.country = value }.not_to raise_error
|
76
|
+
# end
|
61
77
|
end
|
62
78
|
end
|
63
79
|
|
64
80
|
describe 'test attribute "latest"' do
|
65
81
|
it 'should work' do
|
66
82
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
83
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["0", "1"])
|
84
|
+
# validator.allowable_values.each do |value|
|
85
|
+
# expect { instance.latest = value }.not_to raise_error
|
86
|
+
# end
|
67
87
|
end
|
68
88
|
end
|
69
89
|
|
@@ -1,12 +1,12 @@
|
|
1
1
|
=begin
|
2
2
|
#国税庁API
|
3
3
|
|
4
|
-
|
4
|
+
#国税庁が提供するインボイス制度適格請求書発行事業者公表システムWeb-APIを使用するためのクライアントAPI(https://www.invoice-kohyo.nta.go.jp/web-api/index.html)
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 0.1
|
6
|
+
The version of the OpenAPI document: 1.0.1
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version:
|
9
|
+
OpenAPI Generator version: 7.0.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
data/spec/spec_helper.rb
CHANGED
@@ -3,10 +3,10 @@
|
|
3
3
|
|
4
4
|
#国税庁が提供するインボイス制度適格請求書発行事業者公表システムWeb-APIを使用するためのクライアントAPI(https://www.invoice-kohyo.nta.go.jp/web-api/index.html)
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 1.0.
|
6
|
+
The version of the OpenAPI document: 1.0.1
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version:
|
9
|
+
OpenAPI Generator version: 7.0.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kendama
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- uichi
|
8
8
|
autorequire:
|
9
|
-
bindir:
|
9
|
+
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-09-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -57,12 +57,6 @@ executables: []
|
|
57
57
|
extensions: []
|
58
58
|
extra_rdoc_files: []
|
59
59
|
files:
|
60
|
-
- ".openapi-generator-ignore"
|
61
|
-
- ".openapi-generator/FILES"
|
62
|
-
- ".openapi-generator/VERSION"
|
63
|
-
- ".rspec"
|
64
|
-
- ".rubocop.yml"
|
65
|
-
- ".travis.yml"
|
66
60
|
- CHANGELOG.md
|
67
61
|
- CODE_OF_CONDUCT.md
|
68
62
|
- Gemfile
|
@@ -70,10 +64,13 @@ files:
|
|
70
64
|
- LICENSE.txt
|
71
65
|
- README.md
|
72
66
|
- Rakefile
|
67
|
+
- bin/console
|
68
|
+
- bin/setup
|
73
69
|
- docs/Announcement.md
|
74
70
|
- docs/ResponseBody.md
|
75
71
|
- docs/V1Api.md
|
76
72
|
- git_push.sh
|
73
|
+
- kendama.gemspec
|
77
74
|
- lib/kendama.rb
|
78
75
|
- lib/kendama/api/v1_api.rb
|
79
76
|
- lib/kendama/api_client.rb
|
@@ -82,6 +79,13 @@ files:
|
|
82
79
|
- lib/kendama/models/announcement.rb
|
83
80
|
- lib/kendama/models/response_body.rb
|
84
81
|
- lib/kendama/version.rb
|
82
|
+
- openapi/root.yaml
|
83
|
+
- openapi/v1/announcement.yaml
|
84
|
+
- openapi/v1/diff.yaml
|
85
|
+
- openapi/v1/num.yaml
|
86
|
+
- openapi/v1/valid.yaml
|
87
|
+
- pkg/kendama-1.0.0.gem
|
88
|
+
- pkg/kendama-1.0.1.gem
|
85
89
|
- sig/kendama.rbs
|
86
90
|
- spec/api/v1_api_spec.rb
|
87
91
|
- spec/api_client_spec.rb
|
@@ -112,7 +116,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
112
116
|
- !ruby/object:Gem::Version
|
113
117
|
version: '0'
|
114
118
|
requirements: []
|
115
|
-
rubygems_version: 3.4.
|
119
|
+
rubygems_version: 3.4.19
|
116
120
|
signing_key:
|
117
121
|
specification_version: 4
|
118
122
|
summary: 適格請求書発行事業者公表システムWeb-APIのラッパー
|
data/.openapi-generator/FILES
DELETED
@@ -1,18 +0,0 @@
|
|
1
|
-
.gitlab-ci.yml
|
2
|
-
.travis.yml
|
3
|
-
README.md
|
4
|
-
docs/Announcement.md
|
5
|
-
docs/ResponseBody.md
|
6
|
-
docs/V1Api.md
|
7
|
-
git_push.sh
|
8
|
-
lib/kendama.rb
|
9
|
-
lib/kendama/api/v1_api.rb
|
10
|
-
lib/kendama/api_client.rb
|
11
|
-
lib/kendama/api_error.rb
|
12
|
-
lib/kendama/configuration.rb
|
13
|
-
lib/kendama/models/announcement.rb
|
14
|
-
lib/kendama/models/response_body.rb
|
15
|
-
lib/kendama/version.rb
|
16
|
-
spec/api_client_spec.rb
|
17
|
-
spec/configuration_spec.rb
|
18
|
-
spec/spec_helper.rb
|
data/.openapi-generator/VERSION
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
6.6.0
|
data/.openapi-generator-ignore
DELETED
@@ -1,30 +0,0 @@
|
|
1
|
-
# OpenAPI Generator Ignore
|
2
|
-
# Generated by openapi-generator https://github.com/openapitools/openapi-generator
|
3
|
-
|
4
|
-
# Use this file to prevent files from being overwritten by the generator.
|
5
|
-
# The patterns follow closely to .gitignore or .dockerignore.
|
6
|
-
|
7
|
-
# As an example, the C# client generator defines ApiClient.cs.
|
8
|
-
# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line:
|
9
|
-
#ApiClient.cs
|
10
|
-
|
11
|
-
# You can match any string of characters against a directory, file or extension with a single asterisk (*):
|
12
|
-
#foo/*/qux
|
13
|
-
# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux
|
14
|
-
|
15
|
-
# You can recursively match patterns against a directory, file or extension with a double asterisk (**):
|
16
|
-
#foo/**/qux
|
17
|
-
# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux
|
18
|
-
|
19
|
-
# You can also negate patterns with an exclamation (!).
|
20
|
-
# For example, you can ignore all files in a docs folder with the file extension .md:
|
21
|
-
#docs/*.md
|
22
|
-
# Then explicitly reverse the ignore rule for a single file:
|
23
|
-
#!docs/README.md
|
24
|
-
|
25
|
-
.gitignore
|
26
|
-
.rspec
|
27
|
-
.rubocop.yml
|
28
|
-
Gemfile
|
29
|
-
kendama.gemspec
|
30
|
-
Rakefile
|
data/.rspec
DELETED
data/.rubocop.yml
DELETED
@@ -1,155 +0,0 @@
|
|
1
|
-
# This file is based on https://github.com/rails/rails/blob/master/.rubocop.yml (MIT license)
|
2
|
-
# Automatically generated by OpenAPI Generator (https://openapi-generator.tech)
|
3
|
-
AllCops:
|
4
|
-
TargetRubyVersion: 2.4
|
5
|
-
# RuboCop has a bunch of cops enabled by default. This setting tells RuboCop
|
6
|
-
# to ignore them, so only the ones explicitly set in this file are enabled.
|
7
|
-
DisabledByDefault: true
|
8
|
-
Exclude:
|
9
|
-
- "**/templates/**/*"
|
10
|
-
- "**/vendor/**/*"
|
11
|
-
- "actionpack/lib/action_dispatch/journey/parser.rb"
|
12
|
-
|
13
|
-
# Prefer &&/|| over and/or.
|
14
|
-
Style/AndOr:
|
15
|
-
Enabled: true
|
16
|
-
|
17
|
-
# Align `when` with `case`.
|
18
|
-
Layout/CaseIndentation:
|
19
|
-
Enabled: true
|
20
|
-
|
21
|
-
# Align comments with method definitions.
|
22
|
-
Layout/CommentIndentation:
|
23
|
-
Enabled: true
|
24
|
-
|
25
|
-
Layout/ElseAlignment:
|
26
|
-
Enabled: true
|
27
|
-
|
28
|
-
Layout/EmptyLineAfterMagicComment:
|
29
|
-
Enabled: true
|
30
|
-
|
31
|
-
# In a regular class definition, no empty lines around the body.
|
32
|
-
# Layout/EmptyLinesAroundClassBody:
|
33
|
-
# Enabled: true
|
34
|
-
|
35
|
-
# In a regular method definition, no empty lines around the body.
|
36
|
-
Layout/EmptyLinesAroundMethodBody:
|
37
|
-
Enabled: true
|
38
|
-
|
39
|
-
# In a regular module definition, no empty lines around the body.
|
40
|
-
# Layout/EmptyLinesAroundModuleBody:
|
41
|
-
# Enabled: true
|
42
|
-
|
43
|
-
Layout/FirstArgumentIndentation:
|
44
|
-
Enabled: true
|
45
|
-
|
46
|
-
# Use Ruby >= 1.9 syntax for hashes. Prefer { a: :b } over { :a => :b }.
|
47
|
-
Style/HashSyntax:
|
48
|
-
Enabled: false
|
49
|
-
|
50
|
-
# Method definitions after `private` or `protected` isolated calls need one
|
51
|
-
# extra level of indentation.
|
52
|
-
Layout/IndentationConsistency:
|
53
|
-
Enabled: true
|
54
|
-
EnforcedStyle: indented_internal_methods
|
55
|
-
|
56
|
-
# Two spaces, no tabs (for indentation).
|
57
|
-
# Layout/IndentationWidth:
|
58
|
-
# Enabled: true
|
59
|
-
|
60
|
-
Layout/LeadingCommentSpace:
|
61
|
-
Enabled: true
|
62
|
-
|
63
|
-
Layout/SpaceAfterColon:
|
64
|
-
Enabled: true
|
65
|
-
|
66
|
-
Layout/SpaceAfterComma:
|
67
|
-
Enabled: true
|
68
|
-
|
69
|
-
Layout/SpaceAroundEqualsInParameterDefault:
|
70
|
-
Enabled: true
|
71
|
-
|
72
|
-
Layout/SpaceAroundKeyword:
|
73
|
-
Enabled: true
|
74
|
-
|
75
|
-
# Layout/SpaceAroundOperators:
|
76
|
-
# Enabled: true
|
77
|
-
|
78
|
-
Layout/SpaceBeforeComma:
|
79
|
-
Enabled: true
|
80
|
-
|
81
|
-
Layout/SpaceBeforeFirstArg:
|
82
|
-
Enabled: true
|
83
|
-
|
84
|
-
Style/DefWithParentheses:
|
85
|
-
Enabled: true
|
86
|
-
|
87
|
-
# Defining a method with parameters needs parentheses.
|
88
|
-
Style/MethodDefParentheses:
|
89
|
-
Enabled: true
|
90
|
-
|
91
|
-
Style/FrozenStringLiteralComment:
|
92
|
-
Enabled: false
|
93
|
-
EnforcedStyle: always
|
94
|
-
|
95
|
-
# Use `foo {}` not `foo{}`.
|
96
|
-
Layout/SpaceBeforeBlockBraces:
|
97
|
-
Enabled: true
|
98
|
-
|
99
|
-
# Use `foo { bar }` not `foo {bar}`.
|
100
|
-
Layout/SpaceInsideBlockBraces:
|
101
|
-
Enabled: true
|
102
|
-
|
103
|
-
# Use `{ a: 1 }` not `{a:1}`.
|
104
|
-
# Layout/SpaceInsideHashLiteralBraces:
|
105
|
-
# Enabled: true
|
106
|
-
|
107
|
-
Layout/SpaceInsideParens:
|
108
|
-
Enabled: true
|
109
|
-
|
110
|
-
# Check quotes usage according to lint rule below.
|
111
|
-
# Style/StringLiterals:
|
112
|
-
# Enabled: true
|
113
|
-
# EnforcedStyle: single_quotes
|
114
|
-
|
115
|
-
# Detect hard tabs, no hard tabs.
|
116
|
-
Layout/IndentationStyle:
|
117
|
-
Enabled: true
|
118
|
-
|
119
|
-
# Blank lines should not have any spaces.
|
120
|
-
Layout/TrailingEmptyLines:
|
121
|
-
Enabled: true
|
122
|
-
|
123
|
-
# No trailing whitespace.
|
124
|
-
Layout/TrailingWhitespace:
|
125
|
-
Enabled: false
|
126
|
-
|
127
|
-
# Use quotes for string literals when they are enough.
|
128
|
-
Style/RedundantPercentQ:
|
129
|
-
Enabled: true
|
130
|
-
|
131
|
-
# Align `end` with the matching keyword or starting expression except for
|
132
|
-
# assignments, where it should be aligned with the LHS.
|
133
|
-
Layout/EndAlignment:
|
134
|
-
Enabled: true
|
135
|
-
EnforcedStyleAlignWith: variable
|
136
|
-
AutoCorrect: true
|
137
|
-
|
138
|
-
# Use my_method(my_arg) not my_method( my_arg ) or my_method my_arg.
|
139
|
-
Lint/RequireParentheses:
|
140
|
-
Enabled: true
|
141
|
-
|
142
|
-
Style/RedundantReturn:
|
143
|
-
Enabled: true
|
144
|
-
AllowMultipleReturnValues: true
|
145
|
-
|
146
|
-
Style/Semicolon:
|
147
|
-
Enabled: true
|
148
|
-
AllowAsExpressionSeparator: true
|
149
|
-
|
150
|
-
# Style/StringLiteralsInInterpolation:
|
151
|
-
# Enabled: true
|
152
|
-
# EnforcedStyle: double_quotes
|
153
|
-
|
154
|
-
# Layout/LineLength:
|
155
|
-
# Max: 120
|