tokenizr-rails 0.7.0 → 0.7.1

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: 97def1dd51d1fc2cc5ea43e1d5c3d4ccf9318f8f
4
- data.tar.gz: d39310465168a8fc0f9c1296d6570fe78aefe577
3
+ metadata.gz: d0a26a9f142056bfb7e1d78c2f41293286c59342
4
+ data.tar.gz: 677931e8e6349c217130f76dcfe1298626d7423b
5
5
  SHA512:
6
- metadata.gz: 2768dab8ffa77203d26e625f380beba9bef8facd2e77c7629f7cdf48c4334653c0f5d5ca2cabc7c92a517eb89056f3ee6dfbee578380ce8f56bdec705709bd79
7
- data.tar.gz: f5937e77d59421732b07d9543e5d5c5fb23f0c47689abc20039bc010fc56b3e34fb74cf1fe5bc33acac3da56858173c13f923dddc6eb4001a74baa1b752b47dc
6
+ metadata.gz: fa3c6c4a57068a00a8b6452c5312ef6bd7f89f2b7887ec6375e26618e419e892ea6b336830e0105b449d518369e0007e0ffc9586fa43a47568551e118fbc2413
7
+ data.tar.gz: 003737d5ff7db1c896c7146b4cf578eab1561512e8bca87cdd468380560cf1dd972262428fed74731cdeb2d917dc35a690184445b78f5ddc0b593a26aec527e1
data/README.rdoc CHANGED
@@ -1,3 +1,27 @@
1
- = TokenizrRails
1
+ # TokenizrRails
2
2
 
3
- This project rocks and uses MIT-LICENSE.
3
+ Implementation of [Tokenizr](https://github.com/arktisklada/tokenizr) as an ActiveRecord function
4
+
5
+ By default, uses the `id` column for any object. To add to a model, call `tokenize` as a class method.
6
+
7
+ For example:
8
+
9
+ ```
10
+ class User < ActiveRecord::Base
11
+ tokenize
12
+ end
13
+ ```
14
+
15
+ The class will respond to `find_by_token` and supplement the default `ActiveRecord#find` method to allow
16
+ for decoding and finding by a token.
17
+
18
+ ---
19
+
20
+ ## Contributing
21
+
22
+ 1. Create an issue
23
+ 2. Fork it ( https://github.com/arktisklada/tokenizr/fork )
24
+ 3. Create your feature branch (`git checkout -b my-new-feature`)
25
+ 4. Commit your changes (`git commit -am 'Add some feature'`)
26
+ 5. Push to the branch (`git push origin my-new-feature`)
27
+ 6. Create a new Pull Request
@@ -1,5 +1,5 @@
1
1
  module Tokenizr
2
2
  module Rails
3
- VERSION = "0.7.0"
3
+ VERSION = "0.7.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tokenizr-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - arktisklada