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 +4 -4
- data/bin/build-multi-commit-message +22 -0
- data/lib/hesburgh/lib/version.rb +1 -1
- metadata +3 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 244dd2ab4e15f831980fc5817678128f9b17d4b5
|
4
|
+
data.tar.gz: 4616ce2bf32465291929e51ab64e1b2337cf32b9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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'
|
data/lib/hesburgh/lib/version.rb
CHANGED
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.
|
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
|