myreplicator 0.0.15 → 0.0.16

Sign up to get free protection for your applications and to get access to all the features.
@@ -5,9 +5,11 @@ module Myreplicator
5
5
  private
6
6
 
7
7
  def authenticated?
8
- puts "IN MYREP AUTH"
8
+ Kernel.p Myreplicator.auth_required
9
9
  if Myreplicator.auth_required
10
- redirect_to Myreplicator.login_redirect unless Myreplicator.authenticated
10
+ puts request.fullpath
11
+ url = "#{Myreplicator.login_redirect}?redirect_url=#{request.fullpath}"
12
+ redirect_to url unless Myreplicator.authenticated
11
13
  end
12
14
  end
13
15
 
@@ -1,3 +1,3 @@
1
1
  module Myreplicator
2
- VERSION = "0.0.15"
2
+ VERSION = "0.0.16"
3
3
  end
@@ -1,4 +1,4 @@
1
1
  class ApplicationController < ActionController::Base
2
2
  protect_from_forgery
3
-
3
+
4
4
  end
@@ -9,7 +9,7 @@ myreplicator:
9
9
  enclosed_by: '"'
10
10
  lines_terminate_by: '\n'
11
11
  auth_required: yes
12
- login_redirect: /auth/google_apps/
12
+ login_redirect: /
13
13
 
14
14
  okl_dev:
15
15
  ssh_host: localhost
@@ -7419,3 +7419,63 @@ ActionController::RoutingError (No route matches [GET] "/auth/google_apps"):
7419
7419
 
7420
7420
 
7421
7421
  Rendered /home/sasan/.rvm/gems/ruby-1.9.3-p125/gems/actionpack-3.2.8/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (1.6ms)
7422
+ Connecting to database specified by database.yml
7423
+
7424
+
7425
+ Started GET "/" for 127.0.0.1 at 2012-12-07 16:59:42 -0800
7426
+
7427
+ ActionController::RoutingError (No route matches [GET] "/"):
7428
+ actionpack (3.2.8) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
7429
+ actionpack (3.2.8) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
7430
+ railties (3.2.8) lib/rails/rack/logger.rb:26:in `call_app'
7431
+ railties (3.2.8) lib/rails/rack/logger.rb:16:in `call'
7432
+ actionpack (3.2.8) lib/action_dispatch/middleware/request_id.rb:22:in `call'
7433
+ rack (1.4.1) lib/rack/methodoverride.rb:21:in `call'
7434
+ rack (1.4.1) lib/rack/runtime.rb:17:in `call'
7435
+ activesupport (3.2.8) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
7436
+ rack (1.4.1) lib/rack/lock.rb:15:in `call'
7437
+ actionpack (3.2.8) lib/action_dispatch/middleware/static.rb:62:in `call'
7438
+ railties (3.2.8) lib/rails/engine.rb:479:in `call'
7439
+ railties (3.2.8) lib/rails/application.rb:223:in `call'
7440
+ rack (1.4.1) lib/rack/content_length.rb:14:in `call'
7441
+ railties (3.2.8) lib/rails/rack/log_tailer.rb:17:in `call'
7442
+ rack (1.4.1) lib/rack/handler/webrick.rb:59:in `service'
7443
+ /home/sasan/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
7444
+ /home/sasan/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
7445
+ /home/sasan/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'
7446
+
7447
+
7448
+ Rendered /home/sasan/.rvm/gems/ruby-1.9.3-p125/gems/actionpack-3.2.8/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (1.6ms)
7449
+
7450
+
7451
+ Started GET "/myreplicator/exports" for 127.0.0.1 at 2012-12-07 16:59:45 -0800
7452
+ Processing by Myreplicator::ExportsController#index as HTML
7453
+ Redirected to http://localhost:3000/?redirect_url=/myreplicator/exports
7454
+ Filter chain halted as :authenticated? rendered or redirected
7455
+ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
7456
+
7457
+
7458
+ Started GET "/?redirect_url=/myreplicator/exports" for 127.0.0.1 at 2012-12-07 16:59:45 -0800
7459
+
7460
+ ActionController::RoutingError (No route matches [GET] "/"):
7461
+ actionpack (3.2.8) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
7462
+ actionpack (3.2.8) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
7463
+ railties (3.2.8) lib/rails/rack/logger.rb:26:in `call_app'
7464
+ railties (3.2.8) lib/rails/rack/logger.rb:16:in `call'
7465
+ actionpack (3.2.8) lib/action_dispatch/middleware/request_id.rb:22:in `call'
7466
+ rack (1.4.1) lib/rack/methodoverride.rb:21:in `call'
7467
+ rack (1.4.1) lib/rack/runtime.rb:17:in `call'
7468
+ activesupport (3.2.8) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
7469
+ rack (1.4.1) lib/rack/lock.rb:15:in `call'
7470
+ actionpack (3.2.8) lib/action_dispatch/middleware/static.rb:62:in `call'
7471
+ railties (3.2.8) lib/rails/engine.rb:479:in `call'
7472
+ railties (3.2.8) lib/rails/application.rb:223:in `call'
7473
+ rack (1.4.1) lib/rack/content_length.rb:14:in `call'
7474
+ railties (3.2.8) lib/rails/rack/log_tailer.rb:17:in `call'
7475
+ rack (1.4.1) lib/rack/handler/webrick.rb:59:in `service'
7476
+ /home/sasan/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
7477
+ /home/sasan/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
7478
+ /home/sasan/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'
7479
+
7480
+
7481
+ Rendered /home/sasan/.rvm/gems/ruby-1.9.3-p125/gems/actionpack-3.2.8/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (0.4ms)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: myreplicator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.15
4
+ version: 0.0.16
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-12-07 00:00:00.000000000 Z
12
+ date: 2012-12-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -305,7 +305,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
305
305
  version: '0'
306
306
  segments:
307
307
  - 0
308
- hash: -3797195373591547507
308
+ hash: 4162465999294121110
309
309
  required_rubygems_version: !ruby/object:Gem::Requirement
310
310
  none: false
311
311
  requirements:
@@ -314,7 +314,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
314
314
  version: '0'
315
315
  segments:
316
316
  - 0
317
- hash: -3797195373591547507
317
+ hash: 4162465999294121110
318
318
  requirements: []
319
319
  rubyforge_project:
320
320
  rubygems_version: 1.8.23