smallcage 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.
Files changed (103) hide show
  1. data/.project +11 -0
  2. data/History.txt +8 -0
  3. data/License.txt +0 -0
  4. data/Manifest.txt +12 -13
  5. data/README.txt +0 -0
  6. data/Rakefile +0 -0
  7. data/config/hoe.rb +0 -0
  8. data/config/requirements.rb +0 -0
  9. data/lib/smallcage.rb +0 -0
  10. data/lib/smallcage/application.rb +0 -0
  11. data/lib/smallcage/commands/auto.rb +0 -0
  12. data/lib/smallcage/commands/base.rb +0 -0
  13. data/lib/smallcage/commands/clean.rb +0 -0
  14. data/lib/smallcage/commands/export.rb +0 -0
  15. data/lib/smallcage/commands/import.rb +0 -0
  16. data/lib/smallcage/commands/manifest.rb +0 -0
  17. data/lib/smallcage/commands/server.rb +0 -0
  18. data/lib/smallcage/commands/update.rb +0 -0
  19. data/lib/smallcage/document_path.rb +0 -0
  20. data/lib/smallcage/erb_base.rb +0 -0
  21. data/lib/smallcage/http_server.rb +0 -0
  22. data/lib/smallcage/loader.rb +0 -0
  23. data/lib/smallcage/misc.rb +0 -0
  24. data/lib/smallcage/renderer.rb +0 -0
  25. data/lib/smallcage/resources/Manifest.erb +0 -0
  26. data/lib/smallcage/resources/auto.html +0 -0
  27. data/lib/smallcage/runner.rb +0 -0
  28. data/lib/smallcage/version.rb +1 -1
  29. data/project/base/_smc/helpers/base_helper.rb +0 -0
  30. data/project/base/_smc/helpers/site_helper.rb +0 -0
  31. data/project/base/_smc/templates/default.rhtml +0 -0
  32. data/project/base/_smc/templates/footer.rhtml +0 -0
  33. data/project/base/_smc/templates/header.rhtml +0 -0
  34. data/project/bluecloth/_smc/helpers/blue_cloth_helper.rb +10 -0
  35. data/project/{redcloth → bluecloth}/_smc/templates/markdown.rhtml +1 -1
  36. data/project/lang/_smc/helpers/lang_helper.rb +0 -0
  37. data/project/lang/_smc/templates/other_lang.rhtml +0 -0
  38. data/project/news/_smc/helpers/news_helper.rb +36 -0
  39. data/project/nkf/_smc/filters/filters.yml +0 -0
  40. data/project/nkf/_smc/filters/nkf_filter.rb +0 -0
  41. data/project/rake/_smc/Rakefile +69 -0
  42. data/project/redcloth/_smc/helpers/red_cloth_helper.rb +0 -4
  43. data/project/redcloth/_smc/templates/textile.rhtml +0 -0
  44. data/project/relpath/_smc/filters/filters.yml +0 -0
  45. data/project/relpath/_smc/filters/relpath_filter.rb +0 -0
  46. data/project/standard/_dir.smc +0 -0
  47. data/project/standard/_smc/helpers/base_helper.rb +0 -0
  48. data/project/standard/_smc/helpers/menu_helper.rb +0 -0
  49. data/project/standard/_smc/templates/default.rhtml +5 -0
  50. data/project/standard/_smc/templates/footer.rhtml +2 -0
  51. data/project/standard/_smc/templates/header.rhtml +5 -5
  52. data/project/standard/_smc/templates/menu.rhtml +1 -2
  53. data/project/standard/_smc/templates/redirect.rhtml +0 -0
  54. data/project/standard/_smc/templates/sidebar.rhtml +4 -3
  55. data/project/standard/_smc/templates/topic_path.rhtml +0 -0
  56. data/project/standard/common/css/default.css +42 -30
  57. data/project/standard/common/css/print.css +0 -0
  58. data/project/standard/index.html.smc +2 -12
  59. data/project/standard/sample/_dir.smc +1 -0
  60. data/project/standard/sample/index.html.smc +7 -0
  61. data/project/standard/sample/redirect.html.smc +2 -0
  62. data/project/standard/sample/sub/_dir.smc +1 -0
  63. data/project/standard/sample/sub/contents.html.smc +3 -0
  64. data/project/standard/sample/sub/index.html.smc +7 -0
  65. data/script/destroy +0 -0
  66. data/script/destroy.cmd +0 -0
  67. data/script/generate +0 -0
  68. data/script/generate.cmd +0 -0
  69. data/setup.rb +0 -0
  70. data/spec/data/htdocs1/_dir.smc +0 -0
  71. data/spec/data/htdocs1/a/b/c/index.html.smc +0 -0
  72. data/spec/data/htdocs2/_smc/templates/dummy.rhtml +0 -0
  73. data/spec/data/htdocs2/a/b/c/test.html +0 -0
  74. data/spec/data/htdocs2/a/b/test.html +0 -0
  75. data/spec/data/htdocs2/a/test.html.smc +0 -0
  76. data/spec/document_path_spec.rb +0 -0
  77. data/spec/export_spec.rb +0 -0
  78. data/spec/import_spec.rb +0 -0
  79. data/spec/loader_spec.rb +0 -0
  80. data/spec/manifest_spec.rb +0 -0
  81. data/spec/misc_spec.rb +0 -0
  82. data/spec/smallcage_spec.rb +0 -0
  83. data/spec/spec.opts +0 -0
  84. data/spec/spec_helper.rb +0 -0
  85. data/tasks/deployment.rake +0 -0
  86. data/tasks/environment.rake +0 -0
  87. data/tasks/rspec.rake +0 -0
  88. data/tasks/website.rake +0 -0
  89. data/test/test_helper.rb +0 -0
  90. data/test/test_smallcage.rb +0 -0
  91. metadata +26 -18
  92. data/project/standard/about/_dir.smc +0 -1
  93. data/project/standard/about/index.html.smc +0 -3
  94. data/project/standard/menu1/_dir.smc +0 -1
  95. data/project/standard/menu1/index.html.smc +0 -4
  96. data/project/standard/menu1/index2.html.smc +0 -5
  97. data/project/standard/menu2/1/_dir.smc +0 -1
  98. data/project/standard/menu2/1/index.html.smc +0 -4
  99. data/project/standard/menu2/2/_dir.smc +0 -1
  100. data/project/standard/menu2/2/index.html.smc +0 -4
  101. data/project/standard/menu2/_dir.smc +0 -1
  102. data/project/standard/menu2/index.html.smc +0 -8
  103. data/project/standard/menu2/redirect.html.smc +0 -2
@@ -0,0 +1,11 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <projectDescription>
3
+ <name>smallcage</name>
4
+ <comment></comment>
5
+ <projects>
6
+ </projects>
7
+ <buildSpec>
8
+ </buildSpec>
9
+ <natures>
10
+ </natures>
11
+ </projectDescription>
@@ -1,3 +1,11 @@
1
+ == 0.1.1
2
+
3
+ * fix permissions.
4
+ * remove render_markdown method from red_cloth_helper.rb. RedCloth can't format markdown.
5
+ * add BlueCloth project template.
6
+ * add news project template.
7
+ * refine default project template.
8
+
1
9
  == 0.1.0 2008-05-26
2
10
 
3
11
  * to avoid namespace polution, the helpers and filters loaded into an anonymous module.
File without changes
@@ -1,3 +1,4 @@
1
+ .project
1
2
  History.txt
2
3
  License.txt
3
4
  Manifest.txt
@@ -31,39 +32,37 @@ project/base/_smc/helpers/site_helper.rb
31
32
  project/base/_smc/templates/default.rhtml
32
33
  project/base/_smc/templates/footer.rhtml
33
34
  project/base/_smc/templates/header.rhtml
35
+ project/bluecloth/_smc/helpers/blue_cloth_helper.rb
36
+ project/bluecloth/_smc/templates/markdown.rhtml
34
37
  project/lang/_smc/helpers/lang_helper.rb
35
38
  project/lang/_smc/templates/other_lang.rhtml
39
+ project/news/_smc/helpers/news_helper.rb
36
40
  project/nkf/_smc/filters/filters.yml
37
41
  project/nkf/_smc/filters/nkf_filter.rb
42
+ project/rake/_smc/Rakefile
38
43
  project/redcloth/_smc/helpers/red_cloth_helper.rb
39
- project/redcloth/_smc/templates/markdown.rhtml
40
44
  project/redcloth/_smc/templates/textile.rhtml
41
45
  project/relpath/_smc/filters/filters.yml
42
46
  project/relpath/_smc/filters/relpath_filter.rb
43
47
  project/standard/_dir.smc
44
48
  project/standard/_smc/helpers/base_helper.rb
