uzuuzu-cms 0.0.0 → 0.0.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 (42) hide show
  1. data/VERSION +1 -1
  2. data/lib/uzuuzu-cms/controller/admin/index.rb +18 -0
  3. data/lib/uzuuzu-cms/controller/blog/index.rb +18 -0
  4. data/lib/uzuuzu-cms/controller/ec/index.rb +18 -0
  5. data/lib/uzuuzu-cms/controller/initialize.rb +79 -20
  6. data/lib/uzuuzu-cms/controller/openid.rb +22 -33
  7. data/lib/uzuuzu-cms/controller/view/initialize/step1.rhtml +2 -2
  8. data/lib/uzuuzu-cms/controller/view/initialize/step2.rhtml +23 -0
  9. data/lib/uzuuzu-cms/controller/view/initialize/step3.rhtml +24 -0
  10. data/lib/uzuuzu-cms/controller/wiki/index.rb +18 -0
  11. data/lib/uzuuzu-cms/model/blog.rb +4 -4
  12. data/lib/uzuuzu-cms/model/contents.rb +4 -4
  13. data/lib/uzuuzu-cms/model/file.rb +1 -1
  14. data/lib/uzuuzu-cms/model/image.rb +1 -1
  15. data/lib/uzuuzu-cms/model/info.rb +48 -12
  16. data/lib/uzuuzu-cms/model/layout.rb +3 -3
  17. data/lib/uzuuzu-cms/model/movie.rb +1 -1
  18. data/lib/uzuuzu-cms/model/page.rb +82 -30
  19. data/lib/uzuuzu-cms/model/page_body.rb +11 -2
  20. data/lib/uzuuzu-cms/model/wiki.rb +5 -5
  21. data/lib/uzuuzu-cms/wrapper/controller.rb +16 -0
  22. data/lib/uzuuzu-cms/wrapper/environments.rb +15 -0
  23. data/lib/uzuuzu-cms/wrapper/lang/en.yaml +23 -0
  24. data/lib/uzuuzu-cms/wrapper/lang/ja.yaml +33 -0
  25. data/lib/uzuuzu-cms/wrapper/model.rb +24 -0
  26. data/lib/uzuuzu-cms.rb +3 -2
  27. data/template/fixture/uzu_uzu/contents.yaml +31 -0
  28. data/template/fixture/uzu_uzu/contents_page_body.yaml +13 -0
  29. data/template/fixture/uzu_uzu/css.yaml +11 -0
  30. data/template/fixture/uzu_uzu/css_info.yaml +5 -0
  31. data/template/fixture/uzu_uzu/info.yaml +13 -0
  32. data/template/fixture/uzu_uzu/info_javascript.yaml +5 -0
  33. data/template/fixture/uzu_uzu/javascript.yaml +5 -0
  34. data/template/fixture/uzu_uzu/layout.yaml +278 -0
  35. data/template/fixture/uzu_uzu/page.yaml +5 -0
  36. data/template/fixture/uzu_uzu/page_body.yaml +7 -0
  37. data/uzuuzu-cms.gemspec +21 -6
  38. metadata +22 -7
  39. data/lib/uzuuzu-cms/controller/admin.rb +0 -16
  40. data/lib/uzuuzu-cms/controller.rb +0 -16
  41. data/lib/uzuuzu-cms/fixture/layout.yaml +0 -110
  42. data/lib/uzuuzu-cms/model.rb +0 -24
@@ -0,0 +1,5 @@
1
+ ---
2
+ - :id: 1
3
+ :name: home
4
+ :title: welcome
5
+ :page_body_id: 6
@@ -0,0 +1,7 @@
1
+ ---
2
+ - :id: 1
3
+ - :id: 2
4
+ - :id: 3
5
+ - :id: 4
6
+ - :id: 5
7
+ - :id: 6
data/uzuuzu-cms.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{uzuuzu-cms}
8
- s.version = "0.0.0"
8
+ s.version = "0.0.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Takuya Kondo"]
12
- s.date = %q{2011-08-14}
12
+ s.date = %q{2011-08-23}
13
13
  s.description = %q{cms on uzuuzu}
14
14
  s.email = %q{takuya.v3v@gmail.com}
