pipin 0.1.0 → 0.1.1

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/.gitignore CHANGED
@@ -1,4 +1,4 @@
1
- .*
1
+ *.swp
2
2
  *.gem
3
3
  .bundle
4
4
  Gemfile.lock
@@ -0,0 +1 @@
1
+ RewriteRule ^(.*)\.html$ /$1 [R=301,L]
@@ -19,6 +19,7 @@ def config
19
19
  # 複数のcssを使用する場合は配列で指定してください
20
20
  :css => '/stylesheets/pipin.css',
21
21
  #:css => '/stylesheets/nobunaga/nobunaga.css',
22
+ :html_extname => '.html',
22
23
  }
23
24
  end
24
25
 
data/lib/pipin/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Pipin
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
@@ -2,4 +2,4 @@
2
2
  - years.each do |year, months|
3
3
  %h3&= year
4
4
  - months.each do |month|
5
- %a{:href => "#{year}#{month}#{htmlsufix}"}&= month
5
+ %a{:href => "#{year}#{month}#{html_extname}"}&= month
@@ -11,9 +11,9 @@
11
11
  %body
12
12
  %h1&= config[:title]
13
13
  .menus
14
- %a{:href => './index' + htmlsufix} Latest
15
- %a{:href => './archives' + htmlsufix} Archives
16
- %a{:href => './about' + htmlsufix} About
14
+ %a{:href => './index' + html_extname} Latest
15
+ %a{:href => './archives' + html_extname} Archives
16
+ %a{:href => './about' + html_extname} About
17
17
  .main
18
18
  =# render_plugin_hook(:flavour_header, self)
19
19
  .content
@@ -23,7 +23,7 @@
23
23
  =# render_plugin_hook(:flavour_footer, self)
24
24
  .footer
25
25
  .sitemap
26
- %a{:href => './sitemap.html'} Sitemap
26
+ %a{:href => './sitemap' + html_extname} Sitemap
27
27
  %a{:href => 'https://github.com/dan5/pipin'} Pipin
28
28
  &= Pipin::VERSION
29
29
  on
@@ -4,5 +4,5 @@
4
4
  .date 2000-00-00
5
5
  .body~ post.to_html
6
6
  .permalink
7
- %a{:href => post.label + htmlsufix} permalink
7
+ %a{:href => post.label + html_extname} permalink
8
8
  .after_entries
@@ -3,5 +3,5 @@
3
3
  .date 2000-00-00
4
4
  .body~ post.to_html
5
5
  .permalink
6
- %a{:href => post.label + htmlsufix} permalink
6
+ %a{:href => post.label + html_extname} permalink
7
7
  .after_post
@@ -2,4 +2,4 @@
2
2
  %ul
3
3
  - posts.each do |post|
4
4
  %li
5
- %a{:href => post.label + htmlsufix}&= post.label
5
+ %a{:href => post.label + html_extname}&= post.label
data/lib/pipin.rb CHANGED
@@ -3,7 +3,7 @@ require 'haml'
3
3
  require 'fileutils'
4
4
 
5
5
  def rootdir() File.join(File.dirname(File.expand_path(__FILE__)), 'pipin') end
6
- def htmlsufix() '.html' end
6
+ def html_extname() config[:html_extname] or '.html' end
7
7
 
8
8
  module Pipin
9
9
  Diary_pattern = '[0-9]' * 8 + '*'
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: pipin
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.1.0
5
+ version: 0.1.1
6
6
  platform: ruby
7
7
  authors:
8
8
  - dan5ya
@@ -10,8 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-06-23 00:00:00 +09:00
14
- default_executable:
13
+ date: 2011-06-23 00:00:00 Z
15
14
  dependencies: []
16
15
 
17
16
  description: simple blog system
@@ -32,6 +31,7 @@ files:
32
31
  - lib/misc/mixistyle.rb
33
32
  - lib/pipin.rb
34
33
  - lib/pipin/build_tasks.rb
34
+ - lib/pipin/templates/.htaccess
35
35
  - lib/pipin/templates/Rakefile
36
36
  - lib/pipin/templates/data/20110620.txt
37
37
  - lib/pipin/templates/data/20110622.txt
@@ -46,7 +46,6 @@ files:
46
46
  - lib/pipin/views/post.haml
47
47
  - lib/pipin/views/sitemap.haml
48
48
  - pipin.gemspec
49
- has_rdoc: true
50
49
  homepage: https://github.com/dan5/pipin
51
50
  licenses: []
52
51
 
@@ -70,7 +69,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
70
69
  requirements: []
71
70
 
72
71
  rubyforge_project: pipin
73
- rubygems_version: 1.6.0
72
+ rubygems_version: 1.8.5
74
73
  signing_key:
75
74
  specification_version: 3
76
75
  summary: blog