git-fit 0.9.4 → 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: 38b4dcf2b5f009d324d3bd96d2e036b47cc4dd5df919d0a95cdd6351681f08f8
4
- data.tar.gz: e0fac2d9763759c13f94e85411d75b09b94916b0fe4c1136916ce82c501d5f55
3
+ metadata.gz: 28eab6fd810e6ed7b29e2b04ae7c08dc37ff619aa37b87e21e73f139fc3b147c
4
+ data.tar.gz: 6e4554743b020986de0803ba39f86044f3f607f8efbf81e57dd51ff174eb1080
5
5
  SHA512:
6
- metadata.gz: bbedf83ae54be880b7fd1113b656c17887843726a7d99540933339027be070b02e11dd9214fe5e8349e9eb78e99dd0af2587a05607aa2b0b37f08f759dfeb30a
7
- data.tar.gz: 757bd45bf3e58e19d2ddaa0de24e8518741eadc5ac2ca6e670b66339c07867d9f3888508b66dcf2f755ad2d283c13d8ae9ce2da59d197de2eb69e57bf6fa0893
6
+ metadata.gz: 432140f8a5aeff892215acacde7ffa4184c9bcc156754234f676a407b9466aef84b8df70987b380339ca2e2ad33c96882f9a5508f7929e1ccab184de30bef9de
7
+ data.tar.gz: 1bf2814bc40fd83b253aa4424d371c3fcb0318dcc655ae34974bb284e45ad737d9f8eb00e130f14203ea3713b6869859e287a2535f5100f03d9a7603d68fa82e
@@ -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.4'
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.4
4
+ version: 0.9.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lax