capistrano-git-submodule-strategy 0.1.17 → 0.1.18

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- OTJiZDJlYjdiYzVlNGM4NjJkZTU2N2E1MGU2OGY1MGQ4YzZmZTM0OQ==
5
- data.tar.gz: !binary |-
6
- MWEzNzY0OWEyYzljODQ4OWVlNTExZTg0ZjhiZDVlMTlmNWM4YmU2MQ==
2
+ SHA1:
3
+ metadata.gz: e3bdfd6d82fb5d7e59c4f12ed146d51bc9896f8b
4
+ data.tar.gz: 9e09538dcaf5b5d9088d06175c5b5ff06cd586d0
7
5
  SHA512:
8
- metadata.gz: !binary |-
9
- OTVjZGZjM2MxMTJiYTliYWI4ZDYzYjQ0MjM2NGMyODNmNmIyZTQ0MzcxMTVh
10
- ODllMzViY2E1M2M1MmZlZDI5MzA4OGVjMWE3ODNmNTU1ZTMwODFiNDhiZmIw
11
- ZjMyMzRiNzBjNzI1NGUwYTg3YWZhZjk1ZTIzZTI5OGJmZDE4NDY=
12
- data.tar.gz: !binary |-
13
- ODEwODgzNDY2Yjg0OTRmOWM1ZTdhY2Y3NDc5ZjgyYzE2YzhiODZjYTRmNGMz
14
- MTZhZmY5NDQ1YjhjMGJkZjE5YjFjNDQ0YWIxZGFmMDdjZGM0OGU4YzI0ZGZj
15
- YzVkMTIyMjc1MzRlZmMwNTNjODYzNDJhY2E3Mjk0NjdlN2I4NGM=
6
+ metadata.gz: 94cff3e2be360795097fe7e2ff6ef83cc0efc1575604f473679c2d16f69ab787c1d89533edd3b91aa9baf60b08f0c9c954a7aa306c161a6de15a42206ee3e402
7
+ data.tar.gz: acfc196f880c643d9b81cf087f0cf2c3389fa32dc792f3e87ccdef6f1d5888aab7aec2bf5b650c44f64277ac9c432ffaf541ffe052c4ff616d7103ad4190e4e6
data/Gemfile.lock CHANGED
@@ -1,30 +1,29 @@
1
1
  GEM
2
2
  remote: http://rubygems.org/
3
3
  specs:
4
- activesupport (4.2.0)
4
+ activesupport (4.2.5)
5
5
  i18n (~> 0.7)
6
6
  json (~> 1.7, >= 1.7.7)
7
7
  minitest (~> 5.1)
8
8
  thread_safe (~> 0.3, >= 0.3.4)
9
9
  tzinfo (~> 1.1)
10
- addressable (2.3.7)
10
+ addressable (2.4.0)
11
11
  builder (3.2.2)
12
12
  descendants_tracker (0.0.4)
13
13
  thread_safe (~> 0.3, >= 0.3.1)
14
14
  docile (1.1.5)
15
- faraday (0.9.1)
15
+ faraday (0.9.2)
16
16
  multipart-post (>= 1.2, < 3)
17
17
  git (1.2.9.1)
18
- github_api (0.12.3)
19
- addressable (~> 2.3)
18
+ github_api (0.13.1)
19
+ addressable (~> 2.4.0)
20
20
  descendants_tracker (~> 0.0.4)
21
21
  faraday (~> 0.8, < 0.10)
22
- hashie (>= 3.3)
22
+ hashie (>= 3.4)
23
23
  multi_json (>= 1.7.5, < 2.0)
24
- nokogiri (~> 1.6.3)
25
24
  oauth2
26
- hashie (3.4.0)
27
- highline (1.7.0)
25
+ hashie (3.4.3)
26
+ highline (1.7.8)
28
27
  i18n (0.7.0)
29
28
  jeweler (2.0.1)
30
29
  builder
@@ -35,22 +34,22 @@ GEM
35
34
  nokogiri (>= 1.5.10)
36
35
  rake
37
36
  rdoc
38
- json (1.8.2)
39
- jwt (1.2.1)
40
- mini_portile (0.6.2)
41
- minitest (5.5.1)
42
- multi_json (1.10.1)
37
+ json (1.8.3)
38
+ jwt (1.5.2)
39
+ mini_portile2 (2.0.0)
40
+ minitest (5.8.3)
41
+ multi_json (1.11.2)
43
42
  multi_xml (0.5.5)
44
43
  multipart-post (2.0.0)
45
- nokogiri (1.6.6.2)
46
- mini_portile (~> 0.6.0)
44
+ nokogiri (1.6.7.1)
45
+ mini_portile2 (~> 2.0.0.rc2)
47
46
  oauth2 (1.0.0)
48
47
  faraday (>= 0.8, < 0.10)
49
48
  jwt (~> 1.0)
50
49
  multi_json (~> 1.3)
51
50
  multi_xml (~> 0.5)
52
51
  rack (~> 1.2)
53
- rack (1.6.0)
52
+ rack (1.6.4)
54
53
  rake (10.4.2)
55
54
  rdoc (3.12.2)
56
55
  json (~> 1.4)
@@ -60,12 +59,12 @@ GEM
60
59
  shoulda-context (1.2.1)
61
60
  shoulda-matchers (2.8.0)
62
61
  activesupport (>= 3.0.0)
63
- simplecov (0.9.2)
62
+ simplecov (0.11.1)
64
63
  docile (~> 1.1.0)
65
- multi_json (~> 1.0)
66
- simplecov-html (~> 0.9.0)
67
- simplecov-html (0.9.0)
68
- thread_safe (0.3.4)
64
+ json (~> 1.8)
65
+ simplecov-html (~> 0.10.0)
66
+ simplecov-html (0.10.0)
67
+ thread_safe (0.3.5)
69
68
  tzinfo (1.2.2)
70
69
  thread_safe (~> 0.1)
71
70
 
@@ -78,3 +77,6 @@ DEPENDENCIES
78
77
  rdoc (~> 3.12)
79
78
  shoulda
80
79
  simplecov
