harmonia 0.2.1 → 0.2.2

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: 95a76a4effb5bedd2fb64bd4cb6920702156f0883714c9c323a7aeadb07155ed
4
- data.tar.gz: 04c8496b78642204612f7cab8da0d71d0c18674113278d0dc78bbf98ee2e1108
3
+ metadata.gz: 28c0e7e7f87cdbf680cb961b01ef7f599af2c662bebe3c8dd857db2b172e43d6
4
+ data.tar.gz: 6355cba5ee75d3fcca62040079a70342f72bc6f13ca6554d8671b9af53d0218a
5
5
  SHA512:
6
- metadata.gz: fabbd15f5b2fbea55b88b185ea0eb2f3df2a0053e29d14b22f30f27fbc5fa39096c2bd18085cb611576b50d5bc120f4657e0ad38e8162ccc61d5eaef57818a82
7
- data.tar.gz: 2e824a79985c5c72650e405dd28a600ce935a49022501fda4bf2aed6c5598bbe0f5afb3cf383137aadbda2b5d88729e28c36d683292af39035961c281edae036
6
+ metadata.gz: b258047a77289e9b4dc8c9e5de0096359a927f761bfee5c02105854973b7afa6314e1d1b8496dc1e0bac73c023e373d14562041bb57a3eac6105736d1888f330
7
+ data.tar.gz: c485199ad2448e3810dc3c09dda6f73b71a55dd17ec4be924cf5d49483f7761dbbb2465b8cafb67adf5c104a46f45dded59ef34aa630cf02b915bef0c34c0e5e
@@ -32,7 +32,10 @@ module Harmonia
32
32
 
33
33
  desc 'sync #{table_name} from ActiveRecord to FileMaker'
34
34
  task #{task_name}: :environment do
35
- #{class_name}ToFileMakerSyncer.new.sync
35
+ dbc = DatabaseConnector.new
36
+
37
+ syncer = #{class_name}Syncer.new(dbc)
38
+ syncer.run
36
39
  end
37
40
  TASK
38
41
 
@@ -58,7 +58,10 @@ module Harmonia
58
58
 
59
59
  desc 'sync #{table_name} from FileMaker to ActiveRecord'
60
60
  task #{task_name}: :environment do
61
- #{class_name}Syncer.new.sync
61
+ dbc = DatabaseConnector.new
62
+
63
+ syncer = #{class_name}Syncer.new(dbc)
64
+ syncer.run
62
65
  end
63
66
  TASK
64
67
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: harmonia
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kempen Automatisering