static_site_builder 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 3e6e265e60bc23ea318b0736c778efd4a5acdeb2378a07dc21e848d1288d2050
4
+ data.tar.gz: 1a625002dd47b9034a4f88b58d095ce81a3328884846ede2b7d5e38120e4f139
5
+ SHA512:
6
+ metadata.gz: 957179e544171175d94d867ad78431c36f825176303192ceb53a8e677d6ae3a1d3306c90ad92a5d69358aa7a0b14aa92134252eed1155d623cbadd3d04cc1561
7
+ data.tar.gz: 015bf0e7f5f4392aa5b8b54c43dc6e91029d28b4eeb4192d9de5a9a219c6786658235370899ac1e2ebe57d9ed001ce1aaba4f5639ec8923bca4eca8108ec6142
data/.dockerignore ADDED
@@ -0,0 +1,7 @@
1
+ .DS_Store
2
+ README.md
3
+ LICENSE.txt
4
+ Dockerfile
5
+ CODE_OF_CONDUCT.md
6
+ .travis.yml
7
+ .dockerignore
data/.gitignore ADDED
@@ -0,0 +1,11 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
9
+ markdown/
10
+ .DS_Store
11
+ spike.rb
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ 2.5.3
data/.travis.yml ADDED
@@ -0,0 +1,5 @@
1
+ sudo: false
2
+ language: ruby
3
+ rvm:
4
+ - 2.4.0
5
+ before_install: gem install bundler -v 1.15.3
@@ -0,0 +1,74 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as
6
+ contributors and maintainers pledge to making participation in our project and
7
+ our community a harassment-free experience for everyone, regardless of age, body
8
+ size, disability, ethnicity, gender identity and expression, level of experience,
9
+ nationality, personal appearance, race, religion, or sexual identity and
10
+ orientation.
11
+
12
+ ## Our Standards
13
+
14
+ Examples of behavior that contributes to creating a positive environment
15
+ include:
16
+
17
+ * Using welcoming and inclusive language
18
+ * Being respectful of differing viewpoints and experiences
19
+ * Gracefully accepting constructive criticism
20
+ * Focusing on what is best for the community
21
+ * Showing empathy towards other community members
22
+
23
+ Examples of unacceptable behavior by participants include:
24
+
25
+ * The use of sexualized language or imagery and unwelcome sexual attention or
26
+ advances
27
+ * Trolling, insulting/derogatory comments, and personal or political attacks
28
+ * Public or private harassment
29
+ * Publishing others' private information, such as a physical or electronic
30
+ address, without explicit permission
31
+ * Other conduct which could reasonably be considered inappropriate in a
32
+ professional setting
33
+
34
+ ## Our Responsibilities
35
+
36
+ Project maintainers are responsible for clarifying the standards of acceptable
37
+ behavior and are expected to take appropriate and fair corrective action in
38
+ response to any instances of unacceptable behavior.
39
+
40
+ Project maintainers have the right and responsibility to remove, edit, or
41
+ reject comments, commits, code, wiki edits, issues, and other contributions
42
+ that are not aligned to this Code of Conduct, or to ban temporarily or
43
+ permanently any contributor for other behaviors that they deem inappropriate,
44
+ threatening, offensive, or harmful.
45
+
46
+ ## Scope
47
+
48
+ This Code of Conduct applies both within project spaces and in public spaces
49
+ when an individual is representing the project or its community. Examples of
50
+ representing a project or community include using an official project e-mail
51
+ address, posting via an official social media account, or acting as an appointed
52
+ representative at an online or offline event. Representation of a project may be
53
+ further defined and clarified by project maintainers.
54
+
55
+ ## Enforcement
56
+
57
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
+ reported by contacting the project team at michael.telford@live.com. All
59
+ complaints will be reviewed and investigated and will result in a response that
60
+ is deemed necessary and appropriate to the circumstances. The project team is
61
+ obligated to maintain confidentiality with regard to the reporter of an incident.
62
+ Further details of specific enforcement policies may be posted separately.
63
+
64
+ Project maintainers who do not follow or enforce the Code of Conduct in good
65
+ faith may face temporary or permanent repercussions as determined by other
66
+ members of the project's leadership.
67
+
68
+ ## Attribution
69
+
70
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
+ available at [http://contributor-covenant.org/version/1/4][version]
72
+
73
+ [homepage]: http://contributor-covenant.org
74
+ [version]: http://contributor-covenant.org/version/1/4/
data/Dockerfile ADDED
@@ -0,0 +1,24 @@
1
+ FROM ruby:2.4-alpine3.4
2
+ MAINTAINER Michael Telford
3
+
4
+ RUN apk --update add --virtual \
5
+ build_deps \
6
+ build-base \
7
+ ruby-dev \
8
+ libc-dev \
9
+ linux-headers \
10
+ openssl-dev \
11
+ postgresql-dev \
12
+ libxml2-dev \
13
+ libxslt-dev \
14
+ bash \
15
+ make \
16
+ git \
17
+ curl \
18
+ curl-dev \
19
+ jq
20
+
21
+ WORKDIR /app
22
+ COPY . /app
23
+
24
+ CMD ["bash"]
data/Gemfile ADDED
@@ -0,0 +1,6 @@
1
+ source "https://rubygems.org"
2
+
3
+ git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
4
+
5
+ # Specify your gem's dependencies in static_site_builder.gemspec
6
+ gemspec
data/Gemfile.lock ADDED
@@ -0,0 +1,32 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ static_site_builder (0.2.0)
5
+ redcarpet (~> 3.4)
6
+ thor (~> 0.20)
7
+
8
+ GEM
9
+ remote: https://rubygems.org/
10
+ specs:
11
+ coderay (1.1.2)
12
+ method_source (0.9.2)
13
+ minitest (5.11.3)
14
+ pry (0.12.2)
15
+ coderay (~> 1.1.0)
16
+ method_source (~> 0.9.0)
17
+ rake (12.3.2)
18
+ redcarpet (3.4.0)
19
+ thor (0.20.3)
20
+
21
+ PLATFORMS
22
+ ruby
23
+
24
+ DEPENDENCIES
25
+ bundler (~> 2.0)
26
+ minitest (~> 5.11)
27
+ pry (~> 0.12)
28
+ rake (~> 12.3)
29
+ static_site_builder!
30
+
31
+ BUNDLED WITH
32
+ 2.0.1
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2018 Michael Telford
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,74 @@
1
+ # Static Site Builder
2
+
3
+ Build a HTML website from markdown files.
4
+
5
+ This gem will convert your markdown files into HTML files, embedding the generated HTML into a template (making up the full webpage). This gem's default [Bootstrap](https://getbootstrap.com/) template will be used unless you specify a template of your own. More on this further down.
6
+
7
+ ## Installation
8
+
9
+ $ gem install static_site_builder
10
+
11
+ This will add an executable called `site_builder` to your `$PATH`.
12
+
13
+ ## Usage
14
+
15
+ ```sh
16
+ $ mkdir -p ~/my_site
17
+ $ cd ~/my_site
18
+ $ echo "# My Amazing Website" >> index.md
19
+ $ site_builder build
20
+ Site built with 1 HTML file(s):
21
+ ./index.html
22
+ $ open index.html
23
+ ```
24
+
25
+ That's it! In this instance, there will be a newly generated mobile friendly `index.html` file in the same directory.
26
+
27
+ Of course, you can specify an input and output directory as well as a custom HTML template to use instead of the default one.
28
+
29
+ For full usage of `site_builder`, see:
30
+
31
+ $ site_builder help build
32
+
33
+ ## Templating
34
+
35
+ The default template uses Bootstrap 4.1 to enable a stylish and responsive website design out of the box.
36
+
37
+ Custom templates are simply HTML files which include an editable region (inside a `<body>` tag) consisting of the following markdown:
38
+
39
+ ```html
40
+ <div id="editable_region"></div>
41
+ ```
42
+
43
+ The editable region `div` will be replaced with the generated HTML from your markdown.
44
+
45
+ Of course you can include anything else that's common to your site in your template e.g.
46
+
47
+ - Navigation menu
48
+ - Links to your own style sheets
49
+ - Javascript applying to the whole site
50
+ - etc...
51
+
52
+ If using your own template, you must ensure it's valid HTML and that it contains the editable region `div` seen above. That's it.
53
+
54
+ You can use this gem's built in [default template](https://github.com/michaeltelford/static_site_builder/blob/master/templates/default_template.html) as an example.
55
+
56
+ ## Development
57
+
58
+ I welcome community contribution as long as the changes makes sense.
59
+
60
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
61
+
62
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `*.gem` file to [rubygems.org](https://rubygems.org).
63
+
64
+ ## Contributing
65
+
66
+ Bug reports and pull requests are welcome on GitHub at https://github.com/michaeltelford/static_site_builder. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
67
+
68
+ ## License
69
+
70
+ The gem is available as open source under the terms of the [MIT License](https://github.com/michaeltelford/static_site_builder/blob/master/LICENSE.txt).
71
+
72
+ ## Code of Conduct
73
+
74
+ Everyone interacting in the StaticSiteBuilder project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/michaeltelford/static_site_builder/blob/master/CODE_OF_CONDUCT.md).
data/Rakefile ADDED
@@ -0,0 +1,26 @@
1
+ require "bundler/gem_tasks"
2
+ require "rake/testtask"
3
+ require "static_site_builder"
4
+
5
+ task default: :help
6
+
7
+ Rake::TestTask.new(:test) do |t|
8
+ t.libs << "test"
9
+ t.libs << "lib"
10
+ t.test_files = FileList["test/**/*_test.rb"]
11
+ end
12
+
13
+ task :help do
14
+ system "rake -D"
15
+ end
16
+
17
+ desc "Builds a static HTML site from markdown files"
18
+ task :build_site, :markdown_dirpath, :output_dirpath do |t, args|
19
+ args.with_defaults(markdown_dirpath: "./markdown")
20
+ args.with_defaults(output_dirpath: args[:markdown_dirpath])
21
+ puts StaticSiteBuilder.build_website(
22
+ args[:markdown_dirpath],
23
+ StaticSiteBuilder::HTMLTemplater.new,
24
+ args[:output_dirpath]
25
+ )
26
+ end
data/bin/console ADDED
@@ -0,0 +1,16 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "static_site_builder"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ def reload
10
+ load "./lib/static_site_builder.rb"
11
+ end
12
+
13
+ puts "Type 'reload' to pull in new code changes."
14
+
15
+ require "pry"
16
+ Pry.start
data/bin/setup ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
data/exe/site_builder ADDED
@@ -0,0 +1,41 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ $LOAD_PATH.unshift File.expand_path("../../lib", __FILE__)
4
+ require "static_site_builder"
5
+ require "thor"
6
+
7
+ DEFAULT_TEMPLATE = StaticSiteBuilder::HTMLTemplater::DEFAULT_TEMPLATE
8
+
9
+ class SiteBuilderCLI < Thor
10
+ desc "build", "Builds a static HTML website from markdown"
11
+ option :in, default: ".", desc: "Input markdown file dir"
12
+ option :out, default: ".", desc: "Output HTML file dir"
13
+ option(
14
+ :template,
15
+ default: DEFAULT_TEMPLATE,
16
+ desc: "HTML template which embeds the markdown (<body>) of each webpage"
17
+ )
18
+ def build
19
+ template = StaticSiteBuilder::HTMLTemplater.new(
20
+ template_filepath: options[:template],
21
+ gem_included_template: options[:template] == DEFAULT_TEMPLATE
22
+ )
23
+
24
+ html = StaticSiteBuilder.build_website(
25
+ options[:in],
26
+ template,
27
+ options[:out]
28
+ )
29
+
30
+ if not html.empty?
31
+ puts "Site built with #{html.length} HTML file(s):"
32
+ puts html
33
+ else
34
+ puts "No markdown files found in: #{options[:in]}"
35
+ end
36
+ rescue Exception => ex
37
+ puts "An error occurred: #{ex.message}"
38
+ end
39
+ end
40
+
41
+ SiteBuilderCLI.start(ARGV)
@@ -0,0 +1,64 @@
1
+ # Require all lib files here to enable a single require.
2
+ require "static_site_builder/version"
3
+ require "static_site_builder/html_templater"
4
+
5
+ # Require any non lib code here to enable a single require.
6
+ require "fileutils"
7
+ require "redcarpet"
8
+
9
+ module StaticSiteBuilder
10
+ # Converts markdown to html and returns it.
11
+ def self.render(markdown)
12
+ renderer = Redcarpet::Markdown.new(Redcarpet::Render::HTML,
13
+ tables: true,
14
+ fenced_code_blocks: true,
15
+ autolink: true,
16
+ strikethrough: true,
17
+ superscript: true,
18
+ underline: true,
19
+ highlight: true,
20
+ quote: true,
21
+ footnotes: true
22
+ )
23
+ renderer.render(markdown)
24
+ end
25
+
26
+ # Takes a markdown_filepath, reads and converts its contents to html before
27
+ # creating a html file of the same name in the output_dirpath directory.
28
+ # If not provided, the output_dirpath will be the same directory as the
29
+ # markdown file. The output_dirpath will be created if not already.
30
+ # Note: If the html file already exists it's contents will be overwritten.
31
+ # A template is used to house the html body in, creating a full webpage.
32
+ def self.build_webpage(markdown_filepath, template, output_dirpath=nil)
33
+ markdown = File.read(markdown_filepath)
34
+
35
+ html_body = self.render(markdown)
36
+ html = template.render(html_body)
37
+
38
+ dirpath = File.dirname(markdown_filepath)
39
+ output_dirpath ||= dirpath
40
+ FileUtils.mkdir_p(output_dirpath) unless Dir.exists?(output_dirpath)
41
+
42
+ filename_with_md_ext = File.basename(markdown_filepath)
43
+ filename_without_md_ext = filename_with_md_ext.split(".md")[0]
44
+ html_filepath = "#{output_dirpath}/#{filename_without_md_ext}.html"
45
+
46
+ File.open(html_filepath, "w") { |f| f.write(html) }
47
+ html_filepath
48
+ end
49
+
50
+ # Takes a markdown_dirpath, finds all "*.md" files and converts each to a
51
+ # "*.html" file in order to build a static website. A template is used to
52
+ # embed each built webpage in. The output_dirpath will default to the
53
+ # markdown_dirpath if not set.
54
+ def self.build_website(markdown_dirpath, template, output_dirpath=nil)
55
+ html_filepaths = []
56
+ pattern = "#{markdown_dirpath}/*.md"
57
+
58
+ Dir.glob(pattern).each do |f|
59
+ html_filepaths << self.build_webpage(f, template, output_dirpath)
60
+ end
61
+
62
+ html_filepaths
63
+ end
64
+ end
@@ -0,0 +1,60 @@
1
+ module StaticSiteBuilder
2
+ class HTMLTemplater
3
+ EDITABLE_REGION = '<div id="editable_region"></div>'.freeze
4
+ DEFAULT_TEMPLATE = "templates/default_template.html".freeze
5
+
6
+ attr_reader :template_filepath, :gem_included_template, :html
7
+
8
+ # Initializes a HTML template with either a template_filepath to a HTML file
9
+ # or a HTML string. Either way the HTML should be valid and contain the
10
+ # EDITABLE_REGION. If no params are provided then the DEFAULT_TEMPLATE is
11
+ # used instead. The DEFAULT_TEMPLATE uses bootstrap 4 (from a CDN).
12
+ # The html takes precedence over the template_filepath if provided.
13
+ # The gem_included_template param distinguishes between a user created
14
+ # template (on their local file system) and an included template (built
15
+ # into the gem) e.g. the DEFAULT_TEMPLATE.
16
+ def initialize(
17
+ template_filepath: DEFAULT_TEMPLATE,
18
+ gem_included_template: true,
19
+ html: nil
20
+ )
21
+ @template_filepath = template_filepath
22
+ @gem_included_template = gem_included_template
23
+ @html = html
24
+
25
+ read_template unless @html
26
+
27
+ if not valid?
28
+ raise "Missing editable region in template: #{EDITABLE_REGION}"
29
+ end
30
+ end
31
+
32
+ # Returns wether or not the @html has an EDITABLE_REGION or not.
33
+ # This method does not check if the HTML is valid or not. That's your
34
+ # responsibility.
35
+ def valid?
36
+ @html.include?(EDITABLE_REGION)
37
+ end
38
+
39
+ # Renders the HTML template by replacing the EDITABLE_REGION with the
40
+ # html_body param. It's your responsibility to ensure the html_body is valid
41
+ # HTML within the context of a 'body' tag e.g. <body>#{html_body}</body>
42
+ def render(html_body)
43
+ @html.gsub(EDITABLE_REGION, html_body)
44
+ end
45
+
46
+ private
47
+
48
+ # Reads the @template_filepath file and sets @html to it's contents.
49
+ # The correct filepath is decided on based on wether or not the template is
50
+ # built into the gem or on the user's local filesystem.
51
+ def read_template
52
+ path = @template_filepath
53
+ if @gem_included_template
54
+ relative_path = "../../#{@template_filepath}"
55
+ path = File.expand_path(relative_path, File.dirname(__FILE__))
56
+ end
57
+ @html = File.read(path)
58
+ end
59
+ end
60
+ end
@@ -0,0 +1,3 @@
1
+ module StaticSiteBuilder
2
+ VERSION = "0.2.0"
3
+ end
@@ -0,0 +1,42 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path("../lib", __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require "static_site_builder/version"
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "static_site_builder"
8
+ spec.version = StaticSiteBuilder::VERSION
9
+ spec.authors = ["Michael Telford"]
10
+ spec.email = ["michael.telford@live.com"]
11
+
12
+ spec.summary = "Static site builder."
13
+ spec.description = "Gem for building static content websites from markdown."
14
+ spec.homepage = "https://github.com/michaeltelford/static_site_builder"
15
+ spec.license = "MIT"
16
+
17
+ spec.required_ruby_version = '~> 2.5'
18
+
19
+ # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
20
+ # to allow pushing to a single host or delete this section to allow pushing to any host.
21
+ if spec.respond_to?(:metadata)
22
+ spec.metadata["allowed_push_host"] = "https://rubygems.org"
23
+ else
24
+ raise "RubyGems 2.0 or newer is required to protect against " \
25
+ "public gem pushes."
26
+ end
27
+
28
+ spec.files = `git ls-files -z`.split("\x0").reject do |f|
29
+ f.match(%r{^(test|spec|features)/})
30
+ end
31
+ spec.bindir = "exe"
32
+ spec.executables = ["site_builder"]
33
+ spec.require_paths = ["lib"]
34
+
35
+ spec.add_development_dependency "bundler", "~> 2.0"
36
+ spec.add_development_dependency "rake", "~> 12.3"
37
+ spec.add_development_dependency "minitest", "~> 5.11"
38
+ spec.add_development_dependency "pry", "~> 0.12"
39
+
40
+ spec.add_runtime_dependency "redcarpet", "~> 3.4"
41
+ spec.add_runtime_dependency "thor", "~> 0.20"
42
+ end
@@ -0,0 +1,11 @@
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
6
+ <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" integrity="sha384-WskhaSGFgHYWDcbwN70/dfYBj47jz9qbsMId/iRN3ewGhXQFZCSftd1LZCfmhktB" crossorigin="anonymous">
7
+ </head>
8
+ <body>
9
+ <div id="editable_region"></div>
10
+ </body>
11
+ </html>
metadata ADDED
@@ -0,0 +1,149 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: static_site_builder
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.2.0
5
+ platform: ruby
6
+ authors:
7
+ - Michael Telford
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2019-05-31 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '2.0'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '2.0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '12.3'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '12.3'
41
+ - !ruby/object:Gem::Dependency
42
+ name: minitest
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '5.11'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '5.11'
55
+ - !ruby/object:Gem::Dependency
56
+ name: pry
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '0.12'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '0.12'
69
+ - !ruby/object:Gem::Dependency
70
+ name: redcarpet
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '3.4'
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '3.4'
83
+ - !ruby/object:Gem::Dependency
84
+ name: thor
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '0.20'
90
+ type: :runtime
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '0.20'
97
+ description: Gem for building static content websites from markdown.
98
+ email:
99
+ - michael.telford@live.com
100
+ executables:
101
+ - site_builder
102
+ extensions: []
103
+ extra_rdoc_files: []
104
+ files:
105
+ - ".dockerignore"
106
+ - ".gitignore"
107
+ - ".ruby-version"
108
+ - ".travis.yml"
109
+ - CODE_OF_CONDUCT.md
110
+ - Dockerfile
111
+ - Gemfile
112
+ - Gemfile.lock
113
+ - LICENSE.txt
114
+ - README.md
115
+ - Rakefile
116
+ - bin/console
117
+ - bin/setup
118
+ - exe/site_builder
119
+ - lib/static_site_builder.rb
120
+ - lib/static_site_builder/html_templater.rb
121
+ - lib/static_site_builder/version.rb
122
+ - static_site_builder.gemspec
123
+ - templates/default_template.html
124
+ homepage: https://github.com/michaeltelford/static_site_builder
125
+ licenses:
126
+ - MIT
127
+ metadata:
128
+ allowed_push_host: https://rubygems.org
129
+ post_install_message:
130
+ rdoc_options: []
131
+ require_paths:
132
+ - lib
133
+ required_ruby_version: !ruby/object:Gem::Requirement
134
+ requirements:
135
+ - - "~>"
136
+ - !ruby/object:Gem::Version
137
+ version: '2.5'
138
+ required_rubygems_version: !ruby/object:Gem::Requirement
139
+ requirements:
140
+ - - ">="
141
+ - !ruby/object:Gem::Version
142
+ version: '0'
143
+ requirements: []
144
+ rubyforge_project:
145
+ rubygems_version: 2.7.8
146
+ signing_key:
147
+ specification_version: 4
148
+ summary: Static site builder.
149
+ test_files: []