markdown_helper 0.1.5 → 0.1.6
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 +8 -8
- data/Gemfile.lock +24 -24
- data/README.md +1 -1
- data/Rakefile +22 -22
- data/bin/console +14 -14
- data/bin/include +23 -23
- data/lib/markdown_helper/version.rb +3 -3
- data/readme/README.template.md +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fbd8e83b5e45d9c129d8a37a455dd7c1bbe7bb82
|
4
|
+
data.tar.gz: 40ec0f94c86e91ba1431b1c8ee449ed599b0a7cd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bfc2df47b88f279928ed331445dc751ade44c1ae17032fb7e57dfc7c8ba6e23a74a3b148230b09d67c85ee157fe63debe6ebc8f252af24163a2cbb3d18e17597
|
7
|
+
data.tar.gz: 28153811848e7f8689589f9a2c6e5f96f1df4ff33af12a4e5cffd3c18cbe7bdda7f28fd31fefd609e2b3d850e410faff967283345f0f1410499e325a57ac9f0f
|
data/Gemfile
CHANGED
@@ -1,8 +1,8 @@
|
|
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 markdown_helper.gemspec
|
6
|
-
gemspec
|
7
|
-
|
8
|
-
gem 'diff-lcs', '1.3'
|
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 markdown_helper.gemspec
|
6
|
+
gemspec
|
7
|
+
|
8
|
+
gem 'diff-lcs', '1.3'
|
data/Gemfile.lock
CHANGED
@@ -1,24 +1,24 @@
|
|
1
|
-
PATH
|
2
|
-
remote: .
|
3
|
-
specs:
|
4
|
-
markdown_helper (0.1.
|
5
|
-
|
6
|
-
GEM
|
7
|
-
remote: https://rubygems.org/
|
8
|
-
specs:
|
9
|
-
diff-lcs (1.3)
|
10
|
-
minitest (5.11.3)
|
11
|
-
rake (10.5.0)
|
12
|
-
|
13
|
-
PLATFORMS
|
14
|
-
x86-mingw32
|
15
|
-
|
16
|
-
DEPENDENCIES
|
17
|
-
bundler (~> 1.14)
|
18
|
-
diff-lcs (= 1.3)
|
19
|
-
markdown_helper!
|
20
|
-
minitest (~> 5.0)
|
21
|
-
rake (~> 10.0)
|
22
|
-
|
23
|
-
BUNDLED WITH
|
24
|
-
1.16.1
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
markdown_helper (0.1.6)
|
5
|
+
|
6
|
+
GEM
|
7
|
+
remote: https://rubygems.org/
|
8
|
+
specs:
|
9
|
+
diff-lcs (1.3)
|
10
|
+
minitest (5.11.3)
|
11
|
+
rake (10.5.0)
|
12
|
+
|
13
|
+
PLATFORMS
|
14
|
+
x86-mingw32
|
15
|
+
|
16
|
+
DEPENDENCIES
|
17
|
+
bundler (~> 1.14)
|
18
|
+
diff-lcs (= 1.3)
|
19
|
+
markdown_helper!
|
20
|
+
minitest (~> 5.0)
|
21
|
+
rake (~> 10.0)
|
22
|
+
|
23
|
+
BUNDLED WITH
|
24
|
+
1.16.1
|
data/README.md
CHANGED
@@ -77,7 +77,7 @@ markdown_helper.include(template_file_path, markdown_file_path)
|
|
77
77
|
|
78
78
|
Specify each file inclusion via an *include pragma*, which has the form:
|
79
79
|
|
80
|
-
<code>@[</code>*format*<code>](</code>*relative_file_path*<code>)</code>
|
80
|
+
<code>@[</code>*format*<code>]\(</code>*relative_file_path*<code>)</code>
|
81
81
|
|
82
82
|
where:
|
83
83
|
|
data/Rakefile
CHANGED
@@ -1,22 +1,22 @@
|
|
1
|
-
require 'bundler/gem_tasks'
|
2
|
-
require 'rake/testtask'
|
3
|
-
|
4
|
-
Rake::TestTask.new(:test) do |t|
|
5
|
-
t.libs << 'test'
|
6
|
-
t.libs << 'lib'
|
7
|
-
t.test_files = FileList['test/**/*_test.rb']
|
8
|
-
end
|
9
|
-
|
10
|
-
namespace :build do
|
11
|
-
|
12
|
-
desc 'Build README.md file from README.template.md'
|
13
|
-
task :readme do
|
14
|
-
require_relative 'lib/markdown_helper'
|
15
|
-
markdown_helper = MarkdownHelper.new
|
16
|
-
markdown_helper.include('readme/highlight_ruby_template.md', 'readme/highlighted_ruby.md')
|
17
|
-
markdown_helper.include('readme/README.template.md', 'README.md')
|
18
|
-
end
|
19
|
-
|
20
|
-
end
|
21
|
-
|
22
|
-
task :default => :test
|
1
|
+
require 'bundler/gem_tasks'
|
2
|
+
require 'rake/testtask'
|
3
|
+
|
4
|
+
Rake::TestTask.new(:test) do |t|
|
5
|
+
t.libs << 'test'
|
6
|
+
t.libs << 'lib'
|
7
|
+
t.test_files = FileList['test/**/*_test.rb']
|
8
|
+
end
|
9
|
+
|
10
|
+
namespace :build do
|
11
|
+
|
12
|
+
desc 'Build README.md file from README.template.md'
|
13
|
+
task :readme do
|
14
|
+
require_relative 'lib/markdown_helper'
|
15
|
+
markdown_helper = MarkdownHelper.new
|
16
|
+
markdown_helper.include('readme/highlight_ruby_template.md', 'readme/highlighted_ruby.md')
|
17
|
+
markdown_helper.include('readme/README.template.md', 'README.md')
|
18
|
+
end
|
19
|
+
|
20
|
+
end
|
21
|
+
|
22
|
+
task :default => :test
|
data/bin/console
CHANGED
@@ -1,14 +1,14 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
|
3
|
-
require 'bundler/setup'
|
4
|
-
require 'markdown_helper'
|
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
|
-
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
-
# require 'pry'
|
11
|
-
# Pry.start
|
12
|
-
|
13
|
-
require 'irb'
|
14
|
-
IRB.start(__FILE__)
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require 'bundler/setup'
|
4
|
+
require 'markdown_helper'
|
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
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require 'pry'
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require 'irb'
|
14
|
+
IRB.start(__FILE__)
|
data/bin/include
CHANGED
@@ -1,23 +1,23 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
|
3
|
-
require 'markdown_helper'
|
4
|
-
|
5
|
-
def usage
|
6
|
-
dir_path = File.dirname(File.absolute_path(__FILE__))
|
7
|
-
file_path = File.join(
|
8
|
-
dir_path,
|
9
|
-
'usage',
|
10
|
-
'include.txt'
|
11
|
-
)
|
12
|
-
puts File.read(file_path)
|
13
|
-
exit
|
14
|
-
end
|
15
|
-
|
16
|
-
template_file_path, markdown_file_path = ARGV
|
17
|
-
|
18
|
-
usage unless ARGV.size == 2
|
19
|
-
usage unless File.readable?(template_file_path)
|
20
|
-
usage unless File.writable?(File.dirname(markdown_file_path))
|
21
|
-
|
22
|
-
MarkdownHelper.new.include(template_file_path, markdown_file_path)
|
23
|
-
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require 'markdown_helper'
|
4
|
+
|
5
|
+
def usage
|
6
|
+
dir_path = File.dirname(File.absolute_path(__FILE__))
|
7
|
+
file_path = File.join(
|
8
|
+
dir_path,
|
9
|
+
'usage',
|
10
|
+
'include.txt'
|
11
|
+
)
|
12
|
+
puts File.read(file_path)
|
13
|
+
exit
|
14
|
+
end
|
15
|
+
|
16
|
+
template_file_path, markdown_file_path = ARGV
|
17
|
+
|
18
|
+
usage unless ARGV.size == 2
|
19
|
+
usage unless File.readable?(template_file_path)
|
20
|
+
usage unless File.writable?(File.dirname(markdown_file_path))
|
21
|
+
|
22
|
+
MarkdownHelper.new.include(template_file_path, markdown_file_path)
|
23
|
+
|
@@ -1,3 +1,3 @@
|
|
1
|
-
class MarkdownHelper
|
2
|
-
VERSION = '0.1.
|
3
|
-
end
|
1
|
+
class MarkdownHelper
|
2
|
+
VERSION = '0.1.6'
|
3
|
+
end
|
data/readme/README.template.md
CHANGED
@@ -40,7 +40,7 @@ Verbatim text is included unadorned. Most often, verbatim text is markdown to b
|
|
40
40
|
|
41
41
|
Specify each file inclusion via an *include pragma*, which has the form:
|
42
42
|
|
43
|
-
<code>@[</code>*format*<code>](</code>*relative_file_path*<code>)</code>
|
43
|
+
<code>@[</code>*format*<code>]\(</code>*relative_file_path*<code>)</code>
|
44
44
|
|
45
45
|
where:
|
46
46
|
|
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.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- burdettelamar
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-02-
|
11
|
+
date: 2018-02-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|