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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7533b5ff4d6b701120a8de5ecc1ab772fa22ad8c743c769e2de6c4cec270b87b
4
- data.tar.gz: 8900f60ff3f83e0e8db19ede7b4f2e1d04e8ca0bff1396630aa20f31d672c5f9
3
+ metadata.gz: efcff203083c8a055aee25e8d03d7e35cf60ffc50f2c7fae19239e3cc403fe9f
4
+ data.tar.gz: fa1bbca923d8ae4e6d923ff459e67876ff937fb5274aed03bb56e9bfa1cf4246
5
5
  SHA512:
6
- metadata.gz: abf2910ee569e1d7b5658b637c58784cf2bae16c2469cf097d721e0eb272253f6ae35d3d3890ec49093bd11ac35e5b4f4246ea8c733482b825505eb80c79b639
7
- data.tar.gz: 241dfa54f70658ea33cc52d7d6c1a16e3d90969c0a17ea20f097017f2822bc29de9a3031e03ba9b71928d2878f1abada9d447fc6de03ac4e47fa16090871d8fc
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.utc`
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.utc)
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.utc)
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.utc)
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.utc)
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.utc)
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.utc)
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 > now ? nil : Purview::Structs::Window.new(
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.utc),
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.utc),
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.utc),
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.utc),
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.utc),
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.utc),
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.utc),
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.utc),
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.utc),
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.utc),
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.utc),
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.utc),
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.utc),
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.utc),
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.utc),
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.utc),
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.utc),
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.utc),
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.utc),
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.utc),
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.utc),
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.utc),
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.utc),
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.utc),
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,
@@ -22,7 +22,7 @@ module Purview
22
22
  end
23
23
 
24
24
  def timestamp
25
- Time.now.utc
25
+ Time.now
26
26
  end
27
27
 
28
28
  def with_timestamp
@@ -1,3 +1,3 @@
1
1
  module Purview
2
- VERSION = '1.8.1'
2
+ VERSION = '1.8.2'
3
3
  end
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.1
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: 2018-12-16 00:00:00.000000000 Z
11
+ date: 2019-01-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry