tramway-user 2.1.0.1 → 2.1.0.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
  SHA256:
3
- metadata.gz: 4289500a1bcf9539be02d572c50bbfe3a1ca9e23752522dd29802ab11c04a501
4
- data.tar.gz: 84e13198096ad5cce6f91f16e035b2643ad911177c31bc138099d3bf75bbe699
3
+ metadata.gz: f9a7481abc738893cb2e3e60e3c720fd5b5ab1041001b23c3ed347088ade0e12
4
+ data.tar.gz: aa3c1c4d06c814b44513fb643f765becc6e2739a7fa5da5945ad1cecbaeb5429
5
5
  SHA512:
6
- metadata.gz: 8c4bd0430290d4c887146777a523c8253a5418ed7e1ca91c4c473415fe5959cd12fa1206ee8857051fb109e861668a0eec96499a79d0acd3f70e02da611e3047
7
- data.tar.gz: 77e5b522aeeecdf7c67fd74ed83deb4d35ecb8e8881ff73c375a5729aef03527ffb5bf2d7a5a64b6ca4927351f71dfb0699b8d80280c2392ce580a0cac97bffd
6
+ metadata.gz: b4ceb12cfc1ea0efd97522608c6b67fb60b18f6d6ac190506b48e99c8c979be7420eeed904a43c5b6effc1a48476ed1b4f1b5f1bbae8f6b89c7f781fb09f3285
7
+ data.tar.gz: 23cd4408a43bfbe02d370dadbb0ab09aea5f27d23983f208fecfbdae3cd2f5dbf8fb534144eed6bb7b0d53b97e754b02aa47641b9719cc4ddd5bb8d8ea9901ea
data/README.md CHANGED
@@ -9,6 +9,7 @@ Add this line to your application's Gemfile:
9
9
 
10
10
  ```ruby
11
11
  gem 'tramway-user'
12
+ gem 'validates'
12
13
  ```
13
14
 
14
15
  And then execute:
@@ -4,7 +4,7 @@ class Tramway::User::User < ::Tramway::Core::ApplicationRecord
4
4
  has_secure_password
5
5
 
6
6
  # FIXME: replace to tramway-admin
7
- enumerize :role, in: %i[user admin], default: :user
7
+ enumerize :role, in: %i[user admin], default: :admin
8
8
 
9
9
  def admin?
10
10
  role.admin?
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Tramway
4
4
  module User
5
- VERSION = '2.1.0.1'
5
+ VERSION = '2.1.0.2'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tramway-user
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0.1
4
+ version: 2.1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pavel Kalashnikov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-12-22 00:00:00.000000000 Z
11
+ date: 2020-01-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bcrypt