egov_utils 0.3.5 → 0.3.6

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: acf5bd44813cae1b6c97885e2f27aba3d08faea4990dff99b9cf8994947a536d
4
- data.tar.gz: e43919a3145c54fc669e361414a4564474716f32484527c85bb7f5e2de104040
3
+ metadata.gz: 9d02246d97122065126c32dbe45c61eec0ab2c5121000526186f1aa6252491a7
4
+ data.tar.gz: 4b26d6a69cfbfd721899ffcdf43af76f543ef849a9febbfbbba90d8b55525d4a
5
5
  SHA512:
6
- metadata.gz: e7388fc75b848b7112ccff83e2a82f8837baf3e3eda7c4173e4fd2c8bc2ac9419080718711691d178161e267dc593cc4580558013e59c2b8e77af8103c4fc0a9
7
- data.tar.gz: 448aee3484f8a498aca7b4a84810059f354aa2573435a703b434d163d97806bdd10e707d28d78f1e21ae8a655f242abca7b9bd1a88541ed80a489197783fe939
6
+ metadata.gz: 9df9e26dedcb00adacd55708b381fee93d1b5a5117cc546fc951e06ccf6de5567df3eb389acd151aa12696800b748538d5e96e873a7bb87bb0701b59a1465ec2
7
+ data.tar.gz: 75bba2c63084a367855a3cedf5d88cac98a56b2395b92060dd2eb2c6a461a8cebad002ce4895080c48ddb0bedc1a30329babcfeb3db1bed831be1e4ee0b51a75
@@ -2,8 +2,8 @@ module EgovUtils
2
2
  class Person < ApplicationRecord
3
3
 
4
4
  belongs_to :residence, class_name: 'EgovUtils::Address', optional: true
5
- has_one :natural_person
6
- has_one :legal_person
5
+ has_one :natural_person, dependent: :destroy
6
+ has_one :legal_person, dependent: :destroy
7
7
 
8
8
  enum person_type: { natural: 1, legal: 16 }
9
9
 
@@ -32,6 +32,7 @@ cs:
32
32
 
33
33
  confirm_destroy: "Opravdu chcete smazat %{subject}?"
34
34
 
35
+ warning_staging_version: Toto je testovací verze aplikace.
35
36
  notice_account_invalid_credentials: Přihlašovací údaje jsou nesprávné
36
37
  notice_onthefly_failure: Nemáte oprávnění k přístupu do aplikace
37
38
  notice_account_pending: Váš účet čeká na schválení/ověření
@@ -2,6 +2,8 @@ module EgovUtils
2
2
  module TestUtils
3
3
  module ControllerHelpers
4
4
 
5
+ attr_reader :signed_user
6
+
5
7
  def default_user(params={})
6
8
  user = FactoryBot.create(:egov_utils_user, params)
7
9
  user
@@ -16,12 +18,13 @@ module EgovUtils
16
18
  end
17
19
 
18
20
  def anonymous_user
19
- u = default_user
21
+ user = default_user
20
22
  allow(user).to receive(:persisted?).and_return(false)
21
- u
23
+ user
22
24
  end
23
25
 
24
26
  def sign_in(user = basic_user)
27
+ @signed_user = user
25
28
  allow(controller).to receive(:find_current_user).and_return(user)
26
29
  end
27
30
  end
@@ -1,3 +1,3 @@
1
1
  module EgovUtils
2
- VERSION = '0.3.5'
2
+ VERSION = '0.3.6'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: egov_utils
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.5
4
+ version: 0.3.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ondřej Ezr
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-04-24 00:00:00.000000000 Z
11
+ date: 2018-04-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -140,14 +140,14 @@ dependencies:
140
140
  name: paranoia
141
141
  requirement: !ruby/object:Gem::Requirement
142
142
  requirements:
143
- - - '='
143
+ - - "~>"
144
144
  - !ruby/object:Gem::Version
145
145
  version: '2.4'
146
146
  type: :runtime
147
147
  prerelease: false
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
150
- - - '='
150
+ - - "~>"
151
151
  - !ruby/object:Gem::Version
152
152
  version: '2.4'
153
153
  - !ruby/object:Gem::Dependency