YAVM 0.3.1 → 0.4.0
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.
- checksums.yaml +4 -4
- data/README.md +14 -0
- data/lib/yavm/command_line.rb +6 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c3bc13bfa9177701cccb3f72f251193c18fa22e1
|
|
4
|
+
data.tar.gz: 8e647cb5a737f6054b0af88c7ad330bcff440f31
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a5e89b1d4663fbd3f0bca7d4d7a0f9eac68828586fab542d2222c19cb24bd9fa029798ba658732f0336f896d79d0d5861b504db7e0af88abfc6225b51ad06078
|
|
7
|
+
data.tar.gz: 9ae816bea173cdfe724611d733259276d99649ed11c20e8aecdae6ccff05cf1d65e98550f03a588ed4c3af88085aa10b76448fb458c06027372db5be3a1ed11a
|
data/README.md
CHANGED
|
@@ -77,6 +77,19 @@ Selection: 2
|
|
|
77
77
|
Now on 1.0.3
|
|
78
78
|
```
|
|
79
79
|
|
|
80
|
+
## Useful Aliases
|
|
81
|
+
|
|
82
|
+
The following (horrible) aliases can be put in a `.gitconfig` file.
|
|
83
|
+
|
|
84
|
+
```
|
|
85
|
+
semtag = !git tag -a $(version tag) -m \"Version $(version)\"
|
|
86
|
+
semcommit = !git add $(version files) && git commit -m \"Version `version`\" && git semtag
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
Issuing `git semcommit` will add all files in your project with version information,
|
|
90
|
+
do a commit with the version number and create a tag with the version number.
|
|
91
|
+
|
|
92
|
+
|
|
80
93
|
# Roadmap
|
|
81
94
|
|
|
82
95
|
## Features
|
|
@@ -97,3 +110,4 @@ Now on 1.0.3
|
|
|
97
110
|
- [x] 'version init'
|
|
98
111
|
- [x] quick mode (when finding versions - short circuit once one is found)
|
|
99
112
|
- [ ] raise sensible exceptions
|
|
113
|
+
- [x] output a list of files which contain version info (for the `semcommit` git alias)
|
data/lib/yavm/command_line.rb
CHANGED
|
@@ -96,6 +96,9 @@ module YAVM
|
|
|
96
96
|
when 'tag'
|
|
97
97
|
puts "#{version.tag}"
|
|
98
98
|
|
|
99
|
+
when 'files'
|
|
100
|
+
puts versions.map { |v| v.store.filename || nil }.compact.join "\n"
|
|
101
|
+
|
|
99
102
|
when 'help'
|
|
100
103
|
Docopt::Exit.set_usage(nil)
|
|
101
104
|
fail Docopt::Exit, doc.strip
|
|
@@ -146,6 +149,7 @@ module YAVM
|
|
|
146
149
|
#{@invocation} meta [<string>]
|
|
147
150
|
#{@invocation} format <string>
|
|
148
151
|
#{@invocation} tag
|
|
152
|
+
#{@invocation} files
|
|
149
153
|
#{@invocation} help
|
|
150
154
|
|
|
151
155
|
Options:
|
|
@@ -155,6 +159,7 @@ module YAVM
|
|
|
155
159
|
meta Set a metadata version suffix
|
|
156
160
|
format Display version in specific format (%M, %m, %p, %s, %t, %-s, %-t)
|
|
157
161
|
tag Equivalent to format 'v%M.%m.%-p%-s'
|
|
162
|
+
files List the files which store version information
|
|
158
163
|
help Show this screen.
|
|
159
164
|
|
|
160
165
|
DOCOPT
|
|
@@ -173,7 +178,7 @@ module YAVM
|
|
|
173
178
|
end
|
|
174
179
|
|
|
175
180
|
def support_commands
|
|
176
|
-
%w(help)
|
|
181
|
+
%w(help files)
|
|
177
182
|
end
|
|
178
183
|
end
|
|
179
184
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: YAVM
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.4.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Lewis Eason
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-01-
|
|
11
|
+
date: 2015-01-31 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: docopt
|