capistrano-helpers 0.8.2 → 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 05368872616a4dda21c56016620669c6e08142ec
4
- data.tar.gz: 56db7f1cb9f4957069ce8211e601344ae5479373
3
+ metadata.gz: 29fd7835d2f61fa21a5af02a4b57eaa8928fee86
4
+ data.tar.gz: fad91514860b5773a4a249e5c48ee4818cd1c85b
5
5
  SHA512:
6
- metadata.gz: bcb9ccf80c1118cf4a39e89090501402fef1827b36c03357262809903c1536c0f484a13676cb2fb981ddddc8befc487ba2c5222f7a9b20ea4d991d16e0a40e3b
7
- data.tar.gz: f6040714e4a4e67aaa26676c5ed2aec1487c8f4a9214f9580fbfc36ae54ac8f3aa830ca4473a87c8cbb114578a8f1cf15ccb7df8820177ffa949c18c8acf106b
6
+ metadata.gz: cde82faffc8e2fee30a63beedf7b43b091800d5e00262831704781febf4e30f44ef850491361206be21162a98d9c41742ee7f8d283b3ad33f648e0d3edac84d2
7
+ data.tar.gz: 309856444cb484e4a5b6d328483545a0812e4b51f08f872fe673598659945cb391a825a1a6b12c93b66817b52d11e62cd8fe6d22937f4588bb6bb270005260bb
data/README.rdoc CHANGED
@@ -103,6 +103,12 @@ the application, the branch/tag and the environment. E.g.:
103
103
 
104
104
  finished deploying myapp v0.5.4 to staging
105
105
 
