capistrano-rsync-bladrak 1.3.4 → 1.3.5

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: d7d0e6576ffd0c42450f61b717ca16cc03bd00e1
4
- data.tar.gz: 34281d0804487afc761111293b598957d48e1300
3
+ metadata.gz: 1536deeea1222c4c1e80b6d7fb60775be3c33aa6
4
+ data.tar.gz: f368b43b1368cad78a6fafee5e920db58a2ba1b0
5
5
  SHA512:
6
- metadata.gz: 9c7622fb4e4e560acf09671027c78e456cd6221d7b4f261d4a0e2625c4305aa52f9261172baacf1ee42a44d47c4cdce200502e5d14aa92c9fb37ff139bf03e5a
7
- data.tar.gz: 2e1fc380a4185a584a37ffebdf8be847e43c5c0e04ec91902b496d9c88be68ba3832aa4a0eac38b99247e060308624523c7c4e3fd31a7dace36504bf23d8d604
6
+ metadata.gz: 694f4e4d9f55e10f12041a29fe6c54521954d7fa9db1f63ae055e7b960de345a8b0c74ef09034f899faf6e48128af3b6d412b103b661a3d6f9a845adf2f066ea
7
+ data.tar.gz: 0a08d96b0f5326df904734983032ddf8c8c41f85a76fc6ffb74a807fefe5da9ba57bcf3d4447edd778ab3d99ea038eb3484f0eecac0522b16b73d2bca85796b3
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 1.3.5 (Sep 7, 2015)
2
+ - Adds clean command to submodules to remove untracking files.
3
+ - Rectifies the tag deployment.
4
+
1
5
  ## 1.3.4 (Jul 17, 2015)
2
6
  - Added ``:git_remote`` option. Gives the opportunity to define some other remote that ``origin``.
3
7
 
data/README.md CHANGED
@@ -137,7 +137,7 @@ rsync_checkout_tag | `false` | Is the ``:branch`` symbol containing a branch or
137
137
  rsync_copy | `rsync --archive --acls --xattrs` | The command used to copy from remote cache to remote release
138
138
  rsync_target_dir | `.` | The local directory within ``:rsync_stage`` to clone to & deploy (useful if you want to keep cache of several branches/tags for instance)
139
139
  enable_git_submodules | `false` | Should we fetch submodules as well?
140
- reset_git_submodules_before_update | `false` | Do a reset hard on submodules (in case you do modifications on working copies)?
140
+ reset_git_submodules_before_update | `false` | Do a reset hard and clean force on submodules (in case you do modifications on working copies)?
141
141
 
142
142
 
143
143
  License
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module Rsync
3
- VERSION = "1.3.4"
3
+ VERSION = "1.3.5"
4
4
  end
5
5
  end
@@ -53,7 +53,7 @@ end
53
53
  rsync_target = lambda do
54
54
  case fetch(:rsync_checkout)
55
55
  when "tag"
56
- target = "#{fetch(:git_remote)}/tags/#{fetch(:branch)}"
56
+ target = "tags/#{fetch(:branch)}"
57
57
  when "revision"
58
58
  target = fetch(:branch)
59
59
  else
@@ -64,7 +64,7 @@ end
64
64
 
65
65
  rsync_branch = lambda do
66
66
  if fetch(:rsync_checkout) == "tag"
67
- branch = "#{fetch(:git_remote)}/tags/#{fetch(:branch)}"
67
+ branch = "tags/#{fetch(:branch)}"
68
68
  else
69
69
  branch = fetch(:branch)
70
70
  end
@@ -193,7 +193,7 @@ namespace :rsync do
193
193
 
194
194
  if fetch(:enable_git_submodules)
195
195
  if fetch(:reset_git_submodules_before_update)
196
- execute :git, :submodule, :foreach, "git reset --hard HEAD"
196
+ execute :git, :submodule, :foreach, "'git reset --hard HEAD && git clean -qfd'"
197
197
  end
198
198
 
199
199
  execute :git, :submodule, :update
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-rsync-bladrak
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.4
4
+ version: 1.3.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hugo Briand, Andri Möll
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-17 00:00:00.000000000 Z
11
+ date: 2015-09-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano