tramway-user 2.0 → 2.0.1

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: 4f172fc71da227bb6eecfa53e019a7275a8ff17ff78fc08911c9b79071adc08c
4
- data.tar.gz: 4ee42e45e106fe3270902ab3f776568d823587af490ff25a5a35096d5b355c39
3
+ metadata.gz: 2f1afa0e39a3fb4ad66280e0517644352a5d66dffd390f4c192c3082f7243ae9
4
+ data.tar.gz: 3338e02a9c7209ec7c0aaf34d86bc7af0c44b28cd8f3f883a3c0c36eb4cecb36
5
5
  SHA512:
6
- metadata.gz: f5608b665b8ee8d9d5f65770d55e518173e1b1320b069b0e7c30533f574ae00b67374062cf9b1822a85dba02a6ff6281b59e76fc0a0660a935b20ba62ec33db8
7
- data.tar.gz: 0eeff16e6f881af9b748037ce706ff885617ef63e0c70dae14b7df45aec17c5e40260697de6d9963ac35e3582c7d6245c7ed1bc7eb84f1aa26c0cec7049380bf
6
+ metadata.gz: 6fe235bf1b4fc1b92c07e00284d68a4a6c5784a6bd2656f68e0cc073b2653488140cfeb82630a989c47ec04da3209c3b289edb19d58f4316486e5822bd2aed82
7
+ data.tar.gz: c0821e787ba1a2e27c22f9547c5c0152acb5bdd0565bfd03951b7d85295233f921742f2156bdda63a6cb5248aff61469f874f5222cffa634163db269c9cc6dbd
@@ -1,6 +1,8 @@
1
1
  class Tramway::User::UserForm < ::Tramway::Core::ApplicationForm
2
2
  properties :email, :password, :first_name, :last_name, :role
3
3
 
4
+ validates :email, email: true
5
+
4
6
  def initialize(object)
5
7
  super(object).tap do
6
8
  form_properties email: :string,
@@ -8,6 +8,12 @@ ru:
8
8
  first_name: Имя
9
9
  last_name: Фамилия
10
10
  role: Роль
11
+ errors:
12
+ models:
13
+ tramway/user/user:
14
+ attributes:
15
+ email:
16
+ email: имеет неверный формат
11
17
  enumerize:
12
18
  tramway/user/user:
13
19
  role:
@@ -1,5 +1,5 @@
1
1
  module Tramway
2
2
  module User
3
- VERSION = '2.0'
3
+ VERSION = '2.0.1'
4
4
  end
5
5
  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.0'
4
+ version: 2.0.1
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-05-04 00:00:00.000000000 Z
11
+ date: 2019-08-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bcrypt
@@ -97,7 +97,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
97
97
  version: '0'
98
98
  requirements: []
99
99
  rubyforge_project:
100
- rubygems_version: 2.7.7
100
+ rubygems_version: 2.7.6
101
101
  signing_key:
102
102
  specification_version: 4
103
103
  summary: Engine for users in your Rails app