juli 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (62) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +26 -0
  3. data/CODE_OF_CONDUCT.md +13 -0
  4. data/Gemfile +4 -0
  5. data/LICENSE.txt +21 -0
  6. data/README.rdoc +39 -0
  7. data/Rakefile +89 -0
  8. data/bin/console +14 -0
  9. data/bin/je +73 -0
  10. data/bin/juli +82 -0
  11. data/bin/juli_tb.rb +76 -0
  12. data/bin/setup +7 -0
  13. data/juli.gemspec +29 -0
  14. data/lib/juli.rb +21 -0
  15. data/lib/juli/absyn.rb +206 -0
  16. data/lib/juli/command.rb +180 -0
  17. data/lib/juli/command/file_entry.rb +12 -0
  18. data/lib/juli/command/recent_update.rb +52 -0
  19. data/lib/juli/command/sitemap.rb +55 -0
  20. data/lib/juli/command/tag.rb +81 -0
  21. data/lib/juli/line_parser.y +212 -0
  22. data/lib/juli/macro.rb +39 -0
  23. data/lib/juli/macro/amazon.rb +33 -0
  24. data/lib/juli/macro/jmap.rb +38 -0
  25. data/lib/juli/macro/photo.rb +161 -0
  26. data/lib/juli/macro/tag.rb +136 -0
  27. data/lib/juli/macro/template.rb +37 -0
  28. data/lib/juli/macro/template_base.rb +44 -0
  29. data/lib/juli/macro/wikipedia.rb +19 -0
  30. data/lib/juli/parser.y +360 -0
  31. data/lib/juli/template/default.html +64 -0
  32. data/lib/juli/template/facebook.html +82 -0
  33. data/lib/juli/template/je-bash-complete +42 -0
  34. data/lib/juli/template/juli.css +173 -0
  35. data/lib/juli/template/juli.js +87 -0
  36. data/lib/juli/template/locale/en.yml +10 -0
  37. data/lib/juli/template/locale/ja.yml +10 -0
  38. data/lib/juli/template/prototype.js +4320 -0
  39. data/lib/juli/template/simple.html +45 -0
  40. data/lib/juli/template/sitemap.html +78 -0
  41. data/lib/juli/template/sitemap_order_by_mtime_DESC.html +78 -0
  42. data/lib/juli/template/slidy.html +126 -0
  43. data/lib/juli/template/sourceforge.html +71 -0
  44. data/lib/juli/template/takahashi_method.html +116 -0
  45. data/lib/juli/util.rb +255 -0
  46. data/lib/juli/util/juli_i18n.rb +32 -0
  47. data/lib/juli/version.rb +3 -0
  48. data/lib/juli/visitor.rb +12 -0
  49. data/lib/juli/visitor/html.rb +462 -0
  50. data/lib/juli/visitor/html/helper.rb +97 -0
  51. data/lib/juli/visitor/html/helper/contents.rb +76 -0
  52. data/lib/juli/visitor/html/helper/fb_comments.rb +68 -0
  53. data/lib/juli/visitor/html/helper/fb_like.rb +37 -0
  54. data/lib/juli/visitor/html/tag_helper.rb +40 -0
  55. data/lib/juli/visitor/slidy.rb +39 -0
  56. data/lib/juli/visitor/takahashi_method.rb +41 -0
  57. data/lib/juli/visitor/tree.rb +135 -0
  58. data/lib/juli/wiki.rb +52 -0
  59. data/sample/protected_photo/2012-04-22/DCIM/101_PANA/P1010441.JPG +0 -0
  60. data/sample/update_public_juli.rb +71 -0
  61. data/setup.rb +1585 -0
  62. metadata +211 -0
