pokeapi_client 0.9.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.
Files changed (118) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +9 -0
  3. data/Gemfile.lock +70 -0
  4. data/README.md +185 -0
  5. data/Rakefile +10 -0
  6. data/bin/bundle +114 -0
  7. data/bin/byebug +27 -0
  8. data/bin/coderay +27 -0
  9. data/bin/htmldiff +27 -0
  10. data/bin/ldiff +27 -0
  11. data/bin/pry +27 -0
  12. data/bin/rake +27 -0
  13. data/bin/rspec +27 -0
  14. data/bin/rubocop +27 -0
  15. data/bin/ruby-parse +27 -0
  16. data/bin/ruby-rewrite +27 -0
  17. data/docs/AbilityApi.md +137 -0
  18. data/docs/BerryApi.md +137 -0
  19. data/docs/BerryFirmnessApi.md +137 -0
  20. data/docs/BerryFlavorApi.md +137 -0
  21. data/docs/CharacteristicApi.md +137 -0
  22. data/docs/ContestEffectApi.md +137 -0
  23. data/docs/ContestTypeApi.md +137 -0
  24. data/docs/EggGroupApi.md +137 -0
  25. data/docs/EncounterConditionApi.md +137 -0
  26. data/docs/EncounterConditionValueApi.md +137 -0
  27. data/docs/EncounterMethodApi.md +137 -0
  28. data/docs/EvolutionChainApi.md +137 -0
  29. data/docs/EvolutionTriggerApi.md +137 -0
  30. data/docs/GenderApi.md +137 -0
  31. data/docs/GenerationApi.md +137 -0
  32. data/docs/GrowthRateApi.md +137 -0
  33. data/docs/ItemApi.md +137 -0
  34. data/docs/ItemAttributeApi.md +137 -0
  35. data/docs/ItemCategoryApi.md +137 -0
  36. data/docs/ItemFlingEffectApi.md +137 -0
  37. data/docs/ItemPocketApi.md +137 -0
  38. data/docs/LanguageApi.md +137 -0
  39. data/docs/LocationApi.md +137 -0
  40. data/docs/LocationAreaApi.md +137 -0
  41. data/docs/MachineApi.md +137 -0
  42. data/docs/MoveAilmentApi.md +137 -0
  43. data/docs/MoveApi.md +137 -0
  44. data/docs/MoveBattleStyleApi.md +137 -0
  45. data/docs/MoveCategoryApi.md +137 -0
  46. data/docs/MoveDamageClassApi.md +137 -0
  47. data/docs/MoveLearnMethodApi.md +137 -0
  48. data/docs/MoveTargetApi.md +137 -0
  49. data/docs/NatureApi.md +137 -0
  50. data/docs/PalParkAreaApi.md +137 -0
  51. data/docs/PokeathlonStatApi.md +137 -0
  52. data/docs/PokedexApi.md +137 -0
  53. data/docs/PokemonApi.md +137 -0
  54. data/docs/PokemonColorApi.md +137 -0
  55. data/docs/PokemonFormApi.md +137 -0
  56. data/docs/PokemonHabitatApi.md +137 -0
  57. data/docs/PokemonShapeApi.md +137 -0
  58. data/docs/PokemonSpeciesApi.md +137 -0
  59. data/docs/RegionApi.md +137 -0
  60. data/docs/StatApi.md +137 -0
  61. data/docs/SuperContestEffectApi.md +137 -0
  62. data/docs/TypeApi.md +137 -0
  63. data/docs/VersionApi.md +137 -0
  64. data/docs/VersionGroupApi.md +137 -0
  65. data/git_push.sh +57 -0
  66. data/pokeapi_client.gemspec +36 -0
  67. data/spec/api/ability_api_spec.rb +54 -0
  68. data/spec/api/berry_api_spec.rb +54 -0
  69. data/spec/api/berry_firmness_api_spec.rb +54 -0
  70. data/spec/api/berry_flavor_api_spec.rb +54 -0
  71. data/spec/api/characteristic_api_spec.rb +54 -0
  72. data/spec/api/contest_effect_api_spec.rb +54 -0
  73. data/spec/api/contest_type_api_spec.rb +54 -0
  74. data/spec/api/egg_group_api_spec.rb +54 -0
  75. data/spec/api/encounter_condition_api_spec.rb +54 -0
  76. data/spec/api/encounter_condition_value_api_spec.rb +54 -0
  77. data/spec/api/encounter_method_api_spec.rb +54 -0
  78. data/spec/api/evolution_chain_api_spec.rb +54 -0
  79. data/spec/api/evolution_trigger_api_spec.rb +54 -0
  80. data/spec/api/gender_api_spec.rb +54 -0
  81. data/spec/api/generation_api_spec.rb +54 -0
  82. data/spec/api/growth_rate_api_spec.rb +54 -0
  83. data/spec/api/item_api_spec.rb +54 -0
  84. data/spec/api/item_attribute_api_spec.rb +54 -0
  85. data/spec/api/item_category_api_spec.rb +54 -0
  86. data/spec/api/item_fling_effect_api_spec.rb +54 -0
  87. data/spec/api/item_pocket_api_spec.rb +54 -0
  88. data/spec/api/language_api_spec.rb +54 -0
  89. data/spec/api/location_api_spec.rb +54 -0
  90. data/spec/api/location_area_api_spec.rb +54 -0
  91. data/spec/api/machine_api_spec.rb +54 -0
  92. data/spec/api/move_ailment_api_spec.rb +54 -0
  93. data/spec/api/move_api_spec.rb +54 -0
  94. data/spec/api/move_battle_style_api_spec.rb +54 -0
  95. data/spec/api/move_category_api_spec.rb +54 -0
  96. data/spec/api/move_damage_class_api_spec.rb +54 -0
  97. data/spec/api/move_learn_method_api_spec.rb +54 -0
  98. data/spec/api/move_target_api_spec.rb +54 -0
  99. data/spec/api/nature_api_spec.rb +54 -0
  100. data/spec/api/pal_park_area_api_spec.rb +54 -0
  101. data/spec/api/pokeathlon_stat_api_spec.rb +54 -0
  102. data/spec/api/pokedex_api_spec.rb +54 -0
  103. data/spec/api/pokemon_api_spec.rb +54 -0
  104. data/spec/api/pokemon_color_api_spec.rb +54 -0
  105. data/spec/api/pokemon_form_api_spec.rb +54 -0
  106. data/spec/api/pokemon_habitat_api_spec.rb +54 -0
  107. data/spec/api/pokemon_shape_api_spec.rb +54 -0
  108. data/spec/api/pokemon_species_api_spec.rb +54 -0
  109. data/spec/api/region_api_spec.rb +54 -0
  110. data/spec/api/stat_api_spec.rb +54 -0
  111. data/spec/api/super_contest_effect_api_spec.rb +54 -0
  112. data/spec/api/type_api_spec.rb +54 -0
  113. data/spec/api/version_api_spec.rb +54 -0
  114. data/spec/api/version_group_api_spec.rb +54 -0
  115. data/spec/api_client_spec.rb +224 -0
  116. data/spec/configuration_spec.rb +40 -0
  117. data/spec/spec_helper.rb +109 -0
  118. metadata +250 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: cd4e2b23c977fcc7080b3ac20b78c5f60e1126bd3d8e1477f4c7efb66e2c0da7
4
+ data.tar.gz: 7a2d7d0d148081ddde4ff0217de29ef0fe8b89cc188d0462b7493ff3a735c18c
5
+ SHA512:
6
+ metadata.gz: 24a4962d4fa469085feb1c909004826d4977086cfc558593cc3600edc7613727ae8e575654fc137e57768dd22228350a7f924ae56cdf3909c29c265a666deeb3
7
+ data.tar.gz: 4c30fdad3b13c78cb704f06459c9f0059860ecbca6528ac9dc9596be6f92e4249af4c771a718581ffaa9cb74765042d9e57df068b6e3fe3727cd714515480ca3
data/Gemfile ADDED
@@ -0,0 +1,9 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gemspec
4
+
5
+ group :development, :test do
6
+ gem 'rake', '~> 13.0.1'
7
+ gem 'pry-byebug'
8
+ gem 'rubocop', '~> 0.66.0'
9
+ end
data/Gemfile.lock ADDED
@@ -0,0 +1,70 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ pokeapi_client (0.9.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.0)
14
+ ethon (0.15.0)
15
+ ffi (>= 1.15.0)
16
+ ffi (1.15.5)
17
+ jaro_winkler (1.5.4)
18
+ method_source (1.0.0)
19
+ parallel (1.22.1)
20
+ parser (3.1.2.0)
21
+ ast (~> 2.4.1)
22
+ pry (0.13.1)
23
+ coderay (~> 1.1)
24
+ method_source (~> 1.0)
25
+ pry-byebug (3.9.0)
26
+ byebug (~> 11.0)
27
+ pry (~> 0.13.0)
28
+ psych (4.0.4)
29
+ stringio
30
+ rainbow (3.1.1)
31
+ rake (13.0.6)
32
+ rspec (3.11.0)
33
+ rspec-core (~> 3.11.0)
34
+ rspec-expectations (~> 3.11.0)
35
+ rspec-mocks (~> 3.11.0)
36
+ rspec-core (3.11.0)
37
+ rspec-support (~> 3.11.0)
38
+ rspec-expectations (3.11.0)
39
+ diff-lcs (>= 1.2.0, < 2.0)
40
+ rspec-support (~> 3.11.0)
41
+ rspec-mocks (3.11.1)
42
+ diff-lcs (>= 1.2.0, < 2.0)
43
+ rspec-support (~> 3.11.0)
44
+ rspec-support (3.11.0)
45
+ rubocop (0.66.0)
46
+ jaro_winkler (~> 1.5.1)
47
+ parallel (~> 1.10)
48
+ parser (>= 2.5, != 2.5.1.1)
49
+ psych (>= 3.1.0)
50
+ rainbow (>= 2.2.2, < 4.0)
51
+ ruby-progressbar (~> 1.7)
52
+ unicode-display_width (>= 1.4.0, < 1.6)
53
+ ruby-progressbar (1.11.0)
54
+ stringio (3.0.2)
55
+ typhoeus (1.4.0)
56
+ ethon (>= 0.9.0)
57
+ unicode-display_width (1.5.0)
58
+
59
+ PLATFORMS
60
+ x86_64-linux
61
+
62
+ DEPENDENCIES
63
+ pokeapi_client!
64
+ pry-byebug
65
+ rake (~> 13.0.1)
66
+ rspec (~> 3.6, >= 3.6.0)
67
+ rubocop (~> 0.66.0)
68
+
69
+ BUNDLED WITH
70
+ 2.3.11
data/README.md ADDED
@@ -0,0 +1,185 @@
1
+ # pokeapi_client
2
+
3
+ PokeApiClient - the Ruby gem for the
4
+
5
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+
7
+ This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
8
+
9
+ - API version: 1.0.0
10
+ - Package version: 0.9.0-pre.0
11
+ - Build package: org.openapitools.codegen.languages.RubyClientCodegen
12
+
13
+ ## Installation
14
+
15
+ ### Build a gem
16
+
17
+ To build the Ruby code into a gem:
18
+
19
+ ```shell
20
+ gem build pokeapi_client.gemspec
21
+ ```
22
+
23
+ Then either install the gem locally:
24
+
25
+ ```shell
26
+ gem install ./pokeapi_client-0.9.0-pre.0.gem
27
+ ```
28
+
29
+ (for development, run `gem install --dev ./pokeapi_client-0.9.0-pre.0.gem` to install the development dependencies)
30
+
31
+ or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
32
+
33
+ Finally add this to the Gemfile:
34
+
35
+ gem 'pokeapi_client', '~> 0.9.0-pre.0'
36
+
37
+ ### Install from Git
38
+
39
+ 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:
40
+
41
+ gem 'pokeapi_client', :git => 'https://github.com/GIT_USER_ID/GIT_REPO_ID.git'
42
+
43
+ ### Include the Ruby code directly
44
+
45
+ Include the Ruby code directly using `-I` as follows:
46
+
47
+ ```shell
48
+ ruby -Ilib script.rb
49
+ ```
50
+
51
+ ## Getting Started
52
+
53
+ Please follow the [installation](#installation) procedure and then run the following code:
54
+
55
+ ```ruby
56
+ # Load the gem
57
+ require 'pokeapi_client'
58
+
59
+ api_instance = PokeApiClient::AbilityApi.new
60
+ opts = {
61
+ limit: 56, # Integer |
62
+ offset: 56 # Integer |
63
+ }
64
+
65
+ begin
66
+ result = api_instance.ability_list(opts)
67
+ p result
68
+ rescue PokeApiClient::ApiError => e
69
+ puts "Exception when calling AbilityApi->ability_list: #{e}"
70
+ end
71
+
72
+ ```
73
+
74
+ ## Documentation for API Endpoints
75
+
76
+ All URIs are relative to *https://pokeapi.co*
77
+
78
+ Class | Method | HTTP request | Description
79
+ ------------ | ------------- | ------------- | -------------
80
+ *PokeApiClient::AbilityApi* | [**ability_list**](docs/AbilityApi.md#ability_list) | **GET** /api/v2/ability/ |
81
+ *PokeApiClient::AbilityApi* | [**ability_read**](docs/AbilityApi.md#ability_read) | **GET** /api/v2/ability/{id}/ |
82
+ *PokeApiClient::BerryApi* | [**berry_list**](docs/BerryApi.md#berry_list) | **GET** /api/v2/berry/ |
83
+ *PokeApiClient::BerryApi* | [**berry_read**](docs/BerryApi.md#berry_read) | **GET** /api/v2/berry/{id}/ |
84
+ *PokeApiClient::BerryFirmnessApi* | [**berry_firmness_list**](docs/BerryFirmnessApi.md#berry_firmness_list) | **GET** /api/v2/berry-firmness/ |
85
+ *PokeApiClient::BerryFirmnessApi* | [**berry_firmness_read**](docs/BerryFirmnessApi.md#berry_firmness_read) | **GET** /api/v2/berry-firmness/{id}/ |
86
+ *PokeApiClient::BerryFlavorApi* | [**berry_flavor_list**](docs/BerryFlavorApi.md#berry_flavor_list) | **GET** /api/v2/berry-flavor/ |
87
+ *PokeApiClient::BerryFlavorApi* | [**berry_flavor_read**](docs/BerryFlavorApi.md#berry_flavor_read) | **GET** /api/v2/berry-flavor/{id}/ |
88
+ *PokeApiClient::CharacteristicApi* | [**characteristic_list**](docs/CharacteristicApi.md#characteristic_list) | **GET** /api/v2/characteristic/ |
89
+ *PokeApiClient::CharacteristicApi* | [**characteristic_read**](docs/CharacteristicApi.md#characteristic_read) | **GET** /api/v2/characteristic/{id}/ |
90
+ *PokeApiClient::ContestEffectApi* | [**contest_effect_list**](docs/ContestEffectApi.md#contest_effect_list) | **GET** /api/v2/contest-effect/ |
91
+ *PokeApiClient::ContestEffectApi* | [**contest_effect_read**](docs/ContestEffectApi.md#contest_effect_read) | **GET** /api/v2/contest-effect/{id}/ |
92
+ *PokeApiClient::ContestTypeApi* | [**contest_type_list**](docs/ContestTypeApi.md#contest_type_list) | **GET** /api/v2/contest-type/ |
93
+ *PokeApiClient::ContestTypeApi* | [**contest_type_read**](docs/ContestTypeApi.md#contest_type_read) | **GET** /api/v2/contest-type/{id}/ |
94
+ *PokeApiClient::EggGroupApi* | [**egg_group_list**](docs/EggGroupApi.md#egg_group_list) | **GET** /api/v2/egg-group/ |
95
+ *PokeApiClient::EggGroupApi* | [**egg_group_read**](docs/EggGroupApi.md#egg_group_read) | **GET** /api/v2/egg-group/{id}/ |
96
+ *PokeApiClient::EncounterConditionApi* | [**encounter_condition_list**](docs/EncounterConditionApi.md#encounter_condition_list) | **GET** /api/v2/encounter-condition/ |
97
+ *PokeApiClient::EncounterConditionApi* | [**encounter_condition_read**](docs/EncounterConditionApi.md#encounter_condition_read) | **GET** /api/v2/encounter-condition/{id}/ |
98
+ *PokeApiClient::EncounterConditionValueApi* | [**encounter_condition_value_list**](docs/EncounterConditionValueApi.md#encounter_condition_value_list) | **GET** /api/v2/encounter-condition-value/ |
99
+ *PokeApiClient::EncounterConditionValueApi* | [**encounter_condition_value_read**](docs/EncounterConditionValueApi.md#encounter_condition_value_read) | **GET** /api/v2/encounter-condition-value/{id}/ |
100
+ *PokeApiClient::EncounterMethodApi* | [**encounter_method_list**](docs/EncounterMethodApi.md#encounter_method_list) | **GET** /api/v2/encounter-method/ |
101
+ *PokeApiClient::EncounterMethodApi* | [**encounter_method_read**](docs/EncounterMethodApi.md#encounter_method_read) | **GET** /api/v2/encounter-method/{id}/ |
102
+ *PokeApiClient::EvolutionChainApi* | [**evolution_chain_list**](docs/EvolutionChainApi.md#evolution_chain_list) | **GET** /api/v2/evolution-chain/ |
103
+ *PokeApiClient::EvolutionChainApi* | [**evolution_chain_read**](docs/EvolutionChainApi.md#evolution_chain_read) | **GET** /api/v2/evolution-chain/{id}/ |
104
+ *PokeApiClient::EvolutionTriggerApi* | [**evolution_trigger_list**](docs/EvolutionTriggerApi.md#evolution_trigger_list) | **GET** /api/v2/evolution-trigger/ |
105
+ *PokeApiClient::EvolutionTriggerApi* | [**evolution_trigger_read**](docs/EvolutionTriggerApi.md#evolution_trigger_read) | **GET** /api/v2/evolution-trigger/{id}/ |
106
+ *PokeApiClient::GenderApi* | [**gender_list**](docs/GenderApi.md#gender_list) | **GET** /api/v2/gender/ |
107
+ *PokeApiClient::GenderApi* | [**gender_read**](docs/GenderApi.md#gender_read) | **GET** /api/v2/gender/{id}/ |
108
+ *PokeApiClient::GenerationApi* | [**generation_list**](docs/GenerationApi.md#generation_list) | **GET** /api/v2/generation/ |
109
+ *PokeApiClient::GenerationApi* | [**generation_read**](docs/GenerationApi.md#generation_read) | **GET** /api/v2/generation/{id}/ |
110
+ *PokeApiClient::GrowthRateApi* | [**growth_rate_list**](docs/GrowthRateApi.md#growth_rate_list) | **GET** /api/v2/growth-rate/ |
111
+ *PokeApiClient::GrowthRateApi* | [**growth_rate_read**](docs/GrowthRateApi.md#growth_rate_read) | **GET** /api/v2/growth-rate/{id}/ |
112
+ *PokeApiClient::ItemApi* | [**item_list**](docs/ItemApi.md#item_list) | **GET** /api/v2/item/ |
113
+ *PokeApiClient::ItemApi* | [**item_read**](docs/ItemApi.md#item_read) | **GET** /api/v2/item/{id}/ |
114
+ *PokeApiClient::ItemAttributeApi* | [**item_attribute_list**](docs/ItemAttributeApi.md#item_attribute_list) | **GET** /api/v2/item-attribute/ |
115
+ *PokeApiClient::ItemAttributeApi* | [**item_attribute_read**](docs/ItemAttributeApi.md#item_attribute_read) | **GET** /api/v2/item-attribute/{id}/ |
116
+ *PokeApiClient::ItemCategoryApi* | [**item_category_list**](docs/ItemCategoryApi.md#item_category_list) | **GET** /api/v2/item-category/ |
117
+ *PokeApiClient::ItemCategoryApi* | [**item_category_read**](docs/ItemCategoryApi.md#item_category_read) | **GET** /api/v2/item-category/{id}/ |
118
+ *PokeApiClient::ItemFlingEffectApi* | [**item_fling_effect_list**](docs/ItemFlingEffectApi.md#item_fling_effect_list) | **GET** /api/v2/item-fling-effect/ |
119
+ *PokeApiClient::ItemFlingEffectApi* | [**item_fling_effect_read**](docs/ItemFlingEffectApi.md#item_fling_effect_read) | **GET** /api/v2/item-fling-effect/{id}/ |
120
+ *PokeApiClient::ItemPocketApi* | [**item_pocket_list**](docs/ItemPocketApi.md#item_pocket_list) | **GET** /api/v2/item-pocket/ |
121
+ *PokeApiClient::ItemPocketApi* | [**item_pocket_read**](docs/ItemPocketApi.md#item_pocket_read) | **GET** /api/v2/item-pocket/{id}/ |
122
+ *PokeApiClient::LanguageApi* | [**language_list**](docs/LanguageApi.md#language_list) | **GET** /api/v2/language/ |
123
+ *PokeApiClient::LanguageApi* | [**language_read**](docs/LanguageApi.md#language_read) | **GET** /api/v2/language/{id}/ |
124
+ *PokeApiClient::LocationApi* | [**location_list**](docs/LocationApi.md#location_list) | **GET** /api/v2/location/ |
125
+ *PokeApiClient::LocationApi* | [**location_read**](docs/LocationApi.md#location_read) | **GET** /api/v2/location/{id}/ |
126
+ *PokeApiClient::LocationAreaApi* | [**location_area_list**](docs/LocationAreaApi.md#location_area_list) | **GET** /api/v2/location-area/ |
127
+ *PokeApiClient::LocationAreaApi* | [**location_area_read**](docs/LocationAreaApi.md#location_area_read) | **GET** /api/v2/location-area/{id}/ |
128
+ *PokeApiClient::MachineApi* | [**machine_list**](docs/MachineApi.md#machine_list) | **GET** /api/v2/machine/ |
129
+ *PokeApiClient::MachineApi* | [**machine_read**](docs/MachineApi.md#machine_read) | **GET** /api/v2/machine/{id}/ |
130
+ *PokeApiClient::MoveApi* | [**move_list**](docs/MoveApi.md#move_list) | **GET** /api/v2/move/ |
131
+ *PokeApiClient::MoveApi* | [**move_read**](docs/MoveApi.md#move_read) | **GET** /api/v2/move/{id}/ |
132
+ *PokeApiClient::MoveAilmentApi* | [**move_ailment_list**](docs/MoveAilmentApi.md#move_ailment_list) | **GET** /api/v2/move-ailment/ |
133
+ *PokeApiClient::MoveAilmentApi* | [**move_ailment_read**](docs/MoveAilmentApi.md#move_ailment_read) | **GET** /api/v2/move-ailment/{id}/ |
134
+ *PokeApiClient::MoveBattleStyleApi* | [**move_battle_style_list**](docs/MoveBattleStyleApi.md#move_battle_style_list) | **GET** /api/v2/move-battle-style/ |
135
+ *PokeApiClient::MoveBattleStyleApi* | [**move_battle_style_read**](docs/MoveBattleStyleApi.md#move_battle_style_read) | **GET** /api/v2/move-battle-style/{id}/ |
136
+ *PokeApiClient::MoveCategoryApi* | [**move_category_list**](docs/MoveCategoryApi.md#move_category_list) | **GET** /api/v2/move-category/ |
137
+ *PokeApiClient::MoveCategoryApi* | [**move_category_read**](docs/MoveCategoryApi.md#move_category_read) | **GET** /api/v2/move-category/{id}/ |
138
+ *PokeApiClient::MoveDamageClassApi* | [**move_damage_class_list**](docs/MoveDamageClassApi.md#move_damage_class_list) | **GET** /api/v2/move-damage-class/ |
139
+ *PokeApiClient::MoveDamageClassApi* | [**move_damage_class_read**](docs/MoveDamageClassApi.md#move_damage_class_read) | **GET** /api/v2/move-damage-class/{id}/ |
140
+ *PokeApiClient::MoveLearnMethodApi* | [**move_learn_method_list**](docs/MoveLearnMethodApi.md#move_learn_method_list) | **GET** /api/v2/move-learn-method/ |
141
+ *PokeApiClient::MoveLearnMethodApi* | [**move_learn_method_read**](docs/MoveLearnMethodApi.md#move_learn_method_read) | **GET** /api/v2/move-learn-method/{id}/ |
142
+ *PokeApiClient::MoveTargetApi* | [**move_target_list**](docs/MoveTargetApi.md#move_target_list) | **GET** /api/v2/move-target/ |
143
+ *PokeApiClient::MoveTargetApi* | [**move_target_read**](docs/MoveTargetApi.md#move_target_read) | **GET** /api/v2/move-target/{id}/ |
144
+ *PokeApiClient::NatureApi* | [**nature_list**](docs/NatureApi.md#nature_list) | **GET** /api/v2/nature/ |
145
+ *PokeApiClient::NatureApi* | [**nature_read**](docs/NatureApi.md#nature_read) | **GET** /api/v2/nature/{id}/ |
146
+ *PokeApiClient::PalParkAreaApi* | [**pal_park_area_list**](docs/PalParkAreaApi.md#pal_park_area_list) | **GET** /api/v2/pal-park-area/ |
147
+ *PokeApiClient::PalParkAreaApi* | [**pal_park_area_read**](docs/PalParkAreaApi.md#pal_park_area_read) | **GET** /api/v2/pal-park-area/{id}/ |
148
+ *PokeApiClient::PokeathlonStatApi* | [**pokeathlon_stat_list**](docs/PokeathlonStatApi.md#pokeathlon_stat_list) | **GET** /api/v2/pokeathlon-stat/ |
149
+ *PokeApiClient::PokeathlonStatApi* | [**pokeathlon_stat_read**](docs/PokeathlonStatApi.md#pokeathlon_stat_read) | **GET** /api/v2/pokeathlon-stat/{id}/ |
150
+ *PokeApiClient::PokedexApi* | [**pokedex_list**](docs/PokedexApi.md#pokedex_list) | **GET** /api/v2/pokedex/ |
151
+ *PokeApiClient::PokedexApi* | [**pokedex_read**](docs/PokedexApi.md#pokedex_read) | **GET** /api/v2/pokedex/{id}/ |
152
+ *PokeApiClient::PokemonApi* | [**pokemon_list**](docs/PokemonApi.md#pokemon_list) | **GET** /api/v2/pokemon/ |
153
+ *PokeApiClient::PokemonApi* | [**pokemon_read**](docs/PokemonApi.md#pokemon_read) | **GET** /api/v2/pokemon/{id}/ |
154
+ *PokeApiClient::PokemonColorApi* | [**pokemon_color_list**](docs/PokemonColorApi.md#pokemon_color_list) | **GET** /api/v2/pokemon-color/ |
155
+ *PokeApiClient::PokemonColorApi* | [**pokemon_color_read**](docs/PokemonColorApi.md#pokemon_color_read) | **GET** /api/v2/pokemon-color/{id}/ |
156
+ *PokeApiClient::PokemonFormApi* | [**pokemon_form_list**](docs/PokemonFormApi.md#pokemon_form_list) | **GET** /api/v2/pokemon-form/ |
157
+ *PokeApiClient::PokemonFormApi* | [**pokemon_form_read**](docs/PokemonFormApi.md#pokemon_form_read) | **GET** /api/v2/pokemon-form/{id}/ |
158
+ *PokeApiClient::PokemonHabitatApi* | [**pokemon_habitat_list**](docs/PokemonHabitatApi.md#pokemon_habitat_list) | **GET** /api/v2/pokemon-habitat/ |
159
+ *PokeApiClient::PokemonHabitatApi* | [**pokemon_habitat_read**](docs/PokemonHabitatApi.md#pokemon_habitat_read) | **GET** /api/v2/pokemon-habitat/{id}/ |
160
+ *PokeApiClient::PokemonShapeApi* | [**pokemon_shape_list**](docs/PokemonShapeApi.md#pokemon_shape_list) | **GET** /api/v2/pokemon-shape/ |
161
+ *PokeApiClient::PokemonShapeApi* | [**pokemon_shape_read**](docs/PokemonShapeApi.md#pokemon_shape_read) | **GET** /api/v2/pokemon-shape/{id}/ |
162
+ *PokeApiClient::PokemonSpeciesApi* | [**pokemon_species_list**](docs/PokemonSpeciesApi.md#pokemon_species_list) | **GET** /api/v2/pokemon-species/ |
163
+ *PokeApiClient::PokemonSpeciesApi* | [**pokemon_species_read**](docs/PokemonSpeciesApi.md#pokemon_species_read) | **GET** /api/v2/pokemon-species/{id}/ |
164
+ *PokeApiClient::RegionApi* | [**region_list**](docs/RegionApi.md#region_list) | **GET** /api/v2/region/ |
165
+ *PokeApiClient::RegionApi* | [**region_read**](docs/RegionApi.md#region_read) | **GET** /api/v2/region/{id}/ |
166
+ *PokeApiClient::StatApi* | [**stat_list**](docs/StatApi.md#stat_list) | **GET** /api/v2/stat/ |
167
+ *PokeApiClient::StatApi* | [**stat_read**](docs/StatApi.md#stat_read) | **GET** /api/v2/stat/{id}/ |
168
+ *PokeApiClient::SuperContestEffectApi* | [**super_contest_effect_list**](docs/SuperContestEffectApi.md#super_contest_effect_list) | **GET** /api/v2/super-contest-effect/ |
169
+ *PokeApiClient::SuperContestEffectApi* | [**super_contest_effect_read**](docs/SuperContestEffectApi.md#super_contest_effect_read) | **GET** /api/v2/super-contest-effect/{id}/ |
170
+ *PokeApiClient::TypeApi* | [**type_list**](docs/TypeApi.md#type_list) | **GET** /api/v2/type/ |
171
+ *PokeApiClient::TypeApi* | [**type_read**](docs/TypeApi.md#type_read) | **GET** /api/v2/type/{id}/ |
172
+ *PokeApiClient::VersionApi* | [**version_list**](docs/VersionApi.md#version_list) | **GET** /api/v2/version/ |
173
+ *PokeApiClient::VersionApi* | [**version_read**](docs/VersionApi.md#version_read) | **GET** /api/v2/version/{id}/ |
174
+ *PokeApiClient::VersionGroupApi* | [**version_group_list**](docs/VersionGroupApi.md#version_group_list) | **GET** /api/v2/version-group/ |
175
+ *PokeApiClient::VersionGroupApi* | [**version_group_read**](docs/VersionGroupApi.md#version_group_read) | **GET** /api/v2/version-group/{id}/ |
176
+
177
+
178
+ ## Documentation for Models
179
+
180
+
181
+
182
+ ## Documentation for Authorization
183
+
184
+ All endpoints do not require authorization.
185
+
data/Rakefile ADDED
@@ -0,0 +1,10 @@
1
+ require "bundler/gem_tasks"
2
+
3
+ begin
4
+ require 'rspec/core/rake_task'
5
+
6
+ RSpec::Core::RakeTask.new(:spec)
7
+ task default: :spec
8
+ rescue LoadError
9
+ # no rspec available
10
+ end
data/bin/bundle ADDED
@@ -0,0 +1,114 @@
1
+ #!/usr/bin/env ruby2.7
2
+ # frozen_string_literal: true
3
+
4
+ #
5
+ # This file was generated by Bundler.
6
+ #
7
+ # The application 'bundle' is installed as part of a gem, and
8
+ # this file is here to facilitate running it.
9
+ #
10
+
11
+ require "rubygems"
12
+
13
+ m = Module.new do
14
+ module_function
15
+
16
+ def invoked_as_script?
17
+ File.expand_path($0) == File.expand_path(__FILE__)
18
+ end
19
+
20
+ def env_var_version
21
+ ENV["BUNDLER_VERSION"]
22
+ end
23
+
24
+ def cli_arg_version
25
+ return unless invoked_as_script? # don't want to hijack other binstubs
26
+ return unless "update".start_with?(ARGV.first || " ") # must be running `bundle update`
27
+ bundler_version = nil
28
+ update_index = nil
29
+ ARGV.each_with_index do |a, i|
30
+ if update_index && update_index.succ == i && a =~ Gem::Version::ANCHORED_VERSION_PATTERN
31
+ bundler_version = a
32
+ end
33
+ next unless a =~ /\A--bundler(?:[= ](#{Gem::Version::VERSION_PATTERN}))?\z/
34
+ bundler_version = $1
35
+ update_index = i
36
+ end
37
+ bundler_version
38
+ end
39
+
40
+ def gemfile
41
+ gemfile = ENV["BUNDLE_GEMFILE"]
42
+ return gemfile if gemfile && !gemfile.empty?
43
+
44
+ File.expand_path("../Gemfile", __dir__)
45
+ end
46
+
47
+ def lockfile
48
+ lockfile =
49
+ case File.basename(gemfile)
50
+ when "gems.rb" then gemfile.sub(/\.rb$/, gemfile)
51
+ else "#{gemfile}.lock"
52
+ end
53
+ File.expand_path(lockfile)
54
+ end
55
+
56
+ def lockfile_version
57
+ return unless File.file?(lockfile)
58
+ lockfile_contents = File.read(lockfile)
59
+ return unless lockfile_contents =~ /\n\nBUNDLED WITH\n\s{2,}(#{Gem::Version::VERSION_PATTERN})\n/
60
+ Regexp.last_match(1)
61
+ end
62
+
63
+ def bundler_requirement
64
+ @bundler_requirement ||=
65
+ env_var_version || cli_arg_version ||
66
+ bundler_requirement_for(lockfile_version)
67
+ end
68
+
69
+ def bundler_requirement_for(version)
70
+ return "#{Gem::Requirement.default}.a" unless version
71
+
72
+ bundler_gem_version = Gem::Version.new(version)
73
+
74
+ requirement = bundler_gem_version.approximate_recommendation
75
+
76
+ return requirement unless Gem.rubygems_version < Gem::Version.new("2.7.0")
77
+
78
+ requirement += ".a" if bundler_gem_version.prerelease?
79
+
80
+ requirement
81
+ end
82
+
83
+ def load_bundler!
84
+ ENV["BUNDLE_GEMFILE"] ||= gemfile
85
+
86
+ activate_bundler
87
+ end
88
+
89
+ def activate_bundler
90
+ gem_error = activation_error_handling do
91
+ gem "bundler", bundler_requirement
92
+ end
93
+ return if gem_error.nil?
94
+ require_error = activation_error_handling do
95
+ require "bundler/version"
96
+ end
97
+ return if require_error.nil? && Gem::Requirement.new(bundler_requirement).satisfied_by?(Gem::Version.new(Bundler::VERSION))
98
+ warn "Activating bundler (#{bundler_requirement}) failed:\n#{gem_error.message}\n\nTo install the version of bundler this project requires, run `gem install bundler -v '#{bundler_requirement}'`"
99
+ exit 42
100
+ end
101
+
102
+ def activation_error_handling
103
+ yield
104
+ nil
105
+ rescue StandardError, LoadError => e
106
+ e
107
+ end
108
+ end
109
+
110
+ m.load_bundler!
111
+
112
+ if m.invoked_as_script?
113
+ load Gem.bin_path("bundler", "bundle")
114
+ end
data/bin/byebug ADDED
@@ -0,0 +1,27 @@
1
+ #!/usr/bin/env ruby2.7
2
+ # frozen_string_literal: true
3
+
4
+ #
5
+ # This file was generated by Bundler.
6
+ #
7
+ # The application 'byebug' is installed as part of a gem, and
8
+ # this file is here to facilitate running it.
9
+ #
10
+
11
+ ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__)
12
+
13
+ bundle_binstub = File.expand_path("bundle", __dir__)
14
+
15
+ if File.file?(bundle_binstub)
16
+ if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/
17
+ load(bundle_binstub)
18
+ else
19
+ abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
20
+ Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
21
+ end
22
+ end
23
+
24
+ require "rubygems"
25
+ require "bundler/setup"
26
+
27
+ load Gem.bin_path("byebug", "byebug")
data/bin/coderay ADDED
@@ -0,0 +1,27 @@
1
+ #!/usr/bin/env ruby2.7
2
+ # frozen_string_literal: true
3
+
4
+ #
5
+ # This file was generated by Bundler.
6
+ #
7
+ # The application 'coderay' is installed as part of a gem, and
8
+ # this file is here to facilitate running it.
9
+ #
10
+
11
+ ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__)
12
+
13
+ bundle_binstub = File.expand_path("bundle", __dir__)
14
+
15
+ if File.file?(bundle_binstub)
16
+ if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/
17
+ load(bundle_binstub)
18
+ else
19
+ abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
20
+ Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
21
+ end
22
+ end
23
+
24
+ require "rubygems"
25
+ require "bundler/setup"
26
+
27
+ load Gem.bin_path("coderay", "coderay")
data/bin/htmldiff ADDED
@@ -0,0 +1,27 @@
1
+ #!/usr/bin/env ruby2.7
2
+ # frozen_string_literal: true
3
+
4
+ #
5
+ # This file was generated by Bundler.
6
+ #
7
+ # The application 'htmldiff' is installed as part of a gem, and
8
+ # this file is here to facilitate running it.
9
+ #
10
+
11
+ ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__)
12
+
13
+ bundle_binstub = File.expand_path("bundle", __dir__)
14
+
15
+ if File.file?(bundle_binstub)
16
+ if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/
17
+ load(bundle_binstub)
18
+ else
19
+ abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
20
+ Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
21
+ end
22
+ end
23
+
24
+ require "rubygems"
25
+ require "bundler/setup"
26
+
27
+ load Gem.bin_path("diff-lcs", "htmldiff")
data/bin/ldiff ADDED
@@ -0,0 +1,27 @@
1
+ #!/usr/bin/env ruby2.7
2
+ # frozen_string_literal: true
3
+
4
+ #
5
+ # This file was generated by Bundler.
6
+ #
7
+ # The application 'ldiff' is installed as part of a gem, and
8
+ # this file is here to facilitate running it.
9
+ #
10
+
11
+ ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__)
12
+
13
+ bundle_binstub = File.expand_path("bundle", __dir__)
14
+
15
+ if File.file?(bundle_binstub)
16
+ if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/
17
+ load(bundle_binstub)
18
+ else
19
+ abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
20
+ Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
21
+ end
22
+ end
23
+
24
+ require "rubygems"
25
+ require "bundler/setup"
26
+
27
+ load Gem.bin_path("diff-lcs", "ldiff")
data/bin/pry ADDED
@@ -0,0 +1,27 @@
1
+ #!/usr/bin/env ruby2.7
2
+ # frozen_string_literal: true
3
+
4
+ #
5
+ # This file was generated by Bundler.
6
+ #
7
+ # The application 'pry' is installed as part of a gem, and
8
+ # this file is here to facilitate running it.
9
+ #
10
+
11
+ ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__)
12
+
13
+ bundle_binstub = File.expand_path("bundle", __dir__)
14
+
15
+ if File.file?(bundle_binstub)
16
+ if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/
17
+ load(bundle_binstub)
18
+ else
19
+ abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
20
+ Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
21
+ end
22
+ end
23
+
24
+ require "rubygems"
25
+ require "bundler/setup"
26
+
27
+ load Gem.bin_path("pry", "pry")
data/bin/rake ADDED
@@ -0,0 +1,27 @@
1
+ #!/usr/bin/env ruby2.7
2
+ # frozen_string_literal: true
3
+
4
+ #
5
+ # This file was generated by Bundler.
6
+ #
7
+ # The application 'rake' is installed as part of a gem, and
8
+ # this file is here to facilitate running it.
9
+ #
10
+
11
+ ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__)
12
+
13
+ bundle_binstub = File.expand_path("bundle", __dir__)
14
+
15
+ if File.file?(bundle_binstub)
16
+ if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/
17
+ load(bundle_binstub)
18
+ else
19
+ abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
20
+ Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
21
+ end
22
+ end
23
+
24
+ require "rubygems"
25
+ require "bundler/setup"
26
+
27
+ load Gem.bin_path("rake", "rake")
data/bin/rspec ADDED
@@ -0,0 +1,27 @@
1
+ #!/usr/bin/env ruby2.7
2
+ # frozen_string_literal: true
3
+
4
+ #
5
+ # This file was generated by Bundler.
6
+ #
7
+ # The application 'rspec' is installed as part of a gem, and
8
+ # this file is here to facilitate running it.
9
+ #
10
+
11
+ ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__)
12
+
13
+ bundle_binstub = File.expand_path("bundle", __dir__)
14
+
15
+ if File.file?(bundle_binstub)
16
+ if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/
17
+ load(bundle_binstub)
18
+ else
19
+ abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
20
+ Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
21
+ end
22
+ end
23
+
24
+ require "rubygems"
25
+ require "bundler/setup"
26
+
27
+ load Gem.bin_path("rspec-core", "rspec")
data/bin/rubocop ADDED
@@ -0,0 +1,27 @@
1
+ #!/usr/bin/env ruby2.7
2
+ # frozen_string_literal: true
3
+
4
+ #
5
+ # This file was generated by Bundler.
6
+ #
7
+ # The application 'rubocop' is installed as part of a gem, and
8
+ # this file is here to facilitate running it.
9
+ #
10
+
11
+ ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__)
12
+
13
+ bundle_binstub = File.expand_path("bundle", __dir__)
14
+
15
+ if File.file?(bundle_binstub)
16
+ if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/
17
+ load(bundle_binstub)
18
+ else
19
+ abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
20
+ Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
21
+ end
22
+ end
23
+
24
+ require "rubygems"
25
+ require "bundler/setup"
26
+
27
+ load Gem.bin_path("rubocop", "rubocop")
data/bin/ruby-parse ADDED
@@ -0,0 +1,27 @@
1
+ #!/usr/bin/env ruby2.7
2
+ # frozen_string_literal: true
3
+
4
+ #
5
+ # This file was generated by Bundler.
6
+ #
7
+ # The application 'ruby-parse' is installed as part of a gem, and
8
+ # this file is here to facilitate running it.
9
+ #
10
+
11
+ ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__)
12
+
13
+ bundle_binstub = File.expand_path("bundle", __dir__)
14
+
15
+ if File.file?(bundle_binstub)
16
+ if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/
17
+ load(bundle_binstub)
18
+ else
19
+ abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
20
+ Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
21
+ end
22
+ end
23
+
24
+ require "rubygems"
25
+ require "bundler/setup"
26
+
27
+ load Gem.bin_path("parser", "ruby-parse")