rack-blogengine 0.1.8 → 0.1.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rack/blogengine/application.rb +6 -0
- data/lib/rack/blogengine/application_router.rb +5 -1
- data/lib/rack/blogengine/command_line_interface.rb +5 -0
- data/lib/rack/blogengine/doc_parser.rb +8 -0
- data/lib/rack/blogengine/document.rb +6 -0
- data/lib/rack/blogengine/operator.rb +6 -0
- data/lib/rack/blogengine/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cd71f0f9e24a78defa1bb77971852c56a239c9aa
|
4
|
+
data.tar.gz: 69a9765f620c3735c0a616b4f5c55ba49cabbf63
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 15d2f34967fca568e8dec1ad7bd400ccaf272de434bdaeb49690dd207e37b7a34f44c63b6586e586c675f50f4bcf8a7657fbfabbceb7dc1bdacde96639e4ebe6
|
7
|
+
data.tar.gz: f8496a5aa42651cc5fe67c3490d1ba2e5d1266ae255b61cb11c1a08e2df6be44ed8c3fd0e10d6c5d5fe880f8fbcc52b52a5bf068b9b7ff49ced0b95fb9b47e3a
|
@@ -1,5 +1,11 @@
|
|
1
1
|
module Rack
|
2
2
|
module Blogengine
|
3
|
+
#
|
4
|
+
# Application is the callable middleware class
|
5
|
+
# run Rack::Blogengine::Application
|
6
|
+
#
|
7
|
+
# @author [benny]
|
8
|
+
#
|
3
9
|
class Application
|
4
10
|
# Call Method for run this method as Rack Middleware.
|
5
11
|
# @param env Environment contains information such as path, headers etc...
|
@@ -1,7 +1,11 @@
|
|
1
1
|
module Rack
|
2
2
|
module Blogengine
|
3
|
+
#
|
4
|
+
# ApplicationRouter routes the request to the proper, parsed .content (layout.html + .content) file
|
5
|
+
#
|
6
|
+
# @author [benny]
|
7
|
+
#
|
3
8
|
class ApplicationRouter
|
4
|
-
|
5
9
|
# Maps documents to routes.
|
6
10
|
# @param env Env Contains path info etc...
|
7
11
|
# @param target Target folder
|
@@ -4,6 +4,11 @@ require 'yaml'
|
|
4
4
|
|
5
5
|
module Rack
|
6
6
|
module Blogengine
|
7
|
+
#
|
8
|
+
# This Class handles all cli input (running the app, generate folder skeleton)
|
9
|
+
#
|
10
|
+
# @author [benny]
|
11
|
+
#
|
7
12
|
class CommandLineInterface
|
8
13
|
def method_missing(name, *args)
|
9
14
|
puts "Command #{name} not available"
|
@@ -1,5 +1,13 @@
|
|
1
1
|
module Rack
|
2
2
|
module Blogengine
|
3
|
+
#
|
4
|
+
# Prepares the documents for the response
|
5
|
+
# Reads in layout.html and .content file -> merged html
|
6
|
+
# Sort documents by date
|
7
|
+
# Execute Content Operator after all documents has been parsed in
|
8
|
+
#
|
9
|
+
# @author [benny]
|
10
|
+
#
|
3
11
|
class DocParser
|
4
12
|
# Parse in .content Documents.
|
5
13
|
# @param target.
|
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.
|
4
|
+
version: 0.1.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Benny1992
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2014-01-
|
12
|
+
date: 2014-01-16 00:00:00 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
prerelease: false
|