class AnchorUi::Sprockets::Assets::CoreUiIcons
Public Class Methods
asset_name()
click to toggle source
# File lib/anchor_ui/sprockets/assets/core_ui_icons.rb, line 7 def self.asset_name 'coreui-icons' end
Public Instance Methods
update()
click to toggle source
# File lib/anchor_ui/sprockets/assets/core_ui_icons.rb, line 16 def update download url, zip_path unzip compile_core_scss move clear end
version()
click to toggle source
No version tags on github repo…
# File lib/anchor_ui/sprockets/assets/core_ui_icons.rb, line 12 def version 'master' end
Private Instance Methods
compile_core_scss()
click to toggle source
# File lib/anchor_ui/sprockets/assets/core_ui_icons.rb, line 50 def compile_core_scss filename = '_core.scss' scss = read_scss(filename, newline: false) scss.gsub! 'url', 'font-url' File.write stylesheets_source_path.join(filename), scss end
fonts_destination_path()
click to toggle source
# File lib/anchor_ui/sprockets/assets/core_ui_icons.rb, line 34 def fonts_destination_path fonts_path.join asset_name end
fonts_source_path()
click to toggle source
# File lib/anchor_ui/sprockets/assets/core_ui_icons.rb, line 42 def fonts_source_path extraction_path.join 'fonts' end
move()
click to toggle source
# File lib/anchor_ui/sprockets/assets/core_ui_icons.rb, line 57 def move FileUtils.rm_rf fonts_destination_path FileUtils.mv( fonts_source_path, fonts_destination_path ) FileUtils.rm_rf stylesheets_destination_path FileUtils.mv( stylesheets_source_path, stylesheets_destination_path ) end
stylesheets_destination_path()
click to toggle source
# File lib/anchor_ui/sprockets/assets/core_ui_icons.rb, line 38 def stylesheets_destination_path stylesheets_path.join asset_name end
stylesheets_source_path()
click to toggle source
# File lib/anchor_ui/sprockets/assets/core_ui_icons.rb, line 46 def stylesheets_source_path extraction_path.join 'scss' end
url()
click to toggle source
# File lib/anchor_ui/sprockets/assets/core_ui_icons.rb, line 30 def url "https://github.com/coreui/coreui-icons/archive/#{zip_name}" end
zip_name()
click to toggle source
# File lib/anchor_ui/sprockets/assets/core_ui_icons.rb, line 26 def zip_name "#{version}.zip" end