* [PATCH] gemspec: use "git describe" output for prereleases
@ 2018-07-26 6:06 Eric Wong
0 siblings, 0 replies; only message in thread
From: Eric Wong @ 2018-07-26 6:06 UTC (permalink / raw)
To: mwrap-public
This should make it easier to make pre-releases.
---
mwrap.gemspec | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/mwrap.gemspec b/mwrap.gemspec
index 56589a0..2c01a68 100644
--- a/mwrap.gemspec
+++ b/mwrap.gemspec
@@ -8,9 +8,11 @@ if git_manifest[0] && manifest != git_manifest
system('git add MANIFEST')
end
+desc = `git describe --abbrev=4 HEAD`.strip.tr('-', '.').delete_prefix('v')
+
Gem::Specification.new do |s|
s.name = 'mwrap'
- s.version = '2.0.0'
+ s.version = desc.empty? ? '2.0.0' : desc
s.homepage = 'https://80x24.org/mwrap/'
s.authors = ["Ruby hackers"]
s.summary = 'LD_PRELOAD malloc wrapper for Ruby'
--
EW
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2018-07-26 6:06 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-07-26 6:06 [PATCH] gemspec: use "git describe" output for prereleases Eric Wong
Code repositories for project(s) associated with this public inbox
https://80x24.org/mwrap.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).