ftc_events_client 0.3.0 → 0.3.2

Sign up to get free protection for your applications and to get access to all the features.
data/config.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "gemVersion": "0.3.0",
2
+ "gemVersion": "0.3.2",
3
3
  "gemName": "ftc_events_client",
4
4
  "moduleName": "FtcEventsClient",
5
5
  "gemRequiredRubyVersion": ">= 2.4",
@@ -1,6 +1,6 @@
1
1
  # FtcEventsClient::AdvancementApi
2
2
 
3
- All URIs are relative to *http://ftc-api.firstinspires.org*
3
+ All URIs are relative to *https://localhost:5001*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
@@ -1,6 +1,6 @@
1
1
  # FtcEventsClient::AllianceSelectionApi
2
2
 
3
- All URIs are relative to *http://ftc-api.firstinspires.org*
3
+ All URIs are relative to *https://localhost:5001*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
data/docs/AwardsApi.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # FtcEventsClient::AwardsApi
2
2
 
3
- All URIs are relative to *http://ftc-api.firstinspires.org*
3
+ All URIs are relative to *https://localhost:5001*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
data/docs/GeneralApi.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # FtcEventsClient::GeneralApi
2
2
 
3
- All URIs are relative to *http://ftc-api.firstinspires.org*
3
+ All URIs are relative to *https://localhost:5001*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
data/docs/LeaguesApi.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # FtcEventsClient::LeaguesApi
2
2
 
3
- All URIs are relative to *http://ftc-api.firstinspires.org*
3
+ All URIs are relative to *https://localhost:5001*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
@@ -1,6 +1,6 @@
1
1
  # FtcEventsClient::MatchResultsApi
2
2
 
3
- All URIs are relative to *http://ftc-api.firstinspires.org*
3
+ All URIs are relative to *https://localhost:5001*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
data/docs/RankingsApi.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # FtcEventsClient::RankingsApi
2
2
 
3
- All URIs are relative to *http://ftc-api.firstinspires.org*
3
+ All URIs are relative to *https://localhost:5001*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
data/docs/ScheduleApi.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # FtcEventsClient::ScheduleApi
2
2
 
3
- All URIs are relative to *http://ftc-api.firstinspires.org*
3
+ All URIs are relative to *https://localhost:5001*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
@@ -1,6 +1,6 @@
1
1
  # FtcEventsClient::SeasonDataApi
2
2
 
3
- All URIs are relative to *http://ftc-api.firstinspires.org*
3
+ All URIs are relative to *https://localhost:5001*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
Binary file
Binary file
@@ -127,7 +127,7 @@ module FtcEventsClient
127
127
  def initialize
128
128
  @scheme = 'https'
129
129
  @host = 'ftc-api.firstinspires.org'
130
- @base_path = 'http://ftc-api.firstinspires.org'
130
+ @base_path = nil
131
131
  @api_key = {}
132
132
  @api_key_prefix = {}
133
133
  @timeout = 0
@@ -167,7 +167,7 @@ module FtcEventsClient
167
167
  def base_path=(base_path)
168
168
  # Add leading and trailing slashes to base_path
169
169
  @base_path = "/#{base_path}".gsub(/\/+/, '/')
170
- @base_path = '' if @base_path == '/'
170
+ @base_path = nil
171
171
  end
172
172
 
173
173
  def base_url
@@ -18,7 +18,7 @@ module FtcEventsClient
18
18
  # Attribute mapping from ruby-style variable name to JSON key.
19
19
  def self.attribute_map
20
20
  {
21
- :'rankings' => :'Rankings'
21
+ :'rankings' => :'rankings'
22
22
  }
23
23
  end
24
24
 
@@ -18,7 +18,7 @@ module FtcEventsClient
18
18
  # Attribute mapping from ruby-style variable name to JSON key.
19
19
  def self.attribute_map
20
20
  {
21
- :'match_scores' => :'MatchScores'
21
+ :'match_scores' => :'matchScores'
22
22
  }
23
23
  end
24
24
 
@@ -10,5 +10,5 @@ Swagger Codegen version: 3.0.52
10
10
  =end
11
11
 
12
12
  module FtcEventsClient
13
- VERSION = '0.3.0'
13
+ VERSION = '0.3.2'
14
14
  end
data/update.sh CHANGED
@@ -1,8 +1,8 @@
1
1
  # java -jar /Users/jburroughs/.m2/repository/org/openapitools/openapi-generator-cli/5.0.0-SNAPSHOT/openapi-generator-cli-5.0.0-SNAPSHOT.jar generate -i https://ftc-events.firstinspires.org/swagger/v2.0/swagger.json -g ruby -c config.json
2
2
  # curl https://localhost:5001/swagger/v2.0/swagger.json > apispec.json
3
- swagger-codegen generate -i https://ftc-events.firstinspires.org/swagger/v2.0/swagger.json -l ruby -c config.json
3
+ swagger-codegen generate -i apispec.json -l ruby -c config.json
4
4
  # rm apispec.json
5
5
 
6
6
  sed "s/@scheme = 'http'/@scheme = 'https'/g" lib/ftc_events_client/configuration.rb > .tmpsedfile && mv .tmpsedfile lib/ftc_events_client/configuration.rb
7
7
  sed "s/@host = 'localhost'/@host = 'ftc-api.firstinspires.org'/g" lib/ftc_events_client/configuration.rb > .tmpsedfile && mv .tmpsedfile lib/ftc_events_client/configuration.rb
8
- sed "s/@server_index = 0/@server_index = nil/g" lib/ftc_events_client/configuration.rb > .tmpsedfile && mv .tmpsedfile lib/ftc_events_client/configuration.rb
8
+ sed "s/@base_path = '.*'/@base_path = nil/g" lib/ftc_events_client/configuration.rb > .tmpsedfile && mv .tmpsedfile lib/ftc_events_client/configuration.rb
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ftc_events_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Swagger-Codegen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-05-20 00:00:00.000000000 Z
11
+ date: 2024-05-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -80,6 +80,7 @@ files:
80
80
  - Gemfile
81
81
  - README.md
82
82
  - Rakefile
83
+ - apispec.json
83
84
  - build.sh
84
85
  - config.json
85
86
  - docs/AdvancementApi.md
@@ -171,6 +172,8 @@ files:
171
172
  - docs/Stone.md
172
173
  - docs/TeamRankingModel.md
173
174
  - docs/TournamentLevel.md
175
+ - ftc_events_client-0.3.0.gem
176
+ - ftc_events_client-0.3.1.gem
174
177
  - ftc_events_client.gemspec
175
178
  - git_push.sh
176
179
  - lib/ftc_events_client.rb