samus 1.1.1 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/commands/build/git-commit +5 -1
- data/commands/build/support/generate-commit-message.rb +22 -0
- data/lib/samus/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d9d25b668c973de1e60a98e61719742122b30d96
|
4
|
+
data.tar.gz: 9353dd5637b6d0bc76132a7d2c5087b5dba31b4d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8e6592c97c7b0df3623ccd554e7ca021dc97d88111f5f1d363ffa85db1ec52b8a340fd3b761b719190073b83e1c745cb6f98c5973bdfffde76dc2a9d7b1970ca
|
7
|
+
data.tar.gz: 3cedf2c45c7ee2cfb2e02bc4bbc66efd1047e060a58dfc789a7c0357890ff86acefbdbb10b5cd82980a22529f1059e1ba390dba45a32fc0edf798e3db59d2fa6
|
data/commands/build/git-commit
CHANGED
@@ -1,7 +1,11 @@
|
|
1
1
|
#!/bin/sh
|
2
2
|
|
3
3
|
set -e
|
4
|
+
IFS='%'
|
5
|
+
|
6
|
+
message=$($(dirname $0)/support/generate-commit-message.rb)
|
7
|
+
|
4
8
|
git add $*
|
5
|
-
git commit -m "$
|
9
|
+
git commit -m "$message"
|
6
10
|
git tag ${_tag-v$_version}
|
7
11
|
echo tag ${_tag-v$_version} >> $__restore_file
|
@@ -0,0 +1,22 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
def word_wrap(text)
|
4
|
+
text.gsub(/(.{1,60})(\s|$)/, "\\1\n ")
|
5
|
+
end
|
6
|
+
|
7
|
+
def collect_issues
|
8
|
+
out = `git log $(git tag | tail -n 1)...HEAD -E --grep '#[0-9]+' 2>/dev/null`
|
9
|
+
issues = out.scan(/(#\d+)/).flatten
|
10
|
+
end
|
11
|
+
|
12
|
+
message = ENV["_message"]
|
13
|
+
if message.nil? || message.strip.empty?
|
14
|
+
message = "Tag release v#{ENV["_version"]}"
|
15
|
+
|
16
|
+
issues = collect_issues
|
17
|
+
if issues.size > 0
|
18
|
+
message += "\n\nReferences:\n " + word_wrap(issues.uniq.sort.join(", "))
|
19
|
+
end
|
20
|
+
end
|
21
|
+
|
22
|
+
puts message
|
data/lib/samus/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: samus
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Loren Segal
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-03-
|
11
|
+
date: 2014-03-22 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description:
|
14
14
|
email: lsegal@soen.ca
|
@@ -50,6 +50,7 @@ files:
|
|
50
50
|
- commands/build/rake-task.help.md
|
51
51
|
- commands/build/samus-build
|
52
52
|
- commands/build/samus-build.help.md
|
53
|
+
- commands/build/support/generate-commit-message.rb
|
53
54
|
- commands/publish/cf-invalidate
|
54
55
|
- commands/publish/cf-invalidate.help.md
|
55
56
|
- commands/publish/gem-push
|