shabng 0.0.2 → 0.0.3
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/DOC/CommandRef.rdoc +3 -1
- data/bin/shabng +16 -11
- data/shabng.gemspec +3 -3
- metadata +4 -4
data/DOC/CommandRef.rdoc
CHANGED
@@ -20,7 +20,9 @@ You'll be asked to enter the API key, and to choose your editing app.
|
|
20
20
|
|
21
21
|
shabng new
|
22
22
|
|
23
|
-
You'll be prompted to give your new post a title. Your editor will then open, and you can write your post.
|
23
|
+
You'll be prompted to give your new post a title. Your editor will then open, and you can write your post. Write your post using either HTML or Markdown (http://daringfireball.net/projects/markdown/syntax). Here's a nice cheat sheet for Markdown syntax: http://cdn4.libsyn.com/howtube/Markdown_Cheat_Sheet.pdf
|
24
|
+
|
25
|
+
Save and close the document, and Shabng will save it on the server with a Draft status (unpublished).
|
24
26
|
|
25
27
|
== Editing a post
|
26
28
|
|
data/bin/shabng
CHANGED
@@ -96,7 +96,7 @@ elsif arg == "edit"
|
|
96
96
|
|
97
97
|
elsif arg == "push"
|
98
98
|
if arg2.nil?
|
99
|
-
puts "Use a post ID with this
|
99
|
+
puts "Use a post ID with this command to specify what to push live."
|
100
100
|
else
|
101
101
|
@post = Post.new(@urlstring, @apikey)
|
102
102
|
@post.push(arg2)
|
@@ -104,7 +104,7 @@ elsif arg == "push"
|
|
104
104
|
|
105
105
|
elsif arg == "pull"
|
106
106
|
if arg2.nil?
|
107
|
-
puts "Use a post ID with this
|
107
|
+
puts "Use a post ID with this command to specify what to remove from your blog."
|
108
108
|
else
|
109
109
|
@post = Post.new(@urlstring, @apikey)
|
110
110
|
@post.pull(arg2)
|
@@ -115,21 +115,26 @@ elsif arg == "pull"
|
|
115
115
|
elsif arg == "delete"
|
116
116
|
# delete blog post
|
117
117
|
if arg2.nil?
|
118
|
-
puts "Use a post ID with this
|
118
|
+
puts "Use a post ID with this command to specify what to delete from your blog."
|
119
119
|
else
|
120
120
|
@post = Post.new(@urlstring, @apikey)
|
121
121
|
@post.destroy(arg2)
|
122
122
|
end
|
123
123
|
|
124
|
-
elsif arg == "setup"
|
125
|
-
# create database and perform initial setup
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
elsif arg == "create_database"
|
130
|
-
@name = @newname
|
131
|
-
|
132
124
|
elsif arg == "help"
|
125
|
+
puts "List of shabng commands:"
|
126
|
+
puts " list Show all posts for your blog"
|
127
|
+
puts " list categories Show all categories for your blog"
|
128
|
+
puts " new Create a new blog post"
|
129
|
+
puts " new category Create a new blog category"
|
130
|
+
puts " edit title (id) Change title using the supplied post ID"
|
131
|
+
puts " edit body (id) Edit the post body using the supplied ID"
|
132
|
+
puts " edit pubdate (id) Change the publication date using the supplied post ID"
|
133
|
+
puts " edit categories (id) Set the categories for the post using the supplied ID"
|
134
|
+
puts " push (id) Change the status from Draft to Published (will appear on site)"
|
135
|
+
puts " pull (id) Change the status to Draft (will be removed from site)"
|
136
|
+
puts ""
|
137
|
+
puts "Run without options to see version information."
|
133
138
|
|
134
139
|
|
135
140
|
else
|
data/shabng.gemspec
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.specification_version = 2 if s.respond_to? :specification_version=
|
3
3
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
4
|
-
s.rubygems_version = '0.0.
|
4
|
+
s.rubygems_version = '0.0.3'
|
5
5
|
|
6
6
|
## Leave these as is they will be modified for you by the rake gemspec task.
|
7
7
|
## If your rubyforge_project name is different, then edit it and comment out
|
8
8
|
## the sub! line in the Rakefile
|
9
9
|
s.name = 'shabng'
|
10
|
-
s.version = '0.0.
|
11
|
-
s.date = '2010-11-
|
10
|
+
s.version = '0.0.3'
|
11
|
+
s.date = '2010-11-11'
|
12
12
|
s.rubyforge_project = 'shabng'
|
13
13
|
|
14
14
|
## Make sure your summary is short. The description may be as long
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: shabng
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 25
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 3
|
10
|
+
version: 0.0.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Aaron Vegh
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-11-
|
18
|
+
date: 2010-11-11 00:00:00 -05:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|