versioneer 0.2.1 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +8 -0
  3. data/Rakefile +4 -6
  4. data/bin/versioneer +15 -7
  5. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ee701908cb03f1d4b141322c9b585cc7437cad97
4
- data.tar.gz: 5e0dd2d56aa57ac5117547d082f007b7ada3c8c6
3
+ metadata.gz: 53c4246187b1561c23ad5a84960dfa3de968b5f2
4
+ data.tar.gz: 37406211a96ff040d547c51485342ac4595b5634
5
5
  SHA512:
6
- metadata.gz: 6efc9941ce943f798bdf8e9f86d59120b6f68146c6d4b2b503afe863158300cb88f2e48a4769d3d179778886c655408db991af487e29d6e0f763bec15deebdb7
7
- data.tar.gz: fdc891bfbc2218b5ab83a31af1a27bc5883da759f424b151b081009b233ab2e2319598d7105adaadb2bce18978110dbcdbd6ceb5fa8f0b6ce3da9fba5285baed
6
+ metadata.gz: fc1ad04545c79f3e4528f6b254dfba6bf54c9835bd24931de6f8b4ae36e3b265123f14999d72771e7d189866ed0c0f0b1db708be1206d66b0b788775721eb65c
7
+ data.tar.gz: b9ebba4412af3ad1b1fecc780aa93541ab5b9e3b329a992963b063d9292526e8d09151c387ec032a3f0d153146c533a344cf5c3759498e3d70843e4293f1095a
@@ -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 :relock do
15
- ENV['VERSIONEER_ENV'] = 'development'
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 [:relock] do
21
- system './bin/versioneer unlock > /dev/null'
18
+ Rake::Task[:build].enhance [:versioneer] do
19
+ system './bin/versioneer unlock -q'
22
20
  end
@@ -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
- puts "+ #{Versioneer::Config::DEFAULT_LOCK}"
86
- puts "Version: #{v}"
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
- puts "- #{Versioneer::Config::DEFAULT_LOCK}"
90
- puts "#{v.environment.capitalize} version now: #{v}"
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: versioneer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - BinaryBabel OSS