sn-revisions 0.2.8 → 0.2.9

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
  SHA256:
3
- metadata.gz: 73c57395a3f4ea1fc8bac76dfd665fe9c93f86a46b7ac335e218f989b0307628
4
- data.tar.gz: cde2ad068f9c7524bfc13253df6a73bdbd898d36e24abd9a2347dfd094e6874b
3
+ metadata.gz: 3a9d224739a0b4226619d30a6a807159782e6308a6c25b6d19b3cb8d27d93ef2
4
+ data.tar.gz: 7f830a9a38b1d3f5752cd43f2688c1b5ae355e0abd6d31482b99e395a8233539
5
5
  SHA512:
6
- metadata.gz: 2ae879dc7ac4ee69c35ace6773a97735d6aa05c99f15bda47b98724d03d266230c3614d53edb428dab117308b06c51b9428585255d180ad3c66a238dd180abbb
7
- data.tar.gz: c748f941e3393cd5535b17e5c57ecc506e2eb2b4d8393b6f606d650c680393ba69e698318419386bd85de19c5231a44b78f546cf49c5bff725ecf6b835b2d14a
6
+ metadata.gz: 9a5ea644c900275e06150e26c35f203f1e26b94773e083bd5532be09d7a4c60328da4f6f894e53d6f6b5c45faa583452de5d933a0efdbca2e125512d20680c72
7
+ data.tar.gz: 701820bd4b88de3d0e2a3d091f948162e2adda612bd08128c1ed78ed04383d72a8d7180b2e53bc9dda0193142344986733bca7dd778cc6882ffaae0aea1360b6
@@ -6,8 +6,8 @@ module Revisions
6
6
  before_action :authenticate_user
7
7
 
8
8
  def authenticate_user
9
- user = Revisions::User.find(params[:uid])
10
- if !ActiveSupport::SecurityUtils.secure_compare(user.key, params[:key])
9
+ user = Revisions::User.find_by_id(params[:uid])
10
+ if !user || !ActiveSupport::SecurityUtils.secure_compare(user.key, params[:key])
11
11
  render_unauthorized
12
12
  return
13
13
  end
@@ -1,3 +1,3 @@
1
1
  module Revisions
2
- VERSION = '0.2.8'
2
+ VERSION = '0.2.9'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sn-revisions
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.8
4
+ version: 0.2.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Standard Notes
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-12-14 00:00:00.000000000 Z
11
+ date: 2021-02-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -84,7 +84,7 @@ homepage: https://standardnotes.org
84
84
  licenses:
85
85
  - MIT
86
86
  metadata: {}
87
- post_install_message:
87
+ post_install_message:
88
88
  rdoc_options: []
89
89
  require_paths:
90
90
  - lib
@@ -99,8 +99,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
99
99
  - !ruby/object:Gem::Version
100
100
  version: '0'
101
101
  requirements: []
102
- rubygems_version: 3.0.6
103
- signing_key:
102
+ rubygems_version: 3.0.3
103
+ signing_key:
104
104
  specification_version: 4
105
105
  summary: The Note History extension for Standard Notes allows you to track changes
106
106
  to your notes, and restore them to previous versions.