directory_diff 0.4.15 → 0.6.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: 4d9524f8974503247dea40fac0ccb992cdc587ecd29c809d43638c06c528fc42
4
+ data.tar.gz: 0c32c7b0ef0f7820b600c936ae3acc96866ff51479491bc048c7969f0e2a86e9
5
5
  SHA512:
6
- metadata.gz: 284e7d9653a30f7029a402a352091fffc8aa82ac1b0dec0130b90f6c572c2f8936ce2ab46b1bdbbf190737a971935174c1c7c0bc26ef165bb955dc9a79d453af
7
- data.tar.gz: 9296b7cac1a1100dbeef7d19bbee14cc8d22c6f5c250ecbb959b14a195157985bc4bb49c6269a27139bf206647c6b19bd2ac089fdd613bc5a45961a46c5f2a45
6
+ metadata.gz: 3ad8ef6c772551d0b3c717f73f9e4b2385bcb5e195a5e397adcca5492948e9e338b5f35447d855122b35423d6b44b9500913cb58a2ce0a4dbf34fde46971ac41
7
+ data.tar.gz: 162488bedfdf248ab54accf18c40ad9cf761a99bf27e556a042d285097fd0f4eb22e01b8559b2ea4349823c3f7d7047dad0ab600075989bde44ce4fa40903ae8
@@ -0,0 +1,16 @@
1
+ name: Run CI
2
+ on: [push]
3
+
4
+ jobs:
5
+ run-rspec-tests:
6
+ runs-on: ubuntu-latest
7
+ steps:
8
+ - uses: actions/checkout@v2
9
+ - name: Set up Ruby
10
+ uses: ruby/setup-ruby@v1
11
+ with:
12
+ ruby-version: 2.7
13
+ bundler-cache: true
14
+ - name: Run tests
15
+ run: |
16
+ bundle exec rspec
data/.gitignore CHANGED
@@ -8,3 +8,4 @@
8
8
  /spec/reports/
9
9
  /tmp/
10
10
  gemfiles/*.gemfile.lock
11
+ .idea
data/.travis.yml CHANGED
@@ -8,7 +8,7 @@ rvm:
8
8
  gemfile:
9
9
  - gemfiles/activerecord_5.1.gemfile
10
10
  - gemfiles/activerecord_5.2.gemfile
11
- before_install: gem install bundler -v 1.11.2
11
+ before_install: gem install bundler -v 2.4.22
12
12
  script:
13
13
  - bundle exec rake db:create
14
14
  - bundle exec rake spec
@@ -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", "~> 2.0"
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, 9] == old_employee[0, 9]
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.6.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.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kamal Mahyuddin
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-10-29 00:00:00.000000000 Z
11
+ date: 2024-06-24 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: '2.0'
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: '2.0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rake
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -116,6 +116,7 @@ extensions: []
116
116
  extra_rdoc_files: []
117
117
  files:
118
118
  - ".codeclimate.yml"
119
+ - ".github/workflows/ci.yml"
119
120
  - ".gitignore"
120
121
  - ".rspec"
121
122
  - ".rubocop.yml"
@@ -155,8 +156,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
155
156
  - !ruby/object:Gem::Version
156
157
  version: '0'
157
158
  requirements: []
158
- rubyforge_project:
159
- rubygems_version: 2.7.6
159
+ rubygems_version: 3.1.6
160
160
  signing_key:
161
161
  specification_version: 4
162
162
  summary: Envoy employee directory diffing.