kabustation_client 1.0.0 → 1.1.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: 2c33a5cc757b28ab04c421de1dd15f43420cd8d07998502c3ca08ecd063842c1
4
- data.tar.gz: 84fa537a1535baeeced0893df2f9ff74942d3d5270c716a05b81dabb389e4510
3
+ metadata.gz: fb897ba18aad95da6bee12e58d1c5f8b9ab162595c0e789cb2b4b63c8aa236a4
4
+ data.tar.gz: 2f39af3d8ff3b8fcc5b1cee4c77de5bcdb95b86b4e3482fed829c01d1ce834d9
5
5
  SHA512:
6
- metadata.gz: 2ddb78fc1356d5a51850f3481aab09d7f39988d16a3979a26eb43529be07bd673e832cc27cc992691fb0db8cd6ad7ce9dd3a19c7fff69d4b646abee98a9613c5
7
- data.tar.gz: 8e4a36e824359417ee20ab54788d940b214d35dbe1b7bd6d84003fd5ef078cb5b3e821ab0117e1895a545a60ff082d8ceb0d3ba43f7da384a588a77c6b2c04ef
6
+ metadata.gz: b71b493a8dd811b2092cdda8d73fed6d982ffdf78881f24809a41bedffad71c08d1e0b8fa00bbe22193c82e926a298110484f8c00847f540bad21094cffdd2b0
7
+ data.tar.gz: febc086f8065feaa31b11166b16c484378e92eca1535d5d8b3520c275a71fa567aa134100e8e0caceba05db8776dd873e637f2bc667c2268cd056482801dbcb8
data/Gemfile.lock ADDED
@@ -0,0 +1,73 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ kabustation_client (1.1.0)
5
+ typhoeus (~> 1.0, >= 1.0.1)
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ ast (2.4.2)
11
+ byebug (11.1.3)
12
+ coderay (1.1.3)
13
+ diff-lcs (1.5.1)
14
+ ethon (0.16.0)
15
+ ffi (>= 1.15.0)
16
+ ffi (1.16.3)
17
+ jaro_winkler (1.5.6)
18
+ method_source (1.1.0)
19
+ parallel (1.24.0)
20
+ parser (3.3.0.5)
21
+ ast (~> 2.4.1)
22
+ racc
23
+ pry (0.14.2)
24
+ coderay (~> 1.1)
25
+ method_source (~> 1.0)
26
+ pry-byebug (3.10.1)
27
+ byebug (~> 11.0)
28
+ pry (>= 0.13, < 0.15)
29
+ psych (5.1.2)
30
+ stringio
31
+ racc (1.7.3)
32
+ rainbow (3.1.1)
33
+ rake (13.0.6)
34
+ rspec (3.13.0)
35
+ rspec-core (~> 3.13.0)
36
+ rspec-expectations (~> 3.13.0)
37
+ rspec-mocks (~> 3.13.0)
38
+ rspec-core (3.13.0)
39
+ rspec-support (~> 3.13.0)
40
+ rspec-expectations (3.13.0)
41
+ diff-lcs (>= 1.2.0, < 2.0)
42
+ rspec-support (~> 3.13.0)
43
+ rspec-mocks (3.13.0)
44
+ diff-lcs (>= 1.2.0, < 2.0)
45
+ rspec-support (~> 3.13.0)
46
+ rspec-support (3.13.1)
47
+ rubocop (0.66.0)
48
+ jaro_winkler (~> 1.5.1)
49
+ parallel (~> 1.10)
50
+ parser (>= 2.5, != 2.5.1.1)
51
+ psych (>= 3.1.0)
52
+ rainbow (>= 2.2.2, < 4.0)
53
+ ruby-progressbar (~> 1.7)
54
+ unicode-display_width (>= 1.4.0, < 1.6)
55
+ ruby-progressbar (1.13.0)
56
+ stringio (3.1.0)
57
+ typhoeus (1.4.1)
58
+ ethon (>= 0.9.0)
59
+ unicode-display_width (1.5.0)
60
+
61
+ PLATFORMS
62
+ arm64-darwin-23
63
+ ruby
64
+
65
+ DEPENDENCIES
66
+ kabustation_client!
67
+ pry-byebug
68
+ rake (~> 13.0.1)
69
+ rspec (~> 3.6, >= 3.6.0)
70
+ rubocop (~> 0.66.0)
71
+
72
+ BUNDLED WITH
73
+ 2.5.3
data/README.md CHANGED
@@ -9,7 +9,7 @@ KabustationClient - the Ruby gem for the kabuステーションAPI
9
9
  This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
10
10
 
11
11
  - API version: 1.5
12
- - Package version: 1.0.0
12
+ - Package version: 1.1.0
13
13
  - Generator version: 7.4.0
