rakali 0.0.17 → 0.1.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2eb9ce467fe5995f4ccdf923e5fadc8565fa92cc
4
- data.tar.gz: 591d43f84a478ff6aee2640e0d20b6e8495b6109
3
+ metadata.gz: f100f7c3e9f272f29ae6d04f4d6bfd6c08503e01
4
+ data.tar.gz: 6b910f09126fc3fb6208c304d77f230b6ce6e7fd
5
5
  SHA512:
6
- metadata.gz: 612720c0b05c2890eca185903166f34272fa0225db753aac244b970a32852661275a86500180563ff866fa83d543c7ce45029c3aaf9ed01ae72749d25917ceb8
7
- data.tar.gz: 57724aa15bed4025549c45d274d3298e9552ada75fe62fef0b783bdde5fd1b8a9fabd0e8edd083d51bb90b25cf63427a3f54d9663f9765911fae0c91bea544f4
6
+ metadata.gz: 7e29cc1e99f2bd1e4980369da3f7c4766fec28df424092a4639ab767a82df89274de9f371cb7f6908167a97ef255f75e4739094b1ebc7eb5b6bb04d3f2a879e7
7
+ data.tar.gz: f0072b709f8462dbc88e4e430f10484b26a552d23c9204516a56e96e8aaf1ed91e226002988f11b6e2909a2941b29b1712a1883f109e62bb8592fbf3b22b0a51
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rakali (0.0.17)
4
+ rakali (0.1.0)
5
5
  colorator (~> 0.1)
6
6
  json-schema (~> 2.2)
7
7
  safe_yaml (~> 1.0)
data/README.md CHANGED
@@ -4,3 +4,69 @@ rakali.rb
4
4
  [![Build Status](https://travis-ci.org/rakali/rakali.rb.svg)](https://travis-ci.org/rakali/rakali.rb)
5
5
  [![Gem Version](https://badge.fury.io/rb/rakali.svg)](http://badge.fury.io/rb/rakali)
6
6
  [![Code Climate](https://codeclimate.com/github/rakali/rakali.rb.png)](https://codeclimate.com/github/rakali/rakali.rb)
7
+
8
+ Rakali is a wrapper for the [Pandoc](http://johnmacfarlane.net/pandoc/) document converter with the following features:
9
+
10
+ * bulk conversion of all files in a folder with a specific extension, e.g. `.md`.
11
+ * input via a configuration file in yaml format instead of via the command line
12
+ * validation of documents via [JSON Schema](http://json-schema.org/), using the [json-schema](https://github.com/hoxworth/json-schema) Ruby gem.
13
+ * Logging via `stdout` and `stderr`.
14
+
15
+ ## Installation
16
+
17
+ ```
18
+ gem install rakali
19
+ ```
20
+
21
+ ## Use
22
+
23
+ Provide a configuration file in yaml format as input:
24
+
25
+ ```
26
+ rakali convert .rakali.yml
27
+ ```
28
+
29
+ The default configuration looks like this:
30
+
31
+ ```
32
+ from:
33
+ folder:
34
+ format: md
35
+ to:
36
+ format: html
37
+ schema: default.json
38
+ citations: false
39
+ strict: false
40
+ merge: false
41
+ ```
42
+
43
+ The only required key for the input yaml file is `from` `folder`, and you can override any key in the default file.
44
+
45
+ * **schema**: JSON schema used for validation. Use `your_folder/schema.json` for a custom schema, or use one of the built-in schemata (see [pandoc-schemata](https://github.com/rakali/pandoc-schemata) for a list.)
46
+ * **citations**: include `-f citeproc-pandoc` for citation formatting
47
+ * **strict**: abort conversion on validation errors
48
+ * **merge**: merge all input files into a single file
49
+
50
+ To integrate rakali into a continuous integration environment such as [Travis CI](https://travis-ci.org), add a configuration file (e.g. `.rakali.yml`) into the root folder of your repo and include the following line in your `.travis.yml` file:
51
+
52
+ ```
53
+ language: haskell
54
+ script:
55
+ - gem install rakali
56
+ - rakali convert .rakali.yml
57
+ ```
58
+
59
+ ## Feedback
60
+
61
+ This is an early release version. Please provide feedback via the [issue tracker](https://github.com/rakali/rakali.rb/issues).
62
+
63
+ ## Contributing
64
+
65
+ 1. Fork it
66
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
67
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
68
+ 4. Push to the branch (`git push origin my-new-feature`)
69
+ 5. Create new Pull Request
70
+
71
+ ## License
72
+ [MIT License](LICENSE).
@@ -1,3 +1,3 @@
1
1
  module Rakali
2
- VERSION = "0.0.17"
2
+ VERSION = "0.1.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rakali
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.17
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martin Fenner