stackone_migration 1.4.6 → 1.4.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ff7c7a2f547a820d008c3f64866ae2ba4f8fc56c28048a2a8f2b2353babad624
4
- data.tar.gz: af706fd86b480b94f1ca12934129afc91105727ddb9cee0e8ed0899fa036b6db
3
+ metadata.gz: 54502eb2343658c7853369b1629be75f8020d32f9287192037d60f657577f2ef
4
+ data.tar.gz: c3594fe6cfe8ef43a49f195e748cacf02f3313271fa1606bad87a96e18a79c16
5
5
  SHA512:
6
- metadata.gz: 65668826ea586158f1a8ab544273b33fc384175d960233a779d8bd76d99c84432ae42100393149ef59c1e869caae44cf39d4f017f92dc0f6021f46b9b411fe0a
7
- data.tar.gz: 26deedd4a12c6b3023a9aff74e666dc42af005e0da64dacd7ab6bbf2616e9db8e4ae94d493992a14402d4af09563fdceceec4724cb0144647aca483de95291ec
6
+ metadata.gz: b7ac0788a52ae2968b3380f661a20962ae2338ac8bc3bb47d3922d917f4b2963a57ed664aec7039a4b292c0f500e72b354a70a7620a510a8405f81c6fb3d7b87
7
+ data.tar.gz: 072eef5853bd9ad549a4884b81e5ff6c69fafcdc831afc234fd94cc202299a77935ce806e032dd4811207731fc830782710ebb84055cd2e838e827a39c1ce779
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- stackone_migration (1.4.6)
4
+ stackone_migration (1.4.8)
5
5
  merge_hris_client (~> 3.0)
6
6
  stackone_hris_client (~> 1.6.0)
7
7
 
@@ -108,7 +108,7 @@ module StackOneMigration
108
108
  :ethnicity => build_merge_enum(MergeHRISClient::EthnicityEnum, ethnicity_enum_hash, employee.ethnicity),
109
109
  :marital_status => build_merge_enum(MergeHRISClient::MaritalStatusEnum, marital_status_enum_hash, employee.marital_status),
110
110
  :hire_date => employee.hire_date,
111
- :employment_status => build_merge_enum(MergeHRISClient::EmploymentStatusEnum, employment_status_enum_hash, employee.employment_status),
111
+ :employment_status => MergeHRISClient::EmploymentStatusEnum.build_from_hash(map_enum(employment_status_enum_hash, employee.employment_status)),
112
112
  :termination_date => employee.termination_date,
113
113
  :home_location => map_to_location_model(employee.home_location),
114
114
  :work_location => map_to_location_model(employee.work_location),
@@ -144,7 +144,7 @@ module StackOneMigration
144
144
  :pay_frequency => build_merge_enum(MergeHRISClient::PayFrequencyEnum, pay_frequency_enum_hash, employment.pay_frequency),
145
145
  :pay_currency => MergeHRISClient::PayCurrencyEnum.build_from_hash(employment.pay_currency&.to_s&.upcase),
146
146
  :effective_date => employment.effective_date,
147
- :employment_type => build_merge_enum(MergeHRISClient::EmploymentTypeEnum, employment_type_enum_hash, employment.employment_type)&.value,
147
+ :employment_type => MergeHRISClient::EmploymentTypeEnum.build_from_hash(map_enum(employment_type_enum_hash, employment.employment_type)),
148
148
  )
149
149
  end
150
150
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module StackOneMigration
4
- VERSION = '1.4.6'
4
+ VERSION = '1.4.8'
5
5
  end
@@ -133,7 +133,7 @@ describe StackOneMigration::EmployeesMapper do
133
133
  expect(target_model.gender).to have_attributes(:value => 'FEMALE', :raw_value => 'Female')
134
134
  expect(target_model.ethnicity).to have_attributes(:value => 'WHITE', :raw_value => 'White')
135
135
  expect(target_model.marital_status).to have_attributes(:value => 'MARRIED_FILING_JOINTLY', :raw_value => 'Married')
136
- expect(target_model.employment_status).to have_attributes(:value => 'INACTIVE', :raw_value => 'Terminated')
136
+ expect(target_model.employment_status).to have_attributes(:value => 'INACTIVE', :raw_value => 'INACTIVE')
137
137
  end
138
138
 
139
139
  context 'when the employee record has the avatar base64 field instead of url' do
@@ -333,7 +333,7 @@ describe StackOneMigration::EmployeesMapper do
333
333
  expect(target_model.pay_frequency).to have_attributes(:value => 'WEEKLY', :raw_value => 'Weekly')
334
334
  expect(target_model.pay_currency).to have_attributes(:value => 'USD', :raw_value => 'USD')
335
335
  expect(target_model.effective_date).to eq('2018-01-01')
336
- expect(target_model.employment_type).to eq('FULL_TIME')
336
+ expect(target_model.employment_type).to have_attributes(:value => 'FULL_TIME', :raw_value => 'FULL_TIME')
337
337
  end
338
338
  end
339
339
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stackone_migration
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.6
4
+ version: 1.4.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - StackOne
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-06-30 00:00:00.000000000 Z
11
+ date: 2023-07-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: merge_hris_client