forklift_etl 1.0.15 → 1.0.16

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,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZmFkNWMxMTVjYTkxMDUyOWU4MTk1ZTljZDRhNzk1ODQwNGNjYmRjYw==
4
+ YjE5ZGIxY2Y1MzA5YTgzN2YxODA4MTU3NDM5YjE3ZjdiNjYyYjc1Yg==
5
5
  data.tar.gz: !binary |-
6
- MzJjYjQzOTJiOGJiYzZjNjU2M2UwZWM4NDU1MGU5YjhjMTBlZGNlZQ==
6
+ YjVmM2U0M2U1YTFlMTA1Y2U3ODNlMTY4ODczODM2OGU3Y2Y3YjE5Ng==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- OWM3ZTMyNTAwM2Q1NDAwOWJlOWUyOTUyYTBjNjk1YjE5ZThkZDZhYzY1Y2Q2
10
- MmY4ZGM4OTBiNmViMDhmM2Q5Yjg0ODRhNGQ3ZDA4NzZiMGY2ODcwNjM0ODA4
11
- OTRkMjk1ZmZkNDQ4YmY4Y2FiYWIyYjcxZmI1NTlmOGQyNTU5ZTI=
9
+ NDAyMjA5MGY3MjNmYTYwM2U3NmZiNTliMmNiNTRkYTcxMDc1ZjE3Y2VmNDc0
10
+ N2Y0MzQzOWZhNTdhMzI4YzY2YWNhZTliMzZmMzExOGI3YzlkMTlkYTRmNWNk
11
+ NzlmNGVjNWNjMjU0ZjBhNDY2NzhhMDAxNzlkZGUxNmFiNDExODg=
12
12
  data.tar.gz: !binary |-
13
- YjAzMTA3MjYzMjFlZWQ2OTYxYjI4NmI2M2E5ODE0ODNiZWRhMDBlZThkZTc2
14
- NDVkYjE3NjM3ODgyMjk5YWEyMmU1NGE4MmQ3M2M3N2EwNWM5NTM2M2E1MmFm
15
- ZDdkYTcwYTE2MWU3YzkxZmEwZmE0NGEwOTAwMWU0NmQyYzhjZmI=
13
+ NWZiZTJlYmVmMWFhZTBjY2E2YTAzYmE2YmM0YmM0M2FkOTljZGI1NWQ4ZmQ4
14
+ NGEwMjk5MTFhOWRmYmVmOTU1NWIyM2NjMTkwMjJlNTJjOGVmNjk1ODBmZmNi
15
+ M2I5ZDlmYmFkMGYwZjJmZTMyMTc5MDJhNWVlMTYyODdlOGY5MDE=
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- forklift_etl (1.0.15)
4
+ forklift_etl (1.0.16)
5
5
  activesupport (~> 4.0, >= 4.0.0)
6
6
  elasticsearch (~> 1.0, >= 1.0.0)
7
7
  lumberjack (~> 1.0, >= 1.0.0)
@@ -64,9 +64,11 @@ module Forklift
64
64
  end
65
65
 
66
66
  def self.can_incremental_pipe?(source, from_table, destination, to_table, matcher=source.default_matcher)
67
- a = source.columns(from_table, source.current_database).include?(matcher)
68
- b = destination.columns(to_table, destination.current_database).include?(matcher)
69
- return (a && b)
67
+ a = source.tables.include?(from_table)
68
+ b = source.columns(from_table, source.current_database).include?(matcher)
69
+ c = destination.tables.include?(to_table)
70
+ d = destination.columns(to_table, destination.current_database).include?(matcher)
71
+ return (a && b && c && d)
70
72
  end
71
73
 
72
74
  ## When you are copying data to and from mysql
@@ -1,3 +1,3 @@
1
1
  module Forklift
2
- VERSION = "1.0.15"
2
+ VERSION = "1.0.16"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: forklift_etl
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.15
4
+ version: 1.0.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Evan Tahler