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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ce637bf34b25a19f934cef526058ef2763018dd5
4
- data.tar.gz: 9294687f9103a2317b82685fa47d2db8c442fe6e
3
+ metadata.gz: d9d25b668c973de1e60a98e61719742122b30d96
4
+ data.tar.gz: 9353dd5637b6d0bc76132a7d2c5087b5dba31b4d
5
5
  SHA512:
6
- metadata.gz: 6ed2ada9058471d459d6323662ee628f0617d457f00fe91fb50726b169f57722702d3894e3a05186bac3f3653ba53dafd3ef6bcd241bdc3b45b64fafb9fbcc42
7
- data.tar.gz: d8faf2d27d5a20c975781ef3f75752804f740724e391bf8b1c348335d3e2377f72cf55e897cac4b0238e984bd0d3e769997d1650044e141180129e25d2969771
6
+ metadata.gz: 8e6592c97c7b0df3623ccd554e7ca021dc97d88111f5f1d363ffa85db1ec52b8a340fd3b761b719190073b83e1c745cb6f98c5973bdfffde76dc2a9d7b1970ca
7
+ data.tar.gz: 3cedf2c45c7ee2cfb2e02bc4bbc66efd1047e060a58dfc789a7c0357890ff86acefbdbb10b5cd82980a22529f1059e1ba390dba45a32fc0edf798e3db59d2fa6
@@ -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 "${_message-Bump version to v$_version}"
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
@@ -1,3 +1,3 @@
1
1
  module Samus
2
- VERSION = '1.1.1'
2
+ VERSION = '1.2.0'
3
3
  end
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.1.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-20 00:00:00.000000000 Z
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