purview 1.8.1 → 1.8.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/purview/databases/base.rb +7 -7
- data/lib/purview/databases/mssql.rb +6 -6
- data/lib/purview/databases/mysql.rb +6 -6
- data/lib/purview/databases/postgresql.rb +6 -6
- data/lib/purview/databases/sqlite.rb +6 -6
- data/lib/purview/mixins/helpers.rb +1 -1
- data/lib/purview/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: efcff203083c8a055aee25e8d03d7e35cf60ffc50f2c7fae19239e3cc403fe9f
|
4
|
+
data.tar.gz: fa1bbca923d8ae4e6d923ff459e67876ff937fb5274aed03bb56e9bfa1cf4246
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7d2001a98e2f86e932fe2d38c90317b7f9aa1782f0eabd957eb5ac4d3b75e642a6329070e709923dd3280e280faad9b79e63639bf6788f9cabcaec60297da69e
|
7
|
+
data.tar.gz: 6570c6d744625ee0025a3f8b4d80b6af16fffe6b68874f8a5bdbd612123aa524a4f1dfee041fcb5dfb42732760bae43a3306fe8c9e06cecbdd8f0e38834c7510
|
data/README.md
CHANGED
@@ -123,7 +123,7 @@ selection algorithm to determine which `Table` should be synchronized next (the
|
|
123
123
|
least recently synchronized `Table` will be selected). This value is also used
|
124
124
|
as the high-water mark for records pulled from its source. Unless a `timestamp`
|
125
125
|
is specified, as the second argument, the high-water mark will default to
|
126
|
-
`Time.now
|
126
|
+
`Time.now`
|
127
127
|
```ruby
|
128
128
|
database.initialize_table(table)
|
129
129
|
```
|
@@ -13,7 +13,7 @@ module Purview
|
|
13
13
|
end
|
14
14
|
end
|
15
15
|
|
16
|
-
def baseline_table(table, timestamp=Time.now
|
16
|
+
def baseline_table(table, timestamp=Time.now)
|
17
17
|
ensure_table_valid_for_database(table)
|
18
18
|
raise Purview::Exceptions::CouldNotBaselineTable.new(table) \
|
19
19
|
unless table_initialized?(table)
|
@@ -84,7 +84,7 @@ module Purview
|
|
84
84
|
table_name
|
85
85
|
end
|
86
86
|
|
87
|
-
def disable_table(table, timestamp=Time.now
|
87
|
+
def disable_table(table, timestamp=Time.now)
|
88
88
|
ensure_table_valid_for_database(table)
|
89
89
|
table_name = table_name(table)
|
90
90
|
with_context_logging("`disable_table` for: #{table_name}") do
|
@@ -142,7 +142,7 @@ module Purview
|
|
142
142
|
table_name
|
143
143
|
end
|
144
144
|
|
145
|
-
def enable_table(table, timestamp=Time.now
|
145
|
+
def enable_table(table, timestamp=Time.now)
|
146
146
|
ensure_table_valid_for_database(table)
|
147
147
|
table_name = table_name(table)
|
148
148
|
with_context_logging("`enable_table` for: #{table_name}") do
|
@@ -156,7 +156,7 @@ module Purview
|
|
156
156
|
table_name
|
157
157
|
end
|
158
158
|
|
159
|
-
def initialize_table(table, timestamp=Time.now
|
159
|
+
def initialize_table(table, timestamp=Time.now)
|
160
160
|
ensure_table_valid_for_database(table)
|
161
161
|
table_name = table_name(table)
|
162
162
|
with_context_logging("`initialize_table` for: #{table_name}") do
|
@@ -170,7 +170,7 @@ module Purview
|
|
170
170
|
table_name
|
171
171
|
end
|
172
172
|
|
173
|
-
def lock_table(table, timestamp=Time.now
|
173
|
+
def lock_table(table, timestamp=Time.now)
|
174
174
|
ensure_table_valid_for_database(table)
|
175
175
|
table_name = table_name(table)
|
176
176
|
with_context_logging("`lock_table` for: #{table_name}") do
|
@@ -194,7 +194,7 @@ module Purview
|
|
194
194
|
end
|
195
195
|
end
|
196
196
|
|
197
|
-
def sync_table(table, timestamp=Time.now
|
197
|
+
def sync_table(table, timestamp=Time.now)
|
198
198
|
ensure_table_valid_for_database(table)
|
199
199
|
raise Purview::Exceptions::CouldNotSyncTable.new(table) \
|
200
200
|
unless table_initialized?(table) && table_enabled?(table)
|
@@ -446,7 +446,7 @@ module Purview
|
|
446
446
|
)
|
447
447
|
max = min + table.window_size
|
448
448
|
now = timestamp
|
449
|
-
min
|
449
|
+
min.to_i >= now.to_i ? nil : Purview::Structs::Window.new(
|
450
450
|
:min => min,
|
451
451
|
:max => max > now ? now : max
|
452
452
|
)
|
@@ -40,7 +40,7 @@ module Purview
|
|
40
40
|
table_metadata_table.enabled_at_column.name,
|
41
41
|
null_value,
|
42
42
|
table_metadata_table.last_updated_at_column.name,
|
43
|
-
quoted(Time.now
|
43
|
+
quoted(Time.now),
|
44
44
|
table_metadata_table.table_name_column.name,
|
45
45
|
quoted(table.name),
|
46
46
|
table_metadata_table.enabled_at_column.name,
|
@@ -65,7 +65,7 @@ module Purview
|
|
65
65
|
table_metadata_table.enabled_at_column.name,
|
66
66
|
quoted(timestamp),
|
67
67
|
table_metadata_table.last_updated_at_column.name,
|
68
|
-
quoted(Time.now
|
68
|
+
quoted(Time.now),
|
69
69
|
table_metadata_table.table_name_column.name,
|
70
70
|
quoted(table.name),
|
71
71
|
table_metadata_table.enabled_at_column.name,
|
@@ -104,7 +104,7 @@ module Purview
|
|
104
104
|
table_metadata_table.max_timestamp_pulled_column.name,
|
105
105
|
quoted(timestamp),
|
106
106
|
table_metadata_table.last_updated_at_column.name,
|
107
|
-
quoted(Time.now
|
107
|
+
quoted(Time.now),
|
108
108
|
table_metadata_table.table_name_column.name,
|
109
109
|
quoted(table.name),
|
110
110
|
table_metadata_table.max_timestamp_pulled_column.name,
|
@@ -137,7 +137,7 @@ module Purview
|
|
137
137
|
table_metadata_table.locked_at_column.name,
|
138
138
|
quoted(timestamp),
|
139
139
|
table_metadata_table.last_updated_at_column.name,
|
140
|
-
quoted(Time.now
|
140
|
+
quoted(Time.now),
|
141
141
|
table_metadata_table.table_name_column.name,
|
142
142
|
quoted(table.name),
|
143
143
|
table_metadata_table.locked_at_column.name,
|
@@ -162,7 +162,7 @@ module Purview
|
|
162
162
|
column.name,
|
163
163
|
quoted(value),
|
164
164
|
table_metadata_table.last_updated_at_column.name,
|
165
|
-
quoted(Time.now
|
165
|
+
quoted(Time.now),
|
166
166
|
table_metadata_table.table_name_column.name,
|
167
167
|
quoted(table.name),
|
168
168
|
]
|
@@ -181,7 +181,7 @@ module Purview
|
|
181
181
|
table_metadata_table.locked_at_column.name,
|
182
182
|
null_value,
|
183
183
|
table_metadata_table.last_updated_at_column.name,
|
184
|
-
quoted(Time.now
|
184
|
+
quoted(Time.now),
|
185
185
|
table_metadata_table.table_name_column.name,
|
186
186
|
quoted(table.name),
|
187
187
|
table_metadata_table.locked_at_column.name,
|
@@ -44,7 +44,7 @@ module Purview
|
|
44
44
|
table_metadata_table.enabled_at_column.name,
|
45
45
|
null_value,
|
46
46
|
table_metadata_table.last_updated_at_column.name,
|
47
|
-
quoted(Time.now
|
47
|
+
quoted(Time.now),
|
48
48
|
table_metadata_table.table_name_column.name,
|
49
49
|
quoted(table.name),
|
50
50
|
table_metadata_table.enabled_at_column.name,
|
@@ -69,7 +69,7 @@ module Purview
|
|
69
69
|
table_metadata_table.enabled_at_column.name,
|
70
70
|
quoted(timestamp),
|
71
71
|
table_metadata_table.last_updated_at_column.name,
|
72
|
-
quoted(Time.now
|
72
|
+
quoted(Time.now),
|
73
73
|
table_metadata_table.table_name_column.name,
|
74
74
|
quoted(table.name),
|
75
75
|
table_metadata_table.enabled_at_column.name,
|
@@ -104,7 +104,7 @@ module Purview
|
|
104
104
|
table_metadata_table.max_timestamp_pulled_column.name,
|
105
105
|
quoted(timestamp),
|
106
106
|
table_metadata_table.last_updated_at_column.name,
|
107
|
-
quoted(Time.now
|
107
|
+
quoted(Time.now),
|
108
108
|
table_metadata_table.table_name_column.name,
|
109
109
|
quoted(table.name),
|
110
110
|
table_metadata_table.max_timestamp_pulled_column.name,
|
@@ -130,7 +130,7 @@ module Purview
|
|
130
130
|
table_metadata_table.locked_at_column.name,
|
131
131
|
quoted(timestamp),
|
132
132
|
table_metadata_table.last_updated_at_column.name,
|
133
|
-
quoted(Time.now
|
133
|
+
quoted(Time.now),
|
134
134
|
table_metadata_table.table_name_column.name,
|
135
135
|
quoted(table.name),
|
136
136
|
table_metadata_table.locked_at_column.name,
|
@@ -155,7 +155,7 @@ module Purview
|
|
155
155
|
column.name,
|
156
156
|
quoted(value),
|
157
157
|
table_metadata_table.last_updated_at_column.name,
|
158
|
-
quoted(Time.now
|
158
|
+
quoted(Time.now),
|
159
159
|
table_metadata_table.table_name_column.name,
|
160
160
|
quoted(table.name),
|
161
161
|
]
|
@@ -174,7 +174,7 @@ module Purview
|
|
174
174
|
table_metadata_table.locked_at_column.name,
|
175
175
|
null_value,
|
176
176
|
table_metadata_table.last_updated_at_column.name,
|
177
|
-
quoted(Time.now
|
177
|
+
quoted(Time.now),
|
178
178
|
table_metadata_table.table_name_column.name,
|
179
179
|
quoted(table.name),
|
180
180
|
table_metadata_table.locked_at_column.name,
|
@@ -40,7 +40,7 @@ module Purview
|
|
40
40
|
table_metadata_table.enabled_at_column.name,
|
41
41
|
null_value,
|
42
42
|
table_metadata_table.last_updated_at_column.name,
|
43
|
-
quoted(Time.now
|
43
|
+
quoted(Time.now),
|
44
44
|
table_metadata_table.table_name_column.name,
|
45
45
|
quoted(table.name),
|
46
46
|
table_metadata_table.enabled_at_column.name,
|
@@ -65,7 +65,7 @@ module Purview
|
|
65
65
|
table_metadata_table.enabled_at_column.name,
|
66
66
|
quoted(timestamp),
|
67
67
|
table_metadata_table.last_updated_at_column.name,
|
68
|
-
quoted(Time.now
|
68
|
+
quoted(Time.now),
|
69
69
|
table_metadata_table.table_name_column.name,
|
70
70
|
quoted(table.name),
|
71
71
|
table_metadata_table.enabled_at_column.name,
|
@@ -104,7 +104,7 @@ module Purview
|
|
104
104
|
table_metadata_table.max_timestamp_pulled_column.name,
|
105
105
|
quoted(timestamp),
|
106
106
|
table_metadata_table.last_updated_at_column.name,
|
107
|
-
quoted(Time.now
|
107
|
+
quoted(Time.now),
|
108
108
|
table_metadata_table.table_name_column.name,
|
109
109
|
quoted(table.name),
|
110
110
|
table_metadata_table.max_timestamp_pulled_column.name,
|
@@ -137,7 +137,7 @@ module Purview
|
|
137
137
|
table_metadata_table.locked_at_column.name,
|
138
138
|
quoted(timestamp),
|
139
139
|
table_metadata_table.last_updated_at_column.name,
|
140
|
-
quoted(Time.now
|
140
|
+
quoted(Time.now),
|
141
141
|
table_metadata_table.table_name_column.name,
|
142
142
|
quoted(table.name),
|
143
143
|
table_metadata_table.locked_at_column.name,
|
@@ -162,7 +162,7 @@ module Purview
|
|
162
162
|
column.name,
|
163
163
|
quoted(value),
|
164
164
|
table_metadata_table.last_updated_at_column.name,
|
165
|
-
quoted(Time.now
|
165
|
+
quoted(Time.now),
|
166
166
|
table_metadata_table.table_name_column.name,
|
167
167
|
quoted(table.name),
|
168
168
|
]
|
@@ -181,7 +181,7 @@ module Purview
|
|
181
181
|
table_metadata_table.locked_at_column.name,
|
182
182
|
null_value,
|
183
183
|
table_metadata_table.last_updated_at_column.name,
|
184
|
-
quoted(Time.now
|
184
|
+
quoted(Time.now),
|
185
185
|
table_metadata_table.table_name_column.name,
|
186
186
|
quoted(table.name),
|
187
187
|
table_metadata_table.locked_at_column.name,
|
@@ -40,7 +40,7 @@ module Purview
|
|
40
40
|
table_metadata_table.enabled_at_column.name,
|
41
41
|
null_value,
|
42
42
|
table_metadata_table.last_updated_at_column.name,
|
43
|
-
quoted(Time.now
|
43
|
+
quoted(Time.now),
|
44
44
|
table_metadata_table.table_name_column.name,
|
45
45
|
quoted(table.name),
|
46
46
|
table_metadata_table.enabled_at_column.name,
|
@@ -65,7 +65,7 @@ module Purview
|
|
65
65
|
table_metadata_table.enabled_at_column.name,
|
66
66
|
quoted(timestamp),
|
67
67
|
table_metadata_table.last_updated_at_column.name,
|
68
|
-
quoted(Time.now
|
68
|
+
quoted(Time.now),
|
69
69
|
table_metadata_table.table_name_column.name,
|
70
70
|
quoted(table.name),
|
71
71
|
table_metadata_table.enabled_at_column.name,
|
@@ -104,7 +104,7 @@ module Purview
|
|
104
104
|
table_metadata_table.max_timestamp_pulled_column.name,
|
105
105
|
quoted(timestamp),
|
106
106
|
table_metadata_table.last_updated_at_column.name,
|
107
|
-
quoted(Time.now
|
107
|
+
quoted(Time.now),
|
108
108
|
table_metadata_table.table_name_column.name,
|
109
109
|
quoted(table.name),
|
110
110
|
table_metadata_table.max_timestamp_pulled_column.name,
|
@@ -130,7 +130,7 @@ module Purview
|
|
130
130
|
table_metadata_table.locked_at_column.name,
|
131
131
|
quoted(timestamp),
|
132
132
|
table_metadata_table.last_updated_at_column.name,
|
133
|
-
quoted(Time.now
|
133
|
+
quoted(Time.now),
|
134
134
|
table_metadata_table.table_name_column.name,
|
135
135
|
quoted(table.name),
|
136
136
|
table_metadata_table.locked_at_column.name,
|
@@ -155,7 +155,7 @@ module Purview
|
|
155
155
|
column.name,
|
156
156
|
quoted(value),
|
157
157
|
table_metadata_table.last_updated_at_column.name,
|
158
|
-
quoted(Time.now
|
158
|
+
quoted(Time.now),
|
159
159
|
table_metadata_table.table_name_column.name,
|
160
160
|
quoted(table.name),
|
161
161
|
]
|
@@ -174,7 +174,7 @@ module Purview
|
|
174
174
|
table_metadata_table.locked_at_column.name,
|
175
175
|
null_value,
|
176
176
|
table_metadata_table.last_updated_at_column.name,
|
177
|
-
quoted(Time.now
|
177
|
+
quoted(Time.now),
|
178
178
|
table_metadata_table.table_name_column.name,
|
179
179
|
quoted(table.name),
|
180
180
|
table_metadata_table.locked_at_column.name,
|
data/lib/purview/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: purview
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.8.
|
4
|
+
version: 1.8.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jonathan W. Zaleski
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-01-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pry
|