token_authenticate_me 0.11.1 → 0.11.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: 3a2d1a6eda810005e325bccf3dd7248b322eb645
4
- data.tar.gz: bdadf94301d0a01741244a7727386c02e1baa1f6
3
+ metadata.gz: 9a4e95cdb3c914bd08c1ce719f8225e95e37b0be
4
+ data.tar.gz: '0004857a7c842b4dc656b8e84d48176913702758'
5
5
  SHA512:
6
- metadata.gz: 2f264c7d7d3984bda2a6a0e99b05c52bc71c65a905d3b8f54de4c825ff9ce56b3986e9ce1909605d1b5127b14caa613009ac8fb960597a4578c5e7c1c0d8501f
7
- data.tar.gz: ff12edb3373f71d45053785edaadd352b546a380fa55e3f6c7bf2002b84df41901044db4523f9db7b931fbbfc0b1b5d55db185eb7b28947325534c889109fb66
6
+ metadata.gz: d28b84c9a1d9d9ab8e77a9bc8b6a56f06ba5bdd9822f7d0379cadeac604a7c01ea6ab5577c78d7cf4af71c3f941342965669cf841e76fb2893633f92df779dd1
7
+ data.tar.gz: 03aacfdc6e710e0d839b71d9a18726ff3c5a1ce12a45ec798a9838560b4b9c227214584ddf783e409853bd94218d0f79a78b5477aef581e47c819f02e583876d
data/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  TokenAuthenticateMe
2
2
  =====================
3
3
 
4
- This gem adds simple API based token authentication. We at [inigo](http://inigo.io) wanted to be able to handle our entire authentication process -- including account creation and logging in -- through a RESTful API over JSON using token authentication, and found that solutions like Devise required too much hand holding due to its complexity to ultimately get the functionality that we wanted. Unfortunately we were unable to find a satisfactory existing solution -- though I'm sure one does exist, this isn't a new problem -- so we set out to create our own. After using internally on one project, we decided to roll it out into a gem to use on another.
4
+ This gem adds simple API based token authentication. We at [Wildland](https://wild.land/) wanted to be able to handle our entire authentication process -- including account creation and logging in -- through a RESTful API over JSON using token authentication, and found that solutions like Devise required too much hand holding due to its complexity to ultimately get the functionality that we wanted. Unfortunately we were unable to find a satisfactory existing solution -- though I'm sure one does exist, this isn't a new problem -- so we set out to create our own. After using internally on one project, we decided to roll it out into a gem to use on another.
5
5
 
6
6
  ## Compatibility
7
7
  For rails < 5.x use v0.10.x
@@ -29,7 +29,7 @@ module TokenAuthenticateMe
29
29
 
30
30
  def current_user
31
31
  return unless authenticated_session
32
- @current_user ||= User.find_by_id(authenticated_session.user_id)
32
+ authenticated_session.user
33
33
  end
34
34
  end
35
35
  end
@@ -1,3 +1,3 @@
1
1
  module TokenAuthenticateMe
2
- VERSION = '0.11.1'.freeze
2
+ VERSION = '0.11.2'.freeze
3
3
  end
File without changes
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: token_authenticate_me
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.1
4
+ version: 0.11.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sam Clopton
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2018-11-26 00:00:00.000000000 Z
12
+ date: 2019-03-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -153,6 +153,7 @@ files:
153
153
  - test/dummy/config/locales/en.yml
154
154
  - test/dummy/config/routes.rb
155
155
  - test/dummy/config/secrets.yml
156
+ - test/dummy/log/test.log
156
157
  - test/dummy/public/404.html
157
158
  - test/dummy/public/422.html
158
159
  - test/dummy/public/500.html
@@ -219,6 +220,7 @@ test_files:
219
220
  - test/dummy/config/routes.rb
220
221
  - test/dummy/config/secrets.yml
221
222
  - test/dummy/config.ru
223
+ - test/dummy/log/test.log
222
224
  - test/dummy/public/404.html
223
225
  - test/dummy/public/422.html
224
226
  - test/dummy/public/500.html