rack-blogengine 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -4
- data/bin/rack-blogengine +2 -7
- data/lib/rack/blogengine/command_line_interface.rb +9 -0
- data/lib/rack/blogengine/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: 446c1873fe807809dfd18aa400eb1b3a37db6f95
|
4
|
+
data.tar.gz: f6ebc4f1cea67d33811cc1f69248014370505612
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ca3859f1001bb1ee76de9de867942747ed8266572bb997c28576824a060b786de2a7c8193dbabdda55da6e8a9806ae57a573e20c51e25c2f4a6ef935fa4555f7
|
7
|
+
data.tar.gz: 8a9e02e79b2bcc773b92291f3ab1521d66fa92db77eac211fc290fda3f12f5f0602d8d8734236118312729db8a3dac8355e4cbe19b611666cadc2a8cd6779404
|
data/README.md
CHANGED
@@ -50,14 +50,14 @@ Example:
|
|
50
50
|
|
51
51
|
The Content files (.content) includes your content
|
52
52
|
|
53
|
-
`[path]` - this will be your access path to your blog entry
|
53
|
+
`[path][/path]` - this will be your access path to your blog entry
|
54
54
|
|
55
|
-
`[title]` - the title for your article
|
55
|
+
`[title][/title]` - the title for your article
|
56
56
|
|
57
|
-
`[content]` - your content
|
57
|
+
`[content][/content]` - your content
|
58
58
|
|
59
59
|
### Hint
|
60
|
-
For a root document (http://pathtoapp.tld/) path should be empty (path
|
60
|
+
For a root document (http://pathtoapp.tld/) path should be empty ([path]:[/path])
|
61
61
|
|
62
62
|
## Contributing
|
63
63
|
|
data/bin/rack-blogengine
CHANGED
@@ -14,11 +14,6 @@ target = "" if !ARGV[1]
|
|
14
14
|
|
15
15
|
cli = Rack::Blogengine::CommandLineInterface.new
|
16
16
|
methods = Rack::Blogengine::CommandLineInterface.instance_methods(false)
|
17
|
-
|
18
|
-
|
19
|
-
rescue TypeError
|
20
|
-
puts "Available commands are #{methods}"
|
21
|
-
rescue NoMethodError
|
22
|
-
puts "Available commands are #{methods}"
|
23
|
-
end
|
17
|
+
|
18
|
+
cli.send(command, target)
|
24
19
|
|
@@ -4,6 +4,15 @@ require 'rack/blogengine'
|
|
4
4
|
module Rack
|
5
5
|
module Blogengine
|
6
6
|
class CommandLineInterface
|
7
|
+
def method_missing(name, *args)
|
8
|
+
puts "Command #{name} not available"
|
9
|
+
print "Available Commands are: \n\n"
|
10
|
+
self.class.instance_methods(false).each do |method|
|
11
|
+
print "\t #{method}\n" unless method == :method_missing
|
12
|
+
end
|
13
|
+
print "\n"
|
14
|
+
end
|
15
|
+
|
7
16
|
# Method to run the cli command
|
8
17
|
# @param [String] target
|
9
18
|
def run(target)
|