directory_diff 0.4.15 → 0.5.0

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: 2e2bf8a6d21cbf21189c07cbba63f6ba6011f722f432b1b9804e5b1abbb3683b
4
- data.tar.gz: c2081478703a7d3843b2d8faf9db9487c6848c169350c60f6eea0168ff77720e
3
+ metadata.gz: d8ee4b73f492c39e557743dfb1fe4c8b84cd10dc4807f11d4606dad2cecf3327
4
+ data.tar.gz: 918743f81b8d6bc18b5a7ba5d8722efc67a7af35fa718e7095b63b5ed6c91961
5
5
  SHA512:
6
- metadata.gz: 284e7d9653a30f7029a402a352091fffc8aa82ac1b0dec0130b90f6c572c2f8936ce2ab46b1bdbbf190737a971935174c1c7c0bc26ef165bb955dc9a79d453af
7
- data.tar.gz: 9296b7cac1a1100dbeef7d19bbee14cc8d22c6f5c250ecbb959b14a195157985bc4bb49c6269a27139bf206647c6b19bd2ac089fdd613bc5a45961a46c5f2a45
6
+ metadata.gz: 4cf77d75a44f310640a5ce99e4b569a5a7e82e046647b6c70fabf7407c27e460dea47003d376935132bbabe2ca8b088dea9052c29c39f90b02e6dcd145d88714
7
+ data.tar.gz: 8590c90ab336c515bb9ab7633caf380f1ca9ed9dd7bf8ed30e8a72e85cc1c8bd857cd8ec6a9b1f2823129e5663242fccb7692e0171bb2abd29fcd30a58856abb
@@ -22,7 +22,7 @@ Gem::Specification.new do |spec|
22
22
  spec.add_dependency "activerecord", ">= 5.1"
23
23
  spec.add_dependency "pg", "~> 1.1.3"
24
24
 
25
- spec.add_development_dependency "bundler", "~> 2"
25
+ spec.add_development_dependency "bundler", "~> 1.11"
26
26
  spec.add_development_dependency "rake", "~> 10.0"
27
27
  spec.add_development_dependency "rspec", "~> 3.0"
28
28
  spec.add_development_dependency "temping", "~> 3.10.0"
@@ -1,6 +1,6 @@
1
1
  module DirectoryDiff
2
2
  module Transformer
3
- class InMemory
3
+ class InMemory
4
4
  attr_reader :current_directory, :new_directory
5
5
  attr_reader :transforms, :transforms_index
6
6
  attr_reader :options
@@ -59,7 +59,7 @@ module DirectoryDiff
59
59
  # the new record appears to be the same as the current record
60
60
  if assistant_emails.empty?
61
61
  original_assistant_value = nil
62
- new_employee[3] = old_employee&.fetch(3)
62
+ new_employee[3] = old_employee&.fetch(3)
63
63
  else
64
64
  original_assistant_value = new_employee[3]
65
65
  end
@@ -77,7 +77,7 @@ module DirectoryDiff
77
77
 
78
78
  if old_employee.nil?
79
79
  add_transform(:insert, new_employee)
80
- elsif new_employee[0, 4] == old_employee[0, 4]
80
+ elsif new_employee[0, 5] == old_employee[0, 5]
81
81
  # restore assistant value after cleanup like missing assistants and own email
82
82
  new_employee[3] = original_assistant_value
83
83
  # restore phone number value
@@ -1,3 +1,3 @@
1
1
  module DirectoryDiff
2
- VERSION = "0.4.15"
2
+ VERSION = "0.5.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: directory_diff
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.15
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kamal Mahyuddin
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-10-29 00:00:00.000000000 Z
11
+ date: 2023-02-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -44,14 +44,14 @@ dependencies:
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '2'
47
+ version: '1.11'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '2'
54
+ version: '1.11'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rake
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -140,7 +140,7 @@ homepage: https://github.com/envoy/directory_diff
140
140
  licenses:
141
141
  - MIT
142
142
  metadata: {}
143
- post_install_message:
143
+ post_install_message:
144
144
  rdoc_options: []
145
145
  require_paths:
146
146
  - lib
@@ -155,9 +155,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
155
155
  - !ruby/object:Gem::Version
156
156
  version: '0'
157
157
  requirements: []
158
- rubyforge_project:
159
- rubygems_version: 2.7.6
160
- signing_key:
158
+ rubygems_version: 3.3.12
159
+ signing_key:
161
160
  specification_version: 4
162
161
  summary: Envoy employee directory diffing.
163
162
  test_files: []