14
14
  - Build package: org.openapitools.codegen.languages.RubyClientCodegen
15
15
  For more information, please visit [https://kabucom.github.io/kabusapi/ptal/index.html](https://kabucom.github.io/kabusapi/ptal/index.html)
@@ -27,22 +27,22 @@ gem build kabustation_client.gemspec
27
27
  Then either install the gem locally:
28
28
 
29
29
  ```shell
30
- gem install ./kabustation_client-1.0.0.gem
30
+ gem install ./kabustation_client-1.1.0.gem
31
31
  ```
32
32
 
33
- (for development, run `gem install --dev ./kabustation_client-1.0.0.gem` to install the development dependencies)
33
+ (for development, run `gem install --dev ./kabustation_client-1.1.0.gem` to install the development dependencies)
34
34
 
35
35
  or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
36
36
 
37
37
  Finally add this to the Gemfile:
38
38
 
39
- gem 'kabustation_client', '~> 1.0.0'
39
+ gem 'kabustation_client', '~> 1.1.0'
40
40
 
41
41
  ### Install from Git
42
42
 
43
- If the Ruby gem is hosted at a git repository: https://github.com/GIT_USER_ID/GIT_REPO_ID, then add the following in the Gemfile:
43
+ If the Ruby gem is hosted at a git repository: https://github.com/kyohah/kabustation_client-ruby, then add the following in the Gemfile:
44
44
 
45
- gem 'kabustation_client', :git => 'https://github.com/GIT_USER_ID/GIT_REPO_ID.git'
45
+ gem 'kabustation_client', :git => 'https://github.com/kyohah/kabustation_client-ruby.git'
46
46
 
47
47
  ### Include the Ruby code directly
48
48
 
@@ -56,10 +56,52 @@ ruby -Ilib script.rb
56
56
 
57
57
  Please follow the [installation](#installation) procedure and then run the following code:
58
58
 
59
+ ## Windowsのnginxの設定
60
+ windows マシンで rubyを動かすなら不要
61
+
62
+ ```nginx.conf
63
+ worker_processes 1;
64
+ events {
65
+ worker_connections 1024;
66
+ }
67
+ http {
68
+ include mime.types;
69
+ default_type application/octet-stream;
70
+ sendfile on;
71
+ keepalive_timeout 65;
72
+
73
+ map $http_upgrade $connection_upgrade {
74
+ default upgrade;
75
+ '' close;
76
+ }
77
+
78
+ server {
79
+ listen 80;
80
+ server_name localhost;
81
+
82
+ proxy_http_version 1.1;
83
+ proxy_set_header Host localhost;
84
+ proxy_set_header Upgrade $http_upgrade;
85
+ proxy_set_header Connection $connection_upgrade;
86
+
87
+ location /production/ { # 本番用
88
+ proxy_pass http://127.0.0.1:18080/kabusapi;
89
+ }
90
+
91
+ location /development/ { # 検証用
92
+ proxy_pass http://127.0.0.1:18081/kabusapi;
93
+ }
94
+ }
95
+ }
96
+ ```
59
97
  ```ruby
60
- # Load the gem
61
98
  require 'kabustation_client'
62
99
 
100
+ KabustationClient.configure do |config|
101
+ config.host = ENV.fetch('KABUSTATION_HOST', 'localhost')
102
+ config.base_path = 'production'
103
+ end
104
+
63
105
  api_instance = KabustationClient::AuthApi.new
64
106
  request_token = KabustationClient::RequestToken.new({api_password: 'xxxxxx'}) # RequestToken |
65
107
 
@@ -71,6 +113,8 @@ rescue KabustationClient::ApiError => e
71
113
  puts "Exception when calling AuthApi->token_post: #{e}"
72
114
  end
73
115
 
116
+
117
+ KabustationClient.configure.api_key['ApiKeyAuth'] = result.token
74
118
  ```
75
119
 
76
120
  ## Documentation for API Endpoints
@@ -184,5 +228,12 @@ Class | Method | HTTP request | Description
184
228
 
185
229
  ## Documentation for Authorization
186
230
 
187
- Endpoints do not require authorization.
231
+
232
+ Authentication schemes defined for the API:
233
+ ### ApiKeyAuth
234
+
235
+
236
+ - **Type**: API key
237
+ - **API key parameter name**: X-API-Key
238
+ - **Location**: HTTP header
188
239
 
data/bin/console ADDED
@@ -0,0 +1,11 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ require "bundler/setup"
5
+ require "kabustation_client"
6
+
7
+ # You can add fixtures and/or initialization code here to make experimenting
8
+ # with your gem easier. You can also use a different console, if you like.
9
+
10
+ require "irb"
11
+ IRB.start(__FILE__)
data/bin/setup ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here