dev_log_in 0.0.2 → 0.0.3

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.
data/README.textile CHANGED
@@ -10,5 +10,9 @@ h1. Why?
10
10
  Helps you to log in and easily switch between multiple users in development env.
11
11
 
12
12
 
13
+ h1. Installation
14
+
15
+ gem 'dev_log_in'
16
+
13
17
  Copyright (c) 2011 divineforest, evrone
14
18
  This project rocks and uses MIT-LICENSE.
@@ -1,11 +1,11 @@
1
1
  class DevLogInController < ApplicationController
2
2
 
3
3
  def log_in
4
- if Rails.env.development?
4
+ if Rails.env.development? || Rails.env.test?
5
5
  user = User.where(["email LIKE ?", params[:login]+'%']).first || (raise "Can't find user '#{params[:login]}'")
6
6
  sign_in_and_redirect(user)
7
7
  else
8
- raise "Works only development env"
8
+ raise "Works only in development or test env"
9
9
  end
10
10
  end
11
11
 
@@ -1,3 +1,3 @@
1
1
  module DevLogIn
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dev_log_in
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 2
10
- version: 0.0.2
9
+ - 3
10
+ version: 0.0.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - divineforest
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-09-16 00:00:00 +04:00
18
+ date: 2011-10-06 00:00:00 +04:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency