tocify 0.0.1 → 0.0.2
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.
- data/README.md +2 -0
- data/lib/tocify.rb +1 -1
- data/lib/tocify/version.rb +1 -1
- metadata +2 -2
data/README.md
CHANGED
|
@@ -11,6 +11,8 @@ Tocify aims to create a table of contents for your markdown files. By default t
|
|
|
11
11
|
* [Linux](#linux)
|
|
12
12
|
* [Contributing](#contributing)
|
|
13
13
|
|
|
14
|
+
_Generated with [tocify](https://github.com/pyro2927/tocify)_
|
|
15
|
+
|
|
14
16
|
## Installation
|
|
15
17
|
|
|
16
18
|
Add this line to your application's Gemfile:
|
data/lib/tocify.rb
CHANGED
|
@@ -60,7 +60,7 @@ module Tocify
|
|
|
60
60
|
|
|
61
61
|
def self.insert(toc, file_name)
|
|
62
62
|
content = File.read(file_name)
|
|
63
|
-
content.sub!(/(\n## Table of Contents.+?|)\n##/im, "\n" + toc + "\n\n##")
|
|
63
|
+
content.sub!(/(\n## Table of Contents.+?|)\n##/im, "\n" + toc + "\n\n_Generated with [tocify](https://github.com/pyro2927/tocify)_\n\n##")
|
|
64
64
|
File.write(file_name, content)
|
|
65
65
|
end
|
|
66
66
|
end
|
data/lib/tocify/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: tocify
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.2
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2013-10-
|
|
12
|
+
date: 2013-10-22 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: bundler
|