openstax_api 2.5.1 → 3.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +4 -6
- data/app/controllers/openstax/api/v1/api_controller.rb +1 -1
- data/app/representers/openstax/api/v1/abstract_search_representer.rb +40 -0
- data/lib/openstax/api/constraints.rb +3 -4
- data/lib/openstax/api/engine.rb +3 -8
- data/lib/openstax/api/representable_schema_printer.rb +58 -35
- data/lib/openstax/api/roar.rb +50 -93
- data/lib/openstax/api/version.rb +1 -1
- data/spec/controllers/openstax/api/v1/api_controller_spec.rb +88 -2
- data/spec/dummy/README.md +1 -1
- data/spec/dummy/Rakefile +1 -2
- data/spec/dummy/app/assets/javascripts/application.js +3 -5
- data/spec/dummy/app/assets/stylesheets/application.css +5 -3
- data/spec/dummy/app/models/user.rb +2 -0
- data/spec/dummy/app/representers/user_representer.rb +13 -0
- data/spec/dummy/app/representers/user_search_representer.rb +5 -0
- data/spec/dummy/app/routines/search_users.rb +22 -0
- data/spec/dummy/app/views/layouts/application.html.erb +14 -0
- data/spec/dummy/bin/bundle +3 -0
- data/spec/dummy/bin/rails +4 -0
- data/spec/dummy/bin/rake +4 -0
- data/spec/dummy/config/application.rb +0 -30
- data/spec/dummy/config/boot.rb +4 -9
- data/spec/dummy/config/database.yml +8 -8
- data/spec/dummy/config/environment.rb +3 -3
- data/spec/dummy/config/environments/development.rb +21 -13
- data/spec/dummy/config/environments/production.rb +41 -32
- data/spec/dummy/config/environments/test.rb +17 -13
- data/spec/dummy/config/initializers/assets.rb +8 -0
- data/spec/dummy/config/initializers/cookies_serializer.rb +3 -0
- data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/spec/dummy/config/initializers/inflections.rb +6 -5
- data/spec/dummy/config/initializers/mime_types.rb +0 -1
- data/spec/dummy/config/initializers/openstax_api.rb +2 -2
- data/spec/dummy/config/initializers/session_store.rb +1 -6
- data/spec/dummy/config/initializers/wrap_parameters.rb +6 -6
- data/spec/dummy/config/locales/en.yml +20 -2
- data/spec/dummy/config/secrets.yml +22 -0
- data/spec/dummy/config.ru +1 -1
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/db/migrate/1_create_users.rb +16 -0
- data/spec/dummy/db/schema.rb +38 -32
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/lib/controller_includes.rb +2 -6
- data/spec/dummy/log/development.log +486 -1445
- data/spec/dummy/log/test.log +16720 -3757
- data/spec/dummy/public/404.html +54 -13
- data/spec/dummy/public/422.html +54 -13
- data/spec/dummy/public/500.html +53 -12
- data/spec/factories/user.rb +8 -0
- data/spec/lib/openstax/api/apipie_spec.rb +15 -0
- data/spec/lib/openstax/api/constraints_spec.rb +6 -6
- data/spec/lib/openstax/api/doorkeeper_application_includes_spec.rb +1 -1
- data/spec/lib/openstax/api/representable_schema_printer_spec.rb +5 -3
- data/spec/lib/openstax/api/roar_spec.rb +22 -0
- data/spec/lib/openstax/api/routing_mapper_includes_spec.rb +1 -1
- data/spec/lib/openstax_api_spec.rb +19 -0
- data/spec/models/openstax/api/api_user_spec.rb +2 -2
- data/spec/rails_helper.rb +54 -0
- data/spec/representers/openstax/api/v1/abstract_search_representer_spec.rb +127 -0
- data/spec/spec_helper.rb +80 -13
- metadata +85 -18
- data/spec/dummy/app/models/dummy_user.rb +0 -2
- data/spec/dummy/app/representers/dummy_user_representer.rb +0 -9
- data/spec/dummy/config/initializers/secret_token.rb +0 -7
- data/spec/dummy/db/migrate/1_create_dummy_users.rb +0 -10
- data/spec/dummy/script/rails +0 -6
- data/spec/lib/openstax/api/apipie.rb +0 -11
- data/spec/lib/openstax/api/roar.rb +0 -11