scimitar 1.6.0 → 1.7.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (29) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE.txt +21 -0
  3. data/README.md +671 -0
  4. data/app/controllers/scimitar/active_record_backed_resources_controller.rb +22 -4
  5. data/app/controllers/scimitar/application_controller.rb +7 -2
  6. data/app/controllers/scimitar/schemas_controller.rb +5 -0
  7. data/app/models/scimitar/errors.rb +1 -1
  8. data/app/models/scimitar/resources/base.rb +12 -2
  9. data/app/models/scimitar/schema/attribute.rb +15 -6
  10. data/app/models/scimitar/schema/base.rb +4 -2
  11. data/config/initializers/scimitar.rb +8 -3
  12. data/lib/scimitar/version.rb +2 -2
  13. data/spec/apps/dummy/app/controllers/custom_save_mock_users_controller.rb +24 -0
  14. data/spec/apps/dummy/app/models/mock_user.rb +4 -0
  15. data/spec/apps/dummy/config/initializers/scimitar.rb +8 -0
  16. data/spec/apps/dummy/config/routes.rb +5 -0
  17. data/spec/apps/dummy/db/migrate/20210304014602_create_mock_users.rb +1 -0
  18. data/spec/apps/dummy/db/schema.rb +3 -2
  19. data/spec/controllers/scimitar/application_controller_spec.rb +2 -2
  20. data/spec/controllers/scimitar/resource_types_controller_spec.rb +2 -2
  21. data/spec/controllers/scimitar/schemas_controller_spec.rb +8 -0
  22. data/spec/models/scimitar/lists/query_parser_spec.rb +1 -1
  23. data/spec/models/scimitar/resources/base_spec.rb +38 -4
  24. data/spec/models/scimitar/resources/mixin_spec.rb +4 -1
  25. data/spec/models/scimitar/resources/user_spec.rb +4 -4
  26. data/spec/models/scimitar/schema/attribute_spec.rb +22 -0
  27. data/spec/requests/active_record_backed_resources_controller_spec.rb +127 -37
  28. data/spec/requests/application_controller_spec.rb +1 -2
  29. metadata +7 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7bed3013773832fde9275ba69b622a8538beb2d8ff6b6ffe506e1c9453480ec5
4
- data.tar.gz: e51c811619169e64f3a373a56670514d37ac2823b7ed8b1bedd5c9b9c282576e
3
+ metadata.gz: 7e45655762e444503f3ee367b077dce8b2699752d17e0b49e8b73acd1303e8d1
4
+ data.tar.gz: f1a45bbc7655e1050251aed693d9c7e7c4df9f6a8d26c9f1cde6dba9cf2bc18a
5
5
  SHA512:
6
- metadata.gz: 697b3299edb4752baf38b68574191b72528a5e69467aa1a097c9b8c92928d57cff9d21afa50d7c66c15fc66220e52469f2b602ef3a5051489f734717f3489955
7
- data.tar.gz: 7d7a7bcb8fa0a9881ad7b77b6b81a4ec096e56300e8b5594fb0538adb76f7ee06b65fb56e319f1b7872738e4807d667e534f5c99b60d86b8bf5125e0d2972dc8
6
+ metadata.gz: 12f7e2e62278accd66eb1c98ca51041eea8a808dbbb6e2f2dd887acbfce2ffbcdb173566b9af3152bbd9d9aa9df629eb6689d5a28ee33aae776502135581672f
7
+ data.tar.gz: d282d93b1154cce8e3d868e8e50f3de35be2af9d0c681862da1495436cb5430443576c2dbae1c5296d964ca61193fb30769da11ece3bd72238c0ad121bbee5d2
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2021 RIPA Global
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.