opensesame 0.2.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (28) hide show
  1. checksums.yaml +8 -8
  2. data/README.md +5 -5
  3. data/config/routes.rb +4 -4
  4. data/lib/open_sesame/version.rb +1 -1
  5. data/spec/dummy/app/models/user.rb +1 -1
  6. data/spec/dummy/config/application.rb +0 -3
  7. data/spec/dummy/config/environments/development.rb +3 -7
  8. data/spec/dummy/config/environments/production.rb +2 -0
  9. data/spec/dummy/config/environments/test.rb +3 -7
  10. data/spec/dummy/log/test.log +1873 -0
  11. data/spec/dummy/tmp/cache/assets/test/sprockets/071c809d0cdd0bbad45a1b9f8d718858 +0 -0
  12. data/spec/dummy/tmp/cache/assets/test/sprockets/1092b7db9db263f264db057f12e09e1a +0 -0
  13. data/spec/dummy/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
  14. data/spec/dummy/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
  15. data/spec/dummy/tmp/cache/assets/test/sprockets/3555b9b1ef17e63f54c7f2a819a2ce88 +0 -0
  16. data/spec/dummy/tmp/cache/assets/test/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
  17. data/spec/dummy/tmp/cache/assets/test/sprockets/454956b6f70061da46ea7e27111c1008 +0 -0
  18. data/spec/dummy/tmp/cache/assets/test/sprockets/5e78ec0254bb99f4c177d558c6846682 +0 -0
  19. data/spec/dummy/tmp/cache/assets/test/sprockets/796774ff7a0a9a7f394dd67d369c8693 +0 -0
  20. data/spec/dummy/tmp/cache/assets/test/sprockets/81ceef9ff2401a52fa3d5777afa0348b +0 -0
  21. data/spec/dummy/tmp/cache/assets/test/sprockets/950e71d62a70f9fa74d17c3d07377e5e +0 -0
  22. data/spec/dummy/tmp/cache/assets/test/sprockets/97c9391b36c4982d0c9fc0807276627f +0 -0
  23. data/spec/dummy/tmp/cache/assets/test/sprockets/aa0ef972a2d713f5b0096ead0e9a0681 +0 -0
  24. data/spec/dummy/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
  25. data/spec/dummy/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
  26. data/spec/dummy/tmp/cache/assets/test/sprockets/d869a923f4f39194117b600d2f9a70ac +0 -0
  27. data/spec/dummy/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
  28. metadata +38 -4
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NTk0MzdkMjYyNDgyY2YyYjIxNjE1MTlkN2JiNGYyNjU1NzZiMTI0Nw==
4
+ N2Y5ZWVmZmE3YzQ0YmY5ZjU5M2E5NDNlNmQ1MTJjMDY2MTNmMGNkOQ==
5
5
  data.tar.gz: !binary |-
6
- ZGE5OGMyYjkxZmIwYTkyN2Q2ZWNlNDdjZmQzZGZhMTBhNzQ2OTJlYQ==
6
+ M2RiMjNlYTliNGFiYzBiNDkxZmQyM2M0ODM3MWQzYzY3NTMyMWY3NQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- N2I3ZTc2ZmI1MjZjMThjZjFlMzVhMjk0MjBiMmVkMGM3Njk1MGI2Yzk3YjFh
10
- NzliZWQ1MmU1YzUzMjZiYWVhOTlmYWE3Y2FlZDhjNjZhZDE3MTlmMGYxN2U1
11
- YjQzYzRjMTJmNzEwZTVjMjA0OTM0MjA4MTNlNzVhNTNjODlkMTQ=
9
+ ZTJjMGEwMWVjZWZmMTljZjVhNjA3YWE3OWRjZGQ3MmRiMTllNTg3YmJhNGY1
10
+ MTk5ZGQyYWZiOTY0M2M0ZmYzMWEzNGY3MDc5NTVlY2Y1ZjRmY2ZhZDVlM2Nl
11
+ ZGIyYzdjOWFkOTQwODliZTljMzIyYmM0YzYzZWI4NWI0OGQ2MGQ=
12
12
  data.tar.gz: !binary |-
13
- MDRhMGY1MGNkMTAyMDgzZGY2ZjdiYjBhMmE4YWJlOTlmMmNmNzIzNzRjZWZj
14
- MzFiMzc3YmE0YTA2MThlOTQzZDRkZDU5NzhmNjhlNzNjMGU2ZjM0NWNlZDU3
15
- ZmExNTAxZDk4Y2Q1M2QzZWIxZThlMmQ4M2I3YmM3ZThhNjdlYTc=
13
+ ZmNkYjY3MzM4ZjM1M2ExZTUwODk5Y2MzODI3MjQ1NjhhYmI3NmEzYWMyNWJl
14
+ ZTc4ZWUyZTMwZDBhMjUyNmEyNDc2N2UxNmRiYjY3NDJiOTdjYmVhZDk4NDM4
15
+ MmY5OWY1NjRiYTE4ZTM2MTVjMTk3ODQ1NWU3MGMyNTgyNjk1ZjQ=
data/README.md CHANGED
@@ -11,7 +11,9 @@ Enter OpenSesame. To authenticate, OpenSesame currently uses Omniauth and the Gi
11
11
 
12
12
  In your Gemfile:
13
13
 
14
- $ gem "opensesame"
14
+ ```ruby
15
+ gem "opensesame"
16
+ ```
15
17
 
16
18
  Register your application(s) with Github for OAuth access. For each application, you need a name, the site url,
