factorylabs-fdlcap 0.3.7 → 0.3.8

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.7
1
+ 0.3.8
data/fdlcap.gemspec CHANGED
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{fdlcap}
5
- s.version = "0.3.7"
5
+ s.version = "0.3.8"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Factory Design Labs"]
9
- s.date = %q{2009-07-10}
9
+ s.date = %q{2009-07-20}
10
10
  s.default_executable = %q{fdlcap}
11
11
  s.email = %q{interactive@factorylabs.com}
12
12
  s.executables = ["fdlcap"]
@@ -8,6 +8,7 @@ Capistrano::Configuration.instance(:must_exist).load do
8
8
 
9
9
  set :keep_release_tags, 5 unless exists?(:keep_release_tags)
10
10
  namespace :release_tagger do
11
+ desc "remove old tags, similar to keep_releases"
11
12
  task :remove_previous_tags, :roles => :app do
12
13
  keep_tags = fetch(:keep_release_tags, 5)
13
14
  tags = `git tag`
@@ -27,13 +28,20 @@ Capistrano::Configuration.instance(:must_exist).load do
27
28
  end
28
29
  end
29
30
  end
31
+
32
+ desc "remove all local tags before release_tagger fetches all tags"
33
+ task :remove_local_tags, :roles => :app do
34
+ puts `git tag -l | xargs git tag -d` if fetch(:remove_local_tags, true)
35
+ end
30
36
  end
31
37
 
32
38
  # Run release tagger to get the right release for the deploy
33
- before "deploy:update_code", "release_tagger:set_branch"
34
- before "deploy:cleanup", "release_tagger:create_tag"
35
- before "deploy:cleanup", "release_tagger:write_tag_to_shared"
36
- before "deploy:cleanup", "release_tagger:remove_previous_tags"
37
- before "deploy:cleanup", "release_tagger:print_latest_tags"
39
+ before "deploy:update_code", "release_tagger:set_branch"
40
+ before "deploy:cleanup", "release_tagger:create_tag"
41
+ before "deploy:cleanup", "release_tagger:write_tag_to_shared"
42
+ before "deploy:cleanup", "release_tagger:remove_previous_tags"
43
+ before "deploy:cleanup", "release_tagger:print_latest_tags"
44
+
45
+ before "release_tagger:create_tag", "release_tagger:remove_local_tags"
38
46
  end
39
47
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: factorylabs-fdlcap
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.7
4
+ version: 0.3.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Factory Design Labs
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-07-10 00:00:00 -07:00
12
+ date: 2009-07-20 00:00:00 -07:00
13
13
  default_executable: fdlcap
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency