challah 1.2.9 → 1.2.10

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 55b927f07b2b2a7d010ec6c193367b44558d9a14
4
- data.tar.gz: 968f3c0825495e1d5fb765fa61e1b475eaeb8bf6
3
+ metadata.gz: 3abb2a4c0c3b379b8993508f382c7c72f3d927a4
4
+ data.tar.gz: ce87ef112cd40ff057b5240bdfb83793cf15fedc
5
5
  SHA512:
6
- metadata.gz: 00cb5a947fd5e91283c96130479e07b0d6036966907e82139350fe789e22f816e3cdc62e2e87e86585511a14db9a36a924ae9d11bfd6be6d68ee43ba02f5f26c
7
- data.tar.gz: b7ee6e3c9d23b1afef33fa65f356d7645146b4bcb8f5ada466078ea32a2fca2c208b69263c6e5e153a02e2d8ed72e771c530c224f843880fa3f16cb55d9bb165
6
+ metadata.gz: f32427ec2b736e2e411253979820b56fe9524e66f8b61c8f70bcd0360c357f2f6176926c001e6aecb74c261cdadd930d8b80eefbc7a70354663f9ee525f3eb37
7
+ data.tar.gz: ccd5e4672c4a246c7088889d5d26b08235a64ee25c8328ba2297da3916004308eab22122a8d12de180c55f37ddf2e25f1395e42ff07d367f720376a0766b9668
data/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ ## Challah 1.2.10
2
+
3
+ * Adds an `email` parameter for sign-in in addition to `username`. [PR #18](https://github.com/jdtornow/challah/pull/18) @thewatts
4
+
5
+ ## Challah 1.2.9
6
+
7
+ * Adds support for apps that do not contain an `ApplicationController` in the main rails app. For example, if all of the app logic is contained within engines.
8
+
1
9
  ## Challah 1.2.8
2
10
 
3
11
  * Localize invalid email message [PR #15](https://github.com/jdtornow/challah/pull/15) @thewatts
@@ -74,7 +74,11 @@ module Challah
74
74
  end
75
75
 
76
76
  def username
77
- params[:username] || ""
77
+ params[:username] || params[:email] || ""
78
+ end
79
+
80
+ def username?
81
+ !username.empty?
78
82
  end
79
83
 
80
84
  # Returns true if this session has been authenticated and is ready to save.
@@ -1,3 +1,5 @@
1
1
  module Challah
2
- VERSION = "1.2.9" unless defined?(::Challah::VERSION)
2
+ unless defined?(Challah::VERSION)
3
+ VERSION = File.read(File.expand_path('../../../VERSION', __FILE__)).strip.freeze
4
+ end
3
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: challah
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.9
4
+ version: 1.2.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Tornow
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2015-09-01 00:00:00.000000000 Z
13
+ date: 2015-09-21 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: highline