45
49
  project/standard/_smc/helpers/menu_helper.rb
50
+ project/standard/_smc/templates/default.rhtml
46
51
  project/standard/_smc/templates/footer.rhtml
47
52
  project/standard/_smc/templates/header.rhtml
48
53
  project/standard/_smc/templates/menu.rhtml
49
54
  project/standard/_smc/templates/redirect.rhtml
50
55
  project/standard/_smc/templates/sidebar.rhtml
51
56
  project/standard/_smc/templates/topic_path.rhtml
52
- project/standard/about/_dir.smc
53
- project/standard/about/index.html.smc
54
57
  project/standard/common/css/default.css
55
58
  project/standard/common/css/print.css
56
59
  project/standard/index.html.smc
57
- project/standard/menu1/_dir.smc
58
- project/standard/menu1/index.html.smc
59
- project/standard/menu1/index2.html.smc
60
- project/standard/menu2/1/_dir.smc
61
- project/standard/menu2/1/index.html.smc
62
- project/standard/menu2/2/_dir.smc
63
- project/standard/menu2/2/index.html.smc
64
- project/standard/menu2/_dir.smc
65
- project/standard/menu2/index.html.smc
66
- project/standard/menu2/redirect.html.smc
60
+ project/standard/sample/_dir.smc
61
+ project/standard/sample/index.html.smc
62
+ project/standard/sample/redirect.html.smc
63
+ project/standard/sample/sub/_dir.smc
64
+ project/standard/sample/sub/contents.html.smc
65
+ project/standard/sample/sub/index.html.smc
67
66
  script/destroy
68
67
  script/destroy.cmd
69
68
  script/generate
data/README.txt CHANGED
File without changes
data/Rakefile CHANGED
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -2,7 +2,7 @@ module SmallCage #:nodoc:
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 0
4
4
  MINOR = 1
5
- TINY = 0
5
+ TINY = 1
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -0,0 +1,10 @@
1
+ module SmallCage
2
+ module BlueClothHelper
3
+ require "bluecloth"
4
+
5
+ def render_markdown(str)
6
+ BlueCloth.new(str).to_html
7
+ end
8
+
9
+ end
10
+ end
@@ -2,4 +2,4 @@
2
2
 
3
3
  <%= render_markdown(body) %>
4
4
 
5
- <%= footer %>
5
+ <%= footer %>
File without changes
@@ -0,0 +1,36 @@
1
+ module SmallCage
2
+
3
+ # news entry file ... YYYYMMDDHHMM.html.smc
4
+ # archive file ... YYYY.html.smc or YYYYMM.html.smc or YYYYMMDD.html.smc
5
+ module NewsHelper
6
+
7
+ def each_latest_news(amount, &block)
8
+ i = 0
9
+ _glob(".", %r{/\d{12}\.html\.smc$}).reverse.each do |path|
10
+ _with(_load(path), &block)
11
+ i += 1
12
+ break if amount <= i
13
+ end
14
+ end
15
+
16
+ def each_archived_news(&block)
17
+ date = @obj["uri"].match(%r{/(\d{4})(\d{2})?(\d{2})?\.html$}).to_a
18
+ date.shift
19
+ date = date.join("")
20
+ _glob(".", %r{/#{date}\d{#{12-date.length}}\.html\.smc$}).reverse.each do |path|
21
+ _with(_load(path), &block)
22
+ end
23
+ end
24
+
25
+ def news_time
26
+ date = @obj["uri"].match(%r{/(\d{4})(\d{2})(\d{2})(\d{2})(\d{2})\.html}).to_a
27
+ date.shift
28
+ return Time.local(*date)
29
+ end
30
+
31
+ def news_ftime(format = "%Y-%m-%d")
32
+ news_time().strftime(format)
33
+ end
34
+
35
+ end
36
+ end
File without changes
File without changes
@@ -0,0 +1,69 @@
1
+ Dir.chdir(File.dirname(__FILE__) + "/..")
2
+
3
+ require 'pathname'
4
+ require 'rubygems'
5
+ require 'smallcage'
6
+
7
+ task :default => :smcupdate
8
+
9
+ task :smcupdate do
10
+ system "smc update"
11
+ end
12
+
13
+ def load_svnignores(loader, path)
14
+ dirs = loader.load_dirs(Pathname.new(path) + "child_dummy") # TODO
15
+ ignores = []
16
+ dirs.reverse.each do |d|
17
+ data = d["svnignore"]
18
+ next if data.to_s.empty?
19
+ ignores << data
20
+ last if d["svnignore_reset"]
21
+ end
22
+ data = dirs.last["svnignore_current"]
23
+ unless data.to_s.empty?
24
+ ignores << data
25
+ end
26
+
27
+ ignores.flatten!
28
+ ignores.uniq!
29
+ ignores.sort!
30
+ return ignores
31
+ end
32
+
33
+ def set_svnignore(dryrun = false)
34
+ loader = SmallCage::Loader.new(".")
35
+
36
+ exec_svn(loader, ".", dryrun)
37
+ Dir.glob("**/") do |f|
38
+ exec_svn(loader, f, dryrun)
39
+ end
40
+ end
41
+
42
+ def exec_svn(loader, f, dryrun)
43
+ return if f =~ %r{^_smc/}
44
+ svnignores = load_svnignores(loader, f).join("\n")
45
+ return if svnignores.empty?
46
+ cmd = "svn propset svn:ignore '#{svnignores}' #{f}"
47
+ puts cmd
48
+ return if dryrun
49
+ puts "FAILED: #{cmd}" unless system cmd
50
+ end
51
+
52
+ # _dir.smc
53
+ # svnignore: *.html # set recursively.
54
+ # svnignore_current: .project # add only current dir.
55
+ # svnignore_reset: true # ignore parent directory settings.
56
+ #
57
+ # You can use list.
58
+ # svnignore:
59
+ # - *.html
60
+ # - *.xml
61
+ desc "svn propset svn:ignore ..."
62
+ task :svnignore do
63
+ set_svnignore
64
+ end
65
+
66
+ desc "confirm svn commands."
67
+ task :svnignore_dryrun do
68
+ set_svnignore(true)
69
+ end
@@ -6,9 +6,5 @@ module SmallCage
6
6
  RedCloth.new(str).to_html
7
7
  end
8
8
 
9
- def render_markdown(str)
10
- RedCloth.new(str).to_html { :markdown }
11
- end
12
-
13
9
  end
14
10
  end
File without changes
File without changes
@@ -0,0 +1,5 @@
1
+ <%= header %>
2
+
3
+ <%= body %>
4
+
5
+ <%= footer %>
@@ -1,6 +1,8 @@
1
1
  </div>
2
2
  </div>
3
3
 
4
+ <%= sidebar %>
5
+
4
6
 
5
7
  <div id="footer">
6
8
  <div class="copyright">&copy;<%= Time.now.year %> Site Owner All rights reserved.</div>
@@ -15,23 +15,23 @@
15
15
  <link rel="stylesheet" type="text/css" href="/common/css/print.css" media="print" />
16
16
  <link rel="shortcut icon" href="/common/favicon.ico" />
17
17
 
18
- <title><% if uri !~ %r{^/index.html$} %><%=h title %> | <% end %>Standard Site Template</title>
18
+ <title><% unless title.to_s.empty? %><%=h title %> | <% end %>Standard Site Template</title>
19
19
  </head>
20
20
  <body>
21
21
  <div id="container">
22
22
 
23
23
  <div id="header">
24
- <h1><a href="/index.html">SmallCage</a></h1>
25
- <h2>Lightweight CMS Package.</h2>
24
+ <h1 class="site_title"><a href="/index.html">SmallCage</a></h1>
25
+ <h2 class="description">Lightweight CMS Package.</h2>
26
26
  <%= menu %>
27
27
  </div>
28
28
 
29
29
 
30
- <div id="topicpath">
30
+ <div id="topic_path">
31
31
  <%= topic_path %>
32
32
  </div>
33
33
 
34
34
 
35
35
  <div id="main">
36
36
  <div class="contents">
37
- <h1><%=h title %></h1>
37
+ <% unless title.to_s.empty? %><h1><%=h title %></h1><% end %>
@@ -1,7 +1,6 @@
1
1
  <div id="menu">
2
2
  <ul>
3
3
  <li class="<%= menu_active_rex(%r{^/index.html$}) %>"><a href="/index.html">Home</a></li>
4
- <li class="<%= menu_active("menu1") %>"><a href="/menu1/index.html">Menu 1</a></li>
5
- <li class="<%= menu_active("menu2") %>"><a href="/menu2/index.html">Menu 2</a></li>
4
+ <li class="<%= menu_active("sample") %>"><a href="/sample/index.html">Sample</a></li>
6
5
  </ul>
7
6
  </div>
@@ -1,6 +1,7 @@
1
1
  <div id="sidebar">
2
+ <h2>Links</h2>
2
3
  <ul>
3
- <li class="<%= menu_active("sample2/1") %>"><a href="/sample2/1">First page</a></li>
4
- <li class="<%= menu_active("sample2/2") %>"><a href="/sample2/2">Second page</a></li>
4
+ <li><a href="http://rubyforge.org/projects/smallcage/">RubyForge</a></li>
5
+ <li><a href="http://www.smallcage.org/ja/documents/">Documents</a></li>
5
6
  </ul>
6
- </div>
7
+ </div>
@@ -10,7 +10,7 @@ a:visited { text-decoration: none; color:#03c; }
10
10
  a:hover { text-decoration: none; color:#fff; background: #03c}
11
11
  a:active { text-decoration: none; color:#03c; background: #fff}
12
12
 
13
- body{
13
+ body {
14
14
  line-height: 1.7em;
15
15
  font-family:Helvetica, sans-serif;
16
16
  }
@@ -24,7 +24,6 @@ body{
24
24
  background: #03c;
25
25
  color: #FFF;
26
26
  overflow: hidden;
27
- position: relative;
28
27
  width: 100%;
29
28
  }
30
29
 
@@ -33,77 +32,75 @@ body{
33
32
  #header a:hover { text-decoration: none; color:#fff; background: none}
34
33
  #header a:active { text-decoration: none; color: none; background: none}
35
34
 
36
- #header h1{
35
+ #header h1.site_title,
36
+ #header h2.site_title {
37
37
  font-weight: normal;
38
38
  font-size: 2em;
39
39
  margin: 0.9em 0.9em 0.6em 0.9em;
40
40
  }
41
41
 
42
- #header h2 {
42
+ #header h2.description,
43
+ #header h3.description {
43
44
  font-size: 1em;
44
45
  font-weight: normal;
45
46
  margin: 0 1.8em 1.8em 1.8em;
46
47
  }
47
48
 
48
- #menu{
49
- position: absolute;
50
- left: 288px;
51
- bottom: 1.8em;
52
- }
53
-
54
- #menu li{
49
+ #menu li {
55
50
  display: inline;
56
- padding-right: 1.8em;
57
51
  }
58
52
 
59
53
  #menu a{
60
- padding: .6em 1.2em .6em 1.2em;
54
+ padding: 0.6em 1.8em 0.6em 1.8em;
55
+ background: #36f;
61
56
  }
62
57
 
63
58
  #menu a:hover{
64
- color:#fff; background: #36f
59
+ color:#03c;
60
+ background: #fff;
65
61
  }
66
62
 
67
63
  #menu .active a,
68
64
  #menu .active a:active{
69
65
  color:#03c;
70
- background: #fff
66
+ background: #eee
71
67
  }
72
68
 
73
- #topicpath {
74
- background: #eee;
69
+ #topic_path {
75
70
  padding: 0.3em 1.8em 0.3em 1.8em;
71
+ margin-bottom: 1.2em;
72
+ background: #eee;
76
73
  }
77
74
 
78
- #topicpath .delimiter {
75
+ #topic_path .delimiter {
79
76
  color: black;
80
77
  margin-left: 0.3em;
81
78
  margin-right: 0.3em;
82
- font-size: .8em;
79
+ font-size: 0.85em;
83
80
  }
84
81
 
85
- #topicpath a {
86
- font-size: .8em;
82
+ #topic_path a {
83
+ font-size: 0.85em;
87
84
  }
88
85
 
89
86
  #main {
90
- width:100%;
87
+ float: left;
88
+ width: 100%;
89
+ margin-right : -12em;
91
90
  }
92
91
 
93
92
  #main .contents {
94
- margin-left: 288px;
95
- padding: 1.2em 1.8em 1.8em 0;
93
+ padding: 0 1.8em 1.8em 1.8em;
94
+ margin-right: 12em;
96
95
  }
97
96
 
98
97
  #main h1{
99
- margin-left: .9em;
100
- position: absolute;
101
- left: 0;
98
+ margin-bottom: 0.9em;
102
99
  }
103
100
 
104
101
  #main h2{
105
102
  font-size: 1.2em;
106
- margin-bottom: .3em;
103
+ margin-bottom: 0.3em;
107
104
  font-weight: bold;
108
105
  }
109
106
 
@@ -120,14 +117,29 @@ body{
120
117
  margin-left: 1.2em;
121
118
  }
122
119
 
120
+ #sidebar{
121
+ float: right;
122
+ width: 12em;
123
+ }
124
+
125
+ #sidebar h2{
126
+ font-size: 1.2em;
127
+ margin-bottom: .3em;
128
+ font-weight: bold;
129
+ }
130
+
131
+ #sidebar ul{
132
+ margin-left: 1.2em;
133
+ }
123
134
 
124
135
  #footer {
125
136
  clear: both;
126
137
  padding: 1.2em 0 1.2em 0;
127
- margin-top: 12em;
138
+ margin-top: 24em;
139
+ font-size: 0.85em;
128
140
  }
129
141
 
130
142
  #footer .copyright{
131
- margin-left: 288px;
143
+ margin-left: 1.8em;
132
144
  font-size: 85%;
133
145
  }
File without changes
@@ -1,13 +1,3 @@
1
- title: Home
2
1
  --- |
3
- <h2><a href="/menu1/">Menu1</a></h2>
4
- <p>Sample text.</p>
5
-
6
-
7
- <h2><a href="/menu2/">Menu2</a></h2>
8
- <p>Sample text. Sample text. Sample text. Sample text. Sample text. Sample text. Sample text. Sample text. Sample text. Sample text. Sample text. Sample text.</p>
9
-
10
- <ul>
11
- <li><a href="/menu2/1/">Sample1</a></li>
12
- <li><a href="/menu2/2/">Sample2</a></li>
13
- </ul>
2
+ <h2>About</h2>
3
+ <p>SmallCageは、静的なウェブサイトを効率よく構築するためのアプリケーション/フレームワークです。</p>
@@ -0,0 +1 @@
1
+ topic: Sample
@@ -0,0 +1,7 @@
1
+ title: Sample
2
+ --- |
3
+ <h2>Sample index</h2>
4
+ <ul>
5
+ <li><a href="./sub/index.html">Subcategory</a></li>
6
+ <li><a href="redirect.html">Redirect</a></li>
7
+ </ul>
@@ -0,0 +1,2 @@
1
+ template: redirect
2
+ redirect_uri: ./sub/index.html
@@ -0,0 +1 @@
1
+ topic: Subcategory
@@ -0,0 +1,3 @@
1
+ title: Subcategory contents
2
+ --- |
3
+ <p>/sample/sub/以下のコンテンツです。</p>
@@ -0,0 +1,7 @@
1
+ title: Subcategory
2
+ --- |
3
+ <p>_dir.smcのtopicの値でパンくずリストを設定しています。</p>
4
+ <ul>
5
+ <li><a href="contents.html">contents</a></li>
6
+ </ul>
7
+
File without changes
File without changes
File without changes
File without changes
data/setup.rb CHANGED
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: smallcage
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - SAITO Toshihiro
@@ -11,10 +11,19 @@ autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
13
 
14
- date: 2008-07-24 00:00:00 +09:00
14
+ date: 2008-09-22 00:00:00 +09:00
15
15
  default_executable:
16
- dependencies: []
17
-
16
+ dependencies:
17
+ - !ruby/object:Gem::Dependency
18
+ name: hoe
19
+ type: :development
20
+ version_requirement:
21
+ version_requirements: !ruby/object:Gem::Requirement
22
+ requirements:
23
+ - - ">="
24
+ - !ruby/object:Gem::Version
25
+ version: 1.7.0
26
+ version:
18
27
  description: Lightweigt CMS Package.
19
28
  email:
20
29
  - saito@bluemark.jp
@@ -30,6 +39,7 @@ extra_rdoc_files:
30
39
  - Manifest.txt
31
40
  - README.txt
32
41
  files:
42
+ - .project
33
43
  - History.txt
34
44
  - License.txt
35
45
  - Manifest.txt
@@ -63,39 +73,37 @@ files:
63
73
  - project/base/_smc/templates/default.rhtml
64
74
  - project/base/_smc/templates/footer.rhtml
65
75
  - project/base/_smc/templates/header.rhtml
76
+ - project/bluecloth/_smc/helpers/blue_cloth_helper.rb
77
+ - project/bluecloth/_smc/templates/markdown.rhtml
66
78
  - project/lang/_smc/helpers/lang_helper.rb
67
79
  - project/lang/_smc/templates/other_lang.rhtml
