forest_liana 6.5.0 → 6.5.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
  SHA256:
3
- metadata.gz: 70bf3183ea6336613fa8adca78593528273ae5310ede606c6e2015cc2cdaf822
4
- data.tar.gz: 2c22380e8e890746e5f53120b5a501cac67ac6c76727197486969ed3ca4475c1
3
+ metadata.gz: 80bad8b47fd493c2a9684bb7e935d4ed4c5c08bba874f584cec9ed760e0eba44
4
+ data.tar.gz: b58e450ffd6dd7489245fbcc045bc1828165288ff3b0dfec9796109234052037
5
5
  SHA512:
6
- metadata.gz: f400b8af1c7430593243690ebf16598e9fc809106e59cee0c02fb4c4243330f3233f05f833fbfd5c896caa872f35c7e5b7a7c505995b9d518defb1809ae820c9
7
- data.tar.gz: bb1b48a35c4d7c114d87ff2333789310095b8d5efc9962ad81e260531e290029e3cc90dfe573d7044821f5aab0fe4a0235ff9a0d8866c19badac9764b0977079
6
+ metadata.gz: 78e640391b18b829ee89d5ede11dd46f367f00409254c201805d0ca083795f62f8511e273990942f85b1276c2e4fe285ce28b2056d74ebfed887850d515b0666
7
+ data.tar.gz: 35c7bf49920b9c611f15f1e7dec93fbf2e055746b7de891fb89a26a0a8f20448b5652e28a1efdd0723b903f83b71aa8ffedd4f5741b43a8b163e057d5750f050
@@ -57,11 +57,8 @@ module ForestLiana
57
57
 
58
58
  # smart action permissions are retrieved from the action's endpoint and http_method
59
59
  def get_smart_action_request_info
60
- endpoint = request.fullpath
61
- # Trim starting '/'
62
- endpoint[0] = '' if endpoint[0] == '/'
63
60
  {
64
- endpoint: endpoint,
61
+ endpoint: request.fullpath,
65
62
  http_method: request.request_method
66
63
  }
67
64
  end
@@ -6,7 +6,7 @@ module ForestLiana
6
6
 
7
7
  return nil unless collection
8
8
 
9
- collection.actions.find { |action| action.endpoint == endpoint && action.http_method == http_method }
9
+ collection.actions.find { |action| (action.endpoint == endpoint || "/#{action.endpoint}" == endpoint) && action.http_method == http_method }
10
10
  end
11
11
  end
12
12
  end
@@ -1,3 +1,3 @@
1
1
  module ForestLiana
2
- VERSION = "6.5.0"
2
+ VERSION = "6.5.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: forest_liana
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.5.0
4
+ version: 6.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sandro Munda
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-06-03 00:00:00.000000000 Z
11
+ date: 2021-06-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails