moka 0.1.4 → 0.1.5
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/CHANGELOG +2 -0
- data/LICENSE.txt +1 -1
- data/README.rdoc +1 -1
- data/Rakefile +3 -3
- data/lib/commands/server.rb +2 -2
- data/lib/commands/site/template/project/site/content.erb +12 -12
- data/lib/commands/site/template/project/site/layout.erb +1 -1
- data/lib/commands/site/template/project/styles/style.sass +3 -3
- data/lib/commands/site/template/script/config/boot.rb +1 -1
- data/lib/version.rb +1 -1
- data/moka.gemspec +5 -5
- metadata +8 -6
data/CHANGELOG
CHANGED
data/LICENSE.txt
CHANGED
data/README.rdoc
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
== Welcome to Moka
|
2
2
|
|
3
|
-
Moka is a damn simple framework designed to build static websites like portfolios, showcases, minisites, HTML mockups, etc. Moka setup takes a single command, and it provides you with a hierarchical template system and some
|
3
|
+
Moka is a damn simple framework designed to build static websites like portfolios, showcases, minisites, HTML mockups, etc. Moka setup takes a single command, and it provides you with a hierarchical template system and some super-convenient helper functions so you never have to write more code than necessary. The result of your work is compiled to plain HTML, CSS and Javascript: you just need to upload it to your server to deploy it. Add as a bonus the Lipsum helpers, with which you can generate dummy text with a single line of code during development or in HTML mockups.
|
4
4
|
|
5
5
|
Moka values:
|
6
6
|
- Don't Repeat Yourself
|
data/Rakefile
CHANGED
@@ -4,10 +4,10 @@ require 'echoe'
|
|
4
4
|
|
5
5
|
Echoe.new('moka') do |p|
|
6
6
|
p.summary = "An damn simple static website framework."
|
7
|
-
p.description = "Moka is a damn simple framework designed to build static websites like portfolios, showcases, minisites, HTML mockups, etc. Moka setup takes a single command, and it provides a hierarchical template system and some
|
7
|
+
p.description = "Moka is a damn simple framework designed to build static websites like portfolios, showcases, minisites, HTML mockups, etc. Moka setup takes a single command, and it provides you with a hierarchical template system and some super-convenient helper functions so you never have to write more code than necessary. The result of your work is compiled to plain HTML, CSS and Javascript: you just need to upload it to your server to deploy it. Add as a bonus the Lipsum helpers, with which you can generate dummy text with a single line of code during development or in HTML mockups."
|
8
8
|
p.url = "https://github.com/DukeLeNoir/Moka"
|
9
|
-
p.author = "Luca Ongaro"
|
10
|
-
p.email = "mail@lucaongaro.eu"
|
9
|
+
p.author = ["Luca Ongaro", "Luca Tironi"]
|
10
|
+
p.email = ["mail@lucaongaro.eu", "luca.tironi@gmail.com"]
|
11
11
|
p.install_message= "Welcome aboard Moka. You'll love it!"
|
12
12
|
p.ignore_pattern = ["TODOs"]
|
13
13
|
p.runtime_dependencies = ["thor", "haml"]
|
data/lib/commands/server.rb
CHANGED
@@ -4,7 +4,7 @@ require 'getoptlong'
|
|
4
4
|
module Moka
|
5
5
|
class SimpleServer
|
6
6
|
require 'webrick'
|
7
|
-
require
|
7
|
+
require 'yaml'
|
8
8
|
require File.expand_path('lib/compiler', File.dirname(__FILE__))
|
9
9
|
include WEBrick
|
10
10
|
|
@@ -116,7 +116,7 @@ Usage:
|
|
116
116
|
|
117
117
|
moka server [port]
|
118
118
|
|
119
|
-
Start an extremely simple development server on http://localhost:
|
119
|
+
Start an extremely simple development server on http://localhost:3333/ or on the port specified as the first argument. This server eliminates the need to re-compile pages after each change, but it is only intended for development purpose. Currently, it only serves static HTML pages, and recognizes a limited number of content types.
|
120
120
|
EOT
|
121
121
|
exit
|
122
122
|
end
|
@@ -1,14 +1,14 @@
|
|
1
1
|
<div class="box">
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
2
|
+
<h3>Paragraphs</h3>
|
3
|
+
<%= Lipsum.paragraphs 2 %>
|
4
|
+
<h3>Quote</h3>
|
5
|
+
<blockquote>
|
6
|
+
<%= Lipsum.paragraphs 1 %>
|
7
|
+
</blockquote>
|
8
|
+
<h3>A List</h3>
|
9
|
+
<ul>
|
10
|
+
<% Lipsum.sentences(8) do |item| %>
|
11
|
+
<li><%= item %></li>
|
12
|
+
<% end %>
|
13
|
+
</ul>
|
14
14
|
</div>
|
@@ -24,10 +24,10 @@ body
|
|
24
24
|
a
|
25
25
|
color: #fff
|
26
26
|
text-decoration: none
|
27
|
-
|
27
|
+
|
28
28
|
#logo
|
29
29
|
padding: 2em 3em 1em 3em
|
30
|
-
|
30
|
+
|
31
31
|
#nav
|
32
32
|
padding: 0 3em
|
33
33
|
width: auto
|
@@ -47,7 +47,7 @@ body
|
|
47
47
|
color: #fff
|
48
48
|
a:hover
|
49
49
|
text-decoration: underline
|
50
|
-
|
50
|
+
|
51
51
|
#content
|
52
52
|
padding: 0 3em 2em 3em
|
53
53
|
margin: 0
|
data/lib/version.rb
CHANGED
data/moka.gemspec
CHANGED
@@ -2,14 +2,14 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{moka}
|
5
|
-
s.version = "0.1.
|
5
|
+
s.version = "0.1.5"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
|
8
|
-
s.authors = ["Luca Ongaro"]
|
9
|
-
s.date = %q{2010-
|
8
|
+
s.authors = ["Luca Ongaro, Luca Tironi"]
|
9
|
+
s.date = %q{2010-12-01}
|
10
10
|
s.default_executable = %q{moka}
|
11
|
-
s.description = %q{Moka is a damn simple framework designed to build static websites like portfolios, showcases, minisites, HTML mockups, etc. Moka setup takes a single command, and it provides a hierarchical template system and some
|
12
|
-
s.email =
|
11
|
+
s.description = %q{Moka is a damn simple framework designed to build static websites like portfolios, showcases, minisites, HTML mockups, etc. Moka setup takes a single command, and it provides you with a hierarchical template system and some super-convenient helper functions so you never have to write more code than necessary. The result of your work is compiled to plain HTML, CSS and Javascript: you just need to upload it to your server to deploy it. Add as a bonus the Lipsum helpers, with which you can generate dummy text with a single line of code during development or in HTML mockups.}
|
12
|
+
s.email = ["mail@lucaongaro.eu", "luca.tironi@gmail.com"]
|
13
13
|
s.executables = ["moka"]
|
14
14
|
s.extra_rdoc_files = ["CHANGELOG", "LICENSE.txt", "README.rdoc", "bin/moka", "lib/commands.rb", "lib/commands/compile.rb", "lib/commands/delete.rb", "lib/commands/group/delete.rb", "lib/commands/group/group_generator.rb", "lib/commands/group/inspect.rb", "lib/commands/group/new.rb", "lib/commands/group/template/groupdir/variables.yml", "lib/commands/inspect.rb", "lib/commands/lib/compiler.rb", "lib/commands/lib/helpers.rb", "lib/commands/lib/lipsum_constants.rb", "lib/commands/lib/lipsum_helpers.rb", "lib/commands/lib/page_scope.rb", "lib/commands/lib/partials_inclusion.rb", "lib/commands/lib/site_tree.rb", "lib/commands/lib/string_inflectors.rb", "lib/commands/lib/utilities.rb", "lib/commands/new.rb", "lib/commands/order_groups.rb", "lib/commands/order_pages.rb", "lib/commands/page/delete.rb", "lib/commands/page/inspect.rb", "lib/commands/page/new.rb", "lib/commands/page/page_generator.rb", "lib/commands/page/template/pagedir/variables.yml", "lib/commands/server.rb", "lib/commands/site/inspect.rb", "lib/commands/site/new.rb", "lib/commands/site/site_generator.rb", "lib/commands/site/template/manifest.yml", "lib/commands/site/template/project/lib/helpers.rb", "lib/commands/site/template/project/site/content.erb", "lib/commands/site/template/project/site/header.erb", "lib/commands/site/template/project/site/layout.erb", "lib/commands/site/template/project/site/navigation.erb", "lib/commands/site/template/project/site/variables.yml", "lib/commands/site/template/project/styles/style.sass", "lib/commands/site/template/script/config/boot.rb", "lib/commands/site/template/script/moka", "lib/script_moka_loader.rb", "lib/version.rb"]
|
15
15
|
s.files = ["CHANGELOG", "LICENSE.txt", "Manifest", "README.rdoc", "Rakefile", "bin/moka", "lib/commands.rb", "lib/commands/compile.rb", "lib/commands/delete.rb", "lib/commands/group/delete.rb", "lib/commands/group/group_generator.rb", "lib/commands/group/inspect.rb", "lib/commands/group/new.rb", "lib/commands/group/template/groupdir/variables.yml", "lib/commands/inspect.rb", "lib/commands/lib/compiler.rb", "lib/commands/lib/helpers.rb", "lib/commands/lib/lipsum_constants.rb", "lib/commands/lib/lipsum_helpers.rb", "lib/commands/lib/page_scope.rb", "lib/commands/lib/partials_inclusion.rb", "lib/commands/lib/site_tree.rb", "lib/commands/lib/string_inflectors.rb", "lib/commands/lib/utilities.rb", "lib/commands/new.rb", "lib/commands/order_groups.rb", "lib/commands/order_pages.rb", "lib/commands/page/delete.rb", "lib/commands/page/inspect.rb", "lib/commands/page/new.rb", "lib/commands/page/page_generator.rb", "lib/commands/page/template/pagedir/variables.yml", "lib/commands/server.rb", "lib/commands/site/inspect.rb", "lib/commands/site/new.rb", "lib/commands/site/site_generator.rb", "lib/commands/site/template/manifest.yml", "lib/commands/site/template/project/lib/helpers.rb", "lib/commands/site/template/project/site/content.erb", "lib/commands/site/template/project/site/header.erb", "lib/commands/site/template/project/site/layout.erb", "lib/commands/site/template/project/site/navigation.erb", "lib/commands/site/template/project/site/variables.yml", "lib/commands/site/template/project/styles/style.sass", "lib/commands/site/template/script/config/boot.rb", "lib/commands/site/template/script/moka", "lib/script_moka_loader.rb", "lib/version.rb", "moka.gemspec"]
|
metadata
CHANGED
@@ -5,16 +5,16 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 1
|
8
|
-
-
|
9
|
-
version: 0.1.
|
8
|
+
- 5
|
9
|
+
version: 0.1.5
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
|
-
- Luca Ongaro
|
12
|
+
- Luca Ongaro, Luca Tironi
|
13
13
|
autorequire:
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-
|
17
|
+
date: 2010-12-01 00:00:00 +01:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
@@ -41,8 +41,10 @@ dependencies:
|
|
41
41
|
version: "0"
|
42
42
|
type: :runtime
|
43
43
|
version_requirements: *id002
|
44
|
-
description: Moka is a damn simple framework designed to build static websites like portfolios, showcases, minisites, HTML mockups, etc. Moka setup takes a single command, and it provides a hierarchical template system and some
|
45
|
-
email:
|
44
|
+
description: "Moka is a damn simple framework designed to build static websites like portfolios, showcases, minisites, HTML mockups, etc. Moka setup takes a single command, and it provides you with a hierarchical template system and some super-convenient helper functions so you never have to write more code than necessary. The result of your work is compiled to plain HTML, CSS and Javascript: you just need to upload it to your server to deploy it. Add as a bonus the Lipsum helpers, with which you can generate dummy text with a single line of code during development or in HTML mockups."
|
45
|
+
email:
|
46
|
+
- mail@lucaongaro.eu
|
47
|
+
- luca.tironi@gmail.com
|
46
48
|
executables:
|
47
49
|
- moka
|
48
50
|
extensions: []
|