token_for 0.0.1 → 0.0.2

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: 5dac69212f7b36e815e83ebc2b11f6171ce9740d
4
- data.tar.gz: 989ce928ec0ef6e62f6921b100385d20975b3c9f
3
+ metadata.gz: f10b550279aa15d5b71e0d0de27815bb35b58166
4
+ data.tar.gz: 0abadfc8b091b1d77857fcafb26515b8cb0294e3
5
5
  SHA512:
6
- metadata.gz: 5d9f169517088994d9a812bb55db1459b2cfea1c3ed9d35b9b0eb4a40f80bbf325c1b3d94809164dd051018dadae5fff4b0a326947405cbf71d28982081002c9
7
- data.tar.gz: c5389e874008a02fd3d82ebdf1353acfc03c3caf2900f368d5c02ebfb7072ee0559a005499d3c9736a9a570a1c3e48fc46b4293d3502215b0a66e454c629472b
6
+ metadata.gz: aa8cb65350ee012e856feaef2b2d08b7afeb121eb8a486670585582b0ee7ae0b8b976bac2ea31a0b8274a56abdbf1d074e30db5cbc809c418b1f06b39f915e02
7
+ data.tar.gz: 80bb709cfab61445700d8c0e9086e060d2fd1247daa5c3d70520c6cd0f4d893d2c53096cee910711881e5a8945f422f8fbe2c7f408780e325df07bea15c1b6b9
@@ -1,3 +1,3 @@
1
1
  module TokenFor
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
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! a.to_sym => self.read_attribute(a) }
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)
@@ -231,3 +231,4 @@ LINE 1: ...amples"."test_attribute" = 'user@example.com' AND "examples"...
231
231
  ActiveRecord::SchemaMigration Load (2.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
232
232
  ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
233
233
  ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
234
+ ActiveRecord::SchemaMigration Load (1.8ms) SELECT "schema_migrations".* FROM "schema_migrations"
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.1
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-04-22 00:00:00.000000000 Z
11
+ date: 2014-06-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails