cykl 0.1.2 → 0.1.3
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 +2 -2
- data/lib/cykl/version.rb +1 -1
- data/lib/cykl.rb +5 -5
- 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: b07a376904547e0e04bf745b064ce931ac1eacb9
|
|
4
|
+
data.tar.gz: e6b664cc00679e72968b9a7a43df3228241cc1b5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1c3c7513e8aea904661cd346fbb3d13eddb272c81207997fc5c88ded21c929fc958cd922985e0ed7534752bc5c76e85c85921e0bf4028ea4d574fb48396ec29b
|
|
7
|
+
data.tar.gz: 021223d73ca7ea9362d38d498d8e105bed6b2c7ce382bee2b42b13bae7983a13eca6f9a8e2bee7cc7cd568e9048e2eecf4d87f4d630e7850441d25613b33f5b0
|
data/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
View the cycle-time of your Github issues
|
|
4
4
|
|
|
5
|
-
Cykl uses the Github API via Octokit to pull information on the last
|
|
5
|
+
Cykl uses the Github API via Octokit to pull information on at least the last 50 closed
|
|
6
6
|
issues in your repo. Currently, you can track the average lifetime of those issues.
|
|
7
7
|
|
|
8
8
|
### Upcoming
|
|
@@ -15,7 +15,7 @@ board (if the board is connected to Github)
|
|
|
15
15
|
Add this line to your application's Gemfile:
|
|
16
16
|
|
|
17
17
|
```ruby
|
|
18
|
-
gem 'cykl', '~> 0.1.
|
|
18
|
+
gem 'cykl', '~> 0.1.3'
|
|
19
19
|
```
|
|
20
20
|
|
|
21
21
|
And then execute:
|
data/lib/cykl/version.rb
CHANGED
data/lib/cykl.rb
CHANGED
|
@@ -7,13 +7,13 @@ module Cykl
|
|
|
7
7
|
private :cycle_time
|
|
8
8
|
|
|
9
9
|
def time(repo = nil)
|
|
10
|
-
|
|
10
|
+
puts_and_flush "Pulling in your issues, please wait..."
|
|
11
11
|
issues = Issues.new.list_issues(repo)
|
|
12
12
|
@cycle_time = average_cycle_time(issues)
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
puts_and_flush(cycle_time_message)
|
|
15
15
|
rescue Octokit::NotFound
|
|
16
|
-
|
|
16
|
+
puts_and_flush('Sorry, Github couldn\'t find anything')
|
|
17
17
|
end
|
|
18
18
|
|
|
19
19
|
private
|
|
@@ -43,8 +43,8 @@ module Cykl
|
|
|
43
43
|
(24 * 60 * 60)
|
|
44
44
|
end
|
|
45
45
|
|
|
46
|
-
def
|
|
47
|
-
|
|
46
|
+
def puts_and_flush(msg)
|
|
47
|
+
puts msg
|
|
48
48
|
STDOUT.flush
|
|
49
49
|
end
|
|
50
50
|
end
|