introspective_grape 0.5.5 → 0.6.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (46) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +10 -0
  3. data/Gemfile +22 -18
  4. data/README.md +2 -0
  5. data/introspective_grape.gemspec +5 -4
  6. data/lib/introspective_grape/api.rb +461 -454
  7. data/lib/introspective_grape/create_helpers.rb +25 -25
  8. data/lib/introspective_grape/traversal.rb +1 -1
  9. data/lib/introspective_grape/validators.rb +36 -34
  10. data/lib/introspective_grape/version.rb +5 -5
  11. data/spec/dummy/Gemfile +23 -22
  12. data/spec/dummy/app/api/api_helpers.rb +38 -37
  13. data/spec/dummy/app/api/dummy_api.rb +61 -61
  14. data/spec/dummy/app/api/permissions_helper.rb +7 -7
  15. data/spec/dummy/app/helpers/current.rb +3 -0
  16. data/spec/dummy/app/models/chat_message.rb +34 -34
  17. data/spec/dummy/app/models/chat_user.rb +16 -16
  18. data/spec/dummy/app/models/location.rb +26 -26
  19. data/spec/dummy/app/models/role.rb +30 -30
  20. data/spec/dummy/app/models/team.rb +14 -9
  21. data/spec/dummy/app/models/user/chatter.rb +79 -79
  22. data/spec/dummy/bin/bundle +3 -3
  23. data/spec/dummy/bin/rails +4 -4
  24. data/spec/dummy/bin/setup +36 -29
  25. data/spec/dummy/bin/update +31 -0
  26. data/spec/dummy/bin/yarn +11 -0
  27. data/spec/dummy/config/application.rb +30 -37
  28. data/spec/dummy/config/boot.rb +3 -6
  29. data/spec/dummy/config/environment.rb +5 -11
  30. data/spec/dummy/config/environments/development.rb +54 -42
  31. data/spec/dummy/config/environments/production.rb +81 -79
  32. data/spec/dummy/config/environments/test.rb +47 -44
  33. data/spec/dummy/config/initializers/application_controller_renderer.rb +8 -0
  34. data/spec/dummy/config/initializers/assets.rb +14 -11
  35. data/spec/dummy/config/initializers/content_security_policy.rb +25 -0
  36. data/spec/dummy/config/initializers/cookies_serializer.rb +5 -3
  37. data/spec/dummy/config/initializers/inflections.rb +16 -16
  38. data/spec/dummy/config/initializers/new_framework_defaults_5_2.rb +38 -0
  39. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -14
  40. data/spec/dummy/config/locales/en.yml +33 -23
  41. data/spec/dummy/config/storage.yml +34 -0
  42. data/spec/models/image_spec.rb +10 -14
  43. data/spec/requests/project_api_spec.rb +185 -182
  44. data/spec/requests/user_api_spec.rb +221 -221
  45. data/spec/support/request_helpers.rb +22 -21
  46. metadata +21 -158
metadata CHANGED
@@ -1,29 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: introspective_grape
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.5
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josh Buermann
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-02-25 00:00:00.000000000 Z
11
+ date: 2022-08-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '5.2'
19
+ version: '0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: '5.2'
26
+ version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: schema_validations
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -56,16 +56,16 @@ dependencies:
56
56
  name: grape
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - '='
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
- version: 1.6.0
61
+ version: '0'
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - '='
66
+ - - ">="
67
67
  - !ruby/object:Gem::Version
68
- version: 1.6.0
68
+ version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: dry-types
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -399,6 +399,7 @@ files:
399
399
  - spec/dummy/app/controllers/application_controller.rb
400
400
  - spec/dummy/app/controllers/concerns/.keep
401
401
  - spec/dummy/app/helpers/application_helper.rb
402
+ - spec/dummy/app/helpers/current.rb
402
403
  - spec/dummy/app/mailers/.keep
403
404
  - spec/dummy/app/models/.keep
404
405
  - spec/dummy/app/models/abstract_adapter.rb
