capistrano-local-precompile 1.1.2 → 1.1.3
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 +4 -4
- data/README.md +9 -4
- data/capistrano-local-precompile.gemspec +2 -2
- data/lib/capistrano/local_precompile.rb +3 -16
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: faafba68533fa60c5ac7577592a154b6c574dd9f
|
4
|
+
data.tar.gz: e6e29c99821f2f56e21fdde59abf87826d10f7a6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 42ffad79def8c7c3aa5e22fb9b3ac4d07f9c34b93f493da614630e1b7476d05243be2ba25c73c5539bd7129207aacc2fcd1facf35a1b38a824c96f30a23ffb6b
|
7
|
+
data.tar.gz: db34d1c311f5f62b955f439b205b27c1d51a6821aad703c1ccd45959802d09402b885f707ab0cac750ccade640d9a98bab0b08757df020a41f09eb2a53b59c43
|
data/README.md
CHANGED
@@ -10,8 +10,8 @@ Add capistrano-local-precompile to your Gemfile:
|
|
10
10
|
group :development do
|
11
11
|
# Capistrano v2 should use '~> 0.0.5'
|
12
12
|
# Capistrano v3 should use '~> 1.0.0'
|
13
|
-
# Capistrano v3.8+ should use '~> 1.1.
|
14
|
-
gem 'capistrano-local-precompile', '~> 1.1.
|
13
|
+
# Capistrano v3.8+ should use '~> 1.1.3'
|
14
|
+
gem 'capistrano-local-precompile', '~> 1.1.3', require: false
|
15
15
|
end
|
16
16
|
```
|
17
17
|
|
@@ -21,12 +21,17 @@ Then add the following line to your `Capfile`:
|
|
21
21
|
require 'capistrano/local_precompile'
|
22
22
|
```
|
23
23
|
|
24
|
+
Remove the following line from your `Capfile`:
|
25
|
+
|
26
|
+
```ruby
|
27
|
+
require 'capistrano/rails/assets'
|
28
|
+
```
|
29
|
+
|
24
30
|
Here's the full set of configurable options:
|
25
31
|
|
26
32
|
```ruby
|
27
33
|
set :precompile_env # default: fetch(:rails_env) || 'production'
|
28
34
|
set :assets_dir # default: "public/assets"
|
29
|
-
set :packs_dir # default: "public/packs"
|
30
35
|
set :rsync_cmd # default: "rsync -av --delete"
|
31
36
|
```
|
32
37
|
|
@@ -43,4 +48,4 @@ Pull requests welcome: fork, make a topic branch, commit (squash when possible)
|
|
43
48
|
|
44
49
|
## Copyright
|
45
50
|
|
46
|
-
Copyright (c)
|
51
|
+
Copyright (c) 2017 Steve Agalloco / Tom Caflisch. See [LICENSE](LICENSE.md) for detail
|
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |gem|
|
6
6
|
gem.name = 'capistrano-local-precompile'
|
7
|
-
gem.version = '1.1.
|
7
|
+
gem.version = '1.1.3'
|
8
8
|
gem.homepage = 'https://github.com/spagalloco/capistrano-local-precompile'
|
9
9
|
|
10
10
|
gem.author = "Steve Agalloco, Tom Caflisch"
|
@@ -14,7 +14,7 @@ Gem::Specification.new do |gem|
|
|
14
14
|
|
15
15
|
gem.license = 'MIT'
|
16
16
|
|
17
|
-
gem.add_dependency 'capistrano', '>=3'
|
17
|
+
gem.add_dependency 'capistrano', '>=3.8'
|
18
18
|
|
19
19
|
gem.files = %w(.yardopts LICENSE.md README.md Rakefile capistrano-local-precompile.gemspec)
|
20
20
|
gem.files += Dir.glob("lib/**/*.rb")
|
@@ -1,5 +1,3 @@
|
|
1
|
-
require 'capistrano/rails/assets'
|
2
|
-
|
3
1
|
namespace :load do
|
4
2
|
task :defaults do
|
5
3
|
set :precompile_env, fetch(:rails_env) || 'production'
|
@@ -9,24 +7,13 @@ namespace :load do
|
|
9
7
|
set :assets_role, "web"
|
10
8
|
|
11
9
|
after "bundler:install", "deploy:assets:prepare"
|
12
|
-
|
13
|
-
after "deploy:assets:
|
10
|
+
after "deploy:assets:prepare", "deploy:assets:rsync"
|
11
|
+
after "deploy:assets:rsync", "deploy:assets:cleanup"
|
14
12
|
end
|
15
13
|
end
|
16
14
|
|
17
15
|
namespace :deploy do
|
18
|
-
# Clear existing task so we can replace it rather than "add" to it.
|
19
|
-
Rake::Task["deploy:compile_assets"].clear
|
20
|
-
|
21
16
|
namespace :assets do
|
22
|
-
|
23
|
-
# desc "Remove manifest file from remote server"
|
24
|
-
# task :remove_manifest do
|
25
|
-
# with rails_env: fetch(:assets_dir) do
|
26
|
-
# execute "rm -f #{shared_path}/#{shared_assets_prefix}/manifest*"
|
27
|
-
# end
|
28
|
-
# end
|
29
|
-
|
30
17
|
desc "Remove all local precompiled assets"
|
31
18
|
task :cleanup do
|
32
19
|
run_locally do
|
@@ -48,7 +35,7 @@ namespace :deploy do
|
|
48
35
|
end
|
49
36
|
|
50
37
|
desc "Performs rsync to app servers"
|
51
|
-
task :
|
38
|
+
task :rsync do
|
52
39
|
on roles(fetch(:assets_role)) do |server|
|
53
40
|
run_locally do
|
54
41
|
execute "#{fetch(:rsync_cmd)} ./#{fetch(:assets_dir)}/ #{server.user}@#{server.hostname}:#{release_path}/#{fetch(:assets_dir)}/" if Dir.exists?(fetch(:assets_dir))
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano-local-precompile
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Steve Agalloco, Tom Caflisch
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-07-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capistrano
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '3'
|
19
|
+
version: '3.8'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '3'
|
26
|
+
version: '3.8'
|
27
27
|
description: Local asset-pipeline precompilation for Capstrano
|
28
28
|
email: steve.agalloco@gmail.com, tomcaflisch@gmail.com
|
29
29
|
executables: []
|
@@ -61,11 +61,11 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
61
61
|
version: '0'
|
62
62
|
requirements: []
|
63
63
|
rubyforge_project:
|
64
|
-
rubygems_version: 2.
|
64
|
+
rubygems_version: 2.6.14
|
65
65
|
signing_key:
|
66
66
|
specification_version: 4
|
67
67
|
summary: Local asset-pipeline precompilation for Capstrano
|
68
68
|
test_files:
|
69
|
-
- spec/configuration_spec.rb
|
70
|
-
- spec/integration_spec.rb
|
71
69
|
- spec/spec_helper.rb
|
70
|
+
- spec/integration_spec.rb
|
71
|
+
- spec/configuration_spec.rb
|