oneblackbear-obbistrano 1.0.74 → 1.0.75

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.
@@ -211,17 +211,19 @@ Capistrano::Configuration.instance(:must_exist).load do
211
211
  end
212
212
 
213
213
 
214
- task :css_build
214
+ task :css_build do
215
+ set :css_files, Dir.glob("**/*.css") if !defined? "#{css_files}"
215
216
  run "cd #{deploy_to} && rm -f public/stylesheets/build.css"
216
- Dir.glob("**/*.css").each do |f|
217
- run "cd #{deploy_to} && cat #{f} >> public/stylesheets/build.css"
217
+ css_files.each do |f|
218
+ run "cd #{deploy_to} && cat #{f} >> #{deploy_to}/public/stylesheets/build.css"
218
219
  end
219
220
  end
220
-
221
- task :js_build
221
+
222
+ task :js_build do
223
+ set :js_files, Dir.glob("**/*.js") if !defined? "#{js_files}"
222
224
  run "cd #{deploy_to} && rm -f public/javascripts/build.js"
223
- Dir.glob("**/*.js").each do |f|
224
- run "cd #{deploy_to} && cat #{f} >> public/javascripts/build.js"
225
+ js_files.each do |f|
226
+ run "cd #{deploy_to} && cat #{f} >> #{deploy_to}/public/javascripts/build.js"
225
227
  end
226
228
  end
227
229
  ####### ##############
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{obbistrano}
5
- s.version = "1.0.74"
5
+ s.version = "1.0.75"
6
6
  s.authors = ["Ross Riley", "One Black Bear"]
7
7
  s.date = Time.now
8
8
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: oneblackbear-obbistrano
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.74
4
+ version: 1.0.75
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ross Riley