heroku-deploy 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -18,5 +18,4 @@ Gem::Specification.new do |gem|
18
18
  gem.require_paths = ["lib"]
19
19
 
20
20
  gem.add_runtime_dependency('colored', '~> 1.2')
21
- gem.add_runtime_dependency('git', '1.2.5')
22
21
  end
@@ -1,5 +1,5 @@
1
1
  module Heroku
2
2
  module Deploy
3
- VERSION = "0.0.1"
3
+ VERSION = "0.0.2"
4
4
  end
5
5
  end
@@ -34,7 +34,7 @@ namespace :heroku do
34
34
  task :production do
35
35
  APP = ENV["PRODUCTION_APP"]
36
36
 
37
- current_branch = Git.open(File.expand_path(Rails.root)).current_branch
37
+ current_branch = `git rev-parse --abbrev-ref HEAD`
38
38
  if current_branch != "production"
39
39
  puts "-----> You can't do a deploy from '#{current_branch}'. Please use 'production' branch.".red
40
40
  exit
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: heroku-deploy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-11-29 00:00:00.000000000 Z
12
+ date: 2012-12-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: colored
@@ -27,22 +27,6 @@ dependencies:
27
27
  - - ~>
28
28
  - !ruby/object:Gem::Version
29
29
  version: '1.2'
30
- - !ruby/object:Gem::Dependency
31
- name: git
32
- requirement: !ruby/object:Gem::Requirement
33
- none: false
34
- requirements:
35
- - - '='
36
- - !ruby/object:Gem::Version
37
- version: 1.2.5
38
- type: :runtime
39
- prerelease: false
40
- version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
- requirements:
43
- - - '='
44
- - !ruby/object:Gem::Version
45
- version: 1.2.5
46
30
  description: A collection of rake tasks that help to deploy an application following
47
31
  a common way to every app.
48
32
  email: