Kharites-tools 0.1.1 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Kharites-tools.gemspec +8 -6
- data/README.markdown +1 -1
- data/Rakefile +20 -0
- data/VERSION +1 -1
- data/lib/kharites/mixins/generate.rb +1 -1
- data/lib/kharites/templates/article/article.yml +6 -0
- data/lib/kharites/templates/article/public/404.html +1 -0
- data/lib/kharites/templates/article/public/500.html +1 -0
- data/lib/kharites/templates/article/public/stylesheets/article.css +32 -0
- data/lib/kharites/templates/article/views/index.haml +2 -1
- data/lib/kharites/templates/article/views/layout.haml +16 -3
- metadata +10 -8
- data/lib/kharites/templates/article/article.kharites +0 -12
- data/lib/kharites/templates/article/views/application.sass +0 -6
data/Kharites-tools.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{Kharites-tools}
|
8
|
-
s.version = "0.
|
8
|
+
s.version = "0.2.0"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Jose Pablo Barrantes"]
|
12
|
-
s.date = %q{2010-05-
|
12
|
+
s.date = %q{2010-05-17}
|
13
13
|
s.default_executable = %q{kharites}
|
14
14
|
s.description = %q{Tools for Karites.}
|
15
15
|
s.email = %q{xjpablobrx@gmail.com}
|
@@ -31,10 +31,12 @@ Gem::Specification.new do |s|
|
|
31
31
|
"lib/kharites/mixins/generate.rb",
|
32
32
|
"lib/kharites/mixins/server.rb",
|
33
33
|
"lib/kharites/mixins/sync.rb",
|
34
|
-
"lib/kharites/templates/article/article.
|
34
|
+
"lib/kharites/templates/article/article.yml",
|
35
|
+
"lib/kharites/templates/article/public/404.html",
|
36
|
+
"lib/kharites/templates/article/public/500.html",
|
35
37
|
"lib/kharites/templates/article/public/images/article.jpg",
|
36
38
|
"lib/kharites/templates/article/public/javascripts/article.js",
|
37
|
-
"lib/kharites/templates/article/
|
39
|
+
"lib/kharites/templates/article/public/stylesheets/article.css",
|
38
40
|
"lib/kharites/templates/article/views/index.haml",
|
39
41
|
"lib/kharites/templates/article/views/layout.haml",
|
40
42
|
"spec/base_spec.rb",
|
@@ -52,9 +54,9 @@ Gem::Specification.new do |s|
|
|
52
54
|
s.rubygems_version = %q{1.3.6}
|
53
55
|
s.summary = %q{Tools for the Karites.}
|
54
56
|
s.test_files = [
|
55
|
-
"spec/
|
57
|
+
"spec/spec_helper.rb",
|
56
58
|
"spec/setup_spec.rb",
|
57
|
-
"spec/
|
59
|
+
"spec/base_spec.rb"
|
58
60
|
]
|
59
61
|
|
60
62
|
if s.respond_to? :specification_version then
|
data/README.markdown
CHANGED
data/Rakefile
CHANGED
@@ -3,6 +3,26 @@ require 'spec/rake/spectask'
|
|
3
3
|
|
4
4
|
require File.dirname(__FILE__) + '/lib/kharites'
|
5
5
|
begin
|
6
|
+
|
7
|
+
GEM = "Kharites-tools"
|
8
|
+
AUTHOR = "Jose Pablo Barrantes"
|
9
|
+
EMAIL = "xjpablobrx@gmail.com"
|
10
|
+
SUMMARY = "Tools for the Karites"
|
11
|
+
HOMEPAGE = "http://github.com/jpablobr/kharites-tools/tree/master"
|
12
|
+
INSTALL_MESSAGE = %q{
|
13
|
+
========================================================================
|
14
|
+
Thanks for installing Kharites-tools!
|
15
|
+
------------------------------------------------------------------------
|
16
|
+
You can now (optionally) run the generator to copy some stylesheets and
|
17
|
+
a config initializer (<article-name>.kharites) into your application:
|
18
|
+
|
19
|
+
$ kharites generate <article-name>
|
20
|
+
|
21
|
+
Find out more and get involved:
|
22
|
+
http://github.com/jpablobr/kharites-tools
|
23
|
+
========================================================================
|
24
|
+
}
|
25
|
+
|
6
26
|
require 'jeweler'
|
7
27
|
Jeweler::Tasks.new do |gemspec|
|
8
28
|
gemspec.name = "Kharites-tools"
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.2.0
|
@@ -10,7 +10,7 @@ module Kharites::SetupMixin
|
|
10
10
|
end
|
11
11
|
end
|
12
12
|
|
13
|
-
FileUtils.cd(@base_dir) {|dir| FileUtils.mv("article.
|
13
|
+
FileUtils.cd(@base_dir) {|dir| FileUtils.mv("article.yml", "#{dir}.yml") unless "#{dir}.yml" == "article.yml"}
|
14
14
|
|
15
15
|
puts "Done"
|
16
16
|
end
|
@@ -0,0 +1 @@
|
|
1
|
+
<h1>404</h1>
|
@@ -0,0 +1 @@
|
|
1
|
+
<h1>500</h1>
|
@@ -0,0 +1,32 @@
|
|
1
|
+
/*- Reset Styles -----------------------------------------------------------*/
|
2
|
+
|
3
|
+
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big,
|
4
|
+
cite, code, del, dfn, em, font, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd,
|
5
|
+
ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, hr, button
|
6
|
+
{margin:0; padding:0; border:0; outline:0; font-size:100%; vertical-align: baseline; background:transparent;}
|
7
|
+
|
8
|
+
ol, ul {list-style:none;}
|
9
|
+
h1, h2, h3, h4, h5, h6, li {line-height:100%;}
|
10
|
+
blockquote, q {quotes:none;}
|
11
|
+
table {border-collapse:collapse; border-spacing:0;}
|
12
|
+
|
13
|
+
input, textarea {font-family:inherit; font-size:1em;}
|
14
|
+
|
15
|
+
html, body {
|
16
|
+
background: none repeat scroll 0 0 #000;
|
17
|
+
border-top: 15px solid #fff;
|
18
|
+
color: #fff;
|
19
|
+
font-size: 14px;
|
20
|
+
padding: 0;
|
21
|
+
height: 100%; }
|
22
|
+
|
23
|
+
a {
|
24
|
+
color: #fff;
|
25
|
+
font-weight: bold;
|
26
|
+
text-decoration: none; }
|
27
|
+
a:hover {
|
28
|
+
color: #333333;
|
29
|
+
text-decoration: none; }
|
30
|
+
h1 {
|
31
|
+
font-size: 5em;
|
32
|
+
padding: 1em;}
|
@@ -1 +1,2 @@
|
|
1
|
-
%h1
|
1
|
+
%h1
|
2
|
+
%a{ :href => "/"} Kharites FTW!
|
@@ -1,6 +1,19 @@
|
|
1
|
-
!!!
|
2
|
-
%html
|
1
|
+
!!! Strict
|
2
|
+
%html{:xmlns => "http://www.w3.org/1999/xhtml"}
|
3
3
|
%head
|
4
|
-
%title
|
4
|
+
%title= @title
|
5
|
+
%meta{:content => "en", "http-equiv" => "content-language"}/
|
6
|
+
%meta{:content => "text/html; charset=utf-8", "http-equiv" => "content-type"}/
|
7
|
+
%meta{:content => "text/javascript", "http-equiv" => "content-script-type"}/
|
8
|
+
%meta{:content => "text/css", "http-equiv" => "content-style-type"}/
|
9
|
+
%meta{:content => "no", "http-equiv" => "imagetoolbar"}/
|
10
|
+
%meta{:content => "en", :name => "language"}/
|
11
|
+
%meta{:content => "7 days", :name => "revisit-after"}/
|
12
|
+
%meta{:content => "index,follow", :name => "robots"}/
|
13
|
+
%meta{:content => "#{Kharites::Configuration.kharites.author}", :name => "publisher"}/
|
14
|
+
%meta{:content => "Copyright #{Kharites::Configuration.kharites.author}, #{Date.today.year}", :name => "copyright"}/
|
15
|
+
%meta{:content => "#{Kharites::Configuration.kharites.author}, supported by #{Kharites::Configuration.kharites.author} #{Kharites::Configuration.url_base}", :name => "author"}/
|
16
|
+
%link{:rel => 'stylesheet', :type => 'text/css', :href => "/stylesheets/hello_world.css"}
|
5
17
|
%body
|
18
|
+
|
6
19
|
= yield
|
metadata
CHANGED
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
|
|
4
4
|
prerelease: false
|
5
5
|
segments:
|
6
6
|
- 0
|
7
|
-
-
|
8
|
-
-
|
9
|
-
version: 0.
|
7
|
+
- 2
|
8
|
+
- 0
|
9
|
+
version: 0.2.0
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Jose Pablo Barrantes
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-05-
|
17
|
+
date: 2010-05-17 00:00:00 -06:00
|
18
18
|
default_executable: kharites
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
@@ -53,10 +53,12 @@ files:
|
|
53
53
|
- lib/kharites/mixins/generate.rb
|
54
54
|
- lib/kharites/mixins/server.rb
|
55
55
|
- lib/kharites/mixins/sync.rb
|
56
|
-
- lib/kharites/templates/article/article.
|
56
|
+
- lib/kharites/templates/article/article.yml
|
57
|
+
- lib/kharites/templates/article/public/404.html
|
58
|
+
- lib/kharites/templates/article/public/500.html
|
57
59
|
- lib/kharites/templates/article/public/images/article.jpg
|
58
60
|
- lib/kharites/templates/article/public/javascripts/article.js
|
59
|
-
- lib/kharites/templates/article/
|
61
|
+
- lib/kharites/templates/article/public/stylesheets/article.css
|
60
62
|
- lib/kharites/templates/article/views/index.haml
|
61
63
|
- lib/kharites/templates/article/views/layout.haml
|
62
64
|
- spec/base_spec.rb
|
@@ -97,6 +99,6 @@ signing_key:
|
|
97
99
|
specification_version: 3
|
98
100
|
summary: Tools for the Karites.
|
99
101
|
test_files:
|
100
|
-
- spec/base_spec.rb
|
101
|
-
- spec/setup_spec.rb
|
102
102
|
- spec/spec_helper.rb
|
103
|
+
- spec/setup_spec.rb
|
104
|
+
- spec/base_spec.rb
|