Commit graph

398 commits

Author SHA1 Message Date
70bbd47606 Add endpoint and stub method 2023-01-08 21:49:57 -08:00
24b15c0740 Add amoeba gem for cloning ActiveRecord objects 2023-01-08 21:49:57 -08:00
3f914d3be7 Merge branch 'main' into character-mods 2023-01-08 05:54:00 -08:00
2c9b15857c
Merge pull request #37 from jedmund/fix-party-creation
Minor support for wider party creation
2023-01-08 01:34:18 -08:00
78df1df683 Allow empty strong params 2023-01-08 01:30:12 -08:00
382b2e2a92 Enable extra if the GridWeapon is in position 9, 10, 11 2023-01-08 01:16:43 -08:00
beeeef3104 TEMP: Comment out problematic code
We don't ever send parameters when posting a party, so for now we don't need to worry about this.

We can't leave this like this though: You should be able to send a complete party in the future (for API creation via strings)
2023-01-08 01:16:25 -08:00
8f9bd0077e Add new fields to output of GridCharacter 2023-01-07 07:51:54 -08:00
3617088418 Add update method for GridCharacter and other utils
* Add check_authorization for before update and eventually destroy runs
* Update permitted parameters
2023-01-07 07:51:40 -08:00
5351123aa2 Add basic validation for various mastery bonuses
* Ensure transcendence is possible on that character
* Ensure transcendence_step is in bounds
* Ensure Over Mastery Attack is a valid value
* Ensure Over Mastery HP is a valid value
* Ensure Over Mastery Attack is 2x Over Mastery HP
* Ensure Awakening level is in bounds
2023-01-07 07:51:04 -08:00
beb9f5aa0c Add GridCharacters#update route 2023-01-07 07:49:39 -08:00
a2fff663d6 More database updates for mastery cols
* Awakening should be jsonb
* All mastery columns are not nullable
2023-01-07 07:49:28 -08:00
7404bcbac9 Change mastery columns to use jsonb
5 columns better than 10
2023-01-07 05:33:16 -08:00
6cf9c8d2ae Create 20230106023753_change_awakening_type_default_value.rb 2023-01-06 01:29:09 -08:00
d13230bdb7 Update database.yml 2023-01-03 18:34:20 -08:00
927078d6f0 Delete .env 2023-01-03 18:27:33 -08:00
aff1a10266 Merge branch 'main' of github.com:jedmund/hensei-api 2023-01-03 18:20:36 -08:00
b629a7ffc9 Update database.yml 2023-01-03 18:20:22 -08:00
248a3df375
Merge pull request #36 from jedmund/party-details-upgrade
Add new fields to Parties
2023-01-03 18:08:16 -08:00
da24ab2942 Update defaults to Rails 7.0 2023-01-03 18:07:04 -08:00
d505b35861 Update properties of new fields again 2023-01-03 18:06:57 -08:00
3226acdf4a Allow input of expanded details and output them 2023-01-03 08:05:47 -08:00
09973142e2 Update default value for turn count to 1 2023-01-03 08:05:16 -08:00
2cfaf0c1cf Add ruby-gemset and update Gemfile.lock 2023-01-03 08:05:03 -08:00
6cd75f8f16 Add new party details to database 2023-01-03 03:19:15 -08:00
660b4d918b
Merge pull request #35 from jedmund/fix-grids-more
Fix broken Extra Weapons and Characters slots
2023-01-03 02:42:12 -08:00
fb037b3249 Fix testing conflict_characters 2023-01-03 02:41:38 -08:00
5e4cb4fe2b Fix reference to weapon series 2023-01-03 02:41:30 -08:00
a36605bce7 Update schema.rb 2023-01-03 02:37:32 -08:00
e1eb0d037b Remove some data migrations 2023-01-02 22:18:52 -08:00
5404618b2f Update 20230102160350_migrate_limit_to_boolean.rb 2023-01-02 22:13:36 -08:00
cb810b3fd5 Update 20230102160350_migrate_limit_to_boolean.rb 2023-01-02 22:12:05 -08:00
e50dbeb9aa Revert to Ruby 3.0.0 2023-01-02 22:07:15 -08:00
e27d644941 Create Gemfile.lock 2023-01-02 22:04:19 -08:00
12c49d1241
Delete Gemfile.lock 2023-01-02 22:02:11 -08:00
86f6f67f5a Create Gemfile.lock 2023-01-02 22:00:15 -08:00
c92756b81f
Merge pull request #34 from jedmund/controller-refactor
Refactor GridWeaponsController and models for validation
2023-01-02 21:56:48 -08:00
7eeb30111d
Merge pull request #33 from jedmund/fix_migration_name
Update migration name
2023-01-02 21:52:47 -08:00
626ead7dfa Update 20230102160350_migrate_limit_to_boolean.rb 2023-01-02 21:52:24 -08:00
6c02106c49
Merge pull request #31 from jedmund/db-cleanup
Database schema updates
2023-01-02 21:47:27 -08:00
a5237d2fa0 Add AX type to blueprint 2023-01-02 21:32:11 -08:00
83c6b2397a Refactor weapon conflicts into model validations 2023-01-02 21:24:53 -08:00
c39abfe8d6 Fix AX reference
Was using int, now uses bool
2023-01-02 21:24:43 -08:00
fb9211bd2d Replace awesome_print, bump Ruby version 2023-01-02 21:24:17 -08:00
2485a52a76 Update seeds
Data is still dirty with bad ATK data across objects
2023-01-02 16:25:35 -08:00
1789dcee4b Move conflict detection code to GridWeapon 2023-01-02 16:25:35 -08:00
eaa6234714 Refactor skills_are_unique 2023-01-02 16:25:35 -08:00
9387bd321f Refactor GridCharactersController
This is a similar refactor to GridWeaponsController
2023-01-02 16:25:35 -08:00
ebbbdc174b Fix bug in GridCharactersController refactor
This would show a conflict modal for any weapon as long as one of the weapons was an opus or draconic
2023-01-02 16:25:35 -08:00
540df78ee9 Change CORS for production or dev env 2023-01-02 16:24:40 -08:00