fastlane-plugin-hours 0.2.1 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +19 -6
- data/lib/fastlane/plugin/hours/actions/hours_action.rb +6 -5
- data/lib/fastlane/plugin/hours/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a8d16ffea753b36a04e443a7be252a8422cdc586
|
4
|
+
data.tar.gz: ac3f5903b34352c8e9778d5f9df1fb08b0bf5392
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
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
|
-
["
|
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
|
-
|
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: "
|
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: "
|
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)
|
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.
|
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-
|
11
|
+
date: 2017-11-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pry
|