chronicle-etl 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/chronicle-etl.gemspec +2 -2
- data/lib/chronicle/etl/extractors/extractor.rb +7 -4
- data/lib/chronicle/etl/runner.rb +1 -0
- data/lib/chronicle/etl/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b74c4a7782c1ab31173e628b3e5ccb8743fe21f29d6f48d739b0e3cc2dfda22e
|
4
|
+
data.tar.gz: 7ea44638b08f6da12c0a5386f3d852600f50336ce0bb57347114804770f75691
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: efb23677c731a54b0382c3095dc9bb5f98a97365c1daf031bbc8c20335e7bd146b76b3a50486971e48192e7540bc0ae1b09f232590a590257203ae3560396767
|
7
|
+
data.tar.gz: cba40b71a7e8c0b17a286ecd3db3724bff290fdd79b3fdf55ab89967f6af14228911c0e6928a949b8dd899acd6ad396b8a21fb03162a8561247c97b1200bac29
|
data/chronicle-etl.gemspec
CHANGED
@@ -17,11 +17,11 @@ Gem::Specification.new do |spec|
|
|
17
17
|
# Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
|
18
18
|
# to allow pushing to a single host or delete this section to allow pushing to any host.
|
19
19
|
if spec.respond_to?(:metadata)
|
20
|
-
|
20
|
+
spec.metadata['allowed_push_host'] = "https://rubygems.org"
|
21
21
|
|
22
22
|
spec.metadata["homepage_uri"] = spec.homepage
|
23
23
|
spec.metadata["source_code_uri"] = "https://github.com/chronicle-app/chronicle-etl"
|
24
|
-
spec.metadata["changelog_uri"] = "https://github.com/chronicle-app/chronicle-etl/
|
24
|
+
spec.metadata["changelog_uri"] = "https://github.com/chronicle-app/chronicle-etl/releases"
|
25
25
|
else
|
26
26
|
raise "RubyGems 2.0 or newer is required to protect against " \
|
27
27
|
"public gem pushes."
|
@@ -16,15 +16,18 @@ module Chronicle
|
|
16
16
|
handle_continuation
|
17
17
|
end
|
18
18
|
|
19
|
-
#
|
20
|
-
def
|
21
|
-
raise NotImplementedError
|
22
|
-
end
|
19
|
+
# Hook called before #extract. Useful for gathering data, initailizing proxies, etc
|
20
|
+
def prepare; end
|
23
21
|
|
24
22
|
# An optional method to calculate how many records there are to extract. Used primarily for
|
25
23
|
# building the progress bar
|
26
24
|
def results_count; end
|
27
25
|
|
26
|
+
# Entrypoint for this Extractor. Called by a Runner. Expects a series of records to be yielded
|
27
|
+
def extract
|
28
|
+
raise NotImplementedError
|
29
|
+
end
|
30
|
+
|
28
31
|
private
|
29
32
|
|
30
33
|
def sanitize_options
|
data/lib/chronicle/etl/runner.rb
CHANGED
@@ -14,6 +14,7 @@ class Chronicle::ETL::Runner
|
|
14
14
|
@job_logger.start
|
15
15
|
loader.start
|
16
16
|
|
17
|
+
extractor.prepare
|
17
18
|
total = extractor.results_count
|
18
19
|
@progress_bar = Chronicle::ETL::Utils::ProgressBar.new(title: 'Running job', total: total)
|
19
20
|
Chronicle::ETL::Logger.attach_to_progress_bar(@progress_bar)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: chronicle-etl
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Louis
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-02-
|
11
|
+
date: 2022-02-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -305,9 +305,10 @@ homepage: https://github.com/chronicle-app
|
|
305
305
|
licenses:
|
306
306
|
- MIT
|
307
307
|
metadata:
|
308
|
+
allowed_push_host: https://rubygems.org
|
308
309
|
homepage_uri: https://github.com/chronicle-app
|
309
310
|
source_code_uri: https://github.com/chronicle-app/chronicle-etl
|
310
|
-
changelog_uri: https://github.com/chronicle-app/chronicle-etl/
|
311
|
+
changelog_uri: https://github.com/chronicle-app/chronicle-etl/releases
|
311
312
|
post_install_message:
|
312
313
|
rdoc_options: []
|
313
314
|
require_paths:
|