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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: de3df61165567b89d54c2cdac23b654e8ffa29e4
4
- data.tar.gz: 2a3657044d87d1bc583d9d4c515dbe3239b61258
3
+ metadata.gz: b010659df81260de657f7c0d6dc188bec9fb4dcc
4
+ data.tar.gz: 7ef0e6147906013eac6a9d77cbf6645a4b050442
5
5
  SHA512:
6
- metadata.gz: 6a3a1dbebb36ff1f75705c4b8a86507eb9c7c59b955ad19362f27d6ced122ff69a9974341c1ec7536f1e49ca860740cac4cde030fa38b1e8b015f703b54bba0c
7
- data.tar.gz: a7f0c0d874e0d8a1118c89e40cfa1420618e1f17ac85f0acb2937e0f859af178ad68ec456021693c028e3fb83a3cee73b53f1aaf3ad2231231b768378043fdbf
6
+ metadata.gz: 24c4d548a82800c5c8a43a9540542a76599acbf0503ec7d1d3fcd9ff51526f54a8230dea935423aeefbed2ffd389c90878cf3ed21e000b39d91c4ee57097cfec
7
+ data.tar.gz: 7ea63da42e98b7ec90bfc4239da9a52a73557161bfc948b58a131dc722bb1515ddde2379a483a92de8e7ac4f2f3500b0741757887ad85b649e8c3402cdc995dc
data/README.md CHANGED
@@ -1,6 +1,16 @@
1
1
  # Ernest
2
2
 
3
- TODO: Write a gem description
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
- TODO: Write usage instructions here
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
 
@@ -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 = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
16
+ spec.executables << 'ernest'
17
17
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
18
18
  spec.require_paths = ["lib"]
19
19
 
@@ -1,3 +1,3 @@
1
1
  module Ernest
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ernest
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zamith