psychometric 0.1.8 → 0.1.9

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: a5356f56cbd9a8504b8fa1b49a44925dfecca5281bcb483362a5952776f339da
4
- data.tar.gz: aab7489968622b92bf64c2e9ac30e6258efd4ecdadd8736a84ece6cf740fbcd4
3
+ metadata.gz: 7c0a826614fbeb46d666c01998ccc6eed73eddbda3389034e001f915dcde44b1
4
+ data.tar.gz: eda14753dc04399b3a30593308e64b708ed8d10140dc696c1eaf1c363ee5fa31
5
5
  SHA512:
6
- metadata.gz: 739f0ad22ce96e226c15d087ed948c1ae5045ed667c98f3ef02070a59f7f886dd336ac0fa154f7705bc3b480954b746c32adf79847dafb5b8d53d6c17e64b979
7
- data.tar.gz: 923b8dd49edfe758bcc0f52affd3c0ab4a71085039a8ffffa9eebb271b01978f2298224b2841e88d226452ef05766a5832d5bd1bb45927e9b0c96d2814e090eb
6
+ metadata.gz: b4a671d194f22003e95f61533c0ce29aacfbe9a28374cf89dd037630d756ee2d5519cd073c7f61694fe99a63373616af7cad038c2932c0213b5e38b573bf5805
7
+ data.tar.gz: a47b73e4421461e660b16a0a3d5d54cf463a3e4aa0fe7daa1a124b913fc5c1ab2d0da9ea31c7e40a24b4e6c60530a5a304952defd17c7e51a522b18f342a48a7
@@ -4,3 +4,9 @@
4
4
  #### 20 February 2019
5
5
 
6
6
  - Initial commit
7
+
8
+ ## 0.1.9
9
+ #### 9 December 2019
10
+
11
+ - Fixed parsing of countries from identity numbers
12
+ - Assign Botswana to identity numbers with exactly 9 digits
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- psychometric (0.1.8)
4
+ psychometric (0.1.9)
5
5
  httparty (~> 0.16.4)
6
6
 
7
7
  GEM
@@ -68,11 +68,15 @@ module Psychometric
68
68
  Psychometric::Result.new.tap do |result|
69
69
  result.subject = Psychometric::Subject.new(
70
70
  country: case item['participantId']
71
- when /^G\d+/, /\d{10}/
72
- 'GH'
73
- else
74
- 'ZA'
75
- end,
71
+ when /^\d{13}$/
72
+ 'ZA'
73
+ when /^G\d+/, /^\d{10}$/
74
+ 'GH'
75
+ when /^\d{9}$/
76
+ 'BW'
77
+ else
78
+ 'XX'
79
+ end,
76
80
  identity: item['participantId'],
77
81
  email: item['email'],
78
82
  name: "#{item['name']} #{item['surname']}",
@@ -1,3 +1,3 @@
1
1
  module Psychometric
2
- VERSION = '0.1.8'
2
+ VERSION = '0.1.9'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: psychometric
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8
4
+ version: 0.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Prins
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-10-08 00:00:00.000000000 Z
11
+ date: 2019-12-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty