buildar 3.0.0.2 → 3.1.0.1
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.
- checksums.yaml +5 -5
- data/README.md +1 -14
- data/Rakefile +8 -12
- data/VERSION +1 -1
- data/buildar.gemspec +4 -5
- data/lib/buildar.rb +1 -1
- data/test/buildar.rb +55 -0
- metadata +9 -10
- data/MANIFEST.txt +0 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 650a802bd480f4a737731c48790225ea2e9ad1732da301f5822614b707e37b6b
|
4
|
+
data.tar.gz: eaeb74445dde4a5ff0473e2970f1bebc93d7eb2f5f1e022c8648514c1607c6f4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 87797a5cfb12eb28bba7f4d3f05b9e59acf45bb3ed4904f2f1bf9d583deb4157b04570c9d165d516e79bd5950cf43d8ce03f61c9951b3824bc0ddcbdecbf7b29
|
7
|
+
data.tar.gz: 50e207e7441d6d5ee26bb441318e9607d88b368301378dff4fafd89320ba6ae09d011a4426d2a27945652a1dd58dbf7c1ba2428d5a5eaf74610959be8f8f77cf
|
data/README.md
CHANGED
@@ -1,6 +1,4 @@
|
|
1
1
|
[](http://badge.fury.io/rb/buildar)
|
2
|
-
[](https://gemnasium.com/rickhull/buildar)
|
3
|
-
[](https://hakiri.io/github/rickhull/buildar/master/shield)
|
4
2
|
|
5
3
|
# Buildar
|
6
4
|
|
@@ -211,15 +209,4 @@ Buildar.new do |b|
|
|
211
209
|
You'll need to keep your gemspec file in synch with `b.version_file`.
|
212
210
|
Here's [how Buildar does it](https://github.com/rickhull/buildar/blob/master/buildar.gemspec):
|
213
211
|
|
214
|
-
|
215
|
-
# Gem::Specification.new do |s|
|
216
|
-
# ...
|
217
|
-
s.version = File.read(File.join(__dir__, 'VERSION')).chomp
|
218
|
-
s.files =
|
219
|
-
File.readlines(File.join(__dir__, 'MANIFEST.txt')).map { |f| f.chomp }
|
220
|
-
```
|
221
|
-
|
222
|
-
Buildar maintains a
|
223
|
-
[MANIFEST.txt](https://github.com/rickhull/buildar/blob/master/MANIFEST.txt)
|
224
|
-
-- the canonical list of files belonging to the project --
|
225
|
-
outside of the gemspec.
|
212
|
+
https://github.com/rickhull/buildar/blob/04ee729169bc4f77fc6f68778e565c7fcf914e7d/buildar.gemspec#L12-L15
|
data/Rakefile
CHANGED
@@ -1,3 +1,11 @@
|
|
1
|
+
require 'rake/testtask'
|
2
|
+
|
3
|
+
Rake::TestTask.new do |t|
|
4
|
+
t.test_files = FileList['test/**/*.rb']
|
5
|
+
end
|
6
|
+
|
7
|
+
task default: :test
|
8
|
+
|
1
9
|
begin
|
2
10
|
require 'buildar'
|
3
11
|
|
@@ -10,15 +18,3 @@ begin
|
|
10
18
|
rescue LoadError => e
|
11
19
|
warn "buildar failed to load: #{e}"
|
12
20
|
end
|
13
|
-
|
14
|
-
begin
|
15
|
-
require 'rake/testtask'
|
16
|
-
|
17
|
-
Rake::TestTask.new do |t|
|
18
|
-
t.test_files = FileList['test/**/*.rb']
|
19
|
-
end
|
20
|
-
|
21
|
-
task default: :test
|
22
|
-
rescue Exception => e
|
23
|
-
warn "rake/testtask error: #{e}"
|
24
|
-
end
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.
|
1
|
+
3.1.0.1
|
data/buildar.gemspec
CHANGED
@@ -5,13 +5,12 @@ Gem::Specification.new do |s|
|
|
5
5
|
s.author = 'Rick Hull'
|
6
6
|
s.homepage = 'https://github.com/rickhull/buildar'
|
7
7
|
s.license = 'MIT'
|
8
|
-
s.has_rdoc = true
|
9
8
|
s.description = 'Buildar helps automate the release process with versioning, building, packaging, and publishing. Optional git integration.'
|
10
9
|
|
11
|
-
s.required_ruby_version = "
|
10
|
+
s.required_ruby_version = ">= 2"
|
12
11
|
|
13
|
-
# dynamic assignments
|
14
12
|
s.version = File.read(File.join(__dir__, 'VERSION')).chomp
|
15
|
-
s.files
|
16
|
-
|
13
|
+
s.files = %w[buildar.gemspec VERSION README.md Rakefile]
|
14
|
+
s.files += Dir['lib/**/*.rb']
|
15
|
+
s.files += Dir['test/**/*.rb']
|
17
16
|
end
|
data/lib/buildar.rb
CHANGED
@@ -159,7 +159,7 @@ EOF
|
|
159
159
|
|
160
160
|
# desc "used internally; make sure we have .gem for the current version"
|
161
161
|
task :built do
|
162
|
-
Rake::Task[:build].invoke unless File.
|
162
|
+
Rake::Task[:build].invoke unless File.exist? self.gem_file
|
163
163
|
end
|
164
164
|
|
165
165
|
desc "publish the current version to rubygems.org"
|
data/test/buildar.rb
ADDED
@@ -0,0 +1,55 @@
|
|
1
|
+
require 'minitest/autorun'
|
2
|
+
require 'buildar'
|
3
|
+
|
4
|
+
describe Buildar do
|
5
|
+
describe :bump do
|
6
|
+
it "must handle empty version" do
|
7
|
+
expect(Buildar.bump(:build, '')).must_equal '0.0.0.1'
|
8
|
+
expect(Buildar.bump(:patch, '')).must_equal '0.0.1'
|
9
|
+
expect(Buildar.bump(:minor, '')).must_equal '0.1'
|
10
|
+
expect(Buildar.bump(:major, '')).must_equal '1'
|
11
|
+
end
|
12
|
+
|
13
|
+
it "must handle 0 version" do
|
14
|
+
expect(Buildar.bump(:build, '0')).must_equal '0.0.0.1'
|
15
|
+
expect(Buildar.bump(:patch, '0')).must_equal '0.0.1'
|
16
|
+
expect(Buildar.bump(:minor, '0')).must_equal '0.1'
|
17
|
+
expect(Buildar.bump(:major, '0')).must_equal '1'
|
18
|
+
end
|
19
|
+
|
20
|
+
it "must handle 1 version" do
|
21
|
+
expect(Buildar.bump(:build, '1')).must_equal '1.0.0.1'
|
22
|
+
expect(Buildar.bump(:patch, '1')).must_equal '1.0.1'
|
23
|
+
expect(Buildar.bump(:minor, '1')).must_equal '1.1'
|
24
|
+
expect(Buildar.bump(:major, '1')).must_equal '2'
|
25
|
+
end
|
26
|
+
|
27
|
+
it "must handle 0.1 version" do
|
28
|
+
expect(Buildar.bump(:build, '0.1')).must_equal '0.1.0.1'
|
29
|
+
expect(Buildar.bump(:patch, '0.1')).must_equal '0.1.1'
|
30
|
+
expect(Buildar.bump(:minor, '0.1')).must_equal '0.2'
|
31
|
+
expect(Buildar.bump(:major, '0.1')).must_equal '1.0'
|
32
|
+
end
|
33
|
+
|
34
|
+
it "must handle 0.1.2 version" do
|
35
|
+
expect(Buildar.bump(:build, '0.1.2')).must_equal '0.1.2.1'
|
36
|
+
expect(Buildar.bump(:patch, '0.1.2')).must_equal '0.1.3'
|
37
|
+
expect(Buildar.bump(:minor, '0.1.2')).must_equal '0.2.0'
|
38
|
+
expect(Buildar.bump(:major, '0.1.2')).must_equal '1.0.0'
|
39
|
+
end
|
40
|
+
|
41
|
+
it "must handle 9.9.9 version" do
|
42
|
+
expect(Buildar.bump(:build, '9.9.9')).must_equal '9.9.9.1'
|
43
|
+
expect(Buildar.bump(:patch, '9.9.9')).must_equal '9.9.10'
|
44
|
+
expect(Buildar.bump(:minor, '9.9.9')).must_equal '9.10.0'
|
45
|
+
expect(Buildar.bump(:major, '9.9.9')).must_equal '10.0.0'
|
46
|
+
end
|
47
|
+
|
48
|
+
it "must handle 0.1.2.3 version" do
|
49
|
+
expect(Buildar.bump(:build, '0.1.2.3')).must_equal '0.1.2.4'
|
50
|
+
expect(Buildar.bump(:patch, '0.1.2.3')).must_equal '0.1.3.0'
|
51
|
+
expect(Buildar.bump(:minor, '0.1.2.3')).must_equal '0.2.0.0'
|
52
|
+
expect(Buildar.bump(:major, '0.1.2.3')).must_equal '1.0.0.0'
|
53
|
+
end
|
54
|
+
end
|
55
|
+
end
|
metadata
CHANGED
@@ -1,39 +1,39 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: buildar
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rick Hull
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 1980-01-01 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Buildar helps automate the release process with versioning, building,
|
14
14
|
packaging, and publishing. Optional git integration.
|
15
|
-
email:
|
15
|
+
email:
|
16
16
|
executables: []
|
17
17
|
extensions: []
|
18
18
|
extra_rdoc_files: []
|
19
19
|
files:
|
20
|
-
- MANIFEST.txt
|
21
20
|
- README.md
|
22
21
|
- Rakefile
|
23
22
|
- VERSION
|
24
23
|
- buildar.gemspec
|
25
24
|
- lib/buildar.rb
|
25
|
+
- test/buildar.rb
|
26
26
|
homepage: https://github.com/rickhull/buildar
|
27
27
|
licenses:
|
28
28
|
- MIT
|
29
29
|
metadata: {}
|
30
|
-
post_install_message:
|
30
|
+
post_install_message:
|
31
31
|
rdoc_options: []
|
32
32
|
require_paths:
|
33
33
|
- lib
|
34
34
|
required_ruby_version: !ruby/object:Gem::Requirement
|
35
35
|
requirements:
|
36
|
-
- - "
|
36
|
+
- - ">="
|
37
37
|
- !ruby/object:Gem::Version
|
38
38
|
version: '2'
|
39
39
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
@@ -42,9 +42,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
42
42
|
- !ruby/object:Gem::Version
|
43
43
|
version: '0'
|
44
44
|
requirements: []
|
45
|
-
|
46
|
-
|
47
|
-
signing_key:
|
45
|
+
rubygems_version: 3.4.4
|
46
|
+
signing_key:
|
48
47
|
specification_version: 4
|
49
48
|
summary: Buildar adds rake tasks to assist with gem publishing
|
50
49
|
test_files: []
|