80
+ - project/news/_smc/helpers/news_helper.rb
68
81
  - project/nkf/_smc/filters/filters.yml
69
82
  - project/nkf/_smc/filters/nkf_filter.rb
83
+ - project/rake/_smc/Rakefile
70
84
  - project/redcloth/_smc/helpers/red_cloth_helper.rb
71
- - project/redcloth/_smc/templates/markdown.rhtml
72
85
  - project/redcloth/_smc/templates/textile.rhtml
73
86
  - project/relpath/_smc/filters/filters.yml
74
87
  - project/relpath/_smc/filters/relpath_filter.rb
75
88
  - project/standard/_dir.smc
76
89
  - project/standard/_smc/helpers/base_helper.rb
77
90
  - project/standard/_smc/helpers/menu_helper.rb
91
+ - project/standard/_smc/templates/default.rhtml
78
92
  - project/standard/_smc/templates/footer.rhtml
79
93
  - project/standard/_smc/templates/header.rhtml
80
94
  - project/standard/_smc/templates/menu.rhtml
81
95
  - project/standard/_smc/templates/redirect.rhtml
82
96
  - project/standard/_smc/templates/sidebar.rhtml
83
97
  - project/standard/_smc/templates/topic_path.rhtml
84
- - project/standard/about/_dir.smc
85
- - project/standard/about/index.html.smc
86
98
  - project/standard/common/css/default.css
87
99
  - project/standard/common/css/print.css
88
100
  - project/standard/index.html.smc
89
- - project/standard/menu1/_dir.smc
90
- - project/standard/menu1/index.html.smc
91
- - project/standard/menu1/index2.html.smc
92
- - project/standard/menu2/1/_dir.smc
93
- - project/standard/menu2/1/index.html.smc
94
- - project/standard/menu2/2/_dir.smc
95
- - project/standard/menu2/2/index.html.smc
96
- - project/standard/menu2/_dir.smc
97
- - project/standard/menu2/index.html.smc
98
- - project/standard/menu2/redirect.html.smc
101
+ - project/standard/sample/_dir.smc
102
+ - project/standard/sample/index.html.smc
103
+ - project/standard/sample/redirect.html.smc
104
+ - project/standard/sample/sub/_dir.smc
105
+ - project/standard/sample/sub/contents.html.smc
106
+ - project/standard/sample/sub/index.html.smc
99
107
  - script/destroy
100
108
  - script/destroy.cmd
101
109
  - script/generate
@@ -145,7 +153,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
145
153
  requirements: []
146
154
 
147
155
  rubyforge_project: smallcage
148
- rubygems_version: 1.1.1
156
+ rubygems_version: 1.2.0
149
157
  signing_key:
150
158
  specification_version: 2
151
159
  summary: Lightweigt CMS Package.
@@ -1 +0,0 @@
1
- topic: About
@@ -1,3 +0,0 @@
1
- title: About This Site
2
- --- |
3
- <p>Description about this site.</p>
@@ -1 +0,0 @@
1
- topic: Menu1
@@ -1,4 +0,0 @@
1
- title: Menu1
2
- --- |
3
- <h2>Menu1 index</h2>
4
- <p>Sample text. Sample text. Sample text. Sample text. Sample text. Sample text. Sample text. Sample text. Sample text. Sample text. Sample text. Sample text.</p>
@@ -1,5 +0,0 @@
1
- title: Sample1-2
2
- --- |
3
- <p>Second page of sample1.</p>
4
-
5
- <p><a href="index.html">first page</a></p>
@@ -1 +0,0 @@
1
- topic: 1
@@ -1,4 +0,0 @@
1
- title: Sample1
2
- --- |
3
- <p>Sample1</p>
4
-
@@ -1 +0,0 @@
1
- topic: 2
@@ -1,4 +0,0 @@
1
- title: Sample2
2
- --- |
3
- <p>Sample2</p>
4
-
@@ -1 +0,0 @@
1
- topic: Menu2
@@ -1,8 +0,0 @@
1
- title: Menu2
2
- --- |
3
- <h2>Menu2 index</h2>
4
- <ul>
5
- <li><a href="./1/">Sample1</a></li>
6
- <li><a href="./2/">Sample2</a></li>
7
- <li><a href="redirect.html">Redirect to Sample1</a></li>
8
- </ul>
@@ -1,2 +0,0 @@
1
- template: redirect
2
- redirect_uri: ./1/