moka 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +3 -0
- data/Manifest +1 -1
- data/Rakefile +1 -1
- data/lib/commands/inspect.rb +3 -3
- data/lib/commands/new.rb +5 -5
- data/lib/commands/server.rb +3 -3
- data/lib/commands/site/template/script/config/boot.rb +1 -1
- data/lib/version.rb +2 -2
- data/moka.gemspec +4 -4
- metadata +6 -4
data/CHANGELOG
ADDED
data/Manifest
CHANGED
data/Rakefile
CHANGED
@@ -2,7 +2,7 @@ require 'rubygems'
|
|
2
2
|
require 'rake'
|
3
3
|
require 'echoe'
|
4
4
|
|
5
|
-
Echoe.new('moka'
|
5
|
+
Echoe.new('moka') do |p|
|
6
6
|
p.summary = "An damn simple static website framework."
|
7
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 hyper-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, so you just have to upload it to your server. Plus, don't forget the Lipsum helper functions to generate dummy text with a single line of code during development or in HTML mockups."
|
8
8
|
p.url = "https://github.com/DukeLeNoir/Moka"
|
data/lib/commands/inspect.rb
CHANGED
@@ -25,13 +25,13 @@ Usage:
|
|
25
25
|
|
26
26
|
Examples:
|
27
27
|
moka inspect page groupname:mypagename
|
28
|
-
show variables and parameters available in page 'mypagename' belonging to group 'groupname'
|
28
|
+
show variables and parameters available in the context of page 'mypagename' belonging to group 'groupname'
|
29
29
|
|
30
30
|
moka inspect page index
|
31
|
-
show variables and parameters available in page 'index' belonging to group 'root'
|
31
|
+
show variables and parameters available in the context of page 'index' belonging to group 'root'
|
32
32
|
|
33
33
|
moka inspect group mygroup
|
34
|
-
show variables, parameters and pages available in group 'mygroup'
|
34
|
+
show variables, parameters and pages available in the context of group 'mygroup'
|
35
35
|
|
36
36
|
moka inspect site
|
37
37
|
show site-level variables, parameters and groups
|
data/lib/commands/new.rb
CHANGED
@@ -15,11 +15,11 @@ Usage:
|
|
15
15
|
|
16
16
|
or
|
17
17
|
|
18
|
-
moka new page group_name:page_name
|
18
|
+
moka new page group_name:page_name
|
19
19
|
|
20
20
|
or
|
21
21
|
|
22
|
-
moka new group group_name
|
22
|
+
moka new group group_name
|
23
23
|
|
24
24
|
Examples:
|
25
25
|
|
@@ -41,10 +41,10 @@ Options:
|
|
41
41
|
specify another page or group or moka site to use as a template to create the new page/group/site. The new page/group/site will have a copy of all the partials, variables and pages of the template page/group/site, apart from those variables that are explicitly set as command line arguments.
|
42
42
|
-v, --vars:
|
43
43
|
set variables in the appropriate variables.yml file. Syntax is:
|
44
|
-
|
44
|
+
--vars=var_name:var_value other_var_name:other_var_value ...
|
45
45
|
or
|
46
46
|
-v var_name:var_value other_var_name:other_var_value ...
|
47
|
-
|
47
|
+
Variables set using the command line are always saved as strings. Other variable types can be set by editing directly the appropriate variables.yml file with a text editor.
|
48
48
|
EOT
|
49
49
|
exit
|
50
50
|
end
|
@@ -59,6 +59,6 @@ case thing_to_be_created
|
|
59
59
|
when 'site', 'project', 's'
|
60
60
|
require File.expand_path('site/new', File.dirname(__FILE__))
|
61
61
|
else
|
62
|
-
puts "ERROR: invalid option #{thing_to_be_created}. Valid options are 'site', 'page' and 'group'."
|
62
|
+
puts "ERROR: invalid option '#{thing_to_be_created}'. Valid options are 'site', 'page' and 'group'."
|
63
63
|
exit
|
64
64
|
end
|
data/lib/commands/server.rb
CHANGED
@@ -46,8 +46,8 @@ module Moka
|
|
46
46
|
private
|
47
47
|
|
48
48
|
def start_webrick(config = {})
|
49
|
-
# always listen on port
|
50
|
-
config.update(:Port =>
|
49
|
+
# always listen on port 3333 if not explicitly specified
|
50
|
+
config.update(:Port => 3333) if config[:Port].nil?
|
51
51
|
server = HTTPServer.new(config)
|
52
52
|
yield server if block_given?
|
53
53
|
['INT', 'TERM'].each {|signal|
|
@@ -122,4 +122,4 @@ Usage:
|
|
122
122
|
end
|
123
123
|
end
|
124
124
|
|
125
|
-
Moka::SimpleServer.new.run({ :Port => (ARGV.size > 0) ? ARGV[0].to_i :
|
125
|
+
Moka::SimpleServer.new.run({ :Port => (ARGV.size > 0) ? ARGV[0].to_i : 3333 })
|
data/lib/version.rb
CHANGED
data/moka.gemspec
CHANGED
@@ -2,17 +2,17 @@
|
|
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.2"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = ["Luca Ongaro"]
|
9
|
-
s.date = %q{2010-11-
|
9
|
+
s.date = %q{2010-11-20}
|
10
10
|
s.default_executable = %q{moka}
|
11
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 hyper-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, so you just have to upload it to your server. Plus, don't forget the Lipsum helper functions to generate dummy text with a single line of code during development or in HTML mockups.}
|
12
12
|
s.email = %q{mail@lucaongaro.eu}
|
13
13
|
s.executables = ["moka"]
|
14
|
-
s.extra_rdoc_files = ["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
|
-
s.files = ["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"]
|
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
|
+
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"]
|
16
16
|
s.homepage = %q{https://github.com/DukeLeNoir/Moka}
|
17
17
|
s.post_install_message = %q{Welcome aboard Moka. You'll love it!}
|
18
18
|
s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Moka", "--main", "README.rdoc"]
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 1
|
8
|
-
-
|
9
|
-
version: 0.1.
|
8
|
+
- 2
|
9
|
+
version: 0.1.2
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Luca Ongaro
|
@@ -14,8 +14,8 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-11-
|
18
|
-
default_executable:
|
17
|
+
date: 2010-11-20 00:00:00 +01:00
|
18
|
+
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: thor
|
@@ -48,6 +48,7 @@ executables:
|
|
48
48
|
extensions: []
|
49
49
|
|
50
50
|
extra_rdoc_files:
|
51
|
+
- CHANGELOG
|
51
52
|
- LICENSE.txt
|
52
53
|
- README.rdoc
|
53
54
|
- bin/moka
|
@@ -94,6 +95,7 @@ extra_rdoc_files:
|
|
94
95
|
- lib/script_moka_loader.rb
|
95
96
|
- lib/version.rb
|
96
97
|
files:
|
98
|
+
- CHANGELOG
|
97
99
|
- LICENSE.txt
|
98
100
|
- Manifest
|
99
101
|
- README.rdoc
|