karakuri 0.1.1 → 0.1.2
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/README.md +5 -5
- data/Rakefile +1 -1
- metadata +4 -4
data/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Having a closer look at ruby based blogging platforms like [serious](http://github.com/colszowka/serious) and [toto](http://cloudhead.io/toto), I missed some functionality.
|
|
4
4
|
|
|
5
|
-
This a a collection of tools usable in both platforms. The project was formerly known as blog_helper, but Karakuri is a
|
|
5
|
+
This a a collection of tools usable in both platforms. The project was formerly known as blog_helper, but Karakuri is a far more suitable name & will be used from now on.
|
|
6
6
|
|
|
7
7
|
## Features
|
|
8
8
|
|
|
@@ -30,7 +30,7 @@ For example, to use seo friendly titles, your layout.rhtml should be looking lik
|
|
|
30
30
|
<!doctype html>
|
|
31
31
|
<html>
|
|
32
32
|
<head>
|
|
33
|
-
<% require '
|
|
33
|
+
<% require 'karakuri'
|
|
34
34
|
page_title = Karakuri::seo_friendly_title(@path, title, 'yourSitesTitle.com')
|
|
35
35
|
%>
|
|
36
36
|
<title><%= page_title %></title>
|
|
@@ -55,7 +55,7 @@ To add a list of tags to your article, just use a custom yaml attribute:
|
|
|
55
55
|
Next, you need a place to show the tag links, for example the index.rhtml:
|
|
56
56
|
|
|
57
57
|
<section id="articles">
|
|
58
|
-
<% require '
|
|
58
|
+
<% require 'karakuri' %>
|
|
59
59
|
<% for article in articles[0...10] %>
|
|
60
60
|
<article class="post">
|
|
61
61
|
<header>
|
|
@@ -76,7 +76,7 @@ Create a page called `tagged.rhtml` in your `templates/pages` directory that loo
|
|
|
76
76
|
|
|
77
77
|
|
|
78
78
|
<%
|
|
79
|
-
require '
|
|
79
|
+
require 'karakuri'
|
|
80
80
|
desired_tag = Karakuri::desired_tag(env["QUERY_STRING"])
|
|
81
81
|
%>
|
|
82
82
|
<h1>Posts filed under '<%= desired_tag %>': </h1>
|
|
@@ -119,4 +119,4 @@ Will result in the number of comments of the article the permalink posts to.
|
|
|
119
119
|
|
|
120
120
|
### serious custom yaml field reader
|
|
121
121
|
|
|
122
|
-
|
|
122
|
+
I hacked serious' custom yaml field access (quite dirty hack) - but please refer to the source & ri for that, I don't use serious anymore.
|
data/Rakefile
CHANGED
|
@@ -12,7 +12,7 @@ require 'rake/testtask'
|
|
|
12
12
|
|
|
13
13
|
spec = Gem::Specification.new do |s|
|
|
14
14
|
s.name = 'karakuri'
|
|
15
|
-
s.version = '0.1.
|
|
15
|
+
s.version = '0.1.2'
|
|
16
16
|
s.has_rdoc = true
|
|
17
17
|
s.extra_rdoc_files = ['README.md', 'LICENSE']
|
|
18
18
|
s.summary = 'Some handy helpers for toto and the likes...'
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: karakuri
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 31
|
|
5
5
|
prerelease: false
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 1
|
|
9
|
-
-
|
|
10
|
-
version: 0.1.
|
|
9
|
+
- 2
|
|
10
|
+
version: 0.1.2
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Sven Kraeuter
|
|
@@ -15,7 +15,7 @@ autorequire:
|
|
|
15
15
|
bindir: bin
|
|
16
16
|
cert_chain: []
|
|
17
17
|
|
|
18
|
-
date: 2010-
|
|
18
|
+
date: 2010-11-04 00:00:00 +01:00
|
|
19
19
|
default_executable:
|
|
20
20
|
dependencies: []
|
|
21
21
|
|