versioneer 0.2.1 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/Rakefile +4 -6
- data/bin/versioneer +15 -7
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 53c4246187b1561c23ad5a84960dfa3de968b5f2
|
4
|
+
data.tar.gz: 37406211a96ff040d547c51485342ac4595b5634
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fc1ad04545c79f3e4528f6b254dfba6bf54c9835bd24931de6f8b4ae36e3b265123f14999d72771e7d189866ed0c0f0b1db708be1206d66b0b788775721eb65c
|
7
|
+
data.tar.gz: b9ebba4412af3ad1b1fecc780aa93541ab5b9e3b329a992963b063d9292526e8d09151c387ec032a3f0d153146c533a344cf5c3759498e3d70843e4293f1095a
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Versioneer Gem Changelog
|
2
2
|
|
3
|
+
### 0.3 (2017-01-02)
|
4
|
+
|
5
|
+
* __`NEW`__ Add relock command-line action.
|
6
|
+
* __`NEW`__ Add --quiet command-line option.
|
7
|
+
* __`!!!`__ Fix Git VCS detection.
|
8
|
+
* __`~~~`__ Update documentation.
|
9
|
+
|
10
|
+
|
3
11
|
### 0.2 (2017-01-01)
|
4
12
|
|
5
13
|
* __`NEW`__ Add support for project config files.
|
data/Rakefile
CHANGED
@@ -11,12 +11,10 @@ task :default => :test
|
|
11
11
|
|
12
12
|
load 'changelog.rake'
|
13
13
|
|
14
|
-
task :
|
15
|
-
|
16
|
-
system './bin/versioneer unlock > /dev/null'
|
17
|
-
system './bin/versioneer lock'
|
14
|
+
task :versioneer do
|
15
|
+
system './bin/versioneer relock'
|
18
16
|
end
|
19
17
|
|
20
|
-
Rake::Task[:build].enhance [:
|
21
|
-
system './bin/versioneer unlock
|
18
|
+
Rake::Task[:build].enhance [:versioneer] do
|
19
|
+
system './bin/versioneer unlock -q'
|
22
20
|
end
|
data/bin/versioneer
CHANGED
@@ -33,6 +33,9 @@ opparser = OptionParser.new do |opts|
|
|
33
33
|
opts.on('-e ENVIRONMENT', '--env=ENVIRONMENT', 'Environment (production)') do |v|
|
34
34
|
repo_opts[:environment] = v
|
35
35
|
end
|
36
|
+
opts.on('-q', '--quiet', 'Silence action output') do |v|
|
37
|
+
cli_opts[:quiet] = true
|
38
|
+
end
|
36
39
|
end
|
37
40
|
opparser.parse!
|
38
41
|
|
@@ -80,14 +83,19 @@ case (cmd = ARGV.shift)
|
|
80
83
|
puts " PRODUCTION -> #{v} #{locked}"
|
81
84
|
when 'print'
|
82
85
|
puts v.to_s
|
83
|
-
when 'lock'
|
86
|
+
when 'lock', 'relock'
|
87
|
+
v.unlock! if cmd == 'relock'
|
84
88
|
v.lock!(ARGV.shift)
|
85
|
-
|
86
|
-
|
89
|
+
unless cli_opts[:quiet]
|
90
|
+
puts "+ #{Versioneer::Config::DEFAULT_LOCK}"
|
91
|
+
puts "Version: #{v}"
|
92
|
+
end
|
87
93
|
when 'unlock'
|
88
94
|
v.unlock!
|
89
|
-
|
90
|
-
|
95
|
+
unless cli_opts[:quiet]
|
96
|
+
puts "- #{Versioneer::Config::DEFAULT_LOCK}"
|
97
|
+
puts "#{v.environment.capitalize} version now: #{v}"
|
98
|
+
end
|
91
99
|
when 'init'
|
92
100
|
init_file = Versioneer::Config::DEFAULT_FILE
|
93
101
|
if File.exist?(init_file)
|
@@ -95,7 +103,7 @@ case (cmd = ARGV.shift)
|
|
95
103
|
exit(1)
|
96
104
|
end
|
97
105
|
File.open(init_file, 'w') do |file|
|
98
|
-
puts "Generating config..."
|
106
|
+
puts "Generating config..." unless cli_opts[:quiet]
|
99
107
|
[
|
100
108
|
"# Versioneer Project Configuration",
|
101
109
|
"# https://git.io/versioneer-help",
|
@@ -109,7 +117,7 @@ case (cmd = ARGV.shift)
|
|
109
117
|
].each do |line|
|
110
118
|
file.write(line + "\n")
|
111
119
|
end
|
112
|
-
puts "+ #{File.basename(init_file)}"
|
120
|
+
puts "+ #{File.basename(init_file)}" unless cli_opts[:quiet]
|
113
121
|
end
|
114
122
|
else
|
115
123
|
puts opparser.help
|