-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #73 from chronicle-app/use-chronicle-core
Use new Chronicle Schema work from chronicle-core
- Loading branch information
Showing
98 changed files
with
1,603 additions
and
1,261 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,2 @@ | ||
AllCops: | ||
EnabledByDefault: true | ||
TargetRubyVersion: 2.7 | ||
|
||
Style/FrozenStringLiteralComment: | ||
SafeAutoCorrect: true | ||
|
||
Style/StringLiterals: | ||
Enabled: false | ||
|
||
Layout/MultilineAssignmentLayout: | ||
Enabled: false | ||
|
||
Layout/MultilineMethodCallIndentation: | ||
EnforcedStyle: indented | ||
|
||
Layout/RedundantLineBreak: | ||
Enabled: false | ||
|
||
Style/MethodCallWithArgsParentheses: | ||
Enabled: false | ||
|
||
Style/MethodCalledOnDoEndBlock: | ||
Exclude: | ||
- 'spec/**/*' | ||
|
||
Style/OpenStructUse: | ||
Enabled: false | ||
|
||
Style/Copyright: | ||
Enabled: false | ||
|
||
Style/MissingElse: | ||
Enabled: false | ||
|
||
Style/SymbolArray: | ||
EnforcedStyle: brackets | ||
|
||
Style/WordArray: | ||
EnforcedStyle: brackets | ||
|
||
Lint/ConstantResolution: | ||
Enabled: false | ||
|
||
inherit_gem: | ||
chronicle-core: .rubocop.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
source "https://rubygems.org" | ||
source 'https://rubygems.org' | ||
|
||
git_source(:github) {|repo_name| "https://github.com/#{repo_name}" } | ||
git_source(:github) { |repo_name| "https://github.com/#{repo_name}" } | ||
|
||
# Specify your gem's dependencies in chronicle-etl.gemspec | ||
gemspec |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
guard :rspec, cmd: "bundle exec rspec" do | ||
require "guard/rspec/dsl" | ||
guard :rspec, cmd: 'bundle exec rspec' do | ||
require 'guard/rspec/dsl' | ||
|
||
watch(%r{^spec/.+_spec\.rb$}) | ||
watch(%r{^lib/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" } | ||
watch('spec/spec_helper.rb') { "spec" } | ||
watch('spec/spec_helper.rb') { 'spec' } | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,25 @@ | ||
#!/usr/bin/env ruby | ||
|
||
require "bundler/setup" | ||
require "chronicle/etl" | ||
require 'bundler/setup' | ||
require 'chronicle/etl' | ||
|
||
# You can add fixtures and/or initialization code here to make experimenting | ||
# with your gem easier. You can also use a different console, if you like. | ||
|
||
# (If you use this, don't forget to add pry to your Gemfile!) | ||
require "pry" | ||
require 'pry' | ||
Pry.start | ||
|
||
def reload!(print = true) | ||
puts 'Reloading ...' if print | ||
# Main project directory. | ||
root_dir = File.expand_path('..', __dir__) | ||
# Directories within the project that should be reloaded. | ||
reload_dirs = %w{lib} | ||
reload_dirs = %w[lib] | ||
# Loop through and reload every file in all relevant project directories. | ||
reload_dirs.each do |dir| | ||
Dir.glob("#{root_dir}/#{dir}/**/*.rb").each { |f| load(f) } | ||
end | ||
# Return true when complete. | ||
true | ||
end | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,73 +1,73 @@ | ||
# frozen_string_literal: true | ||
|
||
lib = File.expand_path("../lib", __FILE__) | ||
lib = File.expand_path('lib', __dir__) | ||
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) | ||
require "chronicle/etl/version" | ||
require 'chronicle/etl/version' | ||
|
||
Gem::Specification.new do |spec| | ||
spec.name = "chronicle-etl" | ||
spec.name = 'chronicle-etl' | ||
spec.version = Chronicle::ETL::VERSION | ||
spec.authors = ["Andrew Louis"] | ||
spec.email = ["[email protected]"] | ||
spec.authors = ['Andrew Louis'] | ||
spec.email = ['[email protected]'] | ||
|
||
spec.summary = "ETL tool for personal data" | ||
spec.description = "Chronicle-ETL allows you to extract personal data from a variety of services, transformer it, and load it." | ||
spec.homepage = "https://github.com/chronicle-app" | ||
spec.license = "MIT" | ||
spec.summary = 'ETL tool for personal data' | ||
spec.description = 'Chronicle-ETL allows you to extract personal data from a variety of services, transformer it, and load it.' | ||
spec.homepage = 'https://github.com/chronicle-app' | ||
spec.license = 'MIT' | ||
|
||
# Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host' | ||
# to allow pushing to a single host or delete this section to allow pushing to any host. | ||
if spec.respond_to?(:metadata) | ||
spec.metadata['allowed_push_host'] = "https://rubygems.org" | ||
spec.metadata['allowed_push_host'] = 'https://rubygems.org' | ||
|
||
spec.metadata["homepage_uri"] = spec.homepage | ||
spec.metadata["source_code_uri"] = "https://github.com/chronicle-app/chronicle-etl" | ||
spec.metadata["changelog_uri"] = "https://github.com/chronicle-app/chronicle-etl/releases" | ||
spec.metadata['homepage_uri'] = spec.homepage | ||
spec.metadata['source_code_uri'] = 'https://github.com/chronicle-app/chronicle-etl' | ||
spec.metadata['changelog_uri'] = 'https://github.com/chronicle-app/chronicle-etl/releases' | ||
else | ||
raise "RubyGems 2.0 or newer is required to protect against " \ | ||
"public gem pushes." | ||
raise 'RubyGems 2.0 or newer is required to protect against ' \ | ||
'public gem pushes.' | ||
end | ||
|
||
# Specify which files should be added to the gem when it is released. | ||
# The `git ls-files -z` loads the files in the RubyGem that have been added into git. | ||
spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do | ||
spec.files = Dir.chdir(File.expand_path(__dir__)) do | ||
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) } | ||
end | ||
spec.bindir = "exe" | ||
spec.bindir = 'exe' | ||
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) } | ||
spec.require_paths = ["lib"] | ||
spec.required_ruby_version = ">= 2.7" | ||
spec.require_paths = ['lib'] | ||
spec.required_ruby_version = '>= 3.1' | ||
spec.metadata['rubygems_mfa_required'] = 'true' | ||
|
||
spec.add_dependency "activesupport", "~> 7.0" | ||
spec.add_dependency "chronicle-core", "~> 0.2.2" | ||
spec.add_dependency "chronic_duration", "~> 0.10.6" | ||
spec.add_dependency "colorize", "~> 0.8.1" | ||
spec.add_dependency "gems", ">= 1" | ||
spec.add_dependency "launchy" | ||
spec.add_dependency "marcel", "~> 1.0.2" | ||
spec.add_dependency "mini_exiftool", "~> 2.10" | ||
spec.add_dependency "nokogiri", "~> 1.13" | ||
spec.add_dependency "omniauth", "~> 2" | ||
spec.add_dependency "sequel", "~> 5.35" | ||
spec.add_dependency "sinatra", "~> 2" | ||
spec.add_dependency "sqlite3", "~> 1.4" | ||
spec.add_dependency "thor", "~> 1.2" | ||
spec.add_dependency "thor-hollaback", "~> 0.2" | ||
spec.add_dependency "tty-progressbar", "~> 0.17" | ||
spec.add_dependency "tty-prompt", "~> 0.23" | ||
spec.add_dependency "tty-spinner" | ||
spec.add_dependency "tty-table", "~> 0.11" | ||
spec.add_dependency "xdg", ">= 4.0" | ||
spec.add_dependency 'activesupport', '~> 7.0' | ||
spec.add_dependency 'chronic_duration', '~> 0.10.6' | ||
spec.add_dependency 'chronicle-core', '~> 0.3' | ||
spec.add_dependency 'colorize', '~> 0.8.1' | ||
spec.add_dependency 'gems', '>= 1' | ||
spec.add_dependency 'launchy' | ||
spec.add_dependency 'marcel', '~> 1.0.2' | ||
spec.add_dependency 'omniauth', '~> 2' | ||
spec.add_dependency 'sequel', '~> 5.35' | ||
spec.add_dependency 'sinatra', '~> 2' | ||
spec.add_dependency 'sqlite3', '~> 1.4' | ||
spec.add_dependency 'thor', '~> 1.2' | ||
spec.add_dependency 'thor-hollaback', '~> 0.2' | ||
spec.add_dependency 'tty-progressbar', '~> 0.17' | ||
spec.add_dependency 'tty-prompt', '~> 0.23' | ||
spec.add_dependency 'tty-spinner' | ||
spec.add_dependency 'tty-table', '~> 0.12' | ||
spec.add_dependency 'xdg', '>= 4.0' | ||
|
||
spec.add_development_dependency "bundler", "~> 2.1" | ||
spec.add_development_dependency "fakefs", "~> 1.4" | ||
spec.add_development_dependency "guard-rspec", "~> 4.7.3" | ||
spec.add_development_dependency "pry-byebug", "~> 3.9" | ||
spec.add_development_dependency "rake", "~> 13.0" | ||
spec.add_development_dependency "rspec", "~> 3.9" | ||
spec.add_development_dependency "rubocop", "~> 1.25.1" | ||
spec.add_development_dependency "simplecov", "~> 0.21" | ||
spec.add_development_dependency "vcr", "~> 6.1" | ||
spec.add_development_dependency "webmock", "~> 3" | ||
spec.add_development_dependency "webrick", "~> 1.7" | ||
spec.add_development_dependency "yard", "~> 0.9.7" | ||
spec.add_development_dependency 'bundler', '~> 2.1' | ||
spec.add_development_dependency 'fakefs', '~> 1.4' | ||
spec.add_development_dependency 'guard-rspec', '~> 4.7.3' | ||
spec.add_development_dependency 'pry-byebug', '~> 3.9' | ||
spec.add_development_dependency 'rake', '~> 13.0' | ||
spec.add_development_dependency 'rspec', '~> 3.9' | ||
spec.add_development_dependency 'rubocop', '~> 1.57' | ||
spec.add_development_dependency 'simplecov', '~> 0.21' | ||
spec.add_development_dependency 'vcr', '~> 6.1' | ||
spec.add_development_dependency 'webmock', '~> 3' | ||
spec.add_development_dependency 'webrick', '~> 1.7' | ||
spec.add_development_dependency 'yard', '~> 0.9.7' | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
#!/usr/bin/env ruby | ||
|
||
require "chronicle/etl/cli" | ||
require 'chronicle/etl/cli' | ||
|
||
Chronicle::ETL::CLI::Main.start(ARGV) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.