rack-blogengine 0.1.8 → 0.1.9

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ac2f380861a964dc372755134ec9ba579c01a518
4
- data.tar.gz: a4eea9aa413b6fc8636168a37cf9d130d50c073e
3
+ metadata.gz: cd71f0f9e24a78defa1bb77971852c56a239c9aa
4
+ data.tar.gz: 69a9765f620c3735c0a616b4f5c55ba49cabbf63
5
5
  SHA512:
6
- metadata.gz: 4af90b6015da703e146f5932629858c22a20f76c97509a2a7d3ac52259c0b9aa54e4b59e41313acbbdee2ac66c48b94baa0c07ff033353d4b493397e25630080
7
- data.tar.gz: c9dd2c8c09abdea19e83669aade5317f8263f14fedf23f33f31e4e0a879f77a5c8fb1fda60acadc5e4fce41c554e4f4c051dcb946db4db03ad38c9f81a227c28
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.
@@ -1,5 +1,11 @@
1
1
  module Rack
2
2
  module Blogengine
3
+ #
4
+ # Document Class
5
+ # Contains attributes path, html, title, date
6
+ #
7
+ # @author [benny]
8
+ #
3
9
  class Document
4
10
  attr_accessor :path, :html, :title, :date
5
11
 
@@ -1,3 +1,9 @@
1
+ #
2
+ # Operator Class loads in UserOperators on initialize
3
+ # Methods defined in this Class are "Default Operators"
4
+ #
5
+ # @author [benny]
6
+ #
1
7
  class Operator
2
8
  def initialize(target)
3
9
  Dir.foreach("#{target}/operator/") do |item|
@@ -1,5 +1,5 @@
1
1
  module Rack
2
2
  module Blogengine
3
- VERSION = "0.1.8".freeze
3
+ VERSION = "0.1.9".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.8
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-15 00:00:00 Z
12
+ date: 2014-01-16 00:00:00 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  prerelease: false