capistrano-bundle_rsync 0.4.9 → 0.5.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: a7594b1078fdf480d2e847d848efa73363594c64
4
- data.tar.gz: f504a03d2768476c2cbd844c22892be1471291c2
3
+ metadata.gz: e17c9575785e43b1b0e5cdc309f630592636bea9
4
+ data.tar.gz: 044e695958a7943a307ecc9c61ab02cdeec50fe8
5
5
  SHA512:
6
- metadata.gz: 1b836a7f4306bab3819067d57662b741ef80ce52bc6825f6d1dc5ff01164e0773f9068e43c6d88b0a295bf180f59226bf046fab8da9a5de89104cb847550e5e4
7
- data.tar.gz: 41d0a1609a75149613f732f1398955313ed50119965134f3245e2f6a07417ce80aeb9f8ebc527caba1ecc106b7b308aacd0699a3c5ecc37520c375dda2d8e5bb
6
+ metadata.gz: 2b9394e3eef50ff080e8dc17c1b4b6b1925b0d56013a99871a5142fd770a05f35aa8b1fff861f0b77be598bc4ce76e33a81bfa09894360d8953a0175c55dc5fc
7
+ data.tar.gz: fd62806589fc09962c0c6913efcf2f86848a9066a4de9fb223db09c48ec2f5d7b3209191fa6a91b497187a026335b81c2b7d8d3929f6cf899e95f3aec0a4009f
@@ -1,3 +1,9 @@
1
+ # 0.5.0 (2017/04/21)
2
+
3
+ Enhancements:
4
+
5
+ * Support capistrano-3.7 (thanks to troter)
6
+
1
7
  # 0.4.9 (2017/02/26)
2
8
 
3
9
  Fixes:
data/README.md CHANGED
@@ -145,8 +145,14 @@ require 'capistrano/deploy'
145
145
 
146
146
  # Includes tasks from other gems included in your Gemfile
147
147
  require 'capistrano/rbenv'
148
+
149
+ # capistrano-3.3.3 - 3.6.1
148
150
  require 'capistrano/bundle_rsync'
149
151
 
152
+ # capistrano-3.7+
153
+ require 'capistrano/bundle_rsync/plugin'
154
+ install_plugin Caipstrano::BundleRsync::Plugin
155
+
150
156
  # Loads custom tasks from `lib/capistrano/tasks' if you have any defined.
151
157
  Dir.glob('lib/capistrano/tasks/*.rake').each { |r| import r }
152
158
  ```
@@ -158,7 +164,7 @@ set :branch, ENV['BRANCH'] || 'master'
158
164
  set :rbenv_type, :user
159
165
  set :linked_dirs, %w(log tmp/pids tmp/cache tmp/sockets vendor/bundle tmp/run)
160
166
  set :keep_releases, 5
161
- set :scm, :bundle_rsync # Need this
167
+ set :scm, :bundle_rsync # Need this when run with capistrano-3.3.3 - 3.6.1
162
168
  set :bundle_rsync_max_parallels, ENV['PARA']
163
169
  set :bundle_rsync_rsync_bwlimit, ENV['BWLIMIT'] # like 20000
164
170
  set :bundle_rsync_config_files, ['~/config/database.yml']
@@ -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.4.9"
7
+ spec.version = "0.5.0"
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}
@@ -6,7 +6,13 @@ require 'capistrano/deploy'
6
6
 
7
7
  # Includes tasks from other gems included in your Gemfile
8
8
  require 'capistrano/rbenv'
9
- require 'capistrano/bundle_rsync'
9
+
10
+ if Gem::Version.new(Capistrano::VERSION) < Gem::Version.new('3.7.0')
11
+ require 'capistrano/bundle_rsync'
12
+ else
13
+ require 'capistrano/bundle_rsync/plugin'
14
+ install_plugin Capistrano::BundleRsync::Plugin
15
+ end
10
16
 
11
17
  # Loads custom tasks from `lib/capistrano/tasks' if you have any defined.
12
18
  Dir.glob('lib/capistrano/tasks/*.rake').each { |r| import r }
@@ -8,7 +8,10 @@ set :rbenv_type, :user
8
8
  set :rbenv_ruby, RUBY_VERSION # '2.1.5'
9
9
  set :deploy_to, "#{ENV['HOME']}/sample"
10
10
 
11
- set :scm, :bundle_rsync
11
+ if Gem::Version.new(Capistrano::VERSION) < Gem::Version.new('3.7.0')
12
+ set :scm, :bundle_rsync
13
+ end
14
+
12
15
  set :bundle_rsync_max_parallels, ENV['PARA']
13
16
  set :bundle_rsync_rsync_bwlimit, ENV['BWLIMIT'] # like 20000
14
17
  set :bundle_rsync_shared_dirs, File.expand_path('..', __dir__) # rsync example to shared/example
@@ -1,3 +1,7 @@
1
+ if Gem::Version.new(Capistrano::VERSION) < Gem::Version.new('3.7.0')
2
+ set :scm, :bundle_rsync
3
+ end
4
+
1
5
  set :bundle_rsync_scm, 'git'
2
6
  set :repo_url, 'https://github.com/sonots/try_rails4'
3
7
  set :branch, 'master'
@@ -1,3 +1,7 @@
1
+ if Gem::Version.new(Capistrano::VERSION) < Gem::Version.new('3.7.0')
2
+ set :scm, :bundle_rsync
3
+ end
4
+
1
5
  set :bundle_rsync_scm, 'local_git'
2
6
  set :repo_url, "#{ENV['PWD']}/try_rails4" # git clone git@github.com:sonots/try_rails4.git
3
7
 
@@ -1,3 +1,7 @@
1
+ if Gem::Version.new(Capistrano::VERSION) < Gem::Version.new('3.7.0')
2
+ set :scm, :bundle_rsync
3
+ end
4
+
1
5
  set :bundle_rsync_scm, 'git'
2
6
  set :repo_url, 'https://github.com/sonots/try_rails4'
3
7
  set :branch, 'master'
@@ -0,0 +1,14 @@
1
+ require 'capistrano/bundle_rsync'
2
+ require 'capistrano/scm/plugin'
3
+
4
+ module Capistrano
5
+ module BundleRsync
6
+ class Plugin < Capistrano::SCM::Plugin
7
+ def register_hooks
8
+ after "deploy:new_release_path", "bundle_rsync:create_release"
9
+ before "deploy:check", "bundle_rsync:check"
10
+ before "deploy:set_current_revision", "bundle_rsync:set_current_revision"
11
+ end
12
+ end
13
+ end
14
+ end
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.4.9
4
+ version: 0.5.0
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-02-06 00:00:00.000000000 Z
12
+ date: 2017-04-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: capistrano
@@ -112,6 +112,7 @@ files:
112
112
  - lib/capistrano/bundle_rsync/config.rb
113
113
  - lib/capistrano/bundle_rsync/git.rb
114
114
  - lib/capistrano/bundle_rsync/local_git.rb
115
+ - lib/capistrano/bundle_rsync/plugin.rb
115
116
  - lib/capistrano/bundle_rsync/scm.rb
116
117
  - lib/capistrano/tasks/bundle_rsync.rake
117
118
  - spec/capistrano/bundle_rsync/config_spec.rb
@@ -136,7 +137,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
136
137
  version: '0'
137
138
  requirements: []
138
139
  rubyforge_project:
139
- rubygems_version: 2.5.2
140
+ rubygems_version: 2.6.11
140
141
  signing_key:
141
142
  specification_version: 4
142
143
  summary: Deploy an application and bundled gems via rsync.