openstax_connect 0.0.10 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (62) hide show
  1. data/README.md +26 -9
  2. data/Rakefile +12 -39
  3. data/app/controllers/openstax/connect/application_controller.rb +15 -4
  4. data/app/controllers/openstax/connect/dev/dev_controller.rb +1 -4
  5. data/app/controllers/openstax/connect/dev/users_controller.rb +5 -0
  6. data/app/controllers/openstax/connect/sessions_controller.rb +9 -19
  7. data/app/handlers/openstax/connect/sessions_omniauth_authenticated.rb +4 -1
  8. data/app/views/openstax/connect/dev/users/login.html.erb +2 -2
  9. data/app/views/openstax/connect/dev/users/search.js.erb +1 -1
  10. data/config/initializers/{02_extend_builtins.rb → extend_builtins.rb} +0 -0
  11. data/config/routes.rb +11 -6
  12. data/db/migrate/20140410194004_add_fields_to_openstax_connect_users.rb +7 -0
  13. data/lib/omniauth/strategies/openstax.rb +15 -6
  14. data/lib/openstax/connect/current_user_manager.rb +3 -3
  15. data/lib/openstax/connect/engine.rb +1 -4
  16. data/lib/openstax/connect/inflections.rb +3 -0
  17. data/lib/openstax/connect/version.rb +1 -1
  18. data/lib/openstax_connect.rb +52 -6
  19. data/spec/controllers/openstax/connect/dev/users_controller_spec.rb +20 -0
  20. data/spec/controllers/openstax/connect/sessions_controller_spec.rb +21 -7
  21. data/spec/dummy/README.md +1 -0
  22. data/spec/dummy/Rakefile +7 -0
  23. data/spec/dummy/app/assets/javascripts/application.js +15 -0
  24. data/spec/dummy/app/assets/stylesheets/application.css +13 -0
  25. data/spec/dummy/app/controllers/api/application_users_controller.rb +7 -0
  26. data/spec/dummy/app/controllers/api/dummy_controller.rb +11 -0
  27. data/spec/dummy/app/controllers/application_controller.rb +3 -0
  28. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  29. data/spec/dummy/config.ru +4 -0
  30. data/spec/dummy/config/application.rb +53 -0
  31. data/spec/dummy/config/boot.rb +10 -0
  32. data/spec/dummy/config/database.yml +25 -0
  33. data/spec/dummy/config/environment.rb +5 -0
  34. data/spec/dummy/config/environments/development.rb +29 -0
  35. data/spec/dummy/config/environments/production.rb +69 -0
  36. data/spec/dummy/config/environments/test.rb +35 -0
  37. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  38. data/spec/dummy/config/initializers/inflections.rb +15 -0
  39. data/spec/dummy/config/initializers/mime_types.rb +5 -0
  40. data/spec/dummy/config/initializers/openstax_connect.rb +11 -0
  41. data/spec/dummy/config/initializers/secret_token.rb +7 -0
  42. data/spec/dummy/config/initializers/session_store.rb +8 -0
  43. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
  44. data/spec/dummy/config/locales/en.yml +5 -0
  45. data/spec/dummy/config/routes.rb +11 -0
  46. data/spec/dummy/db/schema.rb +31 -0
  47. data/spec/dummy/public/404.html +26 -0
  48. data/spec/dummy/public/422.html +26 -0
  49. data/spec/dummy/public/500.html +25 -0
  50. data/spec/dummy/public/favicon.ico +0 -0
  51. data/spec/dummy/script/rails +6 -0
  52. data/spec/lib/openstax_connect_spec.rb +24 -0
  53. data/spec/models/openstax/connect/user_spec.rb +7 -1
  54. data/spec/spec_helper.rb +7 -4
  55. metadata +109 -17
  56. data/app/assets/javascripts/openstax/connect/sessions.js +0 -2
  57. data/app/assets/stylesheets/openstax/connect/sessions.css +0 -4
  58. data/app/helpers/openstax/connect/sessions_helper.rb +0 -4
  59. data/config/initializers/01_requires.rb +0 -1
  60. data/lib/openstax/connect/exceptions.rb +0 -3
  61. data/lib/tasks/connect-rails_tasks.rake +0 -4
  62. data/spec/helpers/openstax/connect/sessions_helper_spec.rb +0 -17
@@ -1,2 +0,0 @@
1
- // Place all the behaviors and hooks related to the matching controller here.
2
- // All this logic will automatically be available in application.js.
@@ -1,4 +0,0 @@
1
- /*
2
- Place all the styles related to the matching controller here.
3
- They will automatically be included in application.css.
4
- */
@@ -1,4 +0,0 @@
1
- module OpenStax::Connect
2
- module SessionsHelper
3
- end
4
- end
@@ -1 +0,0 @@
1
- require 'lev'
@@ -1,3 +0,0 @@
1
- module OpenStax::Connect
2
- class SecurityTransgression < StandardError; end
3
- end
@@ -1,4 +0,0 @@
1
- # desc "Explaining what the task does"
2
- # task :connect-rails do
3
- # # Task goes here
4
- # end
@@ -1,17 +0,0 @@
1
- require 'spec_helper'
2
-
3
- # Specs in this file have access to a helper object that includes
4
- # the SessionsHelper. For example:
5
- #
6
- # describe SessionsHelper do
7
- # describe "string concat" do
8
- # it "concats two strings with spaces" do
9
- # helper.concat_strings("this","that").should == "this that"
10
- # end
11
- # end
12
- # end
13
- module OpenStax::Connect
14
- describe SessionsHelper do
15
- pending "add some examples to (or delete) #{__FILE__}"
16
- end
17
- end