@@ -437,6 +438,8 @@ files:
437
438
  - spec/dummy/bin/rails
438
439
  - spec/dummy/bin/rake
439
440
  - spec/dummy/bin/setup
441
+ - spec/dummy/bin/update
442
+ - spec/dummy/bin/yarn
440
443
  - spec/dummy/config.ru
441
444
  - spec/dummy/config/application.rb
442
445
  - spec/dummy/config/boot.rb
@@ -445,14 +448,17 @@ files:
445
448
  - spec/dummy/config/environments/development.rb
446
449
  - spec/dummy/config/environments/production.rb
447
450
  - spec/dummy/config/environments/test.rb
451
+ - spec/dummy/config/initializers/application_controller_renderer.rb
448
452
  - spec/dummy/config/initializers/assets.rb
449
453
  - spec/dummy/config/initializers/backtrace_silencers.rb
454
+ - spec/dummy/config/initializers/content_security_policy.rb
450
455
  - spec/dummy/config/initializers/cookies_serializer.rb
451
456
  - spec/dummy/config/initializers/devise.rb
452
457
  - spec/dummy/config/initializers/devise_async.rb
453
458
  - spec/dummy/config/initializers/filter_parameter_logging.rb
454
459
  - spec/dummy/config/initializers/inflections.rb
455
460
  - spec/dummy/config/initializers/mime_types.rb
461
+ - spec/dummy/config/initializers/new_framework_defaults_5_2.rb
456
462
  - spec/dummy/config/initializers/paperclip.rb
457
463
  - spec/dummy/config/initializers/paperclip_adapter.rb
458
464
  - spec/dummy/config/initializers/session_store.rb
@@ -461,6 +467,7 @@ files:
461
467
  - spec/dummy/config/locales/en.yml
462
468
  - spec/dummy/config/routes.rb
463
469
  - spec/dummy/config/secrets.yml
470
+ - spec/dummy/config/storage.yml
464
471
  - spec/dummy/db/migrate/20141002205024_devise_create_users.rb
465
472
  - spec/dummy/db/migrate/20141002211055_devise_create_admin_users.rb
466
473
  - spec/dummy/db/migrate/20141002211057_create_active_admin_comments.rb
@@ -524,14 +531,15 @@ files:
524
531
  homepage: https://github.com/buermann/introspective_grape
525
532
  licenses:
526
533
  - MIT
527
- metadata: {}
534
+ metadata:
535
+ rubygems_mfa_required: 'true'
528
536
  post_install_message:
529
537
  rdoc_options: []
530
538
  require_paths:
531
539
  - lib
532
540
  required_ruby_version: !ruby/object:Gem::Requirement
533
541
  requirements:
534
- - - ">="
542
+ - - ">"
535
543
  - !ruby/object:Gem::Version
536
544
  version: '2.5'
537
545
  required_rubygems_version: !ruby/object:Gem::Requirement
@@ -544,149 +552,4 @@ rubygems_version: 3.1.6
544
552
  signing_key:
545
553
  specification_version: 4
546
554
  summary: Quickly configure Grape APIs around your database schema and models.
