portal_scraper 1.2.2 → 1.2.3

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: 5d1aefa65524b70deab578ff2dd0c69bf9144f4ce41432d31660f0c8252c95e9
4
- data.tar.gz: 4d385ee736b9bf2ff9c6b9d8c85012af9d2774e511023788a8a48ee52c11621d
3
+ metadata.gz: 5652460df11dd2c25bd5628b991eb3b0f2e62d02b2c4717c966b23d6bb4885ca
4
+ data.tar.gz: 83d7985aa78c0ead3a8fbedd939a48a052667dd2e94b42f420cc1f02b27ce6af
5
5
  SHA512:
6
- metadata.gz: eac8cc9a0ad42ed44bd4867429c4890d5a0904b24f569e5e8911823225730f13a2752d50c215b278ec9869eca875887ecfaeb08b309ea094a7cbc484920528b6
7
- data.tar.gz: e78838016196e07f5b06b8e0214f34d123fc3b3857ac11c48f6c6ca6e648aed2c64ae01e7c76c409ea5c23e5e72da8b659598929627264f2fa57baa9cdcb5460
6
+ metadata.gz: 3912e4709b6076e71e4c510be4b558a8ca6814fec5fc3c0aa1b82742b6c4b17307a362f9c908ff79c9dfe3600e3a17f6c55016ab2416ce452e1ab6ee212b8fc9
7
+ data.tar.gz: c1d94dd080fe873a7892b9f81d63b447f4a8a8d66f990c5bfe14ff0d892a9667098f575e1fb38d15829e48c185a0143c5631f902a1b08ecdab55e07543af71ba
@@ -89,8 +89,8 @@ module PortalScraper
89
89
 
90
90
  def fill_birth_place(form, country_code)
91
91
  form['paysNaissance'] = country_code
92
- form['libPaysNaissance'] = CODE_TO_COUNTRY_MAPPING[country_code]['name']
93
- form['territoireNaissance'] = CODE_TO_COUNTRY_MAPPING[country_code]['category']
92
+ form['libPaysNaissance'] = CODE_TO_COUNTRY_MAPPING.dig(country_code, 'name')
93
+ form['territoireNaissance'] = CODE_TO_COUNTRY_MAPPING.dig(country_code, 'category')
94
94
  end
95
95
 
96
96
  def find_table_value(node, column_name)
@@ -2,7 +2,7 @@ module PortalScraper
2
2
  class Version
3
3
  MAJOR = 1
4
4
  MINOR = 2
5
- PATCH = 2
5
+ PATCH = 3
6
6
 
7
7
  def self.to_s
8
8
  [MAJOR, MINOR, PATCH].compact.join('.')
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: portal_scraper
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.2
4
+ version: 1.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Armand Mégrot
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-04-24 00:00:00.000000000 Z
11
+ date: 2019-04-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mechanize