obbistrano 1.1.46 → 1.1.47
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/obbistrano_tasks.rb +12 -12
- data/obbistrano.gemspec +1 -1
- metadata +3 -3
data/lib/obbistrano_tasks.rb
CHANGED
@@ -426,11 +426,11 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
426
426
|
namespace :bundle do
|
427
427
|
|
428
428
|
task :css, :roles => [:web] do
|
429
|
-
paths = get_top_level_directories("#{
|
430
|
-
paths << "#{
|
431
|
-
Dir.mkdir("#{
|
429
|
+
paths = get_top_level_directories("#{build_to}/public/stylesheets")
|
430
|
+
paths << "#{build_to}/public/stylesheets/"
|
431
|
+
Dir.mkdir("#{build_to}/public/stylesheets/build") rescue ""
|
432
432
|
paths.each do |bundle_directory|
|
433
|
-
bundle_name = bundle_directory.gsub("#{
|
433
|
+
bundle_name = bundle_directory.gsub("#{build_to}/public/stylesheets/", "")
|
434
434
|
next if bundle_name.empty?
|
435
435
|
files = recursive_file_list(bundle_directory, ".css")
|
436
436
|
next if files.empty? || bundle_name == 'dev'
|
@@ -438,18 +438,18 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
438
438
|
files.each do |file_path|
|
439
439
|
bundle << File.read(file_path) << "\n"
|
440
440
|
end
|
441
|
-
target = "#{
|
441
|
+
target = "#{build_to}/public/stylesheets/build/#{bundle_name}_combined.css"
|
442
442
|
File.open(target, 'w') { |f| f.write(bundle) }
|
443
443
|
end
|
444
|
-
upload "#{
|
444
|
+
upload "#{build_to}/public/stylesheets/build", "#{build_to}/public/stylesheets/", :via => :scp, :recursive=>true
|
445
445
|
end
|
446
446
|
|
447
447
|
task :js , :roles => [:web] do
|
448
|
-
paths = get_top_level_directories("#{
|
449
|
-
paths << "#{
|
450
|
-
Dir.mkdir("#{
|
448
|
+
paths = get_top_level_directories("#{build_to}/public/javascripts")
|
449
|
+
paths << "#{build_to}/public/javascripts/"
|
450
|
+
Dir.mkdir("#{build_to}/public/javascripts/build") rescue ""
|
451
451
|
paths.each do |bundle_directory|
|
452
|
-
bundle_name = bundle_directory.gsub("#{
|
452
|
+
bundle_name = bundle_directory.gsub("#{build_to}/public/javascripts/", "")
|
453
453
|
next if bundle_name.empty?
|
454
454
|
files = recursive_file_list(bundle_directory, ".js")
|
455
455
|
next if files.empty? || bundle_name == 'dev'
|
@@ -457,10 +457,10 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
457
457
|
files.each do |file_path|
|
458
458
|
bundle << File.read(file_path) << "\n"
|
459
459
|
end
|
460
|
-
target = "#{
|
460
|
+
target = "#{build_to}/public/javascripts/build/#{bundle_name}_combined.js"
|
461
461
|
File.open(target, 'w') { |f| f.write(bundle) }
|
462
462
|
end
|
463
|
-
upload "#{
|
463
|
+
upload "#{build_to}/public/javascripts/build", "#{build_to}/public/javascripts/", :via => :scp, :recursive=>true
|
464
464
|
|
465
465
|
end
|
466
466
|
|
data/obbistrano.gemspec
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{obbistrano}
|
5
|
-
s.version = "1.1.
|
5
|
+
s.version = "1.1.47"
|
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,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: obbistrano
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 77
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 1.1.
|
9
|
+
- 47
|
10
|
+
version: 1.1.47
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Ross Riley
|