ernest 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.
- checksums.yaml +4 -4
- data/README.md +25 -2
- data/ernest.gemspec +1 -1
- data/lib/ernest/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b010659df81260de657f7c0d6dc188bec9fb4dcc
|
|
4
|
+
data.tar.gz: 7ef0e6147906013eac6a9d77cbf6645a4b050442
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 24c4d548a82800c5c8a43a9540542a76599acbf0503ec7d1d3fcd9ff51526f54a8230dea935423aeefbed2ffd389c90878cf3ed21e000b39d91c4ee57097cfec
|
|
7
|
+
data.tar.gz: 7ea63da42e98b7ec90bfc4239da9a52a73557161bfc948b58a131dc722bb1515ddde2379a483a92de8e7ac4f2f3500b0741757887ad85b649e8c3402cdc995dc
|
data/README.md
CHANGED
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
# Ernest
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
> Write drunk; edit sober
|
|
4
|
+
|
|
5
|
+
-- *Ernest Hemingway*
|
|
6
|
+
|
|
7
|
+
Writing drunk is not always easy, to help with that, Ernest tries to make creating a draft on your blog a no brainer.
|
|
8
|
+
|
|
9
|
+
## Requirements
|
|
10
|
+
|
|
11
|
+
Your blog must accept a `POST` with an authentication token for the creating of drafts (or publish them immediately if you're fealing lucky).
|
|
12
|
+
|
|
13
|
+
See an example [here](https://github.com/groupbuddies/gb-blog).
|
|
4
14
|
|
|
5
15
|
## Installation
|
|
6
16
|
|
|
@@ -20,7 +30,20 @@ Or install it yourself as:
|
|
|
20
30
|
|
|
21
31
|
## Usage
|
|
22
32
|
|
|
23
|
-
|
|
33
|
+
Ernest is expecting two environment variables:
|
|
34
|
+
|
|
35
|
+
```
|
|
36
|
+
API_ENDPOINT="http://localhost:3000/api/posts"
|
|
37
|
+
TOKEN="a-random-token"
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
After you've set those variables, write your post in plain old markdown, adding any extra fields you want to send to the server as metadata. See an example [here](/examples/post-1.markdown).
|
|
41
|
+
|
|
42
|
+
When you're done with the writing, create a draft:
|
|
43
|
+
|
|
44
|
+
```
|
|
45
|
+
$ bundle exec ernest post-name.markdown
|
|
46
|
+
```
|
|
24
47
|
|
|
25
48
|
## Contributing
|
|
26
49
|
|
data/ernest.gemspec
CHANGED
|
@@ -13,7 +13,7 @@ Gem::Specification.new do |spec|
|
|
|
13
13
|
spec.license = "MIT"
|
|
14
14
|
|
|
15
15
|
spec.files = `git ls-files -z`.split("\x0")
|
|
16
|
-
spec.executables
|
|
16
|
+
spec.executables << 'ernest'
|
|
17
17
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
|
18
18
|
spec.require_paths = ["lib"]
|
|
19
19
|
|
data/lib/ernest/version.rb
CHANGED