rails_easy_sign_in 0.0.1 → 0.0.2
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.
- checksums.yaml +4 -4
- data/.gitignore +4 -0
- data/.rspec +1 -0
- data/.ruby-gemset +1 -0
- data/.ruby-version +1 -0
- data/DEVELOPER_README.md +14 -0
- data/Gemfile +6 -0
- data/README.md +1 -0
- data/Rakefile +1 -0
- data/app/assets/javascripts/rails_easy_sign_in.js.coffee +18 -0
- data/lib/rails_easy_sign_in.rb +2 -0
- data/license.txt +13 -0
- data/rails_easy_sign_in.gemspec +23 -0
- data/spec/spec_helper.rb +4 -0
- metadata +17 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c311989c3563dcda327b414a5bb44d46d1cc0e5e
|
4
|
+
data.tar.gz: 1aade7ada82dfc072d2ad689c9921b36d0e203dd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e68080fe6572acc50b926af81554f35de2509e67997bf284070d3adad10fe8c9f5055512ca20a1057dcd88dfdc3ee6922e561c327a8f173b3f961c78fc36fa80
|
7
|
+
data.tar.gz: e3b44e4d60ff4466a88084bd642fe39e1e94cb0cb0c9b8a717a9a50b478acfab30ce9c878b91a5e1e3829adc51e6615c23898e8d75dad063f68bf07bd67e8148
|
data/.gitignore
ADDED
data/.rspec
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
--color
|
data/.ruby-gemset
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
rails_easy_sign_in
|
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
2.1.0
|
data/DEVELOPER_README.md
ADDED
data/Gemfile
ADDED
data/README.md
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
# Rails Easy Sign In
|
data/Rakefile
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
require 'bundler/gem_tasks'
|
@@ -0,0 +1,18 @@
|
|
1
|
+
EasySignIn.setup = ->
|
2
|
+
|
3
|
+
# These are based on devise's field names, for a User model.
|
4
|
+
# Ghetto support for authentication with either an email or a username
|
5
|
+
$emailField = $("#user_email")
|
6
|
+
$usernameField = $("#user_username")
|
7
|
+
$passwordField = $("#user_password")
|
8
|
+
|
9
|
+
if $emailField || $usernameField
|
10
|
+
$("a").filter("[data-email], [data-username]").click (event) ->
|
11
|
+
event.preventDefault()
|
12
|
+
$el = $(this)
|
13
|
+
$emailField.val($el.data('email'))
|
14
|
+
$usernameField.val($el.data('username'))
|
15
|
+
$passwordField.val($el.data('password'))
|
16
|
+
$("form").submit()
|
17
|
+
|
18
|
+
$(document).ready(EasySignIn.setup).on "page:load", EasySignIn.setup
|
data/license.txt
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
|
2
|
+
Version 2, December 2004
|
3
|
+
|
4
|
+
Copyright (C) 2004 Sam Hocevar <sam@hocevar.net>
|
5
|
+
|
6
|
+
Everyone is permitted to copy and distribute verbatim or modified
|
7
|
+
copies of this license document, and changing it is allowed as long
|
8
|
+
as the name is changed.
|
9
|
+
|
10
|
+
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
|
11
|
+
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
12
|
+
|
13
|
+
0. You just DO WHAT THE FUCK YOU WANT TO.
|
@@ -0,0 +1,23 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
$:.push File.expand_path("../lib", __FILE__)
|
3
|
+
|
4
|
+
Gem::Specification.new do |s|
|
5
|
+
s.name = "rails_easy_sign_in"
|
6
|
+
s.version = "0.0.2"
|
7
|
+
s.authors = ["Jordan Maguire"]
|
8
|
+
s.email = ["jordan@thefrontiergroup.com.au"]
|
9
|
+
s.homepage = "https://github.com/jordanmaguire/rails_easy_sign_in"
|
10
|
+
s.summary = "Easy sign in for Rails apps"
|
11
|
+
s.description = <<-EOF
|
12
|
+
Too many users not enough brain memory?
|
13
|
+
|
14
|
+
Use Rails easy sign in to add an easy menu for signing in with different users. Never
|
15
|
+
need to remember users for demo-ing an app again.
|
16
|
+
EOF
|
17
|
+
s.licenses = ['WTFPL']
|
18
|
+
|
19
|
+
s.files = `git ls-files`.split("\n")
|
20
|
+
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
21
|
+
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
22
|
+
s.require_paths = ["lib"]
|
23
|
+
end
|
data/spec/spec_helper.rb
ADDED
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.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jordan Maguire
|
@@ -20,7 +20,20 @@ email:
|
|
20
20
|
executables: []
|
21
21
|
extensions: []
|
22
22
|
extra_rdoc_files: []
|
23
|
-
files:
|
23
|
+
files:
|
24
|
+
- ".gitignore"
|
25
|
+
- ".rspec"
|
26
|
+
- ".ruby-gemset"
|
27
|
+
- ".ruby-version"
|
28
|
+
- DEVELOPER_README.md
|
29
|
+
- Gemfile
|
30
|
+
- README.md
|
31
|
+
- Rakefile
|
32
|
+
- app/assets/javascripts/rails_easy_sign_in.js.coffee
|
33
|
+
- lib/rails_easy_sign_in.rb
|
34
|
+
- license.txt
|
35
|
+
- rails_easy_sign_in.gemspec
|
36
|
+
- spec/spec_helper.rb
|
24
37
|
homepage: https://github.com/jordanmaguire/rails_easy_sign_in
|
25
38
|
licenses:
|
26
39
|
- WTFPL
|
@@ -45,4 +58,5 @@ rubygems_version: 2.2.2
|
|
45
58
|
signing_key:
|
46
59
|
specification_version: 4
|
47
60
|
summary: Easy sign in for Rails apps
|
48
|
-
test_files:
|
61
|
+
test_files:
|
62
|
+
- spec/spec_helper.rb
|