capistrano-helpers 0.7.2 → 0.8.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.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.7.2
1
+ 0.8.1
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "capistrano-helpers"
8
- s.version = "0.7.2"
8
+ s.version = "0.8.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Scott Woods"]
@@ -18,7 +18,6 @@ Gem::Specification.new do |s|
18
18
  ]
19
19
  s.files = [
20
20
  ".document",
21
- "CHANGELOG.markdown",
22
21
  "LICENSE",
23
22
  "README.rdoc",
24
23
  "Rakefile",
@@ -54,13 +53,16 @@ Gem::Specification.new do |s|
54
53
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
55
54
  s.add_runtime_dependency(%q<capistrano>, ["~> 2.0"])
56
55
  s.add_runtime_dependency(%q<git>, [">= 0"])
56
+ s.add_runtime_dependency(%q<versionomy>, [">= 0"])
57
57
  else
58
58
  s.add_dependency(%q<capistrano>, ["~> 2.0"])
59
59
  s.add_dependency(%q<git>, [">= 0"])
60
+ s.add_dependency(%q<versionomy>, [">= 0"])
60
61
  end
61
62
  else
62
63
  s.add_dependency(%q<capistrano>, ["~> 2.0"])
63
64
  s.add_dependency(%q<git>, [">= 0"])
65
+ s.add_dependency(%q<versionomy>, [">= 0"])
64
66
  end
65
67
  end
66
68
 
@@ -1,11 +1,18 @@
1
1
  require File.dirname(__FILE__) + '/../capistrano-helpers' if ! defined?(CapistranoHelpers)
2
+ require 'versionomy'
2
3
 
3
4
  CapistranoHelpers.with_configuration do
4
5
 
5
6
  desc "Ensure that a branch has been selected."
6
7
  task :set_branch do
7
8
  if !exists?(:branch)
8
- set(:branch, Capistrano::CLI.ui.ask("Which tag/branch/commit? "))
9
+ latest_version = `git tag`.split.select { |s| s =~ /\d\.\d/ }.map { |s| Versionomy.parse(s) }.sort.last.to_s
10
+ prompt = latest_version ? " [#{latest_version}]" : ""
11
+ begin
12
+ response = Capistrano::CLI.ui.ask("Which tag/branch/commit#{prompt}? ").strip
13
+ response = latest_version if response.empty?
14
+ end while response.empty?
15
+ set(:branch, response)
9
16
  end
10
17
  end
11
18
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-helpers
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.2
4
+ version: 0.8.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -43,6 +43,22 @@ dependencies:
43
43
  - - ! '>='
44
44
  - !ruby/object:Gem::Version
45
45
  version: '0'
46
+ - !ruby/object:Gem::Dependency
47
+ name: versionomy
48
+ requirement: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ! '>='
52
+ - !ruby/object:Gem::Version
53
+ version: '0'
54
+ type: :runtime
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
46
62
  description: A set of optional extensions to capistrano to make common tasks easier.
47
63
  email: team@westarete.com
48
64
  executables: []
@@ -52,7 +68,6 @@ extra_rdoc_files:
52
68
  - README.rdoc
53
69
  files:
54
70
  - .document
55
- - CHANGELOG.markdown
56
71
  - LICENSE
57
72
  - README.rdoc
58
73
  - Rakefile
data/CHANGELOG.markdown DELETED
@@ -1,91 +0,0 @@
1
- # Capistrano-Helpers Changelog
2
-
3
- Fixed:
4
-
5
- * Campfire notifications were broken. Updated for new API, use git names for announcements.
6
- * Force a chown of vendor/bundler, since building gems sometimes doesn't preserve group permissions.
7
- Hopefully there will be a fix for this someday so we can avoid this workaround.
8
- * Only require tinder gem when using campfire helper, to reduce size of installation.
9
-
10
- Added:
11
-
12
- * Growl notification helper
13
- * Ding notifier
14
-
15
- ## 0.5.7
16
-
17
- Changed:
18
-
19
- * Bundler will now only use local gems in vendor/bundler, instead of looking to rubygems.org.
20
-
21
- ## 0.5.6
22
-
23
- Fixed:
24
-
25
- * Really ensure that stylesheets and javascripts are writeable.
26
-
27
- ## 0.5.5
28
-
29
- Fixed:
30
-
31
- * Ensure that skyline can write to stylesheets to compile them.
32
-
33
- ## 0.5.4
34
-
35
- Changed:
36
-
37
- * Tolerate a missing campfire.yml.
38
-
39
- ## 0.5.3
40
-
41
- Changed:
42
-
43
- * Don't install :development or :test groups when deploying with bundler.
44
-
45
- ## 0.5.0
46
-
47
- New:
48
-
49
- * Added a Bundler helper. It automatically runs "bundle install --deployment" at the appropriate time.
50
-
51
- ## 0.4.4
52
-
53
- Fixed:
54
-
55
- * Using the newest version of the Tinder gem. At some point the Campfire API changed, so we're changing with it.
56
-
57
- ## 0.4.3
58
-
59
- Removed:
60
-
61
- * Functionality to seed roles. This sort of task should be done as a typical migration, not in a Capistrano recipe.
62
-
63
- ## 0.4.2
64
-
65
- New:
66
-
67
- * Adding cache folders for a Skyline installation.
68
-
69
- Fixed:
70
-
71
- * Misspellings with regards to the SkylineCMS gem fixed.
72
-
73
- ## 0.4.1
74
-
75
- New:
76
-
77
- * Added "deploy:skyline:seed_roles" for SkylineCMS helper. This reseeds role information for Skyline projects.
78
-
79
- ## 0.4.0
80
-
81
- New:
82
-
83
- * Wrote new helpers for SkylineCMS. See http://skylinecms.nl
84
- * Changes permissions on folders. Some things like Sprockets require folders to be writable.
85
- * Creates the needed cache directories, with appropriate permissions.
86
- * Creates upload folder if it doesn't exist, then creates the symlink to it.
87
- * Runs skyline's migrations on the remote server.
88
-
89
- ## Pre-0.4.0
90
-
91
- * CHANGELOG was just created. Please see git commit history for more information.