obbistrano 1.1.55 → 1.1.56

Sign up to get free protection for your applications and to get access to all the features.
@@ -351,7 +351,7 @@ Capistrano::Configuration.instance(:must_exist).load do
351
351
  puts "*** Operating System could not be detected or is not supported" if !defined? "#{os_ver}"
352
352
  exit if !defined? "#{os_ver}"
353
353
  end
354
- "#{os_ver}".testos
354
+ eval "#{os_ver}".testos
355
355
  end
356
356
 
357
357
 
@@ -461,11 +461,12 @@ Capistrano::Configuration.instance(:must_exist).load do
461
461
  namespace :bundle do
462
462
 
463
463
  task :css, :roles => [:web] do
464
- paths = get_top_level_directories("#{build_to}/public/stylesheets")
464
+ paths = get_top_level_directories("#{build_to}/public/stylesheets") | get_top_level_directories("#{build_to}/plugins/cms/resources/public/stylesheets")
465
465
  paths << "#{build_to}/public/stylesheets/"
466
466
  Dir.mkdir("#{build_to}/public/stylesheets/build") rescue ""
467
467
  paths.each do |bundle_directory|
468
- bundle_name = bundle_directory.gsub("#{build_to}/public/stylesheets/", "")
468
+ bundle_name = if bundle_directory.index("plugins") then bundle_directory.gsub("#{build_to}/plugins/cms/resources/public/stylesheets", "") else bundle_directory.gsub("#{build_to}/public/stylesheets/", "") end
469
+ bundle_name = if bundle_name.index("/") then bundle_name[0..bundle_name.index("/")-1] else bundle_name end
469
470
  next if bundle_name.empty?
470
471
  files = recursive_file_list(bundle_directory, ".css")
471
472
  next if files.empty? || bundle_name == 'dev'
@@ -480,11 +481,12 @@ Capistrano::Configuration.instance(:must_exist).load do
480
481
  end
481
482
 
482
483
  task :js , :roles => [:web] do
483
- paths = get_top_level_directories("#{build_to}/public/javascripts")
484
+ paths = get_top_level_directories("#{build_to}/public/javascripts") | get_top_level_directories("#{build_to}/plugins/cms/resources/public/javascripts")
484
485
  paths << "#{build_to}/public/javascripts/"
485
486
  Dir.mkdir("#{build_to}/public/javascripts/build") rescue ""
486
487
  paths.each do |bundle_directory|
487
- bundle_name = bundle_directory.gsub("#{build_to}/public/javascripts/", "")
488
+ bundle_name = if bundle_directory.index("plugins") then bundle_directory.gsub("#{build_to}/plugins/cms/resources/public/javascripts", "") else bundle_directory.gsub("#{build_to}/public/javascripts/", "") end
489
+ bundle_name = if bundle_name.index("/") then bundle_name[0..bundle_name.index("/")-1] else bundle_name end
488
490
  next if bundle_name.empty?
489
491
  files = recursive_file_list(bundle_directory, ".js")
490
492
  next if files.empty? || bundle_name == 'dev'
@@ -526,6 +528,5 @@ Capistrano::Configuration.instance(:must_exist).load do
526
528
 
527
529
 
528
530
 
529
-
530
531
  end
531
532
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{obbistrano}
5
- s.version = "1.1.55"
5
+ s.version = "1.1.56"
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: 125
4
+ hash: 99
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 1
9
- - 55
10
- version: 1.1.55
9
+ - 56
10
+ version: 1.1.56
11
11
  platform: ruby
12
12
  authors:
13
13
  - Ross Riley
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2010-12-06 00:00:00 +00:00
19
+ date: 2011-02-18 00:00:00 +00:00
20
20
  default_executable:
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency