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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 005f8d05b2cd122cfe498823a9d51521b5dd9e90
4
- data.tar.gz: 7fe1b2fad355b0ee675d2a9ce3713f36648beafd
3
+ metadata.gz: c311989c3563dcda327b414a5bb44d46d1cc0e5e
4
+ data.tar.gz: 1aade7ada82dfc072d2ad689c9921b36d0e203dd
5
5
  SHA512:
6
- metadata.gz: 2d8b45fc20648362d4a86cd08c6abf8391e74a2668b49a6d9983ffcb2f8a5a9cb5731a7797eb871064903fc27f5ccca664812ad4b70c3aeaf68095d419e521f1
7
- data.tar.gz: 2e36b500a98621c9de3fa5f725f859f7ce067fa31e0fe0601b46a05b80f7c329e72ac741756077be92048b7815a20a40584301ef3207ce199359aedca40b1c94
6
+ metadata.gz: e68080fe6572acc50b926af81554f35de2509e67997bf284070d3adad10fe8c9f5055512ca20a1057dcd88dfdc3ee6922e561c327a8f173b3f961c78fc36fa80
7
+ data.tar.gz: e3b44e4d60ff4466a88084bd642fe39e1e94cb0cb0c9b8a717a9a50b478acfab30ce9c878b91a5e1e3829adc51e6615c23898e8d75dad063f68bf07bd67e8148
data/.gitignore ADDED
@@ -0,0 +1,4 @@
1
+ *.gem
2
+ .bundle
3
+ Gemfile.lock
4
+ pkg/*
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
@@ -0,0 +1,14 @@
1
+ # RailsEasySignIn
2
+
3
+ This is a README for working on RailsEasySignIn
4
+
5
+ ## Installing
6
+
7
+ ```
8
+ gem build rails_easy_sign_in.gemspec
9
+ gem install <gempath>
10
+ ```
11
+
12
+ ## Deploying to rubygems
13
+
14
+ gem push <gempath>
data/Gemfile ADDED
@@ -0,0 +1,6 @@
1
+ source "http://rubygems.org"
2
+
3
+ # Specify your gem's dependencies in seed_helper.gemspec
4
+ gemspec
5
+ gem 'rspec'
6
+ gem 'byebug'
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
@@ -0,0 +1,2 @@
1
+ class RailsEasySignIn
2
+ end
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
@@ -0,0 +1,4 @@
1
+ require 'rubygems'
2
+ require 'bundler/setup'
3
+
4
+ require 'seed_helper'
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.1
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