versionr 0.0.2 → 0.0.3

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.
Files changed (2) hide show
  1. data/lib/versionr.rb +5 -1
  2. metadata +1 -1
data/lib/versionr.rb CHANGED
@@ -20,6 +20,11 @@ class Versionr
20
20
  File.open(@version_dir, 'w+') { |f| f.write(data.to_yaml) }
21
21
  end
22
22
 
23
+ def full_version
24
+ version = "#{@major}.#{@minor}.#{@patch}"
25
+ return version
26
+ end
27
+
23
28
  def bump_major
24
29
  @major += 1
25
30
  write_version
@@ -36,4 +41,3 @@ class Versionr
36
41
  end
37
42
 
38
43
  end
39
-
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: versionr
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: