capistrano-faster-rails 1.0.7 → 1.0.8

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
  SHA256:
3
- metadata.gz: 37a41cd16f65be78bc1c702fc3c19fe4adf4f3c5ff01f6e969dbec400ae14fba
4
- data.tar.gz: 12e05cc9faa4878876941c9410f5393ebd6137360c2fd075459e24dda380314c
3
+ metadata.gz: 16ce1a3fe53f9d1a9aeadc44ad7a765b0c48ec959d9f631b7202b19c9eb94d10
4
+ data.tar.gz: 9a1a9b0f1e244c2fdafd03ceefca7d892ff217d5eb287702562a2dbfea558778
5
5
  SHA512:
6
- metadata.gz: 456514b12e25ae02941b11157cf71eeee54d71d419afef85d00a02bcf9396f508e7ef04ceb39b1f163dda978128898055894c00ed8d45d9c7ac66c1c76e42328
7
- data.tar.gz: e7792a721a42accdfc37c7d5b442cac28a1fc1bacd77b53a293110310cee72abda3dcd98fe309ea373f36192444cf3ebbf17985b4cf579fdce0927026c1281b5
6
+ metadata.gz: 1d0cb3bdf6d705f496d3a36dd2ad753ce6f2bf881b7c3a0259bd6501a32fbad5604261ccacd749b588ebc7485a59979f5600ca710c14b0852f2b4181d6fa8807
7
+ data.tar.gz: be31e871d0fc234878803fb83663b2e5ff49b378cf7476231e18eec80f540dbe79ee6c87b45b5978b3e6a359cf338ddf9c09b4e10255309c38c851ecaf7ba2d2
data/README.md CHANGED
@@ -10,11 +10,11 @@ Capistrano runs each command separately on their own SSH session and it takes to
10
10
 
11
11
  3. Skip `bundle install` if Gemfile isn't changed.
12
12
 
13
- `bundle install` takes few or dozens of seconds, most of the time your project's Gemfile will not be changed, and you don't have to execute `bundle install` if your Gemfile isn't changed.
13
+ `bundle install` takes a few seconds even if Gemfile isn't changed, there is no need to execute `bundle install` if it isn't changed.
14
14
 
15
- 4. Skip `rake assets:precompile` and `yarn:install` if asset files not chagned.
15
+ 4. Skip `rake assets:precompile` and `yarn:install` if asset files aren't chagned.
16
16
 
17
- `rake assets:precompile` and `yarn:install` is really slow if your Rails project has plenty of assets to precompile, even if they are not changed. You don't have to execute them if your asset files not chagned.
17
+ `rake assets:precompile` and `yarn:install` is really slow if your Rails project has plenty of assets to precompile, even if they are not changed. There is no need to execute these commands if asset files not chagned.
18
18
 
19
19
 
20
20
  ## Installation
@@ -43,7 +43,7 @@ use `set :asset_files` in config/deploy.rb to set your project assets files, `as
43
43
 
44
44
  use `set :bundle_files` in config/deploy.rb to set your project ruby Gemfile files, `bundle_files` default to `"Gemfile Gemfile.lock .ruby-version"`
45
45
 
46
- Causion:
46
+ ## Note
47
47
 
48
48
  `asset_files` and `bundle_files` are both space separated string, not array!
49
49
 
@@ -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-faster-rails"
7
- spec.version = "1.0.7"
7
+ spec.version = "1.0.8"
8
8
  spec.authors = ["lifuzhong"]
9
9
  spec.email = ["lifuzho@126.com"]
10
10
 
@@ -37,7 +37,8 @@ namespace :deploy do
37
37
  log "[deploy:assets:precompile] Checking assets changes"
38
38
  asset_files = fetch(:asset_files, "vendor/assets app/assets config/initializers/assets.rb")
39
39
  asset_changed = within(repo_path) {
40
- previous_revision, current_revision = fetch(:previous_revision), fetch(:current_revision)
40
+ previous_revision = fetch(:previous_revision) rescue ''
41
+ current_revision = fetch(:current_revision)
41
42
  previous_revision.to_s.empty? ||
42
43
  !capture("cd #{repo_path} && git diff --name-only #{previous_revision} #{current_revision} -- #{asset_files}").empty?
43
44
  }
@@ -63,7 +64,8 @@ namespace :bundler do
63
64
  log "[bundler:install] Checking Gemfile and Gemfile.lock changes"
64
65
  bundle_files = fetch(:bundle_files, "Gemfile Gemfile.lock .ruby-version")
65
66
  gemfile_changed = within(repo_path) {
66
- previous_revision, current_revision = fetch(:previous_revision), fetch(:current_revision)
67
+ previous_revision = fetch(:previous_revision) rescue ''
68
+ current_revision = fetch(:current_revision)
67
69
  previous_revision.to_s.empty? ||
68
70
  !capture("cd #{repo_path} && git diff --name-only #{previous_revision} #{current_revision} -- #{bundle_files}").empty?
69
71
  }
@@ -102,7 +104,8 @@ if yarn_install_task
102
104
  log "[yarn:install] Checking package.json and yarn.lock changes"
103
105
  asset_files = fetch(:asset_files, "package.json yarn.lock")
104
106
  asset_changed = within(repo_path) {
105
- previous_revision, current_revision = fetch(:previous_revision), fetch(:current_revision)
107
+ previous_revision = fetch(:previous_revision) rescue ''
108
+ current_revision = fetch(:current_revision)
106
109
  previous_revision.to_s.empty? ||
107
110
  !capture("cd #{repo_path} && git diff --name-only #{previous_revision} #{current_revision} -- #{asset_files}").empty?
108
111
  }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-faster-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.7
4
+ version: 1.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - lifuzhong
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-12-19 00:00:00.000000000 Z
11
+ date: 2021-11-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -65,7 +65,7 @@ metadata:
65
65
  homepage_uri: https://github.com/ifool/capistrano-faster-rails
66
66
  source_code_uri: https://github.com/ifool/capistrano-faster-rails
67
67
  changelog_uri: https://github.com/ifool/capistrano-faster-rails
68
- post_install_message:
68
+ post_install_message:
69
69
  rdoc_options: []
70
70
  require_paths:
71
71
  - lib
@@ -80,8 +80,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
80
80
  - !ruby/object:Gem::Version
81
81
  version: '0'
82
82
  requirements: []
83
- rubygems_version: 3.0.3
84
- signing_key:
83
+ rubygems_version: 3.2.3
84
+ signing_key:
85
85
  specification_version: 4
86
86
  summary: Speedup deploy Ruby On Rails project when using capistrano
87
87
  test_files: []