presser 0.1.1 → 0.1.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 CHANGED
@@ -20,18 +20,38 @@ will get presser to create a sample .presser file for you. You will then need to
20
20
 
21
21
  ## Uploading files
22
22
 
23
- Presser will upload a file for you. Use this command:
23
+ This command doesn't post a file! It's here so you can upload an image that can then be shown on your blog.
24
24
 
25
25
  presser -U filename
26
26
 
27
27
  Presser will upload the file and print out the url where the uploaded file can be found.
28
28
 
29
+ ## Edit a post
30
+
31
+ Get the post ID of the post you want to edit. You can see this in Wordpress's url for the post, in several of the views. Then:
32
+
33
+ presser -g id
34
+
35
+ This downloads the post to a file in your current directory that you can then edit.
36
+
37
+ To download a post and then open the file in Vim:
38
+
39
+ presser -vg id
40
+
41
+ (Note! The order of the options is important. -vg works. -gv doesn't.)
42
+
29
43
  ## New posts
30
44
 
31
- Use the post_template.txt file as a template for new posts. Shocker.
45
+ To create a new post template file in your current directory:
32
46
 
33
- Copy the file and edit it. Then post it with:
47
+ presser -n
34
48
 
35
- presser -o filename
49
+ To create the new template and edit it in vim:
50
+
51
+ presser -nv
36
52
 
37
- Edit it some more. Update the post with the same command.
53
+ At the moment, vim is hardwired to be MacVim, via MacVim's mvim wrapper script.
54
+
55
+ Once you have edited a post file, either a new one or a downloaded one, upload it to your blog like this:
56
+
57
+ presser -o filename
@@ -1,3 +1,3 @@
1
1
  module Presser
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
@@ -1,12 +1,9 @@
1
1
  # Beginning of header
2
2
  title: A newer title
3
- link: http://www.jeffroush.com/technotes/2011/10/23/a-newer-title/
4
- postid: 1247
5
- post_status: publish
3
+ categories: these, are, tags
6
4
  # End of header
5
+
7
6
  This is the body
8
7
  of the file.
9
8
 
10
9
  This is [a link](http://www.google.com).
11
-
12
- And it works. Woo hoo!
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: presser
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
4
+ hash: 31
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 1
10
- version: 0.1.1
9
+ - 2
10
+ version: 0.1.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jeff Roush