capistrano-git-plugins 0.0.8 → 0.0.9

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.8
1
+ 0.0.9
@@ -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.8"
8
+ s.version = "0.0.9"
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,7 @@
1
1
  require 'net/http'
2
2
 
3
3
  Capistrano::Configuration.instance(:must_exist).load do
4
- if configuration[:deploy_reporter_domain]
4
+ if deploy_reporter_domain
5
5
  after 'deploy', 'deploy:report'
6
6
  after 'deploy:migrations', 'deploy:report'
7
7
  end
@@ -11,7 +11,7 @@ Capistrano::Configuration.instance(:must_exist).load do
11
11
  task :report, :except => { :no_release => true } do
12
12
  local_user = ENV['USER'] || ENV['USERNAME']
13
13
  puts "\n\n### REPORT DEPLOYMENT: Reporting deployment to deployment tracking system\n\n"
14
- url = URI.parse("#{configuration[:deploy_reporter_domain]}/deployments")
14
+ url = URI.parse("#{deploy_reporter_domain}/deployments")
15
15
  req = Net::HTTP::Post.new(url.path)
16
16
  req.set_form_data({ 'deployment[deployer]' => local_user, 'deployment[project_name]' => application }, ';')
17
17
  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: 15
4
+ hash: 13
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 8
10
- version: 0.0.8
9
+ - 9
10
+ version: 0.0.9
11
11
  platform: ruby
12
12
  authors:
13
13
  - Ryan Moran