hesburgh-lib 0.1.0 → 0.1.1

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: 19be6eece64491b61c05c61eb9d8deb705d2b6c2
4
- data.tar.gz: cf13adff46b6df8cc67b20cb83860e8c50942aca
3
+ metadata.gz: 244dd2ab4e15f831980fc5817678128f9b17d4b5
4
+ data.tar.gz: 4616ce2bf32465291929e51ab64e1b2337cf32b9
5
5
  SHA512:
6
- metadata.gz: dd540b822d3f937261a94a1463443130214b936e7ce56e6de0dd8aacc6c68288b5a9ceb56d892f86a7a950ab06aa88d4d15e66bb4fe0b8787d376e17d06bc620
7
- data.tar.gz: 52541e39a80a3a5a4945b9e24c5363a204a10d332f115069ddfa19abc06c263512c31d69f37657096b5c6975fdd0902af6fe0ee6845a4add8eef39ab389abb86
6
+ metadata.gz: 69c1d00e465c1f8f85f0987a718167a539250dfed3bacf78f00ffb8c2963a7257f7506d5ba9a5d9b19e48039f2573f9f1b4a6c9b42980cf9ac773392b409b236
7
+ data.tar.gz: 829b0efcfac2143affe1bbcc70723023f4929b8d06c52b1f4b8404b33b1a4e534fc0c93af5eadc5d813b57bf6f5c6062828e3c842e00e92f507a576885864fc0
@@ -0,0 +1,22 @@
1
+ #!/usr/bin/env ruby -wU
2
+
3
+ if ARGV.grep(/^-+h(elp)?$/i).size > 0
4
+ $stdout.puts ""
5
+ $stdout.puts "$ #{File.basename(__FILE__)} [branch_name]"
6
+ $stdout.puts ""
7
+ $stdout.puts "This script generates text based on the commit messages. It uses all of the"
8
+ $stdout.puts "commits that have occurred since the given branch."
9
+ $stdout.puts ""
10
+ $stdout.puts "If no argument is given, the branch_name is assumed to be master."
11
+ $stdout.puts ""
12
+ $stdout.puts "Example:"
13
+ $stdout.puts "$ #{File.basename(__FILE__)} my-branch"
14
+ $stdout.puts ""
15
+ $stdout.puts "NOTE: On OSX, the output will also be automatically copied into your paste"
16
+ $stdout.puts " buffer."
17
+ exit(0)
18
+ end
19
+
20
+ branch_name = ARGV[0] || 'master'
21
+ command = %(git log --reverse --pretty="format:## %s%n%n@%H%n%n%b" #{branch_name}..)
22
+ system(command + ' | pbcopy') if ENV['_system_name'] == 'OSX'
@@ -1,5 +1,5 @@
1
1
  module Hesburgh
2
2
  module Lib
3
- VERSION = "0.1.0"
3
+ VERSION = "0.1.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hesburgh-lib
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeremy Friesen
@@ -98,12 +98,14 @@ description: A toolbox of code that may be reusable.
98
98
  email:
99
99
  - jeremy.n.friesen@gmail.com
100
100
  executables:
101
+ - build-multi-commit-message
101
102
  - update-dependency
102
103
  extensions: []
103
104
  extra_rdoc_files: []
104
105
  files:
105
106
  - LICENSE
106
107
  - README.md
108
+ - bin/build-multi-commit-message
107
109
  - bin/update-dependency
108
110
  - hesburgh-lib.gemspec
109
111
  - lib/hesburgh/lib.rb