deploy_log 0.1.4 → 0.1.5

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
  SHA256:
3
- metadata.gz: 4a27a0cdd050660183c126442e8200d7d68179cda6f16da222cee3112220734c
4
- data.tar.gz: 8165b8f69d8c738ec6ebd94490c7bc6d490efe944a171d05e4142484b0429df8
3
+ metadata.gz: 37fb4a3ef58e8aca0b5d3178dadaad622e9f9c646ea2f1a381224432c645b50c
4
+ data.tar.gz: e2e3501b87860f186e0852d58a9bdd9594b8b428857a149a5c608d301d1580ed
5
5
  SHA512:
6
- metadata.gz: 0d06a24b59094fa8650567974228653ae0267bf33044c78e4e88cd3c828b548d649b186533b39d326cf933108a3dee4c029b3006d7dbd2049c6b71cfd37fdcdc
7
- data.tar.gz: 76df1d0276aa4aee03cbfdc8e42e87bf0957a825998cac71d208ec89ce314d2e33aacaf11aa43b37e9ab777a406cf294c2e2871b8da33f22493a635c88282f8a
6
+ metadata.gz: 532f9e3fcb53a923b7c637f54943b1b63fd8d003e340697752775fbdaad94c7f0a31e875fa8616974d5b8245737de6d37ccf6f69cec09663f86a24d7b5584ce3
7
+ data.tar.gz: 6292f3e74d800b622c6ef5f29215ee05d93ccd21effcf35bc69a698fa2ca69ca7b7f816f682b4289158d4d923e5e02c5e5133d6e19e530a1c696771f507cb95d
data/bin/deploy_log CHANGED
@@ -3,7 +3,7 @@
3
3
 
4
4
  require 'deploy_log'
5
5
 
6
- start, finish, title, branch = nil
6
+ start, finish, title, branch, on = nil
7
7
 
8
8
  OptionParser.new do |opt|
9
9
  opt.on('-s', '--start=START', 'Start of date range') do |time|
@@ -14,6 +14,10 @@ OptionParser.new do |opt|
14
14
  finish = Time.parse(time)
15
15
  end
16
16
 
17
+ opt.on('-o', '--on=ON', 'Merged on a specific date') do |time|
18
+ on = Time.parse(time)
19
+ end
20
+
17
21
  opt.on('-t', '--title=TITLE', 'Title of the PR you want') do |ti|
18
22
  title = ti
19
23
  end
@@ -30,6 +34,7 @@ end.parse!
30
34
 
31
35
  model = DeployLog::Github::Deploys.new
32
36
  model.merged_between(start, finish) if start
37
+ model.merged_on(on) if on
33
38
  model.pr_title(title) if title
34
39
  model.pr_for_branch(branch) if branch
35
40
  model.merged_today if title.nil? && branch.nil? && start.nil? && finish.nil?
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module DeployLog
4
- VERSION = '0.1.4'.freeze
4
+ VERSION = '0.1.5'.freeze
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: deploy_log
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Priebe