fastlane-plugin-hours 0.2.0 → 0.2.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 +4 -4
- data/README.md +8 -5
- data/lib/fastlane/plugin/hours/actions/hours_action.rb +4 -4
- data/lib/fastlane/plugin/hours/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 04f4fa5ea64732530b259de1094835dd510420a0
|
4
|
+
data.tar.gz: 3dc9d6c0e1bd00d25a4ca2b3b3b750cbb1f14555
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b87339188d5238d18f37c13ff5cc5874584a3f3ca4e8a2223b3bc5bb9cdcabf3424e1e6628eb2ee6a22ed0ad63d3162c1ec7a77ef1cf898030a8ce926be32ac6
|
7
|
+
data.tar.gz: 1e15ae36df209295df238584b30b4cf583aac6f047fc5da3a37e8b22df1826329075f3dcb7ca33038970070510aedb3d8f5345d8103c103941e2e72010fa2202
|
data/README.md
CHANGED
@@ -12,16 +12,19 @@ fastlane add_plugin hours
|
|
12
12
|
|
13
13
|
## About hours
|
14
14
|
|
15
|
-
Record total time saved by fastlane
|
16
|
-
|
17
|
-
**Note to author:** Add a more detailed description about this plugin here. If your plugin contains multiple actions, make sure to mention them here.
|
15
|
+
Record total time saved by fastlane. It maintains a local file called `save_duration.txt` in the `fastlane` directory.
|
18
16
|
|
19
17
|
## Example
|
20
18
|
|
21
19
|
Check out the [example `Fastfile`](fastlane/Fastfile) to see how to use this plugin. Try it by cloning the repo, running `fastlane install_plugins` and `bundle exec fastlane test`.
|
22
20
|
|
23
|
-
|
24
|
-
|
21
|
+
```ruby
|
22
|
+
lane :your_lane do
|
23
|
+
hours(start_timing: true)
|
24
|
+
# your lane
|
25
|
+
hours(measure_timing: true)
|
26
|
+
end
|
27
|
+
```
|
25
28
|
## Run tests for this plugin
|
26
29
|
|
27
30
|
To run both the tests, and code style validation, run
|
@@ -27,16 +27,16 @@ module Fastlane
|
|
27
27
|
end
|
28
28
|
duration_minutes = (duration / 60.0).round
|
29
29
|
if duration_minutes == 0
|
30
|
-
UI.success "Total time saved #{duration.round} seconds"
|
30
|
+
UI.success "Total time saved #{duration.round} seconds till now 🎉"
|
31
31
|
elsif duration_minutes >= 60
|
32
32
|
duration_hours = (duration_minutes / 60.0).round
|
33
33
|
if duration_hours == 1
|
34
|
-
UI.success "Total time saved #{duration_hours} hour"
|
34
|
+
UI.success "Total time saved #{duration_hours} hour till now 🎉"
|
35
35
|
else
|
36
|
-
UI.success "Total time saved #{duration_hours} hours"
|
36
|
+
UI.success "Total time saved #{duration_hours} hours till now 🎉"
|
37
37
|
end
|
38
38
|
else
|
39
|
-
UI.success "Total time saved #{duration_minutes} minutes"
|
39
|
+
UI.success "Total time saved #{duration_minutes} minutes till now 🎉"
|
40
40
|
end
|
41
41
|
|
42
42
|
end
|