Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP1:GA
portus.3372
fix_assets_compilation.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File fix_assets_compilation.patch of Package portus.3372
diff --git a/config/initializers/assets.rb b/config/initializers/assets.rb index b18c43c..e6aef96 100644 --- a/config/initializers/assets.rb +++ b/config/initializers/assets.rb @@ -1,2 +1,2 @@ Rails.application.config.assets.version = "1.0" -Rails.application.config.assets.precompile += %w(*.woff2 *.css *.js) +Rails.application.config.assets.precompile += %w(*.woff2 *.js) diff --git a/lib/man_pages.rb b/lib/man_pages.rb deleted file mode 100644 index 1f32091..0000000 --- a/lib/man_pages.rb +++ /dev/null @@ -1,40 +0,0 @@ -require "md2man/roff/engine" - -# Defines a set of methods regarding our man pages that might be re-used in -# different places. -class ManPages - # The path were the markdown files are being stored. - MARKDOWN_PATH = "packaging/suse/portusctl/man/markdown".freeze - - # The path were the resulting man pages are being stored. - MAN_PATH = "packaging/suse/portusctl/man/man1".freeze - - def initialize - @markdown_files = Dir.glob(Rails.root.join(MARKDOWN_PATH, "*.md")) - end - - # Render the given markdown file into a man page. - def render_markdown(file) - Md2Man::Roff::ENGINE.render(File.read(file)) - end - - # Returns the name and the path of the corresponding man page of the given - # markdown file. - def corresponding_man(file) - name = file.match(/\/([\w-]+)\.md/)[1] - path = Rails.root.join(MAN_PATH, "#{name}.1") - [name, path] - end - - # Generate all the man pages. - def generate! - Rails.logger.info "Generating man pages:" - - @markdown_files.each do |file| - output = render_markdown(file) - name, path = corresponding_man(file) - File.write path, output - Rails.logger.info name - end - end -end diff --git a/lib/tasks/man.rake b/lib/tasks/man.rake deleted file mode 100644 index 6008b06..0000000 --- a/lib/tasks/man.rake +++ /dev/null @@ -1,8 +0,0 @@ -require "man_pages" - -namespace :portus do - desc "Build man pages" - task generate_man_pages: :environment do - ManPages.new.generate! - end -end
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor