token_for 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/lib/token_for/version.rb +1 -1
- data/lib/token_for.rb +1 -1
- data/test/dummy/log/test.log +1 -0
- 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: f10b550279aa15d5b71e0d0de27815bb35b58166
|
4
|
+
data.tar.gz: 0abadfc8b091b1d77857fcafb26515b8cb0294e3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aa8cb65350ee012e856feaef2b2d08b7afeb121eb8a486670585582b0ee7ae0b8b976bac2ea31a0b8274a56abdbf1d074e30db5cbc809c418b1f06b39f915e02
|
7
|
+
data.tar.gz: 80bb709cfab61445700d8c0e9086e060d2fd1247daa5c3d70520c6cd0f4d893d2c53096cee910711881e5a8945f422f8fbe2c7f408780e325df07bea15c1b6b9
|
data/lib/token_for/version.rb
CHANGED
data/lib/token_for.rb
CHANGED
@@ -11,7 +11,7 @@ module TokenFor
|
|
11
11
|
define_method("#{subject}_token") do
|
12
12
|
verifier = self.class.verifier_for(subject)
|
13
13
|
attr_hash = {} # The attributes need to be in a hash
|
14
|
-
attributes.map { |a| attr_hash.merge!
|
14
|
+
attributes.map { |a| attr_hash.merge!({a.to_sym => self.read_attribute(a)}) }
|
15
15
|
attr_hash.merge!(expires_on: Time.zone.now + expires_in) if expires_in
|
16
16
|
# Generate based on actual values of attributes.
|
17
17
|
verifier.generate(attr_hash)
|
data/test/dummy/log/test.log
CHANGED
@@ -231,3 +231,4 @@ LINE 1: ...amples"."test_attribute" = 'user@example.com' AND "examples"...
|
|
231
231
|
[1m[36mActiveRecord::SchemaMigration Load (2.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
232
232
|
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
233
233
|
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
234
|
+
[1m[36mActiveRecord::SchemaMigration Load (1.8ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: token_for
|
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
|
- Janusz Pietrzyk
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-06-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|