17
19
  and a callback for OAuth. The OmniAuth-Github OAuth strategy used under the hood will expect the callback at mount path + '/github/callback'. So the development version of your client application might be registered as:
@@ -35,17 +37,15 @@ OpenSesame.configure do |config|
35
37
  end
36
38
  ```
37
39
 
38
- Mount OpenSesame in your Rails routes.rb:
40
+ Mount OpenSesame in your Rails routes:
39
41
 
40
42
  ```ruby
41
43
  # Rails config/routes.rb
42
-
43
44
  mount OpenSesame::Engine => OpenSesame.mount_prefix
44
45
  ```
45
46
 
46
- Place the following into your appplication_contrrollerb.rb:
47
+ Place the following in your application_controller:
47
48
 
48
49
  ```ruby
49
50
  before_filter :authenticate_opensesame!
50
51
  ```
51
-
data/config/routes.rb CHANGED
@@ -1,8 +1,8 @@
1
1
  OpenSesame::Engine.routes.draw do
2
2
  root :to => "sessions#new"
3
3
 
4
- match '/:provider/callback', :to => 'sessions#create'
5
- match '/:provider/failure', :to => 'sessions#failure'
6
- match '/login', :to => 'sessions#new', :as => :sign_in
7
- match '/logout', :to => 'sessions#destroy', :as => :sign_out
4
+ get '/:provider/callback', :to => 'sessions#create'
5
+ get '/:provider/failure', :to => 'sessions#failure'
6
+ get '/login', :to => 'sessions#new', :as => :sign_in
7
+ get '/logout', :to => 'sessions#destroy', :as => :sign_out
8
8
  end
@@ -1,4 +1,4 @@
1
1
  # encoding: utf-8
2
2
  module OpenSesame
3
- VERSION = "0.2.0"
3
+ VERSION = "0.3.0"
4
4
  end
@@ -4,5 +4,5 @@ class User < ActiveRecord::Base
4
4
  :recoverable, :rememberable, :trackable, :validatable
5
5
  end
6
6
  #
7
- attr_accessible :email, :password, :password_confirmation, :remember_me
7
+ # attr_accessible :email, :password, :password_confirmation, :remember_me
8
8
  end
@@ -1,12 +1,9 @@
1
1
  require File.expand_path('../boot', __FILE__)
2
2
 
3
- # Pick the frameworks you want:
4
3
  require "active_record/railtie"
5
4
  require "action_controller/railtie"
6
5
  require "action_mailer/railtie"
7
- require "active_resource/railtie"
8
6
  require "sprockets/railtie"
9
- # require "rails/test_unit/railtie"
10
7
 
11
8
  Bundler.require
12
9
 
@@ -6,15 +6,12 @@ Dummy::Application.configure do
6
6
  # since you don't have to restart the web server when you make code changes.
7
7
  config.cache_classes = false
8
8
 
9
- # Log error messages when you accidentally call methods on nil.
10
- config.whiny_nils = true
11
-
12
9
  # Show full error reports and disable caching
13
10
  config.consider_all_requests_local = true
14
11
  config.action_controller.perform_caching = false
15
12
 
16
13
  # Don't care if the mailer can't send
17
- config.action_mailer.raise_delivery_errors = false
14
+ # config.action_mailer.raise_delivery_errors = false
18
15
 
19
16
  # Print deprecation notices to the Rails logger
20
17
  config.active_support.deprecation = :log
@@ -22,9 +19,6 @@ Dummy::Application.configure do
22
19
  # Only use best-standards-support built into browsers
23
20
  config.action_dispatch.best_standards_support = :builtin
24
21
 
25
- # Raise exception on mass assignment protection for Active Record models
26
- config.active_record.mass_assignment_sanitizer = :strict
27
-
28
22
  # Log the query plan for queries taking more than this (works
29
23
  # with SQLite, MySQL, and PostgreSQL)
30
24
  config.active_record.auto_explain_threshold_in_seconds = 0.5
@@ -34,4 +28,6 @@ Dummy::Application.configure do
34
28
 
35
29
  # Expands the lines which load the assets
36
30
  config.assets.debug = true
31
+
32
+ config.eager_load = false
37
33
  end
@@ -64,4 +64,6 @@ Dummy::Application.configure do
64
64
  # Log the query plan for queries taking more than this (works
65
65
  # with SQLite, MySQL, and PostgreSQL)
66
66
  # config.active_record.auto_explain_threshold_in_seconds = 0.5
67
+
68
+ config.eager_load = true
67
69
  end
@@ -11,9 +11,6 @@ Dummy::Application.configure do
11
11
  config.serve_static_assets = true
12
12
  config.static_cache_control = "public, max-age=3600"
13
13
 
14
- # Log error messages when you accidentally call methods on nil
15
- config.whiny_nils = true
16
-
17
14
  # Show full error reports and disable caching
18
15
  config.consider_all_requests_local = true
19
16
  config.action_controller.perform_caching = false
@@ -27,11 +24,10 @@ Dummy::Application.configure do
27
24
  # Tell Action Mailer not to deliver emails to the real world.
28
25
  # The :test delivery method accumulates sent emails in the
29
26
  # ActionMailer::Base.deliveries array.
30
- config.action_mailer.delivery_method = :test
31
-
32
- # Raise exception on mass assignment protection for Active Record models
33
- config.active_record.mass_assignment_sanitizer = :strict
27
+ # config.action_mailer.delivery_method = :test
34
28
 
35
29
  # Print deprecation notices to the stderr
36
30
  config.active_support.deprecation = :stderr
31
+
32
+ config.eager_load = false
37
33
  end