YAVM 0.4.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +19 -1
- metadata +2 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 00614a6d85ba88c1ee44b69f5411310ce0a35da0
|
4
|
+
data.tar.gz: c095eb2841da7051fcdefe06fd7a1b95db33aa6d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9b0372097d1be4cc53611184184e973cd94f5dc01fc37d5912bde8c0218565ce579324fa796f1853eebd136ae60423f9ee39fab4d714f677f7ec15744b34fafa
|
7
|
+
data.tar.gz: 073e1526bbd6658d91cf952b0bb24939eccec6699074fb8f2f1d49983e8d127a888b98047dddf2d40e5cb96757cfd0a442ffba2d5f6ef616a571e95e6090272c
|
data/README.md
CHANGED
@@ -20,6 +20,8 @@ With planned support for:
|
|
20
20
|
|
21
21
|
# Usage
|
22
22
|
|
23
|
+
## Command Line
|
24
|
+
|
23
25
|
*Exhaustive usage patterns can be found at `version help`*
|
24
26
|
|
25
27
|
``` shell
|
@@ -43,7 +45,22 @@ $ version tag # => v1.0.0+20141113 (useful for version control)
|
|
43
45
|
$ version format "%M.%m" # => 1.0
|
44
46
|
```
|
45
47
|
|
46
|
-
##
|
48
|
+
## Ruby Interface
|
49
|
+
|
50
|
+
Add to Gemfile or install by hand, and use like so:
|
51
|
+
|
52
|
+
``` ruby
|
53
|
+
require 'yavm'
|
54
|
+
|
55
|
+
if YAVM.version
|
56
|
+
puts "The version is #{YAVM.version.tag}"
|
57
|
+
# ...
|
58
|
+
end
|
59
|
+
```
|
60
|
+
|
61
|
+
## Advanced Usage
|
62
|
+
|
63
|
+
### Available Format Tags
|
47
64
|
|
48
65
|
Tag | Meaning
|
49
66
|
----|---------------------
|
@@ -111,3 +128,4 @@ do a commit with the version number and create a tag with the version number.
|
|
111
128
|
- [x] quick mode (when finding versions - short circuit once one is found)
|
112
129
|
- [ ] raise sensible exceptions
|
113
130
|
- [x] output a list of files which contain version info (for the `semcommit` git alias)
|
131
|
+
- [ ] javascript programmatic interface (current fix is to dump the output of the version command to a file somewhere)
|
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.5.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-
|
11
|
+
date: 2015-03-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: docopt
|
@@ -24,20 +24,6 @@ dependencies:
|
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0.5'
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: json
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - "~>"
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: '1.8'
|
34
|
-
type: :runtime
|
35
|
-
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - "~>"
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: '1.8'
|
41
27
|
- !ruby/object:Gem::Dependency
|
42
28
|
name: rake
|
43
29
|
requirement: !ruby/object:Gem::Requirement
|