106
+ === jekyll
107
+
108
+ Deploy a static website with [jekyll](http://jekyllrb.com/). Rebuild the site
109
+ during deployment, and override any server restarts (since it's just a static
110
+ site).
111
+
106
112
  === migrations
107
113
 
108
114
  Always run migrations during deployment.
@@ -205,4 +211,4 @@ app itself.
205
211
 
206
212
  == Copyright
207
213
 
208
- Copyright (c) 2009 West Arete Computing, Inc.
214
+ Copyright (c) 2014 West Arete Computing, Inc.
data/Rakefile CHANGED
@@ -10,6 +10,7 @@ begin
10
10
  gem.email = "team@westarete.com"
11
11
  gem.homepage = "http://github.com/westarete/capistrano-helpers"
12
12
  gem.authors = ["Scott Woods"]
13
+ gem.license = "MIT"
13
14
  gem.add_dependency('capistrano', '~> 2.0')
14
15
  gem.add_dependency('git')
15
16
  end
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.8.1
1
+ 0.9.0
@@ -2,17 +2,18 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
+ # stub: capistrano-helpers 0.9.0 ruby lib
5
6
 
6
7
  Gem::Specification.new do |s|
7
8
  s.name = "capistrano-helpers"
8
- s.version = "0.8.2"
9
+ s.version = "0.9.0"
9
10
 
10
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
+ s.require_paths = ["lib"]
11
13
  s.authors = ["Scott Woods"]
12
- s.date = "2013-11-06"
14
+ s.date = "2014-11-12"
13
15
  s.description = "A set of optional extensions to capistrano to make common tasks easier."
14
16
  s.email = "team@westarete.com"
15
- s.license = 'MIT'
16
17
  s.extra_rdoc_files = [
17
18
  "LICENSE",
18
19
  "README.rdoc"
@@ -28,9 +29,12 @@ Gem::Specification.new do |s|
28
29
  "lib/capistrano-helpers/branch.rb",
29
30
  "lib/capistrano-helpers/bundler.rb",
30
31
  "lib/capistrano-helpers/campfire.rb",
32
+ "lib/capistrano-helpers/ding.rb",
31
33
  "lib/capistrano-helpers/features.rb",
32
34
  "lib/capistrano-helpers/gems.rb",
33
35
  "lib/capistrano-helpers/git.rb",
36
+ "lib/capistrano-helpers/growl.rb",
37
+ "lib/capistrano-helpers/jekyll.rb",
34
38
  "lib/capistrano-helpers/migrations.rb",
35
39
  "lib/capistrano-helpers/passenger.rb",
36
40
  "lib/capistrano-helpers/php.rb",
@@ -44,26 +48,23 @@ Gem::Specification.new do |s|
44
48
  "test/test_helper.rb"
45
49
  ]
46
50
  s.homepage = "http://github.com/westarete/capistrano-helpers"
47
- s.require_paths = ["lib"]
48
- s.rubygems_version = "1.8.24"
51
+ s.licenses = ["MIT"]
52
+ s.rubygems_version = "2.2.2"
49
53
  s.summary = "A set of optional extensions to capistrano to make common tasks easier."
50
54
 
51
55
  if s.respond_to? :specification_version then
52
- s.specification_version = 3
56
+ s.specification_version = 4
53
57
 
54
58
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
55
59
  s.add_runtime_dependency(%q<capistrano>, ["~> 2.0"])
56
60
  s.add_runtime_dependency(%q<git>, [">= 0"])
57
- s.add_runtime_dependency(%q<versionomy>, [">= 0"])
58
61
  else
59
62
  s.add_dependency(%q<capistrano>, ["~> 2.0"])
60
63
  s.add_dependency(%q<git>, [">= 0"])
61
- s.add_dependency(%q<versionomy>, [">= 0"])
62
64
  end
63
65
  else
64
66
  s.add_dependency(%q<capistrano>, ["~> 2.0"])
65
67
  s.add_dependency(%q<git>, [">= 0"])
66
- s.add_dependency(%q<versionomy>, [">= 0"])
67
68
  end
68
69
  end
69
70
 
@@ -0,0 +1,14 @@
1
+ require File.dirname(__FILE__) + '/../capistrano-helpers' if ! defined?(CapistranoHelpers)
2
+
3
+ CapistranoHelpers.with_configuration do
4
+
5
+ namespace :deploy do
6
+ desc "Play a 'ding' sound once deploy is complete (Mac only)"
7
+ task :ding_notify do
8
+ system 'afplay /System/Library/Sounds/Glass.aiff'
9
+ end
10
+ end
11
+
12
+ after "deploy:restart", "deploy:ding_notify"
13
+
14
+ end
@@ -0,0 +1,22 @@
1
+ require File.dirname(__FILE__) + '/../capistrano-helpers' if ! defined?(CapistranoHelpers)
2
+
3
+ CapistranoHelpers.with_configuration do
4
+
5
+ namespace :deploy do
6
+ desc "Send a notification to Growl once deploy is complete, if available"
7
+ task :growl_notify do
8
+ if ! exists?(:application)
9
+ puts "You should set :application to the name of this app."
10
+ end
11
+
12
+ # If the :branch reference is a full SHA1, display it in its abbreviated form
13
+ growl_branch = fetch(:branch).sub(/\b([a-f0-9]{7})[a-f0-9]{33}\b/, '\1')
14
+ target = fetch(:stage, 'production')
15
+
16
+ system %{growlnotify -n "capistrano" -m "finished deploying #{application} #{growl_branch} to #{target}"}
17
+ end
18
+ end
19
+
20
+ after "deploy:restart", "deploy:growl_notify"
21
+
22
+ end
@@ -0,0 +1,22 @@
1
+ require File.dirname(__FILE__) + '/../capistrano-helpers' if ! defined?(CapistranoHelpers)
2
+
3
+ CapistranoHelpers.with_configuration do
4
+
5
+ namespace :deploy do
6
+ desc "Regenerate the site using jekyll."
7
+ task :jekyll_build do
8
+ run "cd #{release_path} && bundle exec jekyll build"
9
+ end
10
+
11
+ task :restart do
12
+ # No need to restart the web server.
13
+ end
14
+
15
+ task :finalize_update do
16
+ # No need to make any extra symlinks.
17
+ end
18
+ end
19
+
20
+ after "deploy:update_code", "deploy:jekyll_build"
21
+
22
+ end
metadata CHANGED
@@ -1,55 +1,41 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-helpers
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.2
4
+ version: 0.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Scott Woods
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-11-06 00:00:00.000000000 Z
11
+ date: 2014-11-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: '2.0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '2.0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: git
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '>='
39
- - !ruby/object:Gem::Version
40
- version: '0'
41
- - !ruby/object:Gem::Dependency
42
- name: versionomy
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - '>='
46
- - !ruby/object:Gem::Version
47
- version: '0'
48
- type: :runtime
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - '>='
38
+ - - ">="
53
39
  - !ruby/object:Gem::Version
54
40
  version: '0'
55
41
  description: A set of optional extensions to capistrano to make common tasks easier.
@@ -60,7 +46,7 @@ extra_rdoc_files:
60
46
  - LICENSE
61
47
  - README.rdoc
62
48
  files:
63
- - .document
49
+ - ".document"
64
50
  - LICENSE
65
51
  - README.rdoc
66
52
  - Rakefile
@@ -70,9 +56,12 @@ files:
70
56
  - lib/capistrano-helpers/branch.rb
71
57
  - lib/capistrano-helpers/bundler.rb
72
58
  - lib/capistrano-helpers/campfire.rb
59
+ - lib/capistrano-helpers/ding.rb
73
60
  - lib/capistrano-helpers/features.rb
74
61
  - lib/capistrano-helpers/gems.rb
75
62
  - lib/capistrano-helpers/git.rb
63
+ - lib/capistrano-helpers/growl.rb
64
+ - lib/capistrano-helpers/jekyll.rb
76
65
  - lib/capistrano-helpers/migrations.rb
77
66
  - lib/capistrano-helpers/passenger.rb
78
67
  - lib/capistrano-helpers/php.rb
@@ -94,18 +83,18 @@ require_paths:
94
83
  - lib
95
84
  required_ruby_version: !ruby/object:Gem::Requirement
96
85
  requirements:
97
- - - '>='
86
+ - - ">="
98
87
  - !ruby/object:Gem::Version
99
88
  version: '0'
100
89
  required_rubygems_version: !ruby/object:Gem::Requirement
101
90
  requirements:
102
- - - '>='
91
+ - - ">="
103
92
  - !ruby/object:Gem::Version
104
93
  version: '0'
105
94
  requirements: []
106
95
  rubyforge_project:
107
- rubygems_version: 2.0.3
96
+ rubygems_version: 2.2.2
108
97
  signing_key:
109
- specification_version: 3
98
+ specification_version: 4
110
99
  summary: A set of optional extensions to capistrano to make common tasks easier.
111
100
  test_files: []