Sha256: 77fc005bfc1d7c595c98981bd6ee4923a81ac8d73f580cd6e358ffb98d9c95b4

Contents?: true

Size: 1.25 KB

Versions: 1

Compression:

Stored size: 1.25 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', '~> 2.2.0'"
            file.puts "gem 'bigdecimal', '~> 1.4.4'"
            file.puts "gem 'rake', '~> 13.0.0'"
            file.puts "gem 'colorize', '~> 0.8.1'"
            file.puts ""
            file.puts "# Loading Jekyll"
            file.puts "gem 'jekyll', '~> 4.0.0'"
            file.puts ""
            file.puts "# Plugins for #{Jekyll::Golink::Theme::NAME}"
            file.puts "group :jekyll_plugins do"
            file.puts "  gem 'jekyll-email-protect', '~> 1.1.0'"
            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.9 lib/golink/template/gemfile.rb