buildar 2.0.0.7 → 2.0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +25 -19
- data/VERSION +1 -1
- data/lib/buildar.rb +18 -13
- metadata +11 -7
- checksums.yaml +0 -15
data/README.md
CHANGED
@@ -13,24 +13,28 @@ Core
|
|
13
13
|
* `release` - `build` `publish` `tag`
|
14
14
|
* `build` - `pre_build` gem build a pkg/.gem
|
15
15
|
* `gem_package` - `pre_build` Gem::PackageTask builds a pkg/.gem
|
16
|
-
* `
|
16
|
+
* `publish` - `built` gem push
|
17
|
+
* `buildar` - config check
|
18
|
+
|
19
|
+
Aux
|
20
|
+
* `pre_build` - invoke `test` and `bump:build` conditionally
|
21
|
+
* `built` - `build` conditionally
|
22
|
+
* `install` - `built` gem install .gem
|
17
23
|
* `install_new` - `build` install built .gem
|
18
24
|
* `version` - show the current project version
|
19
|
-
|
20
|
-
|
21
|
-
*
|
22
|
-
*
|
23
|
-
* `publish` - `built` gem push
|
24
|
-
* `tag` - `message` git tag according to current version, pushed to origin
|
25
|
+
|
26
|
+
With git integration
|
27
|
+
* `tag` - `message` git tag current version, push to origin
|
28
|
+
* `message` - capture a message from ENV['message'] or prompt STDIN
|
25
29
|
|
26
30
|
With version file integration
|
27
|
-
* `
|
28
|
-
* `
|
29
|
-
* `
|
30
|
-
* `
|
31
|
-
* `
|
32
|
-
* `
|
33
|
-
* `
|
31
|
+
* `bump:build` - increment the 4th version number (1.2.3.4 -> 1.2.3.5)
|
32
|
+
* `bump:patch` - increment the 3rd version number (1.2.3.4 -> 1.2.4.0)
|
33
|
+
* `bump:minor` - increment the 2nd version number (1.2.3.4 -> 1.3.0.0)
|
34
|
+
* `bump:major` - increment the 1st version number (1.2.3.4 -> 2.0.0.0)
|
35
|
+
* `release:patch` - `bump:patch` `release`
|
36
|
+
* `release:minor` - `bump:minor` `release`
|
37
|
+
* `release:major` - `bump:major` `release`
|
34
38
|
|
35
39
|
Tasks which depend on optional functionality will not fail if the option is disabled. They are effectively skipped.
|
36
40
|
|
@@ -126,12 +130,14 @@ The VERSION file should look something like
|
|
126
130
|
1.2.3.4
|
127
131
|
```
|
128
132
|
|
129
|
-
Buildar will be able to `
|
133
|
+
Buildar will be able to `bump:major` `bump:minor` `bump:patch` and `bump:build`. This helps with a repeatable, identifiable builds: `build` depends on `bump:build` etc.
|
134
|
+
|
135
|
+
Every build bumps the build number. Since the build operates off of your potentially dirty working copy, and not some commit SHA, there is no guarantee that things haven't changed between builds, even if "nothing is supposed to have changed". This guarantees that you can't have 2 builds floating around with the same version number but different contents.
|
130
136
|
|
131
|
-
|
132
|
-
* `
|
133
|
-
* `
|
134
|
-
* `
|
137
|
+
Typically you'll want to let Buildar manage the build number, and you manage the major, minor, and patch numbers with:
|
138
|
+
* `release:major` - `bump:major`
|
139
|
+
* `release:minor` - `bump:minor`
|
140
|
+
* `release:patch` - `bump:patch`
|
135
141
|
|
136
142
|
To make your app or lib aware of its version via this file, simply:
|
137
143
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.0.
|
1
|
+
2.0.1.1
|
data/lib/buildar.rb
CHANGED
@@ -83,7 +83,7 @@ class Buildar < Rake::TaskLib
|
|
83
83
|
end
|
84
84
|
|
85
85
|
#
|
86
|
-
# tasks to be kept out of
|
86
|
+
# tasks to be kept out of @ns namespace
|
87
87
|
#
|
88
88
|
|
89
89
|
desc "config check"
|
@@ -105,12 +105,12 @@ EOF
|
|
105
105
|
end
|
106
106
|
|
107
107
|
if @version_file
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
108
|
+
namespace :bump do
|
109
|
+
# tasks :bump_major, :bump_minor, :bump_patch, :bump_build
|
110
|
+
# commit the version file if @use_git
|
111
|
+
#
|
112
|
+
[:major, :minor, :patch, :build].each { |v|
|
113
|
+
desc "increment the #{v} number in #{@version_file}"
|
114
114
|
task v do
|
115
115
|
old_version = self.read_version
|
116
116
|
new_version = self.class.bump(v, old_version)
|
@@ -123,8 +123,8 @@ EOF
|
|
123
123
|
sh "git commit #{@version_file} -m #{msg.inspect}"
|
124
124
|
end
|
125
125
|
end
|
126
|
-
|
127
|
-
|
126
|
+
}
|
127
|
+
end
|
128
128
|
end
|
129
129
|
end
|
130
130
|
|
@@ -183,17 +183,22 @@ EOF
|
|
183
183
|
desc "build a new version and install"
|
184
184
|
task :install_new => [:build, :install]
|
185
185
|
|
186
|
+
desc "display current version"
|
187
|
+
task :version do
|
188
|
+
puts self.gemspec.version
|
189
|
+
end
|
190
|
+
|
186
191
|
#
|
187
192
|
# Optional tasks
|
188
193
|
#
|
189
194
|
|
190
195
|
if @version_file
|
191
|
-
|
192
|
-
|
196
|
+
namespace :release do
|
197
|
+
[:major, :minor, :patch].each { |v|
|
193
198
|
desc "increment the #{v} number and release"
|
194
199
|
task v => ["bump:#{v}", :release]
|
195
|
-
|
196
|
-
|
200
|
+
}
|
201
|
+
end
|
197
202
|
end
|
198
203
|
|
199
204
|
if @use_git
|
metadata
CHANGED
@@ -1,29 +1,32 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: buildar
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.1.1
|
5
|
+
prerelease:
|
5
6
|
platform: ruby
|
6
7
|
authors:
|
7
8
|
- Rick Hull
|
8
9
|
autorequire:
|
9
10
|
bindir: bin
|
10
11
|
cert_chain: []
|
11
|
-
date: 2013-07-
|
12
|
+
date: 2013-07-12 00:00:00.000000000 Z
|
12
13
|
dependencies:
|
13
14
|
- !ruby/object:Gem::Dependency
|
14
15
|
name: rake
|
15
16
|
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
16
18
|
requirements:
|
17
19
|
- - ! '>='
|
18
20
|
- !ruby/object:Gem::Version
|
19
21
|
version: '8'
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
20
24
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
21
26
|
requirements:
|
22
27
|
- - ! '>='
|
23
28
|
- !ruby/object:Gem::Version
|
24
29
|
version: '8'
|
25
|
-
type: :runtime
|
26
|
-
prerelease: false
|
27
30
|
description: Buildar helps automate the release process with versioning, building,
|
28
31
|
packaging, and publishing. Optional git integration.
|
29
32
|
email:
|
@@ -40,25 +43,26 @@ files:
|
|
40
43
|
homepage: https://github.com/rickhull/buildar
|
41
44
|
licenses:
|
42
45
|
- MIT
|
43
|
-
metadata: {}
|
44
46
|
post_install_message:
|
45
47
|
rdoc_options: []
|
46
48
|
require_paths:
|
47
49
|
- lib
|
48
50
|
required_ruby_version: !ruby/object:Gem::Requirement
|
51
|
+
none: false
|
49
52
|
requirements:
|
50
53
|
- - ! '>='
|
51
54
|
- !ruby/object:Gem::Version
|
52
55
|
version: '0'
|
53
56
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
54
58
|
requirements:
|
55
59
|
- - ! '>='
|
56
60
|
- !ruby/object:Gem::Version
|
57
61
|
version: '0'
|
58
62
|
requirements: []
|
59
63
|
rubyforge_project:
|
60
|
-
rubygems_version:
|
64
|
+
rubygems_version: 1.8.23
|
61
65
|
signing_key:
|
62
|
-
specification_version:
|
66
|
+
specification_version: 3
|
63
67
|
summary: Buildar crept inside your rakefile and scratched upon the tasking post
|
64
68
|
test_files: []
|
checksums.yaml
DELETED
@@ -1,15 +0,0 @@
|
|
1
|
-
---
|
2
|
-
!binary "U0hBMQ==":
|
3
|
-
metadata.gz: !binary |-
|
4
|
-
ZWNlYmY1ZmFhMWE1MDY1YjhjNjc5ODExZjliNjU3NWY1ZGVkYzIwYQ==
|
5
|
-
data.tar.gz: !binary |-
|
6
|
-
ZTY5NTE3YjE4MGRmNWI3ODA0OGRjNmFkYTg3ZTQzZGEwZTUwMTVhMw==
|
7
|
-
!binary "U0hBNTEy":
|
8
|
-
metadata.gz: !binary |-
|
9
|
-
MWQ3OGY5NzhiNmY2NjM3ZmEyOTliYjZhODNmOWVhZDQzYzI0ZGU2ZTEyM2U3
|
10
|
-
YmRhNjViMTgyZWE2MWRkZWI5NTJkNGYzYzYzYWUyMTVmZWJlMmMxYjg5YzJj
|
11
|
-
MjcxMjZkNjAxMzRhNGZkMzc1Y2MyNTJlOGZmOWJhN2I4OTdiY2U=
|
12
|
-
data.tar.gz: !binary |-
|
13
|
-
NTU0MGM4NmEzYTllNTcxMGYxNDg4YmY0NGFiYzYzMTA0MTExMDA0YmI5OGZk
|
14
|
-
MGY1YmUwN2Q5MzNlYTYyZWEwY2JmNTBjMWQyZDYwODkzZGQ0ZTU4NjBiZTc4
|
15
|
-
MjI3ZTA5MzU4NDA3MGQ3Zjg5OWFiYjFjNGMxMTg2Njk4MjFlOWQ=
|