80
+
81
+ BUNDLED WITH
82
+ 1.10.6
data/README.md CHANGED
@@ -4,21 +4,25 @@ Git submodule support for Capistrano 3 [![Gem Version](https://badge.fury.io/rb/
4
4
 
5
5
  ## Using
6
6
 
7
- Capfile
7
+ ####Capfile
8
8
  ```ruby
9
9
  require 'capistrano/git-submodule-strategy'
10
10
  ```
11
11
 
12
- Gemfile
12
+ ####Gemfile
13
13
  ```ruby
14
14
  gem 'capistrano-git-submodule-strategy', '~> 0.1', :github => 'ekho/capistrano-git-submodule-strategy'
15
15
  ```
16
16
 
17
- deploy.rb
17
+ ####deploy.rb
18
18
  ```ruby
19
19
  set :scm, :git
20
20
  set :git_strategy, Capistrano::Git::SubmoduleStrategy
21
21
  ```
22
+ Optionally you can keep git metadata (.git directory)
23
+ ```ruby
24
+ set :git_keep_meta, true
25
+ ```
22
26
 
23
27
  ## Contributing to capistrano-git-submodule-strategy
24
28
 
@@ -32,4 +36,4 @@ set :git_strategy, Capistrano::Git::SubmoduleStrategy
32
36
 
33
37
  == Copyright
34
38
 
35
- Copyright (c) 2014 Boris Gorbylev. See LICENSE for further details.
39
+ Copyright (c) 2014 Boris Gorbylev. See LICENSE for further details.
data/Rakefile CHANGED
@@ -26,18 +26,18 @@ Jeweler::Tasks.new do |gem|
26
26
  end
27
27
  Jeweler::RubygemsDotOrgTasks.new
28
28
 
29
- require 'rake/testtask'
30
- Rake::TestTask.new(:test) do |test|
31
- test.libs << 'lib' << 'test'
32
- test.pattern = 'test/**/test_*.rb'
33
- test.verbose = true
34
- end
29
+ #require 'rake/testtask'
30
+ #Rake::TestTask.new(:test) do |test|
31
+ # test.libs << 'lib' << 'test'
32
+ # test.pattern = 'test/**/test_*.rb'
33
+ # test.verbose = true
34
+ #end
35
35
 
36
- desc "Code coverage detail"
37
- task :simplecov do
38
- ENV['COVERAGE'] = "true"
39
- Rake::Task['test'].execute
40
- end
36
+ #desc "Code coverage detail"
37
+ #task :simplecov do
38
+ # ENV['COVERAGE'] = "true"
39
+ # Rake::Task['test'].execute
40
+ #end
41
41
 
42
42
  task :default => :test
43
43
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.17
1
+ 0.1.18
@@ -2,16 +2,16 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: capistrano-git-submodule-strategy 0.1.17 ruby lib
5
+ # stub: capistrano-git-submodule-strategy 0.1.18 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "capistrano-git-submodule-strategy"
9
- s.version = "0.1.17"
9
+ s.version = "0.1.18"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib"]
13
13
  s.authors = ["Boris Gorbylev"]
14
- s.date = "2015-04-29"
14
+ s.date = "2015-12-28"
15
15
  s.description = "Git submodule support for Capistrano 3"
16
16
  s.email = "ekho@ekho.name"
17
17
  s.extra_rdoc_files = [
@@ -34,7 +34,7 @@ Gem::Specification.new do |s|
34
34
  ]
35
35
  s.homepage = "http://github.com/ekho/capistrano-git-submodule-strategy"
36
36
  s.licenses = ["MIT"]
37
- s.rubygems_version = "2.4.6"
37
+ s.rubygems_version = "2.2.2"
38
38
  s.summary = "Git submodule support for Capistrano 3"
39
39
 
40
40
  if s.respond_to? :specification_version then
@@ -15,7 +15,7 @@ class Capistrano::Git
15
15
  return false
16
16
  end
17
17
 
18
- if context.capture(:git, :'ls-remote', repo_url).split("\n").select{ |i| i.include?("refs/heads/#{fetch(:branch)}") }.empty?
18
+ if context.capture(:git, :'ls-remote', repo_url, fetch(:branch)).empty?
19
19
  context.error "Branch `#{fetch(:branch)}` not found in repo `#{repo_url}`"
20
20
  return false
21
21
  end
@@ -42,7 +42,8 @@ class Capistrano::Git
42
42
  git :remote, 'set-url', 'origin', repo_url
43
43
  end
44
44
  else
45
- context.execute("find #{release_path} -name '.git*' | xargs -I {} rm -rfv '{}'")
45
+ verbose = Rake.application.options.trace ? 'v' : ''
46
+ context.execute("find #{release_path} -name '.git*' | xargs -I {} rm -rf#{verbose} '{}'")
46
47
  end
47
48
  end
48
49
  end
metadata CHANGED
@@ -1,97 +1,97 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-git-submodule-strategy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.17
4
+ version: 0.1.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - Boris Gorbylev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-29 00:00:00.000000000 Z
11
+ date: 2015-12-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: shoulda
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ! '>='
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ! '>='
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rdoc
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ~>
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
33
  version: '3.12'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ~>
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '3.12'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: bundler
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ~>
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
47
  version: '1.0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ~>
52
+ - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '1.0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: jeweler
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ~>
59
+ - - "~>"
60
60
  - !ruby/object:Gem::Version
61
61
  version: 2.0.1
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ~>
66
+ - - "~>"
67
67
  - !ruby/object:Gem::Version
68
68
  version: 2.0.1
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: simplecov
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ! '>='
73
+ - - ">="
74
74
  - !ruby/object:Gem::Version
75
75
  version: '0'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - ! '>='
80
+ - - ">="
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: capistrano
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - ~>
87
+ - - "~>"
88
88
  - !ruby/object:Gem::Version
89
89
  version: '3.1'
90
90
  type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - ~>
94
+ - - "~>"
95
95
  - !ruby/object:Gem::Version
96
96
  version: '3.1'
97
97
  description: Git submodule support for Capistrano 3
@@ -102,7 +102,7 @@ extra_rdoc_files:
102
102
  - LICENSE
103
103
  - README.md
104
104
  files:
105
- - .document
105
+ - ".document"
106
106
  - Gemfile
107
107
  - Gemfile.lock
108
108
  - LICENSE
@@ -124,17 +124,17 @@ require_paths:
124
124
  - lib
125
125
  required_ruby_version: !ruby/object:Gem::Requirement
126
126
  requirements:
127
- - - ! '>='
127
+ - - ">="
128
128
  - !ruby/object:Gem::Version
129
129
  version: '0'
130
130
  required_rubygems_version: !ruby/object:Gem::Requirement
131
131
  requirements:
132
- - - ! '>='
132
+ - - ">="
133
133
  - !ruby/object:Gem::Version
134
134
  version: '0'
135
135
  requirements: []
136
136
  rubyforge_project:
137
- rubygems_version: 2.4.6
137
+ rubygems_version: 2.2.2
138
138
  signing_key:
139
139
  specification_version: 4
140
140
  summary: Git submodule support for Capistrano 3