dailycrap 0.1.1 → 0.2.0

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: 230fd37ad2ef9e336edf480b205b8b093f3f9f5d
4
- data.tar.gz: e409e455379301f1f329939b7e4c9bfcab9790f1
3
+ metadata.gz: b7c22781f92c8fdd00fe114f7d050e71a29aa5e6
4
+ data.tar.gz: 791ae93f032e4a6870e32b1056eee1d98bf2df48
5
5
  SHA512:
6
- metadata.gz: 4dbd1423f6a09079e9bb37299ed052379641e11d4c30fc0d43fbc766af31bcef9cefa1c8f3b2f8db88ebff53b8b53f14c9865ed5f6b2b18a3df563bebaf02bfd
7
- data.tar.gz: 88fc0b8a14a3dcf0f8029796db0218f718a38c5cef40433075cfc07b5d90310b3aac50bdc3002d0e2c16831ce4687b83f31e6859fb380b920a33f02e898053d9
6
+ metadata.gz: 79816927b24d3216ed5c75aefb7895238e5f2c5e0cd64a527bd7906f19b0af178d66c0fb1e94f1d79c3d683db89190d405abcc941192c79f0ec53ad8bff1afd7
7
+ data.tar.gz: 1e7b77323eb543be0abcec1622b0fc652796ec3ff9956efea1241f5564c24b98d4baeb1c32702198353c6030fb136fe9d9cc7be26a3225ab839ba361037ed352
data/.travis.yml CHANGED
@@ -1,13 +1,14 @@
1
1
  sudo: false
2
2
  language: ruby
3
3
  rvm:
4
- - 2.2.1
4
+ - 2.2.2
5
5
  before_install: gem install bundler -v 1.13.6
6
+ script: rake test
6
7
  deploy:
7
8
  provider: rubygems
8
9
  api_key:
9
- secure: "Y53gVgrP+lEnp3bpND/W3PS1IE+0Lm2/03ST86Vsa90gCcQUb6UIXVhEjx5Z670bLM5hmedhecglc9ukcWj7e8Li1WZZQH8UYiqOn/NhtK/gnx7eCRD2aAdXMzLqio50odc0iVhazNb558URuaffn6CF2lsdBBbo3QN8IuXVw5j952ELt3WrJ4uHBSfFEK/LT/ILWoqK8wMb+U+N6PVc0oqe+5z4naK4zs4BhK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LYCnYm8tYYJ473k/wEeA7xC0udaPIAJ0CdiTwI1Iu6gsWsxxjabwFDubRCTCzcBDhETdOkbRBL9PyqoTeTKkaWTJijkMTWD2B5fLlTFNIWby1v4="
11
+ gem: dailycrap
12
+ on:
13
+ tags: true
14
+ repo: pcboy/dailycrap
data/README.md CHANGED
@@ -1,3 +1,5 @@
1
+ [![Build Status](https://travis-ci.org/pcboy/dailycrap.svg?branch=master)](https://travis-ci.org/pcboy/dailycrap)
2
+
1
3
  # Dailycrap
2
4
 
3
5
  Welcome to Dailycrap, the solution to micro management!
@@ -26,8 +28,8 @@ $> dailycrap -h
26
28
  -t, --token-file=<s> File containing your github token (https://github.com/settings/tokens)
27
29
  -r, --repository=<s> The repository you are working on
28
30
  -o, --organization=<s> Your organization name
29
- -d, --day=<s> The day you want to generate a report for (default is yesterday or last friday if monday)
30
- -e, --edit send generated report to your $EDITOR
31
+ -d, --day=<s> Day you want to generate a report for (default is yesterday or last friday if monday)
32
+ -e, --edit send generated report to your $EDITOR
31
33
  -h, --help Show this message
32
34
 
33
35
  $> dailycrap --token-file=.github_token --organization your_github_orgname --repository your_repo --edit
@@ -35,9 +37,7 @@ $> dailycrap --token-file=.github_token --organization your_github_orgname --rep
35
37
  Yesterday
36
38
  Worked on:
37
39
  Connect to #1204 Do this wonderful stuff
38
-
39
- Closed:
40
- Test PR, ignore
40
+ [CLOSED :tada:] Test PR, ignore
41
41
 
42
42
  Reviewed:
43
43
  PR 42, killing Scrum
@@ -53,5 +53,5 @@ dailycrap is under the WTFPL. Do whatever you want.
53
53
 
54
54
  ## Contributing
55
55
 
56
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/dailycrap. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
56
+ Bug reports and pull requests are welcome on GitHub at https://github.com/pcboy/dailycrap. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
57
57
 
data/dailycrap.gemspec CHANGED
@@ -24,9 +24,9 @@ Gem::Specification.new do |spec|
24
24
  spec.add_development_dependency "bundler", "~> 1.13"
25
25
  spec.add_development_dependency "rake", "~> 10.0"
26
26
  spec.add_development_dependency "minitest", "~> 5.0"
27
- spec.add_development_dependency "awesome_print"
28
- spec.add_development_dependency "looksee"
29
- spec.add_dependency "github_api", '~> 0.14.5'
30
- spec.add_dependency "activesupport", '~> 5.0.1'
31
- spec.add_dependency 'trollop', '~> 2.1.2'
27
+ spec.add_development_dependency "awesome_print", '~> 1.7'
28
+ spec.add_development_dependency "looksee", '~> 4.0'
29
+ spec.add_dependency "github_api", '~> 0.14'
30
+ spec.add_dependency "activesupport", '~> 5.0'
31
+ spec.add_dependency 'trollop', '~> 2.1'
32
32
  end
@@ -1,3 +1,3 @@
1
1
  module Dailycrap
2
- VERSION = "0.1.1"
2
+ VERSION = "0.2.0"
3
3
  end
data/lib/dailycrap.rb CHANGED
@@ -3,6 +3,8 @@ require "dailycrap/version"
3
3
  require 'github_api'
4
4
  require 'active_support/core_ext/object/try'
5
5
 
6
+ require 'awesome_print'
7
+
6
8
  module Dailycrap
7
9
  class Dailycrap
8
10
 
@@ -37,11 +39,11 @@ module Dailycrap
37
39
  # Created a new branch
38
40
  when 'IssuesEvent'
39
41
  when 'PullRequestReviewCommentEvent'
40
- unless event.payload.pull_request.user.login == @user
42
+ unless event.payload.pull_request.assignees.map(&:login).include?(@user)
41
43
  reviewed_prs << event.payload.pull_request.title
42
44
  end
43
45
  when 'PullRequestEvent'
44
- if event.payload.action == 'closed'
46
+ if event.payload.action == 'closed' && event.payload.pull_request.assignees.map(&:login).include?(@user)
45
47
  closed_prs << event.payload.pull_request.title
46
48
  end
47
49
  else
@@ -65,10 +67,7 @@ module Dailycrap
65
67
  %Q{
66
68
  #{@date.monday? ? 'Friday' : 'Yesterday'}
67
69
  \tWorked on:
68
- \t\t#{worked_on_prs.map{|x| x[:title]}.uniq.join("\n\t\t")}
69
-
70
- \tClosed:
71
- \t\t#{closed_prs.uniq.join("\n\t\t")}
70
+ \t\t#{worked_on_prs.map{|x| (closed_prs.include?(x[:title]) ? '[DONE :tada:] ' : '') + x[:title]}.uniq.join("\n\t\t")}
72
71
 
73
72
  \tReviewed:
74
73
  \t\t#{reviewed_prs.uniq.join("\n\t\t")}
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.1.1
4
+ version: 0.2.0
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-08 00:00:00.000000000 Z
11
+ date: 2017-03-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -56,72 +56,72 @@ dependencies:
56
56
  name: awesome_print
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ">="
59
+ - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '0'
61
+ version: '1.7'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ">="
66
+ - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '0'
68
+ version: '1.7'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: looksee
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ">="
73
+ - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: '0'
75
+ version: '4.0'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - ">="
80
+ - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: '0'
82
+ version: '4.0'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: github_api
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: 0.14.5
89
+ version: '0.14'
90
90
  type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: 0.14.5
96
+ version: '0.14'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: activesupport
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
101
  - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: 5.0.1
103
+ version: '5.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.1
110
+ version: '5.0'
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: trollop
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
115
  - - "~>"
116
116
  - !ruby/object:Gem::Version
117
- version: 2.1.2
117
+ version: '2.1'
118
118
  type: :runtime
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
122
  - - "~>"
123
123
  - !ruby/object:Gem::Version
124
- version: 2.1.2
124
+ version: '2.1'
125
125
  description: ''
126
126
  email:
127
127
  - david.hagege@gmail.com
@@ -163,7 +163,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
163
163
  version: '0'
164
164
  requirements: []
165
165
  rubyforge_project:
166
- rubygems_version: 2.5.1
166
+ rubygems_version: 2.4.8
167
167
  signing_key:
168
168
  specification_version: 4
169
169
  summary: A ruby gem for people who prefer tools over meetings. If you hate scrum this