capistrano-git-plugins 0.0.9 → 0.0.10

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.9
1
+ 0.0.10
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "capistrano-git-plugins"
8
- s.version = "0.0.9"
8
+ s.version = "0.0.10"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Ryan Moran"]
@@ -1,7 +1,9 @@
1
1
  require 'net/http'
2
2
 
3
3
  Capistrano::Configuration.instance(:must_exist).load do
4
- if deploy_reporter_domain
4
+ reporter_domain = fetch(:deploy_reporter_domain) if exists?(:deploy_reporter_domain)
5
+
6
+ if reporter_domain
5
7
  after 'deploy', 'deploy:report'
6
8
  after 'deploy:migrations', 'deploy:report'
7
9
  end
@@ -11,7 +13,7 @@ Capistrano::Configuration.instance(:must_exist).load do
11
13
  task :report, :except => { :no_release => true } do
12
14
  local_user = ENV['USER'] || ENV['USERNAME']
13
15
  puts "\n\n### REPORT DEPLOYMENT: Reporting deployment to deployment tracking system\n\n"
14
- url = URI.parse("#{deploy_reporter_domain}/deployments")
16
+ url = URI.parse("#{reporter_domain}/deployments")
15
17
  req = Net::HTTP::Post.new(url.path)
16
18
  req.set_form_data({ 'deployment[deployer]' => local_user, 'deployment[project_name]' => application }, ';')
17
19
  res = Net::HTTP.new(url.host, url.port).start {|http| http.request(req) }
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-git-plugins
3
3
  version: !ruby/object:Gem::Version
4
- hash: 13
4
+ hash: 11
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 9
10
- version: 0.0.9
9
+ - 10
10
+ version: 0.0.10
11
11
  platform: ruby
12
12
  authors:
13
13
  - Ryan Moran
@@ -18,7 +18,8 @@ cert_chain: []
18
18
  date: 2012-02-07 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
- version_requirements: &id001 !ruby/object:Gem::Requirement
21
+ type: :development
22
+ requirement: &id001 !ruby/object:Gem::Requirement
22
23
  none: false
23
24
  requirements:
24
25
  - - ~>
@@ -29,10 +30,9 @@ dependencies:
29
30
  - 6
30
31
  - 4
31
32
  version: 1.6.4
32
- name: jeweler
33
33
  prerelease: false
34
- type: :development
35
- requirement: *id001
34
+ name: jeweler
35
+ version_requirements: *id001
36
36
  description: Plugins to support capistrano-git deployments
37
37
  email: ryan.moran@gmail.com
38
38
  executables: []