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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b06102d9980cb0bea147a4a5acd2d6b763a5c799
4
- data.tar.gz: bcdc55bdbf42dec0c04eee281396be235c0f8f53
3
+ metadata.gz: cb565325e2e60f6265164f4a63b0d8d75789544f
4
+ data.tar.gz: 2f7b6816e5ea8de2548827bba42d15e4a6e7e639
5
5
  SHA512:
6
- metadata.gz: 7cfabde4627ccfd8c61eeef6b2bce063676add09ba7c9dc8c376f8b8b3849654eb24fd594926fe4814c5f0be903859221479be37ec8cff37f5c52eda3cec6821
7
- data.tar.gz: 84a99cd759c73ce12d8e3a55662c16d78352e44f14cb4c7315fab50bb031444685623c5338ead7341c63a9662065fd9653bfbf371124097ad84c233e46603ef2
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", '~> 5.0'
30
+ spec.add_dependency "activesupport", '~> 4.0'
31
31
  spec.add_dependency 'trollop', '~> 2.1'
32
32
  end
@@ -1,3 +1,3 @@
1
1
  module Dailycrap
2
- VERSION = "0.2.2"
2
+ VERSION = "0.2.3"
3
3
  end
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.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-14 00:00:00.000000000 Z
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: '5.0'
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: '5.0'
110
+ version: '4.0'
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: trollop
113
113
  requirement: !ruby/object:Gem::Requirement