rails_easy_sign_in 0.0.4 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +11 -3
- data/app/assets/stylesheets/rails_easy_sign_in.css.sass +0 -1
- data/rails_easy_sign_in.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 729a754daadad434980398a917f32b003045150e
|
4
|
+
data.tar.gz: d91e3bfad5fe22057f7344493e70acd399c1b1f1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0c90d39229c372652f968231743d5fb72509c0b2477e2d87bf0925c2468a19a7ebf7af4dca756c972a0344a33e1f3588bbaea38b30dee22af3c0491e6cf6cdf7
|
7
|
+
data.tar.gz: c143f7a1ccec4e232838cb9303eb776d5d0dc1e71ec065ba1c256d7ae753f4c940d13ff19542ab1f187d7071afabd8ad3706fca5e36539745cfe8304c13009b6
|
data/README.md
CHANGED
@@ -5,10 +5,18 @@ Adds a sign in box to your login page to allow automatic sign in. Useful in deve
|
|
5
5
|
## Installation
|
6
6
|
|
7
7
|
1. Add ```gem 'rails_easy_sign_in' ``` to the development group of the _Gemfile_ and bundle.
|
8
|
-
2. Add
|
9
|
-
3. Add
|
8
|
+
2. Add ```rails_easy_sign_in.js``` and ```rails_easy_sign_in.css``` to config.assets.precompile.
|
9
|
+
3. Add the following to _app/views/layouts/application.html.haml_
|
10
|
+
|
11
|
+
```
|
12
|
+
- if Rails.application.config.should_show_easy_login
|
13
|
+
= stylesheet_link_tag "rails_easy_sign_in"
|
14
|
+
= javascript_include_tag "rails_easy_sign_in"
|
15
|
+
```
|
16
|
+
|
17
|
+
4. Add ```config.should_show_easy_login = false``` to _config/application.rb_
|
10
18
|
5. Add ```config.should_show_easy_login = true``` to _config/environtments/development.rb_
|
11
|
-
|
19
|
+
6. Add the following to _app/views/devise/sessions/new.html.haml_
|
12
20
|
|
13
21
|
```
|
14
22
|
- if Rails.application.config.should_show_easy_login
|
data/rails_easy_sign_in.gemspec
CHANGED
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
|
|
3
3
|
|
4
4
|
Gem::Specification.new do |gem|
|
5
5
|
gem.name = "rails_easy_sign_in"
|
6
|
-
gem.version = "0.0
|
6
|
+
gem.version = "0.1.0"
|
7
7
|
gem.authors = ["Jordan Maguire", "Steven Webb"]
|
8
8
|
gem.email = ["jordan@thefrontiergroup.com.au"]
|
9
9
|
gem.homepage = "https://github.com/jordanmaguire/rails_easy_sign_in"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails_easy_sign_in
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jordan Maguire
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-
|
12
|
+
date: 2015-08-13 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: railties
|