Skip to content

Commit

Permalink
Dont interrupt deploy if nothing changed
Browse files Browse the repository at this point in the history
  • Loading branch information
nbulaj committed Oct 19, 2016
1 parent 475d197 commit c304302
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
6 changes: 4 additions & 2 deletions capistrano-chewy.gemspec
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# coding: utf-8
# encoding: utf-8
lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'capistrano-chewy/version'
Expand All @@ -7,7 +7,7 @@ Gem::Specification.new do |spec|
spec.name = 'capistrano-chewy'
spec.version = CapistranoChewy.gem_version
spec.authors = ['Nikita Bulai']
spec.date = '2016-10-19'
spec.date = '2016-10-20'
spec.email = ['[email protected]']
spec.summary = 'Manage and continuously rebuild your ElasticSearch indexes with Chewy and Capistrano'
spec.description = 'Manage and continuously rebuild your ElasticSearch indexes with Chewy and Capistrano v3.'
Expand All @@ -19,6 +19,8 @@ Gem::Specification.new do |spec|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
spec.require_paths = ['lib']

spec.required_ruby_version = '>= 1.9.3'

spec.add_dependency 'capistrano', '~> 3.0'
spec.add_dependency 'chewy', '~> 0.4'

Expand Down
2 changes: 1 addition & 1 deletion lib/capistrano-chewy/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ def self.gem_version
module VERSION
MAJOR = 0
MINOR = 2
TINY = 0
TINY = 1

STRING = [MAJOR, MINOR, TINY].compact.join('.')
end
Expand Down
1 change: 0 additions & 1 deletion lib/capistrano/tasks/chewy.rake
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,6 @@ namespace :deploy do
# If diff is empty then indices have not changed
if changes.empty?
info 'Skipping `deploy:chewy:rebuilding` (nothing changed in the Chewy path)'
exit 0
else
indexes_to_reset = changes.changed.concat(changes.added)
indexes_to_delete = changes.removed
Expand Down

0 comments on commit c304302

Please sign in to comment.