markdown_record 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/lib/markdown_record/file_sorting/date_sorter.rb +1 -1
- data/lib/markdown_record/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 269413176d8f175aac4611a05b3e877a8f6e35e8d2578693a61b8137ba3e468c
|
4
|
+
data.tar.gz: 9bd2e4bbcfd47f25d95bd89cee4fa55ef702ef12c1c02b3ffb3def240210f034
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cfa28a6d993347abcc68d6a0d28163ea238c67516bb82b0293e4bb1779499db6ac027b508c1c56c9edd88136a6310ee9a3d265226bee2e966e629e8f8e6389c4
|
7
|
+
data.tar.gz: 1ffc583808ddd0886ec481997b52f36fabfeb457bb3c7447c58e3dabd40558111141ec3372634ae5da8a334ce2caec650b2ef7319dfc4334538215dc6c247d19
|
data/README.md
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Welcome to MarkdownRecord. This project is still in BETA stage, and as such is subject to rapid change. There are many things that still need improving, so bear that in mind. That said, please feel free to test this project out and provide feedback in the form of GitHub issues! Thank you.
|
4
4
|
|
5
|
-
You can find the complete usage guide [here](https://markdown-record-docs.herokuapp.com/
|
5
|
+
You can find the complete usage guide [here](https://markdown-record-docs.herokuapp.com/).
|
6
6
|
|
7
7
|
MarkdownRecord is a Rails engine that allows you to write markdown with embedded json like this:
|
8
8
|
|
@@ -214,7 +214,7 @@ rendered: /markdown_record/rendered/content/custom_models_and_associations.html
|
|
214
214
|
|
215
215
|
Congratulations! You have installed MarkdownRecord. If you are not viewing this from the host application already, go ahead and start your Rails server with `rails s` and navigate to http://localhost:3000/mdr/content/home to continue following this guide.
|
216
216
|
|
217
|
-
Alternatively, you can find the complete usage guide [here](https://markdown-record-docs.herokuapp.com/
|
217
|
+
Alternatively, you can find the complete usage guide [here](https://markdown-record-docs.herokuapp.com/).
|
218
218
|
|
219
219
|
## Contributing
|
220
220
|
|
@@ -3,7 +3,7 @@ module MarkdownRecord
|
|
3
3
|
class DateSorter < MarkdownRecord::FileSorting::Base
|
4
4
|
def initialize(sort_regex = /^(\d\d\d\d?_\d\d?_\d\d?)/, date_pattern = "%Y_%m_%d")
|
5
5
|
super(sort_regex)
|
6
|
-
@date_pattern =
|
6
|
+
@date_pattern = date_pattern || "%Y_%m_%d"
|
7
7
|
end
|
8
8
|
|
9
9
|
def to_sort_value(value)
|