dailycrap 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/dailycrap.gemspec +1 -1
- data/lib/dailycrap/version.rb +1 -1
- data/lib/dailycrap.rb +2 -2
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cb565325e2e60f6265164f4a63b0d8d75789544f
|
4
|
+
data.tar.gz: 2f7b6816e5ea8de2548827bba42d15e4a6e7e639
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 771758f2fd7cc1b99bef81574bfdbe4a631f4725f16324cac5c9047981b3a234ad077b91fd2e49cb5e0627e934173c9c0a2a92e4e390f6a132e669a642f09796
|
7
|
+
data.tar.gz: f2c627cfafbbd7bc344226adb5a16306108a2bc35043228e0945e2965e2db6c94926d02d3580e0a0da22df50e2521a7dc5bdd3b846d586770d8094c33a0340e2
|
data/dailycrap.gemspec
CHANGED
@@ -27,6 +27,6 @@ Gem::Specification.new do |spec|
|
|
27
27
|
spec.add_development_dependency "awesome_print", '~> 1.7'
|
28
28
|
spec.add_development_dependency "looksee", '~> 4.0'
|
29
29
|
spec.add_dependency "github_api", '~> 0.14'
|
30
|
-
spec.add_dependency "activesupport", '~>
|
30
|
+
spec.add_dependency "activesupport", '~> 4.0'
|
31
31
|
spec.add_dependency 'trollop', '~> 2.1'
|
32
32
|
end
|
data/lib/dailycrap/version.rb
CHANGED
data/lib/dailycrap.rb
CHANGED
@@ -27,7 +27,7 @@ module Dailycrap
|
|
27
27
|
|
28
28
|
in_progress_issues = iterate(github.issues) do |iterator|
|
29
29
|
iterator.list(user: @organization, repo: @repo, state: 'open', labels: 'in progress')
|
30
|
-
end.select{|x| x.assignee.login == @user }.map{|x| x.title}
|
30
|
+
end.select{|x| x.assignee.try(:login) == @user }.map{|x| x.title}
|
31
31
|
|
32
32
|
events(@date).map do |event|
|
33
33
|
case event.type
|
@@ -66,7 +66,7 @@ module Dailycrap
|
|
66
66
|
|
67
67
|
def format_daily(worked_on_prs, closed_prs, in_progress, reviewed_prs)
|
68
68
|
%Q{
|
69
|
-
#{@date.monday? ? 'Friday' : 'Yesterday'}
|
69
|
+
#{(@date.friday? && Date.today.monday?) ? 'Friday' : 'Yesterday'}
|
70
70
|
\tWorked on:
|
71
71
|
\t\t#{worked_on_prs.map{|x| (closed_prs.include?(x[:title]) ? '[DONE :tada:] ' : '') + x[:title]}.uniq.join("\n\t\t")}
|
72
72
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dailycrap
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Hagege
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-03-
|
11
|
+
date: 2017-03-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -100,14 +100,14 @@ dependencies:
|
|
100
100
|
requirements:
|
101
101
|
- - "~>"
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version: '
|
103
|
+
version: '4.0'
|
104
104
|
type: :runtime
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
108
|
- - "~>"
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version: '
|
110
|
+
version: '4.0'
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: trollop
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|