static_site_builder 0.3.0 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7f37e792a41306185a8ec17bfed558bc948c9901ef4a109f30aad0b5b3cc99f8
4
- data.tar.gz: 46b3276507d639cbb89effbaebdec1122bdc76409541da65ce15adbcea39fac7
3
+ metadata.gz: d255a1dc76e27d47e5549358a8ac023117b0674a084c74bc1911f073fc5d2d55
4
+ data.tar.gz: 1d40b7b67100ac3b24c329035466aefb6adcb1a6dfe4bb60328bb7fea09983fb
5
5
  SHA512:
6
- metadata.gz: e41baffc8e70acc9469c0c20b4d99cc720c1bcfad6d5e59a0078b79efe998fe1fb5d532aeb158ee076118850cae7b2319e3835b677eb02fbeb8d303e6ef70db3
7
- data.tar.gz: 60b8ede1b9b66027610b41dfa9c222b4f978498efbdd1dfa50a2347287098d4d6c899d9539652201c406f17024cf8bcc49507e7598a3de82109f72d429f8a8e7
6
+ metadata.gz: f3317e6a6cbacf72e49f07fcb4482807c4e52ef3efdff2a62176f5f47565cb7ddc73dc63a883acf45606e4521cbf2024ecb3aaf6ad8f2912c8ff75503e6f0c2a
7
+ data.tar.gz: b2284fce96a82d5c3aa6e7b63d89f667e2fbd52f8499325c03abf7547c25fba8a0775ef150fca74fd1e8a74f8bdd257c5eeab158dbdfbec17adf77f9cd517cd4
data/.gitignore CHANGED
@@ -8,4 +8,4 @@
8
8
  /tmp/
9
9
  markdown/
10
10
  .DS_Store
11
- spike.rb
11
+ spike.*
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- static_site_builder (0.3.0)
4
+ static_site_builder (0.4.0)
5
5
  redcarpet (~> 3.4)
6
6
  thor (~> 0.20)
7
7
 
data/README.md CHANGED
@@ -8,15 +8,15 @@ This gem will convert your markdown files into HTML files, embedding the generat
8
8
 
9
9
  $ gem install static_site_builder
10
10
 
11
- This will add an executable called `static_site_builder` to your `$PATH`.
11
+ This will add an executable called `site_builder` to your `$PATH`.
12
12
 
13
13
  ## Usage
14
14
 
15
15
  ```sh
16
16
  $ mkdir -p ~/my_site
17
17
  $ cd ~/my_site
18
- $ echo "# My Amazing Website" >> index.md
19
- $ static_site_builder build
18
+ $ echo "# My Amazing Website" > index.md
19
+ $ site_builder build
20
20
  Site built with 1 HTML file(s):
21
21
  ./index.html
22
22
  $ open index.html
@@ -26,9 +26,9 @@ That's it! In this instance, there will be a newly generated mobile friendly `in
26
26
 
27
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
28
 
29
- For full usage of `static_site_builder`, see:
29
+ For full usage of `site_builder`, see:
30
30
 
31
- $ static_site_builder help build
31
+ $ site_builder help build
32
32
 
33
33
  ## Templating
34
34
 
data/Rakefile CHANGED
@@ -17,7 +17,7 @@ end
17
17
  desc "Builds a static HTML site from markdown files"
18
18
  task :build_site, :markdown_dirpath, :output_dirpath do |t, args|
19
19
  args.with_defaults(markdown_dirpath: "./markdown")
20
- args.with_defaults(output_dirpath: args[:markdown_dirpath])
20
+ args.with_defaults(output_dirpath: "./markdown/html")
21
21
  puts StaticSiteBuilder.build_website(
22
22
  args[:markdown_dirpath],
23
23
  StaticSiteBuilder::HTMLTemplater.new,
@@ -1,3 +1,3 @@
1
1
  module StaticSiteBuilder
2
- VERSION = "0.3.0"
2
+ VERSION = "0.4.0"
3
3
  end
@@ -9,12 +9,12 @@ Gem::Specification.new do |spec|
9
9
  spec.authors = ["Michael Telford"]
10
10
  spec.email = ["michael.telford@live.com"]
11
11
 
12
- spec.summary = "Static site builder."
12
+ spec.summary = "Gem for building static content websites from markdown."
13
13
  spec.description = "Gem for building static content websites from markdown."
14
14
  spec.homepage = "https://github.com/michaeltelford/static_site_builder"
15
15
  spec.license = "MIT"
16
16
 
17
- spec.post_install_message = "Added the executable 'static_site_builder' to $PATH"
17
+ spec.post_install_message = "Added the executable 'site_builder' to $PATH"
18
18
 
19
19
  spec.required_ruby_version = '~> 2.5'
20
20
 
@@ -31,7 +31,7 @@ Gem::Specification.new do |spec|
31
31
  f.match(%r{^(test|spec|features)/})
32
32
  end
33
33
  spec.bindir = "exe"
34
- spec.executables = ["static_site_builder"]
34
+ spec.executables = ["site_builder"]
35
35
  spec.require_paths = ["lib"]
36
36
 
37
37
  spec.add_development_dependency "bundler", "~> 2.0"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: static_site_builder
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Telford
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-05-31 00:00:00.000000000 Z
11
+ date: 2019-06-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -98,16 +98,14 @@ description: Gem for building static content websites from markdown.
98
98
  email:
99
99
  - michael.telford@live.com
100
100
  executables:
101
- - static_site_builder
101
+ - site_builder
102
102
  extensions: []
103
103
  extra_rdoc_files: []
104
104
  files:
105
105
  - ".dockerignore"
106
106
  - ".gitignore"
107
107
  - ".ruby-version"
108
- - ".travis.yml"
109
108
  - CODE_OF_CONDUCT.md
110
- - Dockerfile
111
109
  - Gemfile
112
110
  - Gemfile.lock
113
111
  - LICENSE.txt
@@ -115,7 +113,7 @@ files:
115
113
  - Rakefile
116
114
  - bin/console
117
115
  - bin/setup
118
- - exe/static_site_builder
116
+ - exe/site_builder
119
117
  - lib/static_site_builder.rb
120
118
  - lib/static_site_builder/html_templater.rb
121
119
  - lib/static_site_builder/version.rb
@@ -126,7 +124,7 @@ licenses:
126
124
  - MIT
127
125
  metadata:
128
126
  allowed_push_host: https://rubygems.org
129
- post_install_message: Added the executable 'static_site_builder' to $PATH
127
+ post_install_message: Added the executable 'site_builder' to $PATH
130
128
  rdoc_options: []
131
129
  require_paths:
132
130
  - lib
@@ -142,8 +140,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
142
140
  version: '0'
143
141
  requirements: []
144
142
  rubyforge_project:
145
- rubygems_version: 2.7.8
143
+ rubygems_version: 2.7.6
146
144
  signing_key:
147
145
  specification_version: 4
148
- summary: Static site builder.
146
+ summary: Gem for building static content websites from markdown.
149
147
  test_files: []
@@ -1,5 +0,0 @@
1
- sudo: false
2
- language: ruby
3
- rvm:
4
- - 2.4.0
5
- before_install: gem install bundler -v 1.15.3
data/Dockerfile DELETED
@@ -1,24 +0,0 @@
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"]