Sha256: 1be4070f7024d1f656fbe086b59292e909d19354b0310ded32fcf2e2ff0cfcc9

Contents?: true

Size: 1.43 KB

Versions: 23

Compression:

Stored size: 1.43 KB

Contents

description 'Foundation Compass Gem'

# Images exist in non-standard location so they will play nicely with
# Rails asset-pipeline.  So this method allows us to copy images from
# outside the compass template
def copy_images_from(relative_path, prefix_path)
  absolute_path = File.join(File.dirname(__FILE__), relative_path, prefix_path)
  Dir.glob("#{absolute_path}/*.*") do |img|
    image "#{relative_path}/#{prefix_path}/#{File.basename(img)}", 
      :to => "#{prefix_path}/#{File.basename(img)}"
  end
end

def copy_js_from(relative_path, prefix_path, excludes=[])
  absolute_path = File.join(File.dirname(__FILE__), relative_path, prefix_path)
  js_files = Dir.glob("#{absolute_path}/*.js")
  js_files.reject! {|f| excludes.include? File.basename(f)}
  js_files.each do |js|
    javascript "#{relative_path}/#{prefix_path}/#{File.basename(js)}", 
      :to => "#{prefix_path}/#{File.basename(js)}"
  end
end

copy_images_from("../../vendor/assets/images", "foundation/orbit")
copy_js_from("../../vendor/assets/javascripts", "foundation", ["app.js","index.js"])

help %Q{

If you need help, email us at foundation@zurb.com or visit foundation.zurb.com"

}

welcome_message %Q{

bundle exec compass install -r zurb-foundation foundation/upgrade

Your project assets have been upgraded, w00t!  It's possible there have been additional customizable settings added to Foundation so you should check out http://foundation.zurb.com/docs/gem-install.php#settings.

}

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
zurb-foundation-4.0.5 templates/upgrade/manifest.rb
zurb-foundation-4.0.4 templates/upgrade/manifest.rb
zurb-foundation-4.0.3 templates/upgrade/manifest.rb
zurb-foundation-4.0.2 templates/upgrade/manifest.rb
zurb-foundation-4.0.1 templates/upgrade/manifest.rb
zurb-foundation-4.0.0 templates/upgrade/manifest.rb
zurb-foundation-4.0.0.rc1 templates/upgrade/manifest.rb
zurb-foundation-3.2.5 templates/upgrade/manifest.rb
zurb-foundation-3.2.4 templates/upgrade/manifest.rb
zurb-foundation-3.2.4.rc1 templates/upgrade/manifest.rb
zurb-foundation-3.2.3 templates/upgrade/manifest.rb
zurb-foundation-3.2.2 templates/upgrade/manifest.rb
zurb-foundation-3.2.0 templates/upgrade/manifest.rb
zurb-foundation-3.2.0.rc3 templates/upgrade/manifest.rb
zurb-foundation-3.2.0.rc2 templates/upgrade/manifest.rb
zurb-foundation-3.2.0.rc1 templates/upgrade/manifest.rb
zurb-foundation-3.1.1 templates/upgrade/manifest.rb
zurb-foundation-3.1.0 templates/upgrade/manifest.rb
zurb-foundation-3.1.0.rc1 templates/upgrade/manifest.rb
zurb-foundation-3.0.9 templates/upgrade/manifest.rb