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 +4 -4
- data/directory_diff.gemspec +1 -1
- data/lib/directory_diff/transformer/in_memory.rb +3 -3
- data/lib/directory_diff/version.rb +1 -1
- metadata +8 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d8ee4b73f492c39e557743dfb1fe4c8b84cd10dc4807f11d4606dad2cecf3327
|
4
|
+
data.tar.gz: 918743f81b8d6bc18b5a7ba5d8722efc67a7af35fa718e7095b63b5ed6c91961
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4cf77d75a44f310640a5ce99e4b569a5a7e82e046647b6c70fabf7407c27e460dea47003d376935132bbabe2ca8b088dea9052c29c39f90b02e6dcd145d88714
|
7
|
+
data.tar.gz: 8590c90ab336c515bb9ab7633caf380f1ca9ed9dd7bf8ed30e8a72e85cc1c8bd857cd8ec6a9b1f2823129e5663242fccb7692e0171bb2abd29fcd30a58856abb
|
data/directory_diff.gemspec
CHANGED
@@ -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", "~>
|
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,
|
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
|
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
|
+
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:
|
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: '
|
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: '
|
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
|
-
|
159
|
-
|
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: []
|