cap-git-deploy 0.0.7 → 0.1.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: 54725ebe634e5909b3811fbd8cef2ef3d711cd5f
4
- data.tar.gz: 92f0f299b3f689047d08f99a98684b636509f23f
3
+ metadata.gz: d30de087816591ce6ef09421e13797133d6fd108
4
+ data.tar.gz: c4aff5bd31e30be5e16d4e47306c06539e6cbf40
5
5
  SHA512:
6
- metadata.gz: f42a00ed89099964d3c2e31e893cd04887417b5b3819544cee323e1897b522dbdb49f169e44c0748d74630f32ecfb43b10e5c618c8c525d567e35e80e63b7bf3
7
- data.tar.gz: c9ee4e25905f96ccf60743605bc685c35f6f58060fe93ac1bea5ab0f5ed0353d66a26503471338fb3235d3252224b2c6260f092e68fbc73998ed6dc576596f7a
6
+ metadata.gz: 07c3e83ebbc8fe40d99d6e6e2fed72d81a5e0c04f4da7e0cbacf11e8ee4cf7aa24d11211a3008b6f2470cea2675e81b68d6adc396878d16a1efdfde57c453fe8
7
+ data.tar.gz: 18daec933c128c77f6c69a94aa1d46b03163d12f00374d7bd5e2292206954e3a294b75f4e71c86db8f422080ba4b2b6ba4299c640df9376e6ad33c4787c5073a
@@ -3,22 +3,23 @@ lib = File.expand_path('../lib', __FILE__)
3
3
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
  require 'cap-git-deploy/version'
5
5
 
6
- Gem::Specification.new do |gem|
7
- gem.name = 'cap-git-deploy'
8
- gem.version = Cap::Git::Deploy::VERSION
9
- gem.authors = ['Nicola Racco', 'Elia Schito']
10
- gem.email = ['nicola@mikamai.com']
11
- gem.description = %q{Mikamai-style deploy strategy}
12
- gem.summary = %q{Mikamai-style deploy strategy}
13
- gem.homepage = "http://www.mikamai.com"
6
+ Gem::Specification.new do |spec|
7
+ spec.name = 'cap-git-deploy'
8
+ spec.version = Cap::Git::Deploy::VERSION
9
+ spec.authors = ['Nicola Racco', 'Elia Schito']
10
+ spec.email = ['nicola@mikamai.com']
11
+ spec.description = %q{Mikamai-style capistrano git deployment strategy}
12
+ spec.summary = %q{Mikamai-style capistrano git deployment strategy}
13
+ spec.homepage = 'http://www.mikamai.com'
14
+ spec.license = 'MIT'
14
15
 
15
- gem.files = `git ls-files`.split($/)
16
- gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
17
- gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
18
- gem.require_paths = ["lib"]
16
+ spec.files = `git ls-files`.split($/)
17
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
+ spec.require_paths = ['lib']
19
20
 
20
- gem.add_runtime_dependency 'capistrano'
21
- gem.add_runtime_dependency 'grit'
21
+ spec.add_runtime_dependency 'capistrano', '~> 2.0'
22
+ spec.add_runtime_dependency 'grit'
22
23
 
23
- gem.add_development_dependency 'rake'
24
+ spec.add_development_dependency 'rake'
24
25
  end
@@ -1,7 +1,7 @@
1
1
  module Cap
2
2
  module Git
3
3
  module Deploy
4
- VERSION = '0.0.7'
4
+ VERSION = '0.1.0'
5
5
  end
6
6
  end
7
7
  end
@@ -16,16 +16,13 @@ namespace :deploy do
16
16
  File.join shared_path, shared_child
17
17
  end
18
18
  run "mkdir -p #{dirs.join ' '} && chmod g+w #{dirs.join ' '}"
19
- run "git clone #{repository} #{current_path}"
19
+ run "(test -d #{current_path}/.git && cd #{current_path} && git fetch origin) || git clone #{repository} #{current_path}"
20
20
 
21
21
  # This is where the log files will go
22
- run "mkdir -p #{current_path}/log" rescue 'no problem if log already exist'
22
+ run "test -d #{current_path}/log || mkdir -p #{current_path}/log"
23
23
 
24
24
  branch = fetch :branch, 'master'
25
- if branch != 'master'
26
- # This is to make sure we are on the correct branch
27
- run "cd #{current_path} && git checkout -b #{branch} --track origin/#{branch}"
28
- end
25
+ run "cd #{current_path} && git reset --hard origin/#{branch}"
29
26
  end
30
27
 
31
28
  namespace :rollback do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cap-git-deploy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nicola Racco
@@ -9,22 +9,22 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-07-25 00:00:00.000000000 Z
12
+ date: 2013-11-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: capistrano
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  requirements:
18
- - - '>='
18
+ - - ~>
19
19
  - !ruby/object:Gem::Version
20
- version: '0'
20
+ version: '2.0'
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
- - - '>='
25
+ - - ~>
26
26
  - !ruby/object:Gem::Version
27
- version: '0'
27
+ version: '2.0'
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: grit
30
30
  requirement: !ruby/object:Gem::Requirement
@@ -53,7 +53,7 @@ dependencies:
53
53
  - - '>='
54
54
  - !ruby/object:Gem::Version
55
55
  version: '0'
56
- description: Mikamai-style deploy strategy
56
+ description: Mikamai-style capistrano git deployment strategy
57
57
  email:
58
58
  - nicola@mikamai.com
59
59
  executables: []
@@ -72,7 +72,8 @@ files:
72
72
  - lib/recipes/git-revisioning.rb
73
73
  - lib/recipes/logs.rb
74
74
  homepage: http://www.mikamai.com
75
- licenses: []
75
+ licenses:
76
+ - MIT
76
77
  metadata: {}
77
78
  post_install_message:
78
79
  rdoc_options: []
@@ -90,8 +91,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
90
91
  version: '0'
91
92
  requirements: []
92
93
  rubyforge_project:
93
- rubygems_version: 2.0.3
94
+ rubygems_version: 2.1.2
94
95
  signing_key:
95
96
  specification_version: 4
96
- summary: Mikamai-style deploy strategy
97
+ summary: Mikamai-style capistrano git deployment strategy
97
98
  test_files: []