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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bfd4e081bfeda7d097a5a5eee6ccf28baf0a9b3878968d74c9a604013d0b55a6
4
- data.tar.gz: 003ebd2ffe2b1220c7f43a4875043cb5500aa1b7a6327b84c9be10f04e0e8d40
3
+ metadata.gz: b74c4a7782c1ab31173e628b3e5ccb8743fe21f29d6f48d739b0e3cc2dfda22e
4
+ data.tar.gz: 7ea44638b08f6da12c0a5386f3d852600f50336ce0bb57347114804770f75691
5
5
  SHA512:
6
- metadata.gz: 3d786fb4acf8d0b03e65262209def310ca25b92646847f6e96791e6491e9b159ab11db7fa35f785f6782fbc0b9e3daebb625e2353fce2422f7fc79aed7a4d6bc
7
- data.tar.gz: 87771745b9df2160966299f1d73eb568b46080ed217a1952e1dd938fff7758432f2cc6f449036d24951660b405e18083f1adac26d00243a0fab9003a96eb569d
6
+ metadata.gz: efb23677c731a54b0382c3095dc9bb5f98a97365c1daf031bbc8c20335e7bd146b76b3a50486971e48192e7540bc0ae1b09f232590a590257203ae3560396767
7
+ data.tar.gz: cba40b71a7e8c0b17a286ecd3db3724bff290fdd79b3fdf55ab89967f6af14228911c0e6928a949b8dd899acd6ad396b8a21fb03162a8561247c97b1200bac29
@@ -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
- # spec.metadata["allowed_push_host"] = "TODO: Set to 'http://mygemserver.com'"
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/blob/master/CHANGELOG.md"
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
- # Entrypoint for this Extractor. Called by a Runner. Expects a series of records to be yielded
20
- def extract
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
@@ -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)
@@ -1,5 +1,5 @@
1
1
  module Chronicle
2
2
  module ETL
3
- VERSION = "0.3.0"
3
+ VERSION = "0.3.1"
4
4
  end
5
5
  end
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.0
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-07 00:00:00.000000000 Z
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/blob/master/CHANGELOG.md
311
+ changelog_uri: https://github.com/chronicle-app/chronicle-etl/releases
311
312
  post_install_message:
312
313
  rdoc_options: []
313
314
  require_paths: