git-fit 0.9.3 → 0.9.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8a78b1c8fb26ac34a8e0787486abf5778e7dd55ed9e93d7ffbf0232a14e3262c
4
- data.tar.gz: e4096a9da8f48d42233ec09ee3a1e95559c0b7666d2150fc63e4e5c6ad325c2e
3
+ metadata.gz: 28eab6fd810e6ed7b29e2b04ae7c08dc37ff619aa37b87e21e73f139fc3b147c
4
+ data.tar.gz: 6e4554743b020986de0803ba39f86044f3f607f8efbf81e57dd51ff174eb1080
5
5
  SHA512:
6
- metadata.gz: fe156a3b1276d4eeb1ebbee6382640a3e06707114bfb43a1c2170ffb6bd5252140250b6b532daaf500e2553c676dc5340bec58d36ff8e27f77926511fe170f79
7
- data.tar.gz: 0a24ea2027d9e8baf534f8d587e5aca50ea4dc0e6e78fd5e6c931e0c87b6752dcb5a0e05e55c96272f9994cf5ca05cf95d29e9c8fa7610169161401240000f24
6
+ metadata.gz: 432140f8a5aeff892215acacde7ffa4184c9bcc156754234f676a407b9466aef84b8df70987b380339ca2e2ad33c96882f9a5508f7929e1ccab184de30bef9de
7
+ data.tar.gz: 1bf2814bc40fd83b253aa4424d371c3fcb0318dcc655ae34974bb284e45ad737d9f8eb00e130f14203ea3713b6869859e287a2535f5100f03d9a7603d68fa82e
@@ -12,14 +12,7 @@ module GitFit
12
12
  sources = if source
13
13
  [source]
14
14
  else
15
- configured = (git_fit_config['sync'] || {}).select { |_k, v| v.is_a?(Hash) }.keys
16
- builtin = GitFit::Sync::Base.adapters
17
- .map { |c| c.config_key }
18
- if ENV['GIT_FIT_ENVIRONMENT'] == 'testing'
19
- builtin += GitFit::Sync::Base.test_adapters
20
- .map { |c| c.config_key }
21
- end
22
- (builtin + configured).uniq
15
+ (git_fit_config['sync'] || {}).select { |_k, v| v.is_a?(Hash) }.keys
23
16
  end
24
17
 
25
18
  runner = GitFit::Sync::Runner.new(
@@ -6,7 +6,7 @@ module GitFit
6
6
  # 三优先级: env var > YAML > DEFAULTS
7
7
  class Config
8
8
  DEFAULTS = {
9
- 'database' => { 'path' => 'db/fit.sqlite3' },
9
+ 'database' => { 'path' => 'data/db/git-fit.db' },
10
10
  'sync' => {
11
11
  'workers' => 3,
12
12
  'time_budget' => nil,
@@ -6,7 +6,7 @@ module GitFit
6
6
  <<~YAML
7
7
  ---
8
8
  database:
9
- path: db/fit.sqlite3
9
+ path: data/db/git-fit.db
10
10
 
11
11
  sync:
12
12
  # workers: 3 # env: GIT_FIT_SYNC_WORKERS
@@ -22,7 +22,7 @@ module GitFit
22
22
 
23
23
  def self.install_family(family, check: false, dry_run: false)
24
24
  dir = File.join(TEMPLATE_DIR, family)
25
- db_path = ENV['GIT_FIT_DATABASE_PATH'] || 'db/fit.sqlite3'
25
+ db_path = ENV['GIT_FIT_DATABASE_PATH'] || 'data/db/git-fit.db'
26
26
  results = []
27
27
 
28
28
  Dir.glob('*.yml.erb', base: dir).sort.map do |tpl|
@@ -78,13 +78,13 @@ module GitFit
78
78
  families.flat_map { |f| install_family(f, check: check, dry_run: dry_run) }
79
79
  end
80
80
 
81
- def self.restore_action(db_path = 'db/fit.sqlite3')
81
+ def self.restore_action(db_path = 'data/db/git-fit.db')
82
82
  render('db-store/restore', db_path: db_path)
83
83
  end
84
84
 
85
85
  RESTORE_ACTION = restore_action
86
86
 
87
- def self.save_action(db_path = 'db/fit.sqlite3')
87
+ def self.save_action(db_path = 'data/db/git-fit.db')
88
88
  render('db-store/save', db_path: db_path)
89
89
  end
90
90
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module GitFit
4
- VERSION = '0.9.3'
4
+ VERSION = '0.9.5'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: git-fit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.3
4
+ version: 0.9.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lax