547
- test_files:
548
- - spec/dummy/.ruby-version
549
- - spec/dummy/Gemfile
550
- - spec/dummy/README.rdoc
551
- - spec/dummy/Rakefile
552
- - spec/dummy/app/api/api_helpers.rb
553
- - spec/dummy/app/api/dummy/chat_api.rb
554
- - spec/dummy/app/api/dummy/company_api.rb
555
- - spec/dummy/app/api/dummy/entities.rb
556
- - spec/dummy/app/api/dummy/location_api.rb
557
- - spec/dummy/app/api/dummy/project_api.rb
558
- - spec/dummy/app/api/dummy/role_api.rb
559
- - spec/dummy/app/api/dummy/sessions.rb
560
- - spec/dummy/app/api/dummy/user_api.rb
561
- - spec/dummy/app/api/dummy_api.rb
562
- - spec/dummy/app/api/error_handlers.rb
563
- - spec/dummy/app/api/permissions_helper.rb
564
- - spec/dummy/app/assets/config/manifest.js
565
- - spec/dummy/app/assets/images/.keep
566
- - spec/dummy/app/assets/javascripts/application.js
567
- - spec/dummy/app/assets/stylesheets/application.css
568
- - spec/dummy/app/controllers/application_controller.rb
569
- - spec/dummy/app/controllers/concerns/.keep
570
- - spec/dummy/app/helpers/application_helper.rb
571
- - spec/dummy/app/mailers/.keep
572
- - spec/dummy/app/models/.keep
573
- - spec/dummy/app/models/abstract_adapter.rb
574
- - spec/dummy/app/models/admin_user.rb
575
- - spec/dummy/app/models/chat.rb
576
- - spec/dummy/app/models/chat_message.rb
577
- - spec/dummy/app/models/chat_message_user.rb
578
- - spec/dummy/app/models/chat_user.rb
579
- - spec/dummy/app/models/company.rb
580
- - spec/dummy/app/models/concerns/.keep
581
- - spec/dummy/app/models/image.rb
582
- - spec/dummy/app/models/job.rb
583
- - spec/dummy/app/models/locatable.rb
584
- - spec/dummy/app/models/location.rb
585
- - spec/dummy/app/models/location_beacon.rb
586
- - spec/dummy/app/models/location_gps.rb
587
- - spec/dummy/app/models/project.rb
588
- - spec/dummy/app/models/project_job.rb
589
- - spec/dummy/app/models/role.rb
590
- - spec/dummy/app/models/team.rb
591
- - spec/dummy/app/models/team_user.rb
592
- - spec/dummy/app/models/user.rb
593
- - spec/dummy/app/models/user/chatter.rb
594
- - spec/dummy/app/models/user_location.rb
595
- - spec/dummy/app/models/user_project_job.rb
596
- - spec/dummy/app/policies/application_policy.rb
597
- - spec/dummy/app/policies/chat_policy.rb
598
- - spec/dummy/app/policies/company_policy.rb
599
- - spec/dummy/app/policies/location_policy.rb
600
- - spec/dummy/app/policies/project_policy.rb
601
- - spec/dummy/app/policies/role_policy.rb
602
- - spec/dummy/app/policies/user_location_policy.rb
603
- - spec/dummy/app/policies/user_policy.rb
604
- - spec/dummy/app/views/layouts/application.html.erb
605
- - spec/dummy/bin/bundle
606
- - spec/dummy/bin/rails
607
- - spec/dummy/bin/rake
608
- - spec/dummy/bin/setup
609
- - spec/dummy/config.ru
610
- - spec/dummy/config/application.rb
611
- - spec/dummy/config/boot.rb
612
- - spec/dummy/config/database.yml
613
- - spec/dummy/config/environment.rb
614
- - spec/dummy/config/environments/development.rb
615
- - spec/dummy/config/environments/production.rb
616
- - spec/dummy/config/environments/test.rb
617
- - spec/dummy/config/initializers/assets.rb
618
- - spec/dummy/config/initializers/backtrace_silencers.rb
619
- - spec/dummy/config/initializers/cookies_serializer.rb
620
- - spec/dummy/config/initializers/devise.rb
621
- - spec/dummy/config/initializers/devise_async.rb
622
- - spec/dummy/config/initializers/filter_parameter_logging.rb
623
- - spec/dummy/config/initializers/inflections.rb
624
- - spec/dummy/config/initializers/mime_types.rb
625
- - spec/dummy/config/initializers/paperclip.rb
626
- - spec/dummy/config/initializers/paperclip_adapter.rb
627
- - spec/dummy/config/initializers/session_store.rb
628
- - spec/dummy/config/initializers/wrap_parameters.rb
629
- - spec/dummy/config/locales/devise.en.yml
630
- - spec/dummy/config/locales/en.yml
631
- - spec/dummy/config/routes.rb
632
- - spec/dummy/config/secrets.yml
633
- - spec/dummy/db/migrate/20141002205024_devise_create_users.rb
634
- - spec/dummy/db/migrate/20141002211055_devise_create_admin_users.rb
635
- - spec/dummy/db/migrate/20141002211057_create_active_admin_comments.rb
636
- - spec/dummy/db/migrate/20141002220722_add_lockable_to_users.rb
637
- - spec/dummy/db/migrate/20150406213646_create_companies.rb
638
- - spec/dummy/db/migrate/20150414213154_add_user_authentication_token.rb
639
- - spec/dummy/db/migrate/20150415222005_create_roles.rb
640
- - spec/dummy/db/migrate/20150505181635_create_chats.rb
641
- - spec/dummy/db/migrate/20150505181636_create_chat_users.rb
642
- - spec/dummy/db/migrate/20150505181640_create_chat_messages.rb
643
- - spec/dummy/db/migrate/20150507191529_create_chat_message_users.rb
644
- - spec/dummy/db/migrate/20150601200526_create_locations.rb
645
- - spec/dummy/db/migrate/20150601200533_create_locatables.rb
646
- - spec/dummy/db/migrate/20150601212924_create_location_beacons.rb
647
- - spec/dummy/db/migrate/20150601213542_create_location_gps.rb
648
- - spec/dummy/db/migrate/20150609201823_create_user_locations.rb
649
- - spec/dummy/db/migrate/20150616205336_add_role_user_constraint.rb
650
- - spec/dummy/db/migrate/20150617232519_create_projects.rb
651
- - spec/dummy/db/migrate/20150617232521_create_jobs.rb
652
- - spec/dummy/db/migrate/20150617232522_create_project_jobs.rb
653
- - spec/dummy/db/migrate/20150623170133_create_user_project_jobs.rb
654
- - spec/dummy/db/migrate/20150701234929_create_teams.rb
655
- - spec/dummy/db/migrate/20150701234930_create_team_users.rb
656
- - spec/dummy/db/migrate/20150727214950_add_confirmable_to_devise.rb
657
- - spec/dummy/db/migrate/20150820190524_add_user_names.rb
658
- - spec/dummy/db/migrate/20150824215701_create_images.rb
659
- - spec/dummy/db/migrate/20150909225019_add_password_to_project.rb
660
- - spec/dummy/db/migrate/20190325231304_add_test_data.rb
661
- - spec/dummy/db/schema.rb
662
- - spec/dummy/lib/assets/.keep
663
- - spec/dummy/log/.keep
664
- - spec/dummy/public/404.html
665
- - spec/dummy/public/422.html
666
- - spec/dummy/public/500.html
667
- - spec/dummy/public/favicon.ico
668
- - spec/fixtures/images/avatar.jpeg
669
- - spec/fixtures/images/exif.jpeg
670
- - spec/models/chat_spec.rb
671
- - spec/models/image_spec.rb
672
- - spec/models/locatable_spec.rb
673
- - spec/models/project_spec.rb
674
- - spec/models/role_spec.rb
675
- - spec/models/team_spec.rb
676
- - spec/models/team_user_spec.rb
677
- - spec/models/user_location_spec.rb
678
- - spec/models/user_project_job_spec.rb
679
- - spec/models/user_spec.rb
680
- - spec/rails_helper.rb
681
- - spec/requests/chat_api_spec.rb
682
- - spec/requests/company_api_spec.rb
683
- - spec/requests/location_api_spec.rb
684
- - spec/requests/project_api_spec.rb
685
- - spec/requests/role_api_spec.rb
686
- - spec/requests/sessions_api_spec.rb
687
- - spec/requests/swagger_spec.rb
688
- - spec/requests/user_api_spec.rb
689
- - spec/support/blueprints.rb
690
- - spec/support/location_helper.rb
691
- - spec/support/pundit_helpers.rb
692
- - spec/support/request_helpers.rb
555
+ test_files: []