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.
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{Kharites-tools}
8
- s.version = "0.1.1"
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-03}
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.kharites",
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/views/application.sass",
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/base_spec.rb",
57
+ "spec/spec_helper.rb",
56
58
  "spec/setup_spec.rb",
57
- "spec/spec_helper.rb"
59
+ "spec/base_spec.rb"
58
60
  ]
59
61
 
60
62
  if s.respond_to? :specification_version then
@@ -44,7 +44,7 @@ Kharites sets you up with a sample layout, stylesheet and page file.
44
44
 
45
45
  Load this URL in your browser:
46
46
 
47
- http://localhost:4567/ariticles/article
47
+ http://localhost:4567/articles/article
48
48
 
49
49
  You’re done. SRSLY.
50
50
 
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.1
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.kharites", "#{dir}.kharites") unless "#{dir}.kharites" == "article.kharites"}
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,6 @@
1
+ slug: "article_slug"
2
+ title: "Article Title"
3
+ published_on: "12-12-3500"
4
+ author: "Kharites"
5
+ email: "author@email.com"
6
+ keywords: "Article, kharites"
@@ -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 Kharites FTW!
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 Kharites
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
- - 1
8
- - 1
9
- version: 0.1.1
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-03 00:00:00 -06:00
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.kharites
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/views/application.sass
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
@@ -1,12 +0,0 @@
1
- {{
2
- categories:
3
- - ruby
4
- - git
5
- - markdown
6
- - blogging
7
- - kharites
8
- }}
9
-
10
- # This is the article one (3000/01/01)
11
-
12
- This is the exceprt of the test article with explicit date...
@@ -1,6 +0,0 @@
1
- body
2
- font:
3
- family: Verdana
4
- size: 10pt
5
- color: 555
6
-