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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 13217739ba901dab8a84e1a9bdd62aec37e4896e
4
- data.tar.gz: dec1082d6f3dd1ca323b3b468f5abc7ef022faa5
3
+ metadata.gz: 446c1873fe807809dfd18aa400eb1b3a37db6f95
4
+ data.tar.gz: f6ebc4f1cea67d33811cc1f69248014370505612
5
5
  SHA512:
6
- metadata.gz: 848e8d766d864e2c21bf32122c0fcdd338671af84f53bfbb156516a4b70aac79692707cfd19d4c86bcee47d2dfa03ac625e48ce51d4811dd72a9d3dec083e0f8
7
- data.tar.gz: 49da84bea6578aa98ec2649756c0e1d06d8c35f723bcb1c32128f6804891a0dc9a1c465ae39addbb9a6315ae9107e277d6c89ab925931615f058fffc5f53e22c
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
- begin
18
- cli.send(command, target)
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)
@@ -1,5 +1,5 @@
1
1
  module Rack
2
2
  module Blogengine
3
- VERSION = "0.1.0".freeze
3
+ VERSION = "0.1.1".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-blogengine
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Benny1992