fastlane-plugin-hours 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7ec63815912095320d0defd0a352680e018afdb0
4
- data.tar.gz: d1d38ea66f15521f47286516d906d18e07bb3ae0
3
+ metadata.gz: 04f4fa5ea64732530b259de1094835dd510420a0
4
+ data.tar.gz: 3dc9d6c0e1bd00d25a4ca2b3b3b750cbb1f14555
5
5
  SHA512:
6
- metadata.gz: 8f21b8405585ca31f051e7369fa915b3268a647ad3db10deaff8e035dfc2b1255ffa3757329b96b7b8cccfdf21c24b923f058deb9092eb257f75aae3d315c106
7
- data.tar.gz: e88c82c47cf762e47e5dc20b191b548763532de646fc772da017221e0f04b3ed2b8314ff938c9b6a50f5b586714d37904ce8a6bb64de006cd6d425f1f1101a8a
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
- **Note to author:** Please set up a sample project to make it easy for users to explore what your plugin does. Provide everything that is necessary to try out the plugin in this project (including a sample Xcode/Android project if necessary)
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
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module Hours
3
- VERSION = "0.2.0"
3
+ VERSION = "0.2.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-hours
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rishabh Tayal