egov_utils 1.5.0.alpha4 → 1.5.0.alpha6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/services/egov_utils/iszr/client.rb +1 -5
- data/app/services/egov_utils/iszr/natural_people/dev_search.rb +1 -1
- data/app/services/egov_utils/iszr/natural_people/search.rb +2 -2
- data/app/views/egov_utils/people/_new_form.html.haml +1 -1
- data/config/locales/cs.yml +1 -1
- data/config/locales/en.yml +1 -1
- data/lib/egov_utils/version.rb +1 -1
- data/lib/egov_utils.rb +1 -0
- metadata +15 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e2bc0db722008e17fe249d9f926ef682158347617a2996376e3d49977988e156
|
4
|
+
data.tar.gz: 79ec1be625f5a89a6c2ff83eb23d90cdacf98aebfc8e5f13b408f7575789bf3d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5886bc235bf093751ceec0bf69785e7a6f391a24bdb548ba059f0f202f8c8c170b127b9e7f53abb955024aad6ab43d7996672802be88d1dfc4c75ada0587e508
|
7
|
+
data.tar.gz: ba7c6a6fb1f924e001d33108451d9dfbb97beebe98d9ddd54f454fa435ba7f85d1ea692de9fea720f17c2ae656ba6c435283442ddc9f0662b52a46fbd81f448c
|
@@ -4,14 +4,10 @@ module EgovUtils
|
|
4
4
|
module Iszr
|
5
5
|
class Client
|
6
6
|
def initialize(message)
|
7
|
-
@client = Savon.client(wsdl:
|
7
|
+
@client = Savon.client(wsdl: EgovUtils::Settings['iszr']['endpoint'], log: true, log_level: :info, ssl_verify_mode: :none)
|
8
8
|
@message = message
|
9
9
|
end
|
10
10
|
|
11
|
-
def self.config
|
12
|
-
EgovUtils::Settings['iszr']
|
13
|
-
end
|
14
|
-
|
15
11
|
def call
|
16
12
|
client.call(
|
17
13
|
:get_data,
|
@@ -4,7 +4,7 @@ module EgovUtils
|
|
4
4
|
class Search < ActiveInteraction::Base
|
5
5
|
string :firstname
|
6
6
|
string :lastname
|
7
|
-
|
7
|
+
string :birth_date
|
8
8
|
string :birth_place, default: nil
|
9
9
|
|
10
10
|
validates :firstname, :lastname, :birth_date, presence: true
|
@@ -20,7 +20,7 @@ module EgovUtils
|
|
20
20
|
|
21
21
|
def find_person_service
|
22
22
|
if Rails.env.production?
|
23
|
-
EgovUtils::Iszr::NaturalPeople::
|
23
|
+
EgovUtils::Iszr::NaturalPeople::CreateRequest
|
24
24
|
else
|
25
25
|
EgovUtils::Iszr::NaturalPeople::DevSearch
|
26
26
|
end
|
@@ -98,7 +98,7 @@
|
|
98
98
|
$old_person_form.find("input[name*='[birth_place]']").val(selected_birth_place);
|
99
99
|
$old_person_form.find("input[name*='[birth_date]']").val(form_data.birth_date);
|
100
100
|
}
|
101
|
-
else if(error_kind == '
|
101
|
+
else if(error_kind == 'multiple_records_found') {
|
102
102
|
$form_group = $('<div>').addClass('form-group');
|
103
103
|
$label = $('<label>').attr('for', 'birth_place').text('Místo narození');
|
104
104
|
$input = $('<select>').attr('name', 'birth_place').addClass('form-control');
|
data/config/locales/cs.yml
CHANGED
@@ -252,7 +252,7 @@ cs:
|
|
252
252
|
legal_person:
|
253
253
|
not_found: Osoba nebyla nalezena
|
254
254
|
natural_person:
|
255
|
-
|
255
|
+
multiple_records_found: Nalezeno více shod, je nutné doplnit místo narození
|
256
256
|
extended_search_not_found: Nebylo možné nalézt osobu
|
257
257
|
extended_search_multiple_records_found: Nalezeno více shod, je nutné údaje ručně vyplnit
|
258
258
|
not_found: Osobu nebylo možné najít
|
data/config/locales/en.yml
CHANGED
data/lib/egov_utils/version.rb
CHANGED
data/lib/egov_utils.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: egov_utils
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.0.
|
4
|
+
version: 1.5.0.alpha6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ondřej Ezr
|
@@ -416,6 +416,20 @@ dependencies:
|
|
416
416
|
- - ">="
|
417
417
|
- !ruby/object:Gem::Version
|
418
418
|
version: '0'
|
419
|
+
- !ruby/object:Gem::Dependency
|
420
|
+
name: savon
|
421
|
+
requirement: !ruby/object:Gem::Requirement
|
422
|
+
requirements:
|
423
|
+
- - ">="
|
424
|
+
- !ruby/object:Gem::Version
|
425
|
+
version: '0'
|
426
|
+
type: :runtime
|
427
|
+
prerelease: false
|
428
|
+
version_requirements: !ruby/object:Gem::Requirement
|
429
|
+
requirements:
|
430
|
+
- - ">="
|
431
|
+
- !ruby/object:Gem::Version
|
432
|
+
version: '0'
|
419
433
|
- !ruby/object:Gem::Dependency
|
420
434
|
name: azahara_schema
|
421
435
|
requirement: !ruby/object:Gem::Requirement
|