mystro-volley 0.1.0.rc1 → 0.1.0.rc2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Rakefile +51 -0
- data/lib/mystro-volley/version.rb +11 -8
- metadata +2 -2
data/Rakefile
CHANGED
@@ -38,3 +38,54 @@ end
|
|
38
38
|
|
39
39
|
|
40
40
|
task :default => :test
|
41
|
+
|
42
|
+
def changelog(last=nil, single=false)
|
43
|
+
command="git --no-pager log --format='%an::::%h::::%s'"
|
44
|
+
|
45
|
+
list = `git tag`
|
46
|
+
|
47
|
+
puts "# Changelog"
|
48
|
+
puts
|
49
|
+
|
50
|
+
ordered = list.lines.sort_by {|e| (a,b,c) = e.gsub(/^v/,"").split("."); "%3d%3d%3d" % [a, b, c]}
|
51
|
+
|
52
|
+
ordered.reject{|e| (a,b,c,d) = e.split("."); !d.nil?}.reverse_each do |t|
|
53
|
+
tag = t.chomp
|
54
|
+
|
55
|
+
if last
|
56
|
+
check = { }
|
57
|
+
out = []
|
58
|
+
log = `#{command} #{last}...#{tag}`
|
59
|
+
log.lines.each do |line|
|
60
|
+
(who, hash, msg) = line.split('::::')
|
61
|
+
unless check[msg]
|
62
|
+
unless msg =~ /^Merge branch/ || msg =~ /CHANGELOG/ || msg =~ /^(v|version|changes for|preparing|ready for release|ready to release|bump version)*\s*(v|version)*\d+\.\d+\.\d+/
|
63
|
+
msg.gsub(" *", "\n*").gsub(/^\*\*/, " *").lines.each do |l|
|
64
|
+
line = l =~ /^(\s+)*\*/ ? l : "* #{l}"
|
65
|
+
out << line
|
66
|
+
end
|
67
|
+
check[msg] = hash
|
68
|
+
end
|
69
|
+
end
|
70
|
+
end
|
71
|
+
puts "## #{last}:"
|
72
|
+
out.each { |e| puts e }
|
73
|
+
#puts log
|
74
|
+
puts
|
75
|
+
end
|
76
|
+
|
77
|
+
last = tag
|
78
|
+
exit if single
|
79
|
+
end
|
80
|
+
end
|
81
|
+
|
82
|
+
desc "generate changelog output"
|
83
|
+
task :changelog do
|
84
|
+
changelog
|
85
|
+
end
|
86
|
+
|
87
|
+
desc "show current changes (changelog output from HEAD to most recent tag)"
|
88
|
+
task :current do
|
89
|
+
changelog("HEAD",true)
|
90
|
+
end
|
91
|
+
|
@@ -1,11 +1,14 @@
|
|
1
|
-
unless defined?(
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
1
|
+
unless defined?(Mystro::Volley::Version)
|
2
|
+
# MystroVolley::Version conflicts with Version model
|
3
|
+
module Mystro
|
4
|
+
module Volley
|
5
|
+
module Version
|
6
|
+
MAJOR = 0
|
7
|
+
MINOR = 1
|
8
|
+
TINY = 0
|
9
|
+
TAG = "rc2"
|
10
|
+
STRING = [MAJOR, MINOR, TINY, TAG].compact.join('.')
|
11
|
+
end
|
9
12
|
end
|
10
13
|
end
|
11
14
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mystro-volley
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.0.
|
4
|
+
version: 0.1.0.rc2
|
5
5
|
prerelease: 6
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -210,7 +210,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
210
210
|
version: '0'
|
211
211
|
segments:
|
212
212
|
- 0
|
213
|
-
hash:
|
213
|
+
hash: -1956665698869199363
|
214
214
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
215
215
|
none: false
|
216
216
|
requirements:
|