fastlane-plugin-hours 0.2.1 → 0.3.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
  SHA1:
3
- metadata.gz: 04f4fa5ea64732530b259de1094835dd510420a0
4
- data.tar.gz: 3dc9d6c0e1bd00d25a4ca2b3b3b750cbb1f14555
3
+ metadata.gz: a8d16ffea753b36a04e443a7be252a8422cdc586
4
+ data.tar.gz: ac3f5903b34352c8e9778d5f9df1fb08b0bf5392
5
5
  SHA512:
6
- metadata.gz: b87339188d5238d18f37c13ff5cc5874584a3f3ca4e8a2223b3bc5bb9cdcabf3424e1e6628eb2ee6a22ed0ad63d3162c1ec7a77ef1cf898030a8ce926be32ac6
7
- data.tar.gz: 1e15ae36df209295df238584b30b4cf583aac6f047fc5da3a37e8b22df1826329075f3dcb7ca33038970070510aedb3d8f5345d8103c103941e2e72010fa2202
6
+ metadata.gz: 11de458d7a5dae3cdcd2730472e5a1262b340e3a88c22064a41bcac89d79076701f03365168f325856254631d33d314282b948927ed6542bda5770477d37449b
7
+ data.tar.gz: ed7d01c36c7e4477925ea70107529e0d998d61f687c7839b3030081bff0376e17ed962a48275f2b781f59e26300d66a4bf119a7cc7c05ed1537dc8758e7b810d
data/README.md CHANGED
@@ -1,6 +1,9 @@
1
1
  # hours plugin
2
2
 
3
3
  [![fastlane Plugin Badge](https://rawcdn.githack.com/fastlane/fastlane/master/fastlane/assets/plugin-badge.svg)](https://rubygems.org/gems/fastlane-plugin-hours)
4
+ [![Gem Version](https://badge.fury.io/rb/fastlane-plugin-hours.svg)](https://badge.fury.io/rb/fastlane-plugin-hours)
5
+ [![License](https://img.shields.io/badge/license-MIT-green.svg?style=flat)](https://github.com/RishabhTayal/fastlane-plugin-hours/blob/master/LICENSE)
6
+
4
7
 
5
8
  ## Getting Started
6
9
 
@@ -12,18 +15,28 @@ fastlane add_plugin hours
12
15
 
13
16
  ## About hours
14
17
 
15
- Record total time saved by fastlane. It maintains a local file called `save_duration.txt` in the `fastlane` directory.
18
+ Record total time saved by fastlane. It maintains a local file called `save_duration.txt` in the `fastlane` directory. When your run a lane it will calculate the time saved by `fastlane` and keep on adding it for your project.
19
+
20
+ **It does not track time on [hoursforteams.com](https://www.hoursforteams.com)**
16
21
 
17
22
  ## Example
18
23
 
19
24
  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`.
20
25
 
21
26
  ```ruby
22
- lane :your_lane do
23
- hours(start_timing: true)
24
- # your lane
25
- hours(measure_timing: true)
26
- end
27
+ before_all do
28
+ hours(start_timing: true)
29
+ end
30
+
31
+ lane :release do
32
+ gym
33
+ deliver
34
+ end
35
+
36
+ after_all do |lane|
37
+ hours(measure_timing: true)
38
+ end
39
+
27
40
  ```
28
41
  ## Run tests for this plugin
29
42
 
@@ -47,7 +47,7 @@ module Fastlane
47
47
  end
48
48
 
49
49
  def self.authors
50
- ["Rishabh Tayal"]
50
+ ["@RishabhTayal"]
51
51
  end
52
52
 
53
53
  def self.return_value
@@ -55,21 +55,22 @@ module Fastlane
55
55
  end
56
56
 
57
57
  def self.details
58
- # Optional:
59
- ""
58
+ [
59
+ "This action will calculate the total time saved for your project and save the save_duration.txt in `fastlane` folder."
60
+ ].join(' ')
60
61
  end
61
62
 
62
63
  def self.available_options
63
64
  [
64
65
  FastlaneCore::ConfigItem.new(key: :start_timing,
65
66
  env_name: "HOURS_START_TIMING",
66
- description: "A description of your option",
67
+ description: "Starts recording time. Set this to `true` in `before_all` block",
67
68
  optional: false,
68
69
  is_string: false,
69
70
  default_value: false),
70
71
  FastlaneCore::ConfigItem.new(key: :measure_timing,
71
72
  env_name: "HOURS_MEASURE_TIMING",
72
- description: "A description of your option",
73
+ description: "Calculates the total time taken for this lane. Set this to `true` in `after_all` block",
73
74
  optional: false,
74
75
  is_string: false,
75
76
  default_value: false)
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module Hours
3
- VERSION = "0.2.1"
3
+ VERSION = "0.3.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-hours
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rishabh Tayal
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-11-01 00:00:00.000000000 Z
11
+ date: 2017-11-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry