ctws 0.1.5.alpha
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE +21 -0
- data/README.md +295 -0
- data/Rakefile +21 -0
- data/app/auth/ctws/authenticate_user.rb +36 -0
- data/app/auth/ctws/authorize_api_request.rb +44 -0
- data/app/controllers/concerns/ctws/exception_handler.rb +58 -0
- data/app/controllers/concerns/ctws/response.rb +25 -0
- data/app/controllers/concerns/ctws/v1/exception_handler.rb +6 -0
- data/app/controllers/concerns/ctws/v1/response.rb +6 -0
- data/app/controllers/ctws/application_controller.rb +5 -0
- data/app/controllers/ctws/authentication_controller.rb +28 -0
- data/app/controllers/ctws/ctws_controller.rb +24 -0
- data/app/controllers/ctws/min_app_versions_controller.rb +55 -0
- data/app/controllers/ctws/users_controller.rb +39 -0
- data/app/controllers/ctws/v1/authentication_controller.rb +6 -0
- data/app/controllers/ctws/v1/ctws_controller.rb +9 -0
- data/app/controllers/ctws/v1/min_app_versions_controller.rb +6 -0
- data/app/controllers/ctws/v1/users_controller.rb +6 -0
- data/app/controllers/ctws/v2/ctws_controller.rb +9 -0
- data/app/controllers/ctws/v2/min_app_versions_controller.rb +6 -0
- data/app/jobs/ctws/application_job.rb +4 -0
- data/app/lib/ctws/json_web_token.rb +25 -0
- data/app/lib/ctws/message.rb +43 -0
- data/app/mailers/ctws/application_mailer.rb +6 -0
- data/app/models/ctws/application_record.rb +5 -0
- data/app/models/ctws/min_app_version.rb +22 -0
- data/config/initializers/ctws.rb +5 -0
- data/config/initializers/mime_types.rb +1 -0
- data/config/routes.rb +18 -0
- data/db/migrate/20170425110839_create_ctws_min_app_versions.rb +13 -0
- data/db/migrate/20170425110933_add_values_to_ctws_min_app_versions.rb +26 -0
- data/lib/ctws/engine.rb +13 -0
- data/lib/ctws/version.rb +3 -0
- data/lib/ctws.rb +18 -0
- data/lib/tasks/ctws_tasks.rake +4 -0
- data/spec/auth/ctws/authenticate_user_spec.rb +34 -0
- data/spec/auth/ctws/authorize_api_request_spec.rb +62 -0
- data/spec/controllers/ctws/ctws_controller_spec.rb +41 -0
- data/spec/controllers/ctws/users_controller_spec.rb +7 -0
- data/spec/dummy/Rakefile +6 -0
- data/spec/dummy/app/assets/config/manifest.js +5 -0
- data/spec/dummy/app/assets/javascripts/application.js +13 -0
- data/spec/dummy/app/assets/javascripts/cable.js +13 -0
- data/spec/dummy/app/assets/stylesheets/application.css +15 -0
- data/spec/dummy/app/channels/application_cable/channel.rb +4 -0
- data/spec/dummy/app/channels/application_cable/connection.rb +4 -0
- data/spec/dummy/app/controllers/application_controller.rb +3 -0
- data/spec/dummy/app/controllers/user_controller.rb +18 -0
- data/spec/dummy/app/helpers/application_helper.rb +2 -0
- data/spec/dummy/app/helpers/user_helper.rb +2 -0
- data/spec/dummy/app/jobs/application_job.rb +2 -0
- data/spec/dummy/app/mailers/application_mailer.rb +4 -0
- data/spec/dummy/app/models/application_record.rb +3 -0
- data/spec/dummy/app/models/user.rb +4 -0
- data/spec/dummy/app/views/layouts/application.html.erb +14 -0
- data/spec/dummy/app/views/layouts/mailer.html.erb +13 -0
- data/spec/dummy/app/views/layouts/mailer.text.erb +1 -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/bin/setup +34 -0
- data/spec/dummy/bin/update +29 -0
- data/spec/dummy/config/application.rb +15 -0
- data/spec/dummy/config/boot.rb +5 -0
- data/spec/dummy/config/cable.yml +9 -0
- data/spec/dummy/config/database.yml +25 -0
- data/spec/dummy/config/environment.rb +5 -0
- data/spec/dummy/config/environments/development.rb +54 -0
- data/spec/dummy/config/environments/production.rb +86 -0
- data/spec/dummy/config/environments/test.rb +42 -0
- data/spec/dummy/config/initializers/application_controller_renderer.rb +6 -0
- data/spec/dummy/config/initializers/assets.rb +11 -0
- data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy/config/initializers/cookies_serializer.rb +5 -0
- data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/spec/dummy/config/initializers/inflections.rb +16 -0
- data/spec/dummy/config/initializers/mime_types.rb +4 -0
- data/spec/dummy/config/initializers/new_framework_defaults.rb +24 -0
- data/spec/dummy/config/initializers/session_store.rb +3 -0
- data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/spec/dummy/config/locales/en.yml +23 -0
- data/spec/dummy/config/puma.rb +47 -0
- data/spec/dummy/config/routes.rb +5 -0
- data/spec/dummy/config/secrets.yml +22 -0
- data/spec/dummy/config/spring.rb +6 -0
- data/spec/dummy/config.ru +5 -0
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/db/migrate/20170622072636_create_users.rb +10 -0
- data/spec/dummy/db/schema.rb +39 -0
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/log/development.log +29 -0
- data/spec/dummy/log/test.log +31496 -0
- data/spec/dummy/public/404.html +67 -0
- data/spec/dummy/public/422.html +67 -0
- data/spec/dummy/public/500.html +66 -0
- data/spec/dummy/public/apple-touch-icon-precomposed.png +0 -0
- data/spec/dummy/public/apple-touch-icon.png +0 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/factories/ctws/ctws_user.rb +7 -0
- data/spec/factories/ctws_min_app_version.rb +9 -0
- data/spec/models/ctws/min_app_version_spec.rb +11 -0
- data/spec/models/ctws/user_spec.rb +8 -0
- data/spec/rails_helper.rb +88 -0
- data/spec/requests/ctws/authentication_spec.rb +47 -0
- data/spec/requests/ctws/min_app_version_spec.rb +169 -0
- data/spec/requests/ctws/users_spec.rb +46 -0
- data/spec/spec_helper.rb +27 -0
- data/spec/support/ctws/controller_spec_helper.rb +29 -0
- data/spec/support/ctws/request_spec_helper.rb +10 -0
- metadata +367 -0
There are too many changes on this page to be displayed.
The amount of changes on this page would crash your brower.
You can still verify the content by downloading the gem file manually.