capistrano-bundle_rsync 0.5.1 → 0.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 7af4c3f436d081b7ce4efac4c8a5525a1b511124
4
- data.tar.gz: bbd578232ba8e92b1d09ec99efcd653b9a37c247
2
+ SHA256:
3
+ metadata.gz: bfe2f655cad67a38c1a2bded794e76ea35ae6172fa13fd31bf3bc5b6390591e3
4
+ data.tar.gz: 64e49bfc61d8c8786747999fe77c1434438a0c106fdb371543a1274058d79588
5
5
  SHA512:
6
- metadata.gz: 4c71aec43299d3b152117f8ed0ea6643cfc920a0dabe93df802aedebfcffd48e4fb57539481e30f1c8446e355955175c3a26e71e45d79ef5c12790177e092cec
7
- data.tar.gz: 293588e9cafd91fc994d386f4ae7ced527c93ff8dfc7aeac442124b0740512579ece3556cad974dfd8fb2f417f91dd9f07a677fe4739229ebfe54a13952ace8c
6
+ metadata.gz: e9cffbe18e8ec9963d37559432ede3bbe9e5e4bfa771812ba19a6e0aecc2b618f5703df33e04ec16b87b7ca571add77596745eda9cc223a567f8803486300b38
7
+ data.tar.gz: 0072bb9dbed7d51987f1da5855dfca122b875f216a40413d7b2c830514223d6b4e326b36301c9877d5ad69e730a468b817dfb41bc3290332be8808565242d01f
data/.gitignore CHANGED
@@ -22,3 +22,4 @@ example/log
22
22
  example/vendor
23
23
  example/try_rails4
24
24
  .ruby-version
25
+ vendor/
@@ -1,3 +1,9 @@
1
+ # 0.5.2 (2019/02/14)
2
+
3
+ Fixes:
4
+
5
+ * Fix num_components by tree_repo (thanks to Hiroaki Kubota)
6
+
1
7
  # 0.5.1 (2017/05/29)
2
8
 
3
9
  Changes:
data/README.md CHANGED
@@ -66,6 +66,7 @@ bundle_rsync_config_files | `nil` | Additional files to rsync. Specified files a
66
66
  bundle_rsync_shared_dirs | `nil` | Additional directories to rsync. Specified directories are copied into `shared` directory.
67
67
  bundle_rsync_skip_bundle | false | (Secret option) Do not `bundle` and rsync bundle.
68
68
  bundle_rsync_bundle_install_standalone | `nil` | bundle install with --standalone option. Set one of `true`, `false`, an `Array` of groups, or a white space separated `String`.
69
+ bundle_rsync_bundle_without | `[:development, :test]` | Configuration of bundle install with --without option.
69
70
 
70
71
  ## Task Orders
71
72
 
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "capistrano-bundle_rsync"
7
- spec.version = "0.5.1"
7
+ spec.version = "0.5.2"
8
8
  spec.authors = ["Naotoshi Seo", "tohae"]
9
9
  spec.email = ["sonots@gmail.com", "tohaechan@gmail.com"]
10
10
  spec.description = %q{Deploy an application and bundled gems via rsync}
@@ -5,7 +5,7 @@ class Capistrano::BundleRsync::Bundler < Capistrano::BundleRsync::Base
5
5
  def install
6
6
  Bundler.with_clean_env do
7
7
  with bundle_app_config: config.local_base_path do
8
- opts = "--gemfile #{config.local_release_path}/Gemfile --deployment --quiet --path #{config.local_bundle_path} --without development test"
8
+ opts = "--gemfile #{config.local_release_path}/Gemfile --deployment --quiet --path #{config.local_bundle_path} --without #{config.bundle_without.join(' ')}"
9
9
  if standalone = config.bundle_install_standalone_option
10
10
  opts += " #{standalone}"
11
11
  end
@@ -27,7 +27,7 @@ class Capistrano::BundleRsync::Bundler < Capistrano::BundleRsync::Base
27
27
  ---
28
28
  BUNDLE_FROZEN: '1'
29
29
  BUNDLE_PATH: #{shared_path.join('bundle')}
30
- BUNDLE_WITHOUT: development:test
30
+ BUNDLE_WITHOUT: #{config.bundle_without.join(':')}
31
31
  BUNDLE_DISABLE_SHARED_GEMS: '1'
32
32
  BUNDLE_BIN: #{release_path.join('bin')}
33
33
  EOS
@@ -109,5 +109,9 @@ module Capistrano::BundleRsync
109
109
  nil
110
110
  end
111
111
  end
112
+
113
+ def self.bundle_without
114
+ fetch(:bundle_rsync_bundle_without) || [:development, :test]
115
+ end
112
116
  end
113
117
  end
@@ -27,11 +27,11 @@ class Capistrano::BundleRsync::Git < Capistrano::BundleRsync::SCM
27
27
  within config.local_mirror_path do
28
28
  if tree = fetch(:repo_tree)
29
29
  stripped = tree.slice %r#^/?(.*?)/?$#, 1 # strip both side /
30
- num_components = stripped.count('/')
30
+ num_components = stripped.count('/') + 1
31
31
  execute :git, :archive, fetch(:branch), tree, "| tar -x --strip-components #{num_components} -f - -C ", "#{config.local_release_path}"
32
32
  else
33
33
  execute :git, :archive, fetch(:branch), '| tar -x -C', "#{config.local_release_path}"
34
- end
34
+ end
35
35
  end
36
36
  end
37
37
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-bundle_rsync
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Naotoshi Seo
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2017-05-29 00:00:00.000000000 Z
12
+ date: 2019-02-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: capistrano
@@ -136,8 +136,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
136
136
  - !ruby/object:Gem::Version
137
137
  version: '0'
138
138
  requirements: []
139
- rubyforge_project:
140
- rubygems_version: 2.6.11
139
+ rubygems_version: 3.0.1
141
140
  signing_key:
142
141
  specification_version: 4
143
142
  summary: Deploy an application and bundled gems via rsync.