tokenizr-rails 0.7.3 → 0.7.4

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: 833505ff25cf2ef6fc514c6d31c0188a1711a75a
4
- data.tar.gz: 83b1d141c821d9d44b8f19514f88625bc08e3b8f
3
+ metadata.gz: 3e8097e6ab4e6d0d71649b5a9f1dca08ce7d9858
4
+ data.tar.gz: 528df2c9a9df75393d138517869044a74cca9647
5
5
  SHA512:
6
- metadata.gz: 082dca649fbc1811686fb9735a5727dc750d671cdf030e46b4e31d63190745a5eb48ca46be17756303f49b7748d743d7855099282c4937d2cb192109efa650be
7
- data.tar.gz: 046c49d00c012dc9930a71486189a372f1c13ec1cdcb6c0487cdb5ee9ad68811e5a29440267c6dfd723451a4f2d18a412419adee50338ee4ca07271a264f9bc7
6
+ metadata.gz: 6ea9b492b7d02d4bdda8cb5956f1765659ce34c32865cfab23923903055f41634517e384f4bda5d52b126426f47da0ca384d4f0183ff7443287eb37b156f095b
7
+ data.tar.gz: 8fdbddfffd5b769d64af898ca13f8667f68d9017a08f99d9cdb79256d61be05b26571f60630398228e5f8e71252975a717f4562eba53f0c6a7011744c513aaf2
@@ -1,5 +1,5 @@
1
1
  module Tokenizr
2
2
  module Rails
3
- VERSION = "0.7.3"
3
+ VERSION = "0.7.4"
4
4
  end
5
5
  end
data/test/finder_test.rb CHANGED
@@ -5,6 +5,13 @@ class FinderTest < ActiveSupport::TestCase
5
5
  TestModel.destroy_all
6
6
  end
7
7
 
8
+ test "using find_by_token" do
9
+ model = TestModel.create!
10
+ token = Tokenizr.encode(model.id)
11
+
12
+ assert_equal TestModel.find_by_token(token), model
13
+ end
14
+
8
15
  test "finds by the id" do
9
16
  model = TestModel.create!
10
17
 
@@ -16,6 +23,6 @@ class FinderTest < ActiveSupport::TestCase
16
23
  model = TestModel.create!
17
24
  token = Tokenizr.encode(model.id)
18
25
 
19
- assert_equal TestModel.find_by_token(token), model
26
+ assert_equal TestModel.find(token), model
20
27
  end
21
28
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tokenizr-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.3
4
+ version: 0.7.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - arktisklada
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-05-02 00:00:00.000000000 Z
11
+ date: 2016-06-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tokenizr