git-fit 0.9.0 → 0.9.1

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: 0f2c48812a658488f860a9e483756ecd635b078b8f94deaf0cc20e31ab5caef9
4
- data.tar.gz: 3a1b15b292e344df1a5a503fd3f2160e0e66ca5f3293c7449144164ca84ce53a
3
+ metadata.gz: 9d41bda761819e642af330a0337bdcd8fab20b805ab3a4a8ec05480c0dbab27b
4
+ data.tar.gz: 5cbc8693d1037c6d85ffbfd36f6a7550209022eff7af5555acb5a1c821997093
5
5
  SHA512:
6
- metadata.gz: 0a6e1dec451ae23ddfc9333258f25c528db2d467dcd2b4dfd8f04ada2decaaa9d81c9d3094010c264c82a51c9e001bac7d33a761c75865dafadcc4207ddbe003
7
- data.tar.gz: 4157de7684b83443b6b825af613e2ed0e74b8e4c2bac9378fe0edf0f3329a465ca0e1e80c540fed437d1f88825232b96a480e2fd8bbd6c210e6bad5d0319e7c4
6
+ metadata.gz: 1caef7f5f1bbca91477dac51d0072103f1ffc501eebeb9793064b78063b5783ac6cf10043a7d5efc7e9b752fe2f39941c7159c6075905a6e43290b5b62417b30
7
+ data.tar.gz: 3896c5419896bebeb39d54e9dc6c88fd5590cfe39f8a0b1b45012216230f7b312e212dd15bd3315b22064807c2953b02d7f18d922c70d84344d08bd2c3e83037
@@ -11,7 +11,7 @@ module GitFit
11
11
  option :time, type: :numeric, aliases: '-t', desc: 'Time budget in seconds'
12
12
  option :"dry-run", type: :boolean, desc: "Don't write to DB"
13
13
  option :checkpoint, type: :boolean, desc: 'Run WAL checkpoint after detect'
14
- option :"cache-dir", type: :string, desc: "Geo cache directory (empty = no cache)", default: "data/cache"
14
+ option :"cache-dir", type: :string, desc: "Geo cache directory (empty = no cache)", default: ""
15
15
  def detect
16
16
  config = GitFit::Config.new
17
17
  conn = GitFit::DB::Connection.new(config.db_path)
@@ -72,7 +72,7 @@ module GitFit
72
72
 
73
73
  streams = fetch_streams(act_id, token)
74
74
 
75
- write_source_archive({ source: 'strava', detail: detail, streams: streams }, act_id)
75
+ write_source_archive({ source: 'strava', detail: detail, streams: streams }, act_id, 'api.json')
76
76
 
77
77
  l2 = streams_to_l2(detail, streams)
78
78
  write_standardized_json(l2, act_id) if l2
@@ -192,7 +192,7 @@ module GitFit
192
192
  end
193
193
 
194
194
  def raw_path(platform_id)
195
- File.join(raw_dir, "#{platform_id}.json")
195
+ File.join(raw_dir, "#{platform_id}.api.json")
196
196
  end
197
197
 
198
198
  def existing_run_ids
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module GitFit
4
- VERSION = '0.9.0'
4
+ VERSION = '0.9.1'
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.0
4
+ version: 0.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lax