git-fit 0.8.8 → 0.8.9
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 +4 -4
- data/lib/git_fit/cli/import_cli.rb +0 -4
- data/lib/git_fit/cli/sync.rb +14 -14
- data/lib/git_fit/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9aedbd56b7a0006cad60386fa55b030857cef43497e0d798bb334f6ddaf968fb
|
|
4
|
+
data.tar.gz: 526692de645f4cee05b8b61a3bc3018efbaad202c2d342b7376e7a90e1b1f237
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 10c0908e780b6c8f01cc32af8ed20bcc344f197edcf2daeb2f799f99cad78433a7159d15e0b7dffe51bc654fd76c75ebf6e29152a9e8500aa760fb4a85d10b84
|
|
7
|
+
data.tar.gz: e36c0f4b019e587640e220704cc82a05eb4533db5314fabfc9ea32771d0493c198df90fdf8b490ee1293924a39630dc8a8721abde3e4ebbe8233f8e722325f2e
|
|
@@ -82,7 +82,6 @@ module GitFit
|
|
|
82
82
|
else
|
|
83
83
|
say_status :done, "gpx: #{count} activities", :green
|
|
84
84
|
end
|
|
85
|
-
count
|
|
86
85
|
checkpoint_db(db) if options[:checkpoint]
|
|
87
86
|
rescue StandardError => e
|
|
88
87
|
say_status :error, "gpx: #{e.message}", :red
|
|
@@ -115,7 +114,6 @@ module GitFit
|
|
|
115
114
|
else
|
|
116
115
|
say_status :done, "tcx: #{count} activities", :green
|
|
117
116
|
end
|
|
118
|
-
count
|
|
119
117
|
checkpoint_db(db) if options[:checkpoint]
|
|
120
118
|
rescue StandardError => e
|
|
121
119
|
say_status :error, "tcx: #{e.message}", :red
|
|
@@ -148,7 +146,6 @@ module GitFit
|
|
|
148
146
|
else
|
|
149
147
|
say_status :done, "fit: #{count} activities", :green
|
|
150
148
|
end
|
|
151
|
-
count
|
|
152
149
|
checkpoint_db(db) if options[:checkpoint]
|
|
153
150
|
rescue StandardError => e
|
|
154
151
|
say_status :error, "fit: #{e.message}", :red
|
|
@@ -180,7 +177,6 @@ module GitFit
|
|
|
180
177
|
else
|
|
181
178
|
say_status :done, "apple_health: #{count} activities", :green
|
|
182
179
|
end
|
|
183
|
-
count
|
|
184
180
|
checkpoint_db(db) if options[:checkpoint]
|
|
185
181
|
rescue StandardError => e
|
|
186
182
|
say_status :error, "apple_health: #{e.message}", :red
|
data/lib/git_fit/cli/sync.rb
CHANGED
|
@@ -22,21 +22,21 @@ module GitFit
|
|
|
22
22
|
(builtin + configured).uniq
|
|
23
23
|
end
|
|
24
24
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
25
|
+
runner = GitFit::Sync::Runner.new(
|
|
26
|
+
sources: sources,
|
|
27
|
+
db: db,
|
|
28
|
+
config: git_fit_config,
|
|
29
|
+
activity_filter: filter,
|
|
30
|
+
privacy: privacy,
|
|
31
|
+
num_workers: git_fit_config.dig('sync', 'workers') || 3,
|
|
32
|
+
time_budget: git_fit_config.dig('sync', 'time_budget'),
|
|
33
|
+
total_timeout: git_fit_config.dig('sync', 'total_timeout')
|
|
34
|
+
)
|
|
35
|
+
runner.run
|
|
36
|
+
checkpoint_db(db) if options[:checkpoint]
|
|
37
|
+
rescue StandardError => e
|
|
38
38
|
say_status :error, e.message, :red
|
|
39
|
-
|
|
39
|
+
end
|
|
40
40
|
end
|
|
41
41
|
end
|
|
42
42
|
end
|
data/lib/git_fit/version.rb
CHANGED