tramway-api 1.8.2.2 → 1.8.2.3

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: cf2d5329ba186ae429c9be23d63ff3afcbff06f8d02d54b4671639c3bdf82265
4
- data.tar.gz: a72979a2d919cc22b2e60fe6bed54e2a44eee5f3e37fe6e19d55be93f47cc669
3
+ metadata.gz: 022a3e30c40c67f5ea395f36d02ad064888501855af9e9d3cd3c17084ec4ae90
4
+ data.tar.gz: ce519fcc07c446ca740141be4f737109a3bada820e22b813e497cfc4de5b165c
5
5
  SHA512:
6
- metadata.gz: 6f3f0e9de37be1606e31fb77de127f1f3321b6ecfb0fb3c0c406b22e1566fe7433c17218799886f0ac630fbdf51bb242c05cc3a8cfd2ba12be018b3c95184b26
7
- data.tar.gz: b11dbcf1a53909ccc125976c9ae348783f41c6ba795b4d687314e40676cdcb23d97d7b2b77c58f8bbffe17dd2e20340d566ce20e9cd2f3c0542b8e2df17f549a
6
+ metadata.gz: 5b38ee6bf57cbd0d3490c8f92e7d514454a1bbacaef1d792a28128b300ad4280cb15526c259c6fa4f146a297840989ded8104f27dcaa37509a582449356e7d32
7
+ data.tar.gz: 29869a70b7712a098743976745a9bc497b37ab27154673a4048ccfa608e95529a52d03cef159646a1a1d1db0429e20747d422ce9c1cc2aa045a3e792c380d9d4
@@ -15,7 +15,7 @@ module Tramway
15
15
  def snake_case(params)
16
16
  hash = {}
17
17
  params.each do |attribute, value|
18
- key = UUID.validate attribute ? attribute : attribute.to_s.gsub('-', '_')
18
+ key = UUID.validate(attribute) ? attribute : attribute.to_s.gsub('-', '_')
19
19
  hash.merge! key => value
20
20
  end
21
21
  hash
@@ -96,6 +96,7 @@ module Tramway
96
96
  def checking_roles
97
97
  [:open, current_user&.role].compact
98
98
  end
99
+
99
100
  protected
100
101
 
101
102
  def model_class
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Tramway
4
4
  module Api
5
- VERSION = '1.8.2.2'
5
+ VERSION = '1.8.2.3'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tramway-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.8.2.2
4
+ version: 1.8.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pavel Kalashnikov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-04-28 00:00:00.000000000 Z
11
+ date: 2020-04-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: active_model_serializers