deploy_log 0.2.6 → 0.2.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/deploy_log +1 -1
- data/lib/deploy_log/github/deploys.rb +4 -3
- data/lib/deploy_log/github/helper.rb +1 -1
- data/lib/deploy_log/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 67646e644643f0513c6ebc267c9756962286826edc0bd112600d360634ccc895
|
4
|
+
data.tar.gz: '083ff6d06a088404a2422e3a02afdf5d9f09b9a7630e7e5fd195415c7d2f13d4'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 80025004e29c251b4c20463b52cfb507f4cbc950b65beb902077d30451fe5a7ae3aa3ee84b1df0593a1a5d40f223c6e9b5f8c940bc4bbed9caa3f8d2524db7de
|
7
|
+
data.tar.gz: b213197ba88431f9891b78e00c84ef6dd7ba52b7bb6ddfd534dfe4abcbd9e8b03060bde5e9e63b25cfe211d6f9f708e78d707dcf5cc97a761fb730106e8da2f5
|
data/bin/deploy_log
CHANGED
@@ -31,7 +31,7 @@ OptionParser.new do |opt|
|
|
31
31
|
end
|
32
32
|
|
33
33
|
opt.on('-c', '--clean', 'Pull data from api, ignore cache') do
|
34
|
-
|
34
|
+
Dir.glob('/tmp/github-deploys-*.log').each { |file| FileUtils.rm file }
|
35
35
|
Notify.info 'Cleared cache'
|
36
36
|
exit
|
37
37
|
end
|
@@ -5,7 +5,6 @@ module DeployLog
|
|
5
5
|
class Deploys
|
6
6
|
def initialize
|
7
7
|
@github = Helper.new(ARGV.first)
|
8
|
-
@calendar = DeployLog::Calendar.new
|
9
8
|
end
|
10
9
|
|
11
10
|
def merged_between(start, finish = nil)
|
@@ -34,7 +33,8 @@ module DeployLog
|
|
34
33
|
def merged_during_week(week_num)
|
35
34
|
return Notify.error 'Week number (--week|-w) is a required argument' if week_num.nil?
|
36
35
|
|
37
|
-
|
36
|
+
calendar = DeployLog::Calendar.new
|
37
|
+
week = calendar.week(week_num.to_i)
|
38
38
|
|
39
39
|
render @github.pulls_in_timeframe(week[:first], week[:last])
|
40
40
|
end
|
@@ -50,7 +50,8 @@ module DeployLog
|
|
50
50
|
private
|
51
51
|
|
52
52
|
def render(data)
|
53
|
-
puts data
|
53
|
+
puts data if data.is_a? String
|
54
|
+
data
|
54
55
|
end
|
55
56
|
end
|
56
57
|
end
|
data/lib/deploy_log/version.rb
CHANGED