git-lite-version-bump 0.17.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,49 @@
1
+ require 'git-version-bump'
2
+
3
+ namespace :version do
4
+ namespace :bump do
5
+ desc "bump major version (x.y.z -> x+1.0.0)"
6
+ task :major do
7
+ GVB.tag_version "#{GVB.major_version + 1}.0.0"
8
+
9
+ puts "Version is now #{GVB.version}"
10
+ end
11
+
12
+ desc "bump minor version (x.y.z -> x.y+1.0)"
13
+ task :minor do
14
+ GVB.tag_version "#{GVB.major_version}.#{GVB.minor_version+1}.0"
15
+
16
+ puts "Version is now #{GVB.version}"
17
+ end
18
+
19
+ desc "bump patch version (x.y.z -> x.y.z+1)"
20
+ task :patch do
21
+ GVB.tag_version "#{GVB.major_version}.#{GVB.minor_version}.#{GVB.patch_version+1}"
22
+
23
+ puts "Version is now #{GVB.version}"
24
+ end
25
+
26
+ desc "Print current version"
27
+ task :show do
28
+ puts GVB.version
29
+ end
30
+ end
31
+ end
32
+
33
+ namespace :v do
34
+ namespace :b do
35
+ task :major => "version:bump:major"
36
+ task :maj => "version:bump:major"
37
+
38
+ task :minor => "version:bump:minor"
39
+ task :min => "version:bump:minor"
40
+
41
+ task :patch => "version:bump:patch"
42
+ task :pat => "version:bump:patch"
43
+ task :p => "version:bump:patch"
44
+
45
+ task :show => "version:bump:show"
46
+ task :sh => "version:bump:show"
47
+ task :s => "version:bump:show"
48
+ end
49
+ end
@@ -0,0 +1,8 @@
1
+ module GitVersionBump
2
+ VERSION = GVB.version
3
+ MAJOR_VERSION = GVB.major_version
4
+ MINOR_VERSION = GVB.minor_version
5
+ PATCH_VERSION = GVB.patch_version
6
+ INTERNAL_REVISION = GVB.internal_revision
7
+ DATE = GVB.date
8
+ end
metadata ADDED
@@ -0,0 +1,109 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: git-lite-version-bump
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.17.0
5
+ platform: ruby
6
+ authors:
7
+ - Matt Palmer
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2020-03-31 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: github-release
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: bundler
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rdoc
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ description:
70
+ email:
71
+ executables:
72
+ - git-version-bump
73
+ extensions: []
74
+ extra_rdoc_files:
75
+ - README.md
76
+ files:
77
+ - ".gitignore"
78
+ - Gemfile
79
+ - LICENCE
80
+ - README.md
81
+ - Rakefile
82
+ - bin/git-version-bump
83
+ - git-version-bump.gemspec
84
+ - lib/git-version-bump.rb
85
+ - lib/git-version-bump/rake-tasks.rb
86
+ - lib/git-version-bump/version.rb
87
+ homepage: http://github.com/rbclark/git-version-bump
88
+ licenses: []
89
+ metadata: {}
90
+ post_install_message:
91
+ rdoc_options: []
92
+ require_paths:
93
+ - lib
94
+ required_ruby_version: !ruby/object:Gem::Requirement
95
+ requirements:
96
+ - - ">="
97
+ - !ruby/object:Gem::Version
98
+ version: 1.8.7
99
+ required_rubygems_version: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ requirements: []
105
+ rubygems_version: 3.0.3
106
+ signing_key:
107
+ specification_version: 4
108
+ summary: Manage your app version entirely via git tags (even lite tags)
109
+ test_files: []