markdown_helper 0.1.7 → 0.1.8
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 +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +3 -1
- data/Rakefile +2 -2
- data/lib/markdown_helper/version.rb +1 -1
- data/lib/markdown_helper.rb +4 -3
- data/markdown_helper.gemspec +1 -1
- data/{readme → readme_files}/README.template.md +3 -1
- data/{readme → readme_files}/code_block_ruby_template.md +0 -0
- data/{readme → readme_files}/highlight_ruby_template.md +0 -0
- data/{readme → readme_files}/highlighted_ruby.md +0 -0
- data/{readme → readme_files}/include.md +0 -0
- data/{readme → readme_files}/include.rb +0 -0
- data/{readme → readme_files}/usage.rb +0 -0
- data/{readme → readme_files}/verbatim_ruby_template.md +0 -0
- metadata +11 -11
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f20468d3adaf8f70c7e5ca62a12d3796d11bf615
|
|
4
|
+
data.tar.gz: 01d3ae966a7217a012eaa2d32e603b233690ea8c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f36d06b2272e6d662288040ba56ee9536c617496516606bf304f9f2d890af3d34dfb8fb200fa8de88f10b4f9341e0162688a33060bc34569280ec937b23a5c63
|
|
7
|
+
data.tar.gz: a5e5ddb4973689fbcee65d977c1c85edb3090d4c2cc74d7b3f8353ccd2b63ef4af3d03b15ed0c006ad40b6ab21f13510a9b176dc5897b6c6d3f1901acd481db1
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
|
@@ -2,7 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
[](https://badge.fury.io/rb/markdown_helper)
|
|
4
4
|
|
|
5
|
-
## File Inclusion
|
|
5
|
+
## File Inclusion
|
|
6
|
+
|
|
7
|
+
<img src="https://raw.githubusercontent.com/BurdetteLamar/MarkdownHelper/master/images/include.png" width="50">
|
|
6
8
|
|
|
7
9
|
This markdown helper enables file inclusion in GitHub markdown.
|
|
8
10
|
|
data/Rakefile
CHANGED
|
@@ -13,8 +13,8 @@ namespace :build do
|
|
|
13
13
|
task :readme do
|
|
14
14
|
require_relative 'lib/markdown_helper'
|
|
15
15
|
markdown_helper = MarkdownHelper.new
|
|
16
|
-
markdown_helper.include('
|
|
17
|
-
markdown_helper.include('
|
|
16
|
+
markdown_helper.include('readme_files/highlight_ruby_template.md', 'readme_files/highlighted_ruby.md')
|
|
17
|
+
markdown_helper.include('readme_files/README.template.md', 'README.md')
|
|
18
18
|
end
|
|
19
19
|
|
|
20
20
|
end
|
data/lib/markdown_helper.rb
CHANGED
|
@@ -57,9 +57,10 @@ class MarkdownHelper
|
|
|
57
57
|
message = "Warning: Included file has no trailing newline: #{include_file_path}"
|
|
58
58
|
warn(message)
|
|
59
59
|
end
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
60
|
+
# For later.
|
|
61
|
+
# extname = File.extname(include_file_path)
|
|
62
|
+
# file_ext_key = extname.sub('.', '').to_sym
|
|
63
|
+
# treatment ||= @treatment_for_file_ext[file_ext_key]
|
|
63
64
|
if treatment == :verbatim
|
|
64
65
|
# Pass through unadorned.
|
|
65
66
|
output_lines.push(included_text)
|
data/markdown_helper.gemspec
CHANGED
|
@@ -11,7 +11,7 @@ Gem::Specification.new do |spec|
|
|
|
11
11
|
|
|
12
12
|
spec.summary = 'Class to help with GitHub markdown.'
|
|
13
13
|
spec.description = 'Class to help with GitHub markdown. So far: file inclusion.'
|
|
14
|
-
spec.homepage = 'https://
|
|
14
|
+
spec.homepage = 'https://github.com/BurdetteLamar/MarkdownHelper'
|
|
15
15
|
spec.license = 'MIT'
|
|
16
16
|
|
|
17
17
|
# Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
|
|
@@ -2,7 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
[](https://badge.fury.io/rb/markdown_helper)
|
|
4
4
|
|
|
5
|
-
## File Inclusion
|
|
5
|
+
## File Inclusion
|
|
6
|
+
|
|
7
|
+
<img src="https://raw.githubusercontent.com/BurdetteLamar/MarkdownHelper/master/images/include.png" width="50">
|
|
6
8
|
|
|
7
9
|
This markdown helper enables file inclusion in GitHub markdown.
|
|
8
10
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: markdown_helper
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.8
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- burdettelamar
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-
|
|
11
|
+
date: 2018-03-06 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -90,15 +90,15 @@ files:
|
|
|
90
90
|
- lib/markdown_helper.rb
|
|
91
91
|
- lib/markdown_helper/version.rb
|
|
92
92
|
- markdown_helper.gemspec
|
|
93
|
-
-
|
|
94
|
-
-
|
|
95
|
-
-
|
|
96
|
-
-
|
|
97
|
-
-
|
|
98
|
-
-
|
|
99
|
-
-
|
|
100
|
-
-
|
|
101
|
-
homepage: https://
|
|
93
|
+
- readme_files/README.template.md
|
|
94
|
+
- readme_files/code_block_ruby_template.md
|
|
95
|
+
- readme_files/highlight_ruby_template.md
|
|
96
|
+
- readme_files/highlighted_ruby.md
|
|
97
|
+
- readme_files/include.md
|
|
98
|
+
- readme_files/include.rb
|
|
99
|
+
- readme_files/usage.rb
|
|
100
|
+
- readme_files/verbatim_ruby_template.md
|
|
101
|
+
homepage: https://github.com/BurdetteLamar/MarkdownHelper
|
|
102
102
|
licenses:
|
|
103
103
|
- MIT
|
|
104
104
|
metadata: {}
|