capistrano-gity 0.3.0 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.0
1
+ 0.4.0
@@ -0,0 +1,40 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
+ # -*- encoding: utf-8 -*-
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = "capistrano-gity"
8
+ s.version = "0.4.0"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["Skroutz.gr Team"]
12
+ s.date = "2012-05-21"
13
+ s.email = "yatiohi@ideopolis.gr"
14
+ s.extra_rdoc_files = [
15
+ "LICENSE",
16
+ "README.rdoc"
17
+ ]
18
+ s.files = [
19
+ "LICENSE",
20
+ "README.rdoc",
21
+ "Rakefile",
22
+ "VERSION",
23
+ "capistrano-gity.gemspec",
24
+ "lib/capistrano-gity.rb"
25
+ ]
26
+ s.homepage = "http://github.com/ctrochalakis/capistrano-gity"
27
+ s.require_paths = ["lib"]
28
+ s.rubygems_version = "1.8.11"
29
+ s.summary = "Git helpers for capistrano deployments"
30
+
31
+ if s.respond_to? :specification_version then
32
+ s.specification_version = 3
33
+
34
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
35
+ else
36
+ end
37
+ else
38
+ end
39
+ end
40
+
@@ -7,6 +7,19 @@ Capistrano::Configuration.instance.load do
7
7
  set :remote, git_remote.empty? ? 'origin' : git_remote
8
8
  end
9
9
 
10
+ unless exists?(:check_master)
11
+ check_master = case `git config deploy.check-master`.strip
12
+ when 'false', 'f', '0'
13
+ false
14
+ when 'true', 't', '1'
15
+ true
16
+ else
17
+ true
18
+ end
19
+
20
+ set :check_master, check_master
21
+ end
22
+
10
23
  desc "Push HEAD to the central repo"
11
24
  task :push do
12
25
  system "git push --force #{remote} HEAD:#{branch}"
@@ -63,6 +76,8 @@ Capistrano::Configuration.instance.load do
63
76
  end
64
77
 
65
78
  def quit?
79
+ return false if !check_master
80
+
66
81
  upstream_master = `git rev-parse #{remote}/master`
67
82
  here = `git rev-parse HEAD`
68
83
  if here != upstream_master
metadata CHANGED
@@ -1,68 +1,52 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: capistrano-gity
3
- version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 0
7
- - 3
8
- - 0
9
- version: 0.3.0
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.4.0
5
+ prerelease:
10
6
  platform: ruby
11
- authors:
7
+ authors:
12
8
  - Skroutz.gr Team
13
9
  autorequire:
14
10
  bindir: bin
15
11
  cert_chain: []
16
-
17
- date: 2010-04-14 00:00:00 +03:00
18
- default_executable:
12
+ date: 2012-05-21 00:00:00.000000000 Z
19
13
  dependencies: []
20
-
21
14
  description:
22
15
  email: yatiohi@ideopolis.gr
23
16
  executables: []
24
-
25
17
  extensions: []
26
-
27
- extra_rdoc_files:
18
+ extra_rdoc_files:
28
19
  - LICENSE
29
20
  - README.rdoc
30
- files:
31
- - .gitignore
21
+ files:
32
22
  - LICENSE
33
23
  - README.rdoc
34
24
  - Rakefile
35
25
  - VERSION
26
+ - capistrano-gity.gemspec
36
27
  - lib/capistrano-gity.rb
37
- has_rdoc: true
38
28
  homepage: http://github.com/ctrochalakis/capistrano-gity
39
29
  licenses: []
40
-
41
30
  post_install_message:
42
- rdoc_options:
43
- - --charset=UTF-8
44
- require_paths:
31
+ rdoc_options: []
32
+ require_paths:
45
33
  - lib
46
- required_ruby_version: !ruby/object:Gem::Requirement
47
- requirements:
48
- - - ">="
49
- - !ruby/object:Gem::Version
50
- segments:
51
- - 0
52
- version: "0"
53
- required_rubygems_version: !ruby/object:Gem::Requirement
54
- requirements:
55
- - - ">="
56
- - !ruby/object:Gem::Version
57
- segments:
58
- - 0
59
- version: "0"
34
+ required_ruby_version: !ruby/object:Gem::Requirement
35
+ none: false
36
+ requirements:
37
+ - - ! '>='
38
+ - !ruby/object:Gem::Version
39
+ version: '0'
40
+ required_rubygems_version: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
60
46
  requirements: []
61
-
62
47
  rubyforge_project:
63
- rubygems_version: 1.3.6
48
+ rubygems_version: 1.8.11
64
49
  signing_key:
65
50
  specification_version: 3
66
51
  summary: Git helpers for capistrano deployments
67
52
  test_files: []
68
-
data/.gitignore DELETED
@@ -1,21 +0,0 @@
1
- ## MAC OS
2
- .DS_Store
3
-
4
- ## TEXTMATE
5
- *.tmproj
6
- tmtags
7
-
8
- ## EMACS
9
- *~
10
- \#*
11
- .\#*
12
-
13
- ## VIM
14
- *.swp
15
-
16
- ## PROJECT::GENERAL
17
- coverage
18
- rdoc
19
- pkg
20
-
21
- ## PROJECT::SPECIFIC