Sha256: bff7182a955dbba849610e426e16da26226800d4db4785b1771d5127aa5425c1
Contents?: true
Size: 1.2 KB
Versions: 1
Compression:
Stored size: 1.2 KB
Contents
module Jekyll module Golink module Theme module Gemfile def create_gemfile(filename) # Create a Gemfile file, responsible for installing the site dependencies, that is, the gems needed to generate the site. File.open(filename, 'w') do |file| file.puts "source \"https://rubygems.org\"" file.puts "ruby RUBY_VERSION" file.puts "" file.puts "# Dependencies" file.puts "gem \"json\"" file.puts "gem \"bigdecimal\"" file.puts "gem \"rake\"" file.puts "gem \"pygments.rb\"" file.puts "" file.puts "# Loading Jekyll" file.puts "gem \"jekyll\"" file.puts "" file.puts "# Plugins for #{Jekyll::Golink::Theme::NAME}" file.puts "group :jekyll_plugins do" file.puts " gem \"jekyll-email-protect\"" file.puts "end" file.puts "" file.puts "# This load the theme #{Jekyll::Golink::Theme::NAME}" file.puts "gem \"#{Jekyll::Golink::Theme::NAME_GEM}\", \"~> #{Jekyll::Golink::Theme::VERSION}\"" file.puts "" end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
golink-1.0.8 | lib/golink/template/gemfile.rb |