YAVM 0.4.0 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +19 -1
  3. metadata +2 -16
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c3bc13bfa9177701cccb3f72f251193c18fa22e1
4
- data.tar.gz: 8e647cb5a737f6054b0af88c7ad330bcff440f31
3
+ metadata.gz: 00614a6d85ba88c1ee44b69f5411310ce0a35da0
4
+ data.tar.gz: c095eb2841da7051fcdefe06fd7a1b95db33aa6d
5
5
  SHA512:
6
- metadata.gz: a5e89b1d4663fbd3f0bca7d4d7a0f9eac68828586fab542d2222c19cb24bd9fa029798ba658732f0336f896d79d0d5861b504db7e0af88abfc6225b51ad06078
7
- data.tar.gz: 9ae816bea173cdfe724611d733259276d99649ed11c20e8aecdae6ccff05cf1d65e98550f03a588ed4c3af88085aa10b76448fb458c06027372db5be3a1ed11a
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
- ## Available Format Tags
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.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-01-31 00:00:00.000000000 Z
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