about summary refs log tree commit diff stats
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* Migrate to full rails appStar Rauchenberger2024-12-0775-1270/+28
|
* Added Pokédex viewing pageKelly Rauchenberger2018-01-291-1/+12
| | | | Currently a work in progress. The queries used to display the Pokémon for each species are very inefficient. The text at the top of the page is also very specific to the author.
* Cached a Pokémon's latest revisionKelly Rauchenberger2018-01-141-1/+3
| | | | | | | | This removes the need to use a GROUP or DISTINCT in eager-loading Pokémon on the front page. It duplicates data, but provisions are in place to keep the cache up-to-date. When a Pokémon record is updated, it is required that its cache points to the current revision. When a revision is created, it updates the Pokémon's cache to point to it, because a new revision will always be the most recent one, and it is impossible to reorder revisions. This does not affect the number of queries used on the front page (see #1). refs #4
* Moved species from Pokémon to revisionKelly Rauchenberger2018-01-131-3/+3
| | | | | | | | The migration will set all of the revisions of each Pokémon to have the species that that Pokémon was set to. If reversed, the migration sets the Pokémon's species to the first revision's species, which mimics the behavior of the engine from before this change, but do note that running the migration backwards like this can lose data. This change slightly affects the loading time of the front page. See #2. refs #3
* Integrated auth into main appKelly Rauchenberger2017-10-151-0/+6
| | | | | | | Pokeviewer now expects the main app's ApplicationController to contain a method called "authenticate_pokeviewer" which will return true iff the username and token passed to it are valid. An example stub is present in the test dummy ApplicationController.
* Added type and ability data to species modelKelly Rauchenberger2017-10-101-1/+13
|
* Pokémon now show the Poké Ball that they're inKelly Rauchenberger2017-10-041-1/+2
| | | | Also fixed a bug with viewing Pokémon that aren't in any game.
* Removed box modelKelly Rauchenberger2017-10-031-11/+15
| | | | | | | | | | | | | It seemed kind of strange to have a model that there should always be exactly 14 of for each of the parent (Trainer) model instances, so the box names were moved into the Trainer model, and the Box model was removed. This commit also adds some eager loading to speed up page loading times. Also made a small change to the way the gift ribbons are extracted. refs #2
* Made "met location" into an actual associationKelly Rauchenberger2017-10-031-2/+2
|
* Added hold itemsKelly Rauchenberger2017-09-301-2/+18
| | | | | | | | | | | | | | | | | | | | | | An items model was created, but the seed only contains items that can be held, which excludes key items and HMs. Berry Juice, while unobtainable, is still included. The item model contains three description fields: one for Ruby/Sapphire, one for FireRed/LeafGreen, and one for Emerald. This is because the descriptions for items are different between the games. In a lot of cases, the Emerald description is the same as the Ruby/Sapphire one, so in those cases, the Emerald description is nil. The purpose of having the different descriptions is so that when a Pokémon holds an item, the website can display the description that is accurate to the game that that Pokémon is currently in. In order to fully support TMs, the move model was improved to additionally contain type and also the three description fields which operate similarly to those of the item model. For TMs, the description fields on the item are usually nil. However, some TMs in Ruby/Sapphire, as well as Emerald, have different descriptions than the moves that they correspond with. In these cases, those descriptions are in the item model, and override the move descriptions when the move is looked at as a TM.
* Added gift ribbon descriptionsKelly Rauchenberger2017-09-301-1/+21
| | | | | | This is basically just for completeness because it is unknown whether gift ribbons other than the National Ribbon and Earth Ribbon from Pokémon Colosseum were ever distributed.
* Added ribbonsKelly Rauchenberger2017-09-291-1/+18
| | | | | | Gift ribbons currently partially work: the correct ribbon image and name is shown, but the ribbon description is not yet extracted from the game and thus is just blank.
* Added met location dataKelly Rauchenberger2017-09-251-1/+7
| | | | | Note that the met location for Pokémon from Orre is completely incorrect.
* Added box namesKelly Rauchenberger2017-09-241-1/+11
|
* Added storage location information to PokémonKelly Rauchenberger2017-09-241-1/+3
|
* Added OT gender fieldKelly Rauchenberger2017-09-241-1/+2
|
* Started working on UIKelly Rauchenberger2017-09-241-2/+2
| | | | | This commit imports a lot of assets from veekun, as well as a font from http://www.victoryroad.net/showthread.php?t=1507
* Added seed data for Pokémon species and movesKelly Rauchenberger2017-09-231-0/+1
|
* Moved revision moves into revision tableKelly Rauchenberger2017-09-231-12/+12
| | | | | | This is a retroactive schema change, so there's no easy way to migrate into it without losing data, but this is so early into the development of this project that it really doesn't matter.
* Created a bunch of modelsKelly Rauchenberger2017-09-1613-0/+281
|
* Initial commitKelly Rauchenberger2017-09-1659-0/+885