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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4e9f48c4a226521a80af25765e7eeb2b133c0112300560d9cb2f37cec56f34e2
4
- data.tar.gz: 87565bb066e01ac9605fdc5ad1f3308ef9fcfbaa7c5f132b54c07427e4d0fad1
3
+ metadata.gz: e2bc0db722008e17fe249d9f926ef682158347617a2996376e3d49977988e156
4
+ data.tar.gz: 79ec1be625f5a89a6c2ff83eb23d90cdacf98aebfc8e5f13b408f7575789bf3d
5
5
  SHA512:
6
- metadata.gz: bc7af836fdcab121db08350c450908e2df069f784d9283fdc407d8fef509b079bcccb215e5f8212e2f944cdcaebea49eecc3eca97afcf0f91741620a6c2e2262
7
- data.tar.gz: 23587f1c431273f0f1d4161ddb2f865fb54094845e3f35d424041222a77cc37a8f5de3c8f1408d50262f9f66c45832d255d67c29418ed519be25138786612b93
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: config['endpoint'], log: true, log_level: :info, ssl_verify_mode: :none)
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,
@@ -45,7 +45,7 @@ module EgovUtils
45
45
  errors.add(:base, :not_found)
46
46
  nil
47
47
  elsif people.count > 1
48
- errors.add(:base, :multiple_results_found)
48
+ errors.add(:base, :multiple_records_found)
49
49
  nil
50
50
  elsif people.count == 1
51
51
  people.first
@@ -4,7 +4,7 @@ module EgovUtils
4
4
  class Search < ActiveInteraction::Base
5
5
  string :firstname
6
6
  string :lastname
7
- date :birth_date, converter: :parse
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::ProdSearch
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 == 'multiple_results_found') {
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');
@@ -252,7 +252,7 @@ cs:
252
252
  legal_person:
253
253
  not_found: Osoba nebyla nalezena
254
254
  natural_person:
255
- multiple_results_found: Nalezeno více shod, je nutné doplnit místo narození
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
@@ -1,7 +1,7 @@
1
1
  en:
2
2
  errors:
3
3
  messages:
4
- multiple_results_found: Multiple results found
4
+ multiple_records_found: Multiple results found
5
5
  extended_search_not_found: No results found
6
6
  extended_search_multiple_records_found: Multiple results found
7
7
  not_found: No results found
@@ -1,3 +1,3 @@
1
1
  module EgovUtils
2
- VERSION = '1.5.0.alpha4'
2
+ VERSION = '1.5.0.alpha6'
3
3
  end
data/lib/egov_utils.rb CHANGED
@@ -7,6 +7,7 @@ require 'bootstrap'
7
7
  require 'bootstrap_form'
8
8
  require 'momentjs-rails'
9
9
  require 'bootstrap4-datetime-picker-rails'
10
+ require 'savon'
10
11
 
11
12
  require 'egov_utils/fileuid'
12
13
  require 'egov_utils/model_permissions'
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.alpha4
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