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.
- data/README.md +26 -9
- data/Rakefile +12 -39
- data/app/controllers/openstax/connect/application_controller.rb +15 -4
- data/app/controllers/openstax/connect/dev/dev_controller.rb +1 -4
- data/app/controllers/openstax/connect/dev/users_controller.rb +5 -0
- data/app/controllers/openstax/connect/sessions_controller.rb +9 -19
- data/app/handlers/openstax/connect/sessions_omniauth_authenticated.rb +4 -1
- data/app/views/openstax/connect/dev/users/login.html.erb +2 -2
- data/app/views/openstax/connect/dev/users/search.js.erb +1 -1
- data/config/initializers/{02_extend_builtins.rb → extend_builtins.rb} +0 -0
- data/config/routes.rb +11 -6
- data/db/migrate/20140410194004_add_fields_to_openstax_connect_users.rb +7 -0
- data/lib/omniauth/strategies/openstax.rb +15 -6
- data/lib/openstax/connect/current_user_manager.rb +3 -3
- data/lib/openstax/connect/engine.rb +1 -4
- data/lib/openstax/connect/inflections.rb +3 -0
- data/lib/openstax/connect/version.rb +1 -1
- data/lib/openstax_connect.rb +52 -6
- data/spec/controllers/openstax/connect/dev/users_controller_spec.rb +20 -0
- data/spec/controllers/openstax/connect/sessions_controller_spec.rb +21 -7
- data/spec/dummy/README.md +1 -0
- data/spec/dummy/Rakefile +7 -0
- data/spec/dummy/app/assets/javascripts/application.js +15 -0
- data/spec/dummy/app/assets/stylesheets/application.css +13 -0
- data/spec/dummy/app/controllers/api/application_users_controller.rb +7 -0
- data/spec/dummy/app/controllers/api/dummy_controller.rb +11 -0
- data/spec/dummy/app/controllers/application_controller.rb +3 -0
- data/spec/dummy/app/helpers/application_helper.rb +2 -0
- data/spec/dummy/config.ru +4 -0
- data/spec/dummy/config/application.rb +53 -0
- data/spec/dummy/config/boot.rb +10 -0
- data/spec/dummy/config/database.yml +25 -0
- data/spec/dummy/config/environment.rb +5 -0
- data/spec/dummy/config/environments/development.rb +29 -0
- data/spec/dummy/config/environments/production.rb +69 -0
- data/spec/dummy/config/environments/test.rb +35 -0
- data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy/config/initializers/inflections.rb +15 -0
- data/spec/dummy/config/initializers/mime_types.rb +5 -0
- data/spec/dummy/config/initializers/openstax_connect.rb +11 -0
- data/spec/dummy/config/initializers/secret_token.rb +7 -0
- data/spec/dummy/config/initializers/session_store.rb +8 -0
- data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/spec/dummy/config/locales/en.yml +5 -0
- data/spec/dummy/config/routes.rb +11 -0
- data/spec/dummy/db/schema.rb +31 -0
- data/spec/dummy/public/404.html +26 -0
- data/spec/dummy/public/422.html +26 -0
- data/spec/dummy/public/500.html +25 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/dummy/script/rails +6 -0
- data/spec/lib/openstax_connect_spec.rb +24 -0
- data/spec/models/openstax/connect/user_spec.rb +7 -1
- data/spec/spec_helper.rb +7 -4
- metadata +109 -17
- data/app/assets/javascripts/openstax/connect/sessions.js +0 -2
- data/app/assets/stylesheets/openstax/connect/sessions.css +0 -4
- data/app/helpers/openstax/connect/sessions_helper.rb +0 -4
- data/config/initializers/01_requires.rb +0 -1
- data/lib/openstax/connect/exceptions.rb +0 -3
- data/lib/tasks/connect-rails_tasks.rake +0 -4
- data/spec/helpers/openstax/connect/sessions_helper_spec.rb +0 -17
@@ -1 +0,0 @@
|
|
1
|
-
require 'lev'
|
@@ -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
|