@@ -0,0 +1,45 @@
1
+ <html>
2
+ <!--
3
+
4
+ DO NOT MODIFY THIS FILE DIRECTORY!
5
+
6
+ This file is automatically generated from a text file by juli(1).
7
+
8
+ Thanks!
9
+ -->
10
+ <%#
11
+ = Required methods
12
+
13
+ juli(1) template must have following methods:
14
+
15
+ title:: title string
16
+ prototype:: prototype url
17
+ javascript:: javascript url
18
+ stylesheet:: stylesheet url
19
+ body:: generate html
20
+
21
+ = Optional methods
22
+
23
+ Following helper methods are optional:
24
+
25
+ contents:: draw contents of page
26
+ %>
27
+ <head>
28
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
29
+ <title><%= title %></title>
30
+ <script src="<%= prototype %>" type="text/javascript"></script>
31
+ <script src="<%= javascript %>" type="text/javascript"></script>
32
+ <link href="<%= stylesheet %>" rel="stylesheet" type="text/css" />
33
+ </head>
34
+ <body>
35
+ <h1>
36
+ <%= title %>
37
+ </h1>
38
+ <br/><br/>
39
+
40
+ <%= contents %>
41
+ <br/><br/>
42
+
43
+ <%= body %>
44
+ </body>
45
+ </html>
@@ -0,0 +1,78 @@
1
+ <html>
2
+ <%#
3
+ This template is only for juli project's sourceforge document.
4
+ %>
5
+ <!--
6
+
7
+ DO NOT MODIFY THIS FILE DIRECTORY!
8
+
9
+ This file is automatically generated from a text file by juli(1).
10
+
11
+ Thanks!
12
+ -->
13
+ <%#
14
+ = Required methods
15
+
16
+ juli(1) template must have following methods:
17
+
18
+ title:: title string
19
+ prototype:: prototype url
20
+ javascript:: javascript url
21
+ stylesheet:: stylesheet url
22
+ body:: generate html
23
+
24
+ = CSS
25
+
26
+ You can change sitemap specific stylesheet defined here, of course.
27
+
28
+ = FILES
29
+
30
+ sitemap_order_by_mtime_DESC.html:: sitemap template (mtime decendant order)
31
+ %>
32
+ <head>
33
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
34
+ <title><%= title %></title>
35
+ <script src="<%= prototype %>" type="text/javascript"></script>
36
+ <script src="<%= javascript %>" type="text/javascript"></script>
37
+ <link href="<%= stylesheet %>" rel="stylesheet" type="text/css" />
38
+ <style>
39
+ table.sitemap {
40
+ border-collapse: collapse;
41
+ border-spacing: 0px;
42
+ border: 1px solid #000;
43
+ }
44
+ table.sitemap tr th, table.sitemap tr td {
45
+ margin: 1px;
46
+ border: 1px ridge #888;
47
+ padding: 2px 5px 2px 5px;
48
+ }
49
+ table.sitemap tr th {
50
+ background-color: #cfc;
51
+ }
52
+ table.sitemap tr td.num {
53
+ text-align: right;
54
+ }
55
+ </style>
56
+ </head>
57
+ <body>
58
+ <h1>
59
+ <%= title %>
60
+ </h1>
61
+ <br/><br/>
62
+
63
+ <table class=sitemap>
64
+ <tr>
65
+ <th><%= I18n.t('num') %></th>
66
+ <th><%= I18n.t('name') %> ▲</th>
67
+ <th><a href='sitemap_order_by_mtime_DESC.shtml'><%= I18n.t('last_modified_at') %></a></th>
68
+ </tr>
69
+ <%= body %>
70
+ </table>
71
+ <hr/>
72
+ <a href="http://sourceforge.net/projects/jjjuli"
73
+ ><img src="http://sflogo.sourceforge.net/sflogo.php?group_id=390715&amp;type=8"
74
+ width="80" height="15"
75
+ alt="Get jj_juli at SourceForge.net. Fast, secure and Free Open Source software downloads"
76
+ /></a> | Generated by <a href='http://jjjuli.sourceforge.net/'>juli <%= Juli::VERSION %></a>
77
+ </body>
78
+ </html>
@@ -0,0 +1,78 @@
1
+ <html>
2
+ <%#
3
+ This template is only for juli project's sourceforge document.
4
+ %>
5
+ <!--
6
+
7
+ DO NOT MODIFY THIS FILE DIRECTORY!
8
+
9
+ This file is automatically generated from a text file by juli(1).
10
+
11
+ Thanks!
12
+ -->
13
+ <%#
14
+ = Required methods
15
+
16
+ juli(1) template must have following methods:
17
+
18
+ title:: title string
19
+ prototype:: prototype url
20
+ javascript:: javascript url
21
+ stylesheet:: stylesheet url
22
+ body:: generate html
23
+
24
+ = CSS
25
+
26
+ You can change sitemap specific stylesheet defined here, of course.
27
+
28
+ = FILES
29
+
30
+ sitemap.html:: sitemap template (alphabetical order)
31
+ %>
32
+ <head>
33
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
34
+ <title><%= title %></title>
35
+ <script src="<%= prototype %>" type="text/javascript"></script>
36
+ <script src="<%= javascript %>" type="text/javascript"></script>
37
+ <link href="<%= stylesheet %>" rel="stylesheet" type="text/css" />
38
+ <style>
39
+ table.sitemap {
40
+ border-collapse: collapse;
41
+ border-spacing: 0px;
42
+ border: 1px solid #000;
43
+ }
44
+ table.sitemap tr th, table.sitemap tr td {
45
+ margin: 1px;
46
+ border: 1px ridge #888;
47
+ padding: 2px 5px 2px 5px;
48
+ }
49
+ table.sitemap tr th {
50
+ background-color: #cfc;
51
+ }
52
+ table.sitemap tr td.num {
53
+ text-align: right;
54
+ }
55
+ </style>
56
+ </head>
57
+ <body>
58
+ <h1>
59
+ <%= title %>
60
+ </h1>
61
+ <br/><br/>
62
+
63
+ <table class=sitemap>
64
+ <tr>
65
+ <th><%= I18n.t('num') %></th>
66
+ <th><a href='sitemap.shtml'><%= I18n.t('name') %></a></th>
67
+ <th><%= I18n.t('last_modified_at') %> ▼</a></th>
68
+ </tr>
69
+ <%= body %>
70
+ </table>
71
+ <hr/>
72
+ <a href="http://sourceforge.net/projects/jjjuli"
73
+ ><img src="http://sflogo.sourceforge.net/sflogo.php?group_id=390715&amp;type=8"
74
+ width="80" height="15"
75
+ alt="Get jj_juli at SourceForge.net. Fast, secure and Free Open Source software downloads"
76
+ /></a> | Generated by <a href='http://jjjuli.sourceforge.net/'>juli <%= Juli::VERSION %></a>
77
+ </body>
78
+ </html>
@@ -0,0 +1,126 @@
1
+ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2
+ <html>
3
+ <%#
4
+ = Required methods
5
+
6
+ juli(1) template must have following methods:
7
+
8
+ title:: title string
9
+ prototype:: prototype url
10
+ javascript:: javascript url
11
+ stylesheet:: stylesheet url
12
+ body:: generate html
13
+
14
+ = Optional methods
15
+
16
+ Following helper methods are optional:
17
+
18
+ contents:: draw contents of page
19
+ %>
20
+ <head>
21
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
22
+ <meta name="copyright" content="Copyright &#169; Fuminori Ido" />
23
+ <title><%= title %></title>
24
+ <script src="<%= prototype %>" type="text/javascript"></script>
25
+ <script src="<%= javascript %>" type="text/javascript"></script>
26
+ <style type="text/css">
27
+ body {
28
+ font-size: 14pt;
29
+ }
30
+
31
+ h1, h2, h3, h4, h5, h6 {
32
+ color: #527bbd;
33
+ margin-top: 0.5em;
34
+ margin-bottom: 0.5em;
35
+ line-height: 1.3;
36
+ }
37
+
38
+ h1, h2, h3 {
39
+ border-bottom: 2px solid silver;
40
+ }
41
+
42
+ h2 {
43
+ padding-top: 0.5em;
44
+ }
45
+
46
+ /* table related */
47
+ table {
48
+ border: 1px;
49
+ }
50
+ table th {
51
+ background-color: #db6;
52
+ }
53
+
54
+ /* block quote */
55
+ blockquote {
56
+ background: #eec;
57
+ border: 1px solid #444;
58
+ }
59
+ blockquote pre {
60
+ margin: 2px;
61
+ }
62
+
63
+ div.footer {
64
+ position: fixed;
65
+ z-index: 100;
66
+ top: auto;
67
+ bottom: 0;
68
+ left: 0;
69
+ right: 0;
70
+ font-size: 60%;
71
+ background-color: #ddf;
72
+ }
73
+ </style>
74
+
75
+ </head>
76
+ <body>
77
+ <%# Embed warning plate below for generated document: %>
78
+ <!--
79
+
80
+ DO NOT MODIFY THIS FILE DIRECTORY!
81
+
82
+ This file is automatically generated from a text file by juli(1).
83
+
84
+ Thanks!
85
+ -->
86
+ <div class='slide'>
87
+ <h1><%= title %></h1>
88
+ (Put your name here)
89
+ </div>
90
+
91
+ <div class='slide'>
92
+ <h2>Contents</h2>
93
+ <%= contents %>
94
+ </div>
95
+
96
+ <%= body %>
97
+
98
+ <%#
99
+ Curr_page and total_page in footer below will be updated on the fly
100
+ so that please do not delete them.
101
+ %>
102
+ <div class=footer>
103
+ <table width='100%'>
104
+ <tr>
105
+ <td>
106
+ <a href="http://sourceforge.net/projects/jjjuli"
107
+ ><img src="http://sflogo.sourceforge.net/sflogo.php?group_id=390715&amp;type=8"
108
+ width="80" height="15"
109
+ alt="Get jj_juli at SourceForge.net. Fast, secure and Free Open Source software downloads"
110
+ /></a> | Generated by <a href='http://jjjuli.sourceforge.net/'>juli <%= Juli::VERSION %></a>
111
+ </td>
112
+ <td align=right>
113
+ slide <span id=curr_page></span>/<span id=total_page></span>
114
+ </td>
115
+ </tr>
116
+ </table>
117
+ </div>
118
+ </body>
119
+ <script type='text/javascript'>
120
+ document.observe('dom:loaded', function(){
121
+ var juli_slidy = new JuliSlidy();
122
+ document.observe('keydown', juli_slidy.keydownCB);
123
+ document.observe('click', juli_slidy.clickCB);
124
+ });
125
+ </script>
126
+ </html>
@@ -0,0 +1,71 @@
1
+ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2
+ <html>
3
+ <%#
4
+ This template is only for juli project's sourceforge document.
5
+ %>
6
+ <!--
7
+
8
+ DO NOT MODIFY THIS FILE DIRECTORY!
9
+
10
+ This file is automatically generated from a text file by juli(1).
11
+
12
+ Thanks!
13
+ -->
14
+ <%#
15
+ = Required methods
16
+
17
+ juli(1) template must have following methods:
18
+
19
+ title:: title string
20
+ prototype:: prototype url
21
+ javascript:: javascript url
22
+ stylesheet:: stylesheet url
23
+ body:: generate html
24
+
25
+ = Optional methods
26
+
27
+ Following helper methods are optional:
28
+
29
+ contents:: draw contents of page
30
+ %>
31
+ <head>
32
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
33
+ <title><%= title %></title>
34
+ <script src="<%= prototype %>" type="text/javascript"></script>
35
+ <script src="<%= javascript %>" type="text/javascript"></script>
36
+ <link href="<%= stylesheet %>" rel="stylesheet" type="text/css" />
37
+ </head>
38
+ <body>
39
+ <h1>
40
+ <%= title %>
41
+ </h1>
42
+ <br/><br/>
43
+
44
+ <table width='100%'>
45
+ <tr>
46
+ <td>
47
+ <%= contents %>
48
+ </td>
49
+ <td align=right valign=top>
50
+ <table>
51
+ <tr><td align=left valign=top>
52
+ <div class=sitemap>
53
+ <a href="<%= sitemap %>">Sitemap</a>
54
+ </div>
55
+ <br/>
56
+ <!--#include virtual="/recent_update.shtml" -->
57
+ </td></tr>
58
+ </table>
59
+ </td>
60
+ </tr>
61
+ </table>
62
+ <br/><br/>
63
+ <%= body %>
64
+ <hr/>
65
+ <a href="http://sourceforge.net/projects/jjjuli"
66
+ ><img src="http://sflogo.sourceforge.net/sflogo.php?group_id=390715&amp;type=8"
67
+ width="80" height="15"
68
+ alt="Get jj_juli at SourceForge.net. Fast, secure and Free Open Source software downloads"
69
+ /></a> | Generated by <a href='http://jjjuli.sourceforge.net/'>juli <%= Juli::VERSION %></a>
70
+ </body>
71
+ </html>
@@ -0,0 +1,116 @@
1
+ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2
+ <html>
3
+ <%#
4
+ = Required methods
5
+
6
+ juli(1) template must have following methods:
7
+
8
+ title:: title string
9
+ prototype:: prototype url
10
+ javascript:: javascript url
11
+ stylesheet:: stylesheet url
12
+ body:: generate html
13
+
14
+ = Optional methods
15
+
16
+ Following helper methods are optional:
17
+
18
+ contents:: draw contents of page
19
+ %>
20
+ <head>
21
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
22
+ <meta name="copyright" content="Copyright &#169; Fuminori Ido" />
23
+ <title><%= title %></title>
24
+ <script src="<%= prototype %>" type="text/javascript"></script>
25
+ <script src="<%= javascript %>" type="text/javascript"></script>
26
+ <style type="text/css">
27
+ body, h1, h2, h3, h4, h5, h6 {
28
+ font-size: 128pt;
29
+ text-align: center;
30
+ }
31
+
32
+ .slide {
33
+ text-align: center;
34
+ }
35
+
36
+ h1, h2, h3, h4, h5, h6 {
37
+ color: #527bbd;
38
+ margin-top: 10px;
39
+ margin-bottom: 10px;
40
+ line-height: 1.3;
41
+ }
42
+
43
+ /* table related */
44
+ table {
45
+ border: 1px;
46
+ }
47
+ table th {
48
+ background-color: #db6;
49
+ }
50
+
51
+ /* block quote */
52
+ blockquote {
53
+ background: #eec;
54
+ border: 1px solid #444;
55
+ }
56
+ blockquote pre {
57
+ margin: 2px;
58
+ }
59
+
60
+ div.footer {
61
+ position: fixed;
62
+ z-index: 100;
63
+ top: auto;
64
+ bottom: 0;
65
+ left: 0;
66
+ right: 0;
67
+ font-size: 60%;
68
+ background-color: #ddf;
69
+ }
70
+ </style>
71
+
72
+ </head>
73
+ <body>
74
+ <%# Embed warning plate below for generated document: %>
75
+ <!--
76
+
77
+ DO NOT MODIFY THIS FILE DIRECTORY!
78
+
79
+ This file is automatically generated from a text file by juli(1).
80
+
81
+ Thanks!
82
+ -->
83
+ <div class='slide'><h1><%= title %></h1></div>
84
+ <div class='slide'>(Put your name here)</div>
85
+
86
+ <%= body %>
87
+
88
+ <%#
89
+ Curr_page and total_page in footer below will be updated on the fly
90
+ so that please do not delete them.
91
+ %>
92
+ <div class=footer>
93
+ <table width='100%'>
94
+ <tr>
95
+ <td>
96
+ <a href="http://sourceforge.net/projects/jjjuli"
97
+ ><img src="http://sflogo.sourceforge.net/sflogo.php?group_id=390715&amp;type=8"
98
+ width="80" height="15"
99
+ alt="Get jj_juli at SourceForge.net. Fast, secure and Free Open Source software downloads"
100
+ /></a> | Generated by <a href='http://jjjuli.sourceforge.net/'>juli <%= Juli::VERSION %></a>
101
+ </td>
102
+ <td align=right>
103
+ slide <span id=curr_page></span>/<span id=total_page></span>
104
+ </td>
105
+ </tr>
106
+ </table>
107
+ </div>
108
+ </body>
109
+ <script type='text/javascript'>
110
+ document.observe('dom:loaded', function(){
111
+ var juli_slidy = new JuliSlidy();
112
+ document.observe('keydown', juli_slidy.keydownCB);
113
+ document.observe('click', juli_slidy.clickCB);
114
+ });
115
+ </script>
116
+ </html>