15
15
  s.extra_rdoc_files = [
@@ -27,10 +27,11 @@ Gem::Specification.new do |s|
27
27
  "Rakefile",
28
28
  "VERSION",
29
29
  "lib/uzuuzu-cms.rb",
30
- "lib/uzuuzu-cms/controller.rb",
31
- "lib/uzuuzu-cms/controller/admin.rb",
30
+ "lib/uzuuzu-cms/controller/admin/index.rb",
31
+ "lib/uzuuzu-cms/controller/blog/index.rb",
32
32
  "lib/uzuuzu-cms/controller/contents.rb",
33
33
  "lib/uzuuzu-cms/controller/crud.rb",
34
+ "lib/uzuuzu-cms/controller/ec/index.rb",
34
35
  "lib/uzuuzu-cms/controller/index.rb",
35
36
  "lib/uzuuzu-cms/controller/initialize.rb",
36
37
  "lib/uzuuzu-cms/controller/oauth.rb",
@@ -52,8 +53,7 @@ Gem::Specification.new do |s|
52
53
  "lib/uzuuzu-cms/controller/view/layout.rhtml",
53
54
  "lib/uzuuzu-cms/controller/view/openid/index.rhtml",
54
55
  "lib/uzuuzu-cms/controller/view/user/entry.rhtml",
55
- "lib/uzuuzu-cms/fixture/layout.yaml",
56
- "lib/uzuuzu-cms/model.rb",
56
+ "lib/uzuuzu-cms/controller/wiki/index.rb",
57
57
  "lib/uzuuzu-cms/model/blog.rb",
58
58
  "lib/uzuuzu-cms/model/blog_category.rb",
59
59
  "lib/uzuuzu-cms/model/blog_comment.rb",
@@ -73,10 +73,25 @@ Gem::Specification.new do |s|
73
73
  "lib/uzuuzu-cms/model/wiki_attache.rb",
74
74
  "lib/uzuuzu-cms/model/wiki_entry.rb",
75
75
  "lib/uzuuzu-cms/model/wiki_layout.rb",
76
+ "lib/uzuuzu-cms/wrapper/controller.rb",
77
+ "lib/uzuuzu-cms/wrapper/environments.rb",
78
+ "lib/uzuuzu-cms/wrapper/lang/en.yaml",
79
+ "lib/uzuuzu-cms/wrapper/lang/ja.yaml",
80
+ "lib/uzuuzu-cms/wrapper/model.rb",
76
81
  "spec/spec_helper.rb",
77
82
  "spec/uzuuzu-cms_spec.rb",
78
83
  "template/app.rb",
79
84
  "template/config.ru",
85
+ "template/fixture/uzu_uzu/contents.yaml",
86
+ "template/fixture/uzu_uzu/contents_page_body.yaml",
87
+ "template/fixture/uzu_uzu/css.yaml",
88
+ "template/fixture/uzu_uzu/css_info.yaml",
89
+ "template/fixture/uzu_uzu/info.yaml",
90
+ "template/fixture/uzu_uzu/info_javascript.yaml",
91
+ "template/fixture/uzu_uzu/javascript.yaml",
92
+ "template/fixture/uzu_uzu/layout.yaml",
93
+ "template/fixture/uzu_uzu/page.yaml",
94
+ "template/fixture/uzu_uzu/page_body.yaml",
80
95
  "template/public/css/images/ajax-loader.png",
81
96
  "template/public/css/images/icon-search-black.png",
82
97
  "template/public/css/images/icons-18-black.png",
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: uzuuzu-cms
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.0
5
+ version: 0.0.1
6
6
  platform: ruby
7
7
  authors:
8
8
  - Takuya Kondo
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-08-14 00:00:00 +09:00
13
+ date: 2011-08-23 00:00:00 +09:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
@@ -88,10 +88,11 @@ files:
88
88
  - Rakefile
89
89
  - VERSION
90
90
  - lib/uzuuzu-cms.rb
91
- - lib/uzuuzu-cms/controller.rb
92
- - lib/uzuuzu-cms/controller/admin.rb
91
+ - lib/uzuuzu-cms/controller/admin/index.rb
92
+ - lib/uzuuzu-cms/controller/blog/index.rb
93
93
  - lib/uzuuzu-cms/controller/contents.rb
94
94
  - lib/uzuuzu-cms/controller/crud.rb
95
+ - lib/uzuuzu-cms/controller/ec/index.rb
95
96
  - lib/uzuuzu-cms/controller/index.rb
96
97
  - lib/uzuuzu-cms/controller/initialize.rb
97
98
  - lib/uzuuzu-cms/controller/oauth.rb
@@ -113,8 +114,7 @@ files:
113
114
  - lib/uzuuzu-cms/controller/view/layout.rhtml
114
115
  - lib/uzuuzu-cms/controller/view/openid/index.rhtml
115
116
  - lib/uzuuzu-cms/controller/view/user/entry.rhtml
116
- - lib/uzuuzu-cms/fixture/layout.yaml
117
- - lib/uzuuzu-cms/model.rb
117
+ - lib/uzuuzu-cms/controller/wiki/index.rb
118
118
  - lib/uzuuzu-cms/model/blog.rb
119
119
  - lib/uzuuzu-cms/model/blog_category.rb
120
120
  - lib/uzuuzu-cms/model/blog_comment.rb
@@ -134,10 +134,25 @@ files:
134
134
  - lib/uzuuzu-cms/model/wiki_attache.rb
135
135
  - lib/uzuuzu-cms/model/wiki_entry.rb
136
136
  - lib/uzuuzu-cms/model/wiki_layout.rb
137
+ - lib/uzuuzu-cms/wrapper/controller.rb
138
+ - lib/uzuuzu-cms/wrapper/environments.rb
139
+ - lib/uzuuzu-cms/wrapper/lang/en.yaml
140
+ - lib/uzuuzu-cms/wrapper/lang/ja.yaml
141
+ - lib/uzuuzu-cms/wrapper/model.rb
137
142
  - spec/spec_helper.rb
138
143
  - spec/uzuuzu-cms_spec.rb
139
144
  - template/app.rb
140
145
  - template/config.ru
146
+ - template/fixture/uzu_uzu/contents.yaml
147
+ - template/fixture/uzu_uzu/contents_page_body.yaml
148
+ - template/fixture/uzu_uzu/css.yaml
149
+ - template/fixture/uzu_uzu/css_info.yaml
150
+ - template/fixture/uzu_uzu/info.yaml
151
+ - template/fixture/uzu_uzu/info_javascript.yaml
152
+ - template/fixture/uzu_uzu/javascript.yaml
153
+ - template/fixture/uzu_uzu/layout.yaml
154
+ - template/fixture/uzu_uzu/page.yaml
155
+ - template/fixture/uzu_uzu/page_body.yaml
141
156
  - template/public/css/images/ajax-loader.png
142
157
  - template/public/css/images/icon-search-black.png
143
158
  - template/public/css/images/icons-18-black.png
@@ -186,7 +201,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
186
201
  requirements:
187
202
  - - ">="
188
203
  - !ruby/object:Gem::Version
189
- hash: 4304218044688158449
204
+ hash: 880284361759703514
190
205
  segments:
191
206
  - 0
192
207
  version: "0"
@@ -1,16 +0,0 @@
1
- # coding: utf-8
2
-
3
- module UzuUzu
4
- module Controller
5
- class Admin
6
-
7
- def before
8
- redirect(rf(Initialize)) unless info.initialize?
9
- end
10
-
11
- def index
12
- ''
13
- end
14
- end # Admin
15
- end # Controller
16
- end # UzuUzu
@@ -1,16 +0,0 @@
1
- # coding: utf-8
2
-
3
- module UzuUzu
4
- module Controller
5
- autoload(:Admin, 'uzuuzu/controller/admin')
6
- autoload(:Contents, 'uzuuzu/controller/contents')
7
- autoload(:Crud, 'uzuuzu/controller/crud')
8
- autoload(:Index, 'uzuuzu/controller/index')
9
- autoload(:Initialize, 'uzuuzu/controller/initialize')
10
- autoload(:Oauth, 'uzuuzu/controller/oauth')
11
- autoload(:Openid, 'uzuuzu/controller/openid')
12
- autoload(:Page, 'uzuuzu/controller/page')
13
- autoload(:Plugin, 'uzuuzu/controller/plugin')
14
- autoload(:User, 'uzuuzu/controller/user')
15
- end
16
- end
@@ -1,110 +0,0 @@
1
- ---
2
- - :id: 1
3
- :name: contents_only
4
- :format: erb
5
- :body: |-
6
- <div id="contents">
7
- #{@uzuuzu_contents}
8
- </div>
9
- - :id: 2
10
- :name: noside
11
- :format: erb
12
- :body: |-
13
- <div id="contents">
14
- #{@uzuuzu_contents}
15
- </div>
16
- <div id="header">
17
- #{@uzuuzu_header}
18
- </div>
19
- <div id="footer">
20
- #{@uzuuzu_footer}
21
- </div>
22
- - :id: 3
23
- :name: left
24
- :format: erb
25
- :body: |-
26
- <div id="contents">
27
- #{@uzuuzu_contents}
28
- </div>
29
- <div id="left">
30
- #{@uzuuzu_left}
31
- </div>
32
- <div id="header">
33
- #{@uzuuzu_header}
34
- </div>
35
- <div id="footer">
36
- #{@uzuuzu_footer}
37
- </div>
38
- - :id: 4
39
- :name: right
40
- :format: erb
41
- :body: |-
42
- <div id="contents">
43
- #{@uzuuzu_contents}
44
- </div>
45
- <div id="right">
46
- #{@uzuuzu_right}
47
- </div>
48
- <div id="header">
49
- #{@uzuuzu_header}
50
- </div>
51
- <div id="footer">
52
- #{@uzuuzu_footer}
53
- </div>
54
- - :id: 5
55
- :name: side
56
- :format: erb
57
- :body: |-
58
- <div id="contents">
59
- #{@uzuuzu_contents}
60
- </div>
61
- <div id="left">
62
- #{@uzuuzu_left}
63
- </div>
64
- <div id="right">
65
- #{@uzuuzu_right}
66
- </div>
67
- <div id="header">
68
- #{@uzuuzu_header}
69
- </div>
70
- <div id="footer">
71
- #{@uzuuzu_footer}
72
- </div>
73
- - :id: 6
74
- :name: left2
75
- :format: erb
76
- :body: |-
77
- <div id="contents">
78
- #{@uzuuzu_contents}
79
- </div>
80
- <div id="left">
81
- #{@uzuuzu_left}
82
- </div>
83
- <div id="left2">
84
- #{@uzuuzu_right}
85
- </div>
86
- <div id="header">
87
- #{@uzuuzu_header}
88
- </div>
89
- <div id="footer">
90
- #{@uzuuzu_footer}
91
- </div>
92
- - :id: 7
93
- :name: right2
94
- :format: erb
95
- :body: |-
96
- <div id="contents">
97
- #{@uzuuzu_contents}
98
- </div>
99
- <div id="right">
100
- #{@uzuuzu_left}
101
- </div>
102
- <div id="right2">
103
- #{@uzuuzu_right}
104
- </div>
105
- <div id="header">
106
- #{@uzuuzu_header}
107
- </div>
108
- <div id="footer">
109
- #{@uzuuzu_footer}
110
- </div>
@@ -1,24 +0,0 @@
1
- # coding: utf-8
2
-
3
- module UzuUzu
4
- autoload(:BlogCategory, 'uzuuzu/adapter/datamapper/model/blog')
5
- autoload(:BlogCategoryBlogEntry, 'uzuuzu/adapter/datamapper/model/blog')
6
- autoload(:BlogComment, 'uzuuzu/adapter/datamapper/model/blog')
7
- autoload(:BlogEntry, 'uzuuzu/adapter/datamapper/model/blog')
8
- autoload(:Blog, 'uzuuzu/adapter/datamapper/model/blog')
9
- autoload(:Contents, 'uzuuzu/adapter/datamapper/model/contents')
10
- autoload(:Css, 'uzuuzu/adapter/datamapper/model/css')
11
- autoload(:File, 'uzuuzu/adapter/datamapper/model/file')
12
- autoload(:Image, 'uzuuzu/adapter/datamapper/model/image')
13
- autoload(:Info, 'uzuuzu/adapter/datamapper/model/info')
14
- autoload(:Layout, 'uzuuzu/adapter/datamapper/model/layout')
15
- autoload(:Movie, 'uzuuzu/adapter/datamapper/model/movie')
16
- autoload(:PageBody, 'uzuuzu/adapter/datamapper/model/page_body')
17
- autoload(:Page, 'uzuuzu/adapter/datamapper/model/page')
18
- autoload(:Javascript, 'uzuuzu/adapter/datamapper/model/javascript')
19
- autoload(:User, 'uzuuzu/adapter/datamapper/model/user')
20
- autoload(:WikiAttache, 'uzuuzu/adapter/datamapper/model/wiki')
21
- autoload(:WikiEntry, 'uzuuzu/adapter/datamapper/model/wiki')
22
- autoload(:WikiLayout, 'uzuuzu/adapter/datamapper/model/wiki')
23
- autoload(:Wiki, 'uzuuzu/adapter/datamapper/model/wiki')
24
- end