simple-layout 0.1.0

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 (69) hide show
  1. data/.document +5 -0
  2. data/Gemfile +14 -0
  3. data/Gemfile.lock +29 -0
  4. data/LICENSE.txt +20 -0
  5. data/README.rdoc +68 -0
  6. data/Rakefile +37 -0
  7. data/VERSION +1 -0
  8. data/lib/generators/layout/USAGE +9 -0
  9. data/lib/generators/layout/layout_generator.rb +15 -0
  10. data/lib/generators/layout/layouts/simple/images/menu_background.png +0 -0
  11. data/lib/generators/layout/layouts/simple/index.html +55 -0
  12. data/lib/generators/layout/layouts/simple/simple.html.erb +45 -0
  13. data/lib/generators/layout/layouts/simple/styles.css +116 -0
  14. data/lib/simple-layout.rb +0 -0
  15. data/simple-layout.gemspec +119 -0
  16. data/test/rails_app/.gitignore +5 -0
  17. data/test/rails_app/Gemfile +34 -0
  18. data/test/rails_app/Gemfile.lock +122 -0
  19. data/test/rails_app/README +261 -0
  20. data/test/rails_app/Rakefile +7 -0
  21. data/test/rails_app/app/assets/images/rails.png +0 -0
  22. data/test/rails_app/app/assets/javascripts/application.js +9 -0
  23. data/test/rails_app/app/assets/stylesheets/application.css +7 -0
  24. data/test/rails_app/app/controllers/application_controller.rb +3 -0
  25. data/test/rails_app/app/helpers/application_helper.rb +2 -0
  26. data/test/rails_app/app/mailers/.gitkeep +0 -0
  27. data/test/rails_app/app/models/.gitkeep +0 -0
  28. data/test/rails_app/app/views/layouts/application.html.erb +14 -0
  29. data/test/rails_app/config.ru +4 -0
  30. data/test/rails_app/config/application.rb +48 -0
  31. data/test/rails_app/config/boot.rb +6 -0
  32. data/test/rails_app/config/database.yml +25 -0
  33. data/test/rails_app/config/environment.rb +5 -0
  34. data/test/rails_app/config/environments/development.rb +30 -0
  35. data/test/rails_app/config/environments/production.rb +60 -0
  36. data/test/rails_app/config/environments/test.rb +42 -0
  37. data/test/rails_app/config/initializers/backtrace_silencers.rb +7 -0
  38. data/test/rails_app/config/initializers/inflections.rb +10 -0
  39. data/test/rails_app/config/initializers/mime_types.rb +5 -0
  40. data/test/rails_app/config/initializers/secret_token.rb +7 -0
  41. data/test/rails_app/config/initializers/session_store.rb +8 -0
  42. data/test/rails_app/config/initializers/wrap_parameters.rb +14 -0
  43. data/test/rails_app/config/locales/en.yml +5 -0
  44. data/test/rails_app/config/routes.rb +58 -0
  45. data/test/rails_app/db/seeds.rb +7 -0
  46. data/test/rails_app/lib/assets/.gitkeep +0 -0
  47. data/test/rails_app/lib/tasks/.gitkeep +0 -0
  48. data/test/rails_app/log/.gitkeep +0 -0
  49. data/test/rails_app/public/404.html +26 -0
  50. data/test/rails_app/public/422.html +26 -0
  51. data/test/rails_app/public/500.html +26 -0
  52. data/test/rails_app/public/favicon.ico +0 -0
  53. data/test/rails_app/public/index.html +241 -0
  54. data/test/rails_app/public/robots.txt +5 -0
  55. data/test/rails_app/script/rails +6 -0
  56. data/test/rails_app/test/fixtures/.gitkeep +0 -0
  57. data/test/rails_app/test/functional/.gitkeep +0 -0
  58. data/test/rails_app/test/integration/.gitkeep +0 -0
  59. data/test/rails_app/test/performance/browsing_test.rb +12 -0
  60. data/test/rails_app/test/test_helper.rb +13 -0
  61. data/test/rails_app/test/unit/.gitkeep +0 -0
  62. data/test/rails_app/vendor/assets/stylesheets/.gitkeep +0 -0
  63. data/test/rails_app/vendor/plugins/.gitkeep +0 -0
  64. data/test/test_layout_generator.rb +18 -0
  65. data/test/tmp/app/views/layouts/simple.html.erb +45 -0
  66. data/test/tmp/public/simple/images/menu_background.png +0 -0
  67. data/test/tmp/public/simple/index.html +55 -0
  68. data/test/tmp/public/simple/styles.css +116 -0
  69. metadata +179 -0
@@ -0,0 +1,116 @@
1
+ /* ==== COMMON ==== */
2
+ body {
3
+ width: 978px;
4
+ margin: 1.5em auto;
5
+ color:#333333;
6
+ font-family:Helvetica Neue,Arial,Helvetica,sans-serif;
7
+ font-size:75%;
8
+ line-height:1.5;
9
+ }
10
+
11
+ body a { color: #525252; text-decoration: none; }
12
+ body a:hover {text-decoration: underline;}
13
+ body a:visited {color:#000066;}
14
+ body a:focus {color:black;}
15
+ body a:hover {color:black;}
16
+ body a:active {color:#CC0099;}
17
+ body div {
18
+ border-radius: 10px;
19
+ -moz-border-radius: 15px;
20
+ }
21
+
22
+ body h1 { font-size: 22px; }
23
+
24
+ /* ==== HEADER ==== */
25
+
26
+ #logo {
27
+ background-color: #fff;
28
+ }
29
+
30
+ #logo h1 {
31
+ font-family: Arial Black,Garamond, serif;
32
+ line-height: 1em;
33
+ color: #f4954C;
34
+ font-weight:bold;
35
+ vertical-align:middle;
36
+ font-size: 40px;
37
+ text-shadow: 0 0 0.2em #888, 0 0 0.2em #888, 0 0 0.2em #888
38
+ }
39
+
40
+ #navigation {
41
+ background: #1522B2 url('/simple/images/menu_background.png') repeat-x scroll left top;
42
+ color: #FFFFFF;
43
+ height: 49px;
44
+ margin: 0;
45
+ padding: 0;
46
+ }
47
+
48
+ #navigation li {
49
+ background: #1522B2 url('/simple/images/menu_background.png') repeat-x scroll left top;
50
+ float: left;
51
+ list-style: none;
52
+ margin: 0;
53
+ padding: 0;
54
+ }
55
+
56
+ #navigation li:hover { background-position: 0 -49px; }
57
+ #navigation li a {
58
+ color: #FFFFFF;
59
+ font-family:Arial Black,Helvetica,sans-serif;
60
+ font-size: 140%;
61
+ line-height: 49px;
62
+ padding: 13px 20px;
63
+ text-decoration: none;
64
+ font-weight: bold;
65
+ text-shadow: 2px 2px 2px #888;
66
+ -moz-text-shadow: 2px 2px 2px #888;
67
+ -webkit-text-shadow: 2px 2px 2px #888;
68
+ }
69
+
70
+ /* ==== CONTENTS ==== */
71
+
72
+ #contents {
73
+ background-color: #fff;
74
+ padding: 15px;
75
+ border: 1px solid #aaa;
76
+ margin: 5px 5px 5px 0px;
77
+ box-shadow: 5px 5px 5px #888;
78
+ -moz-box-shadow: 5px 5px 5px #888;
79
+ -webkit-box-shadow: 5px 5px 5px #888;
80
+ }
81
+
82
+ #contents table {margin-bottom:1.4em;width:80%}
83
+ #contents th {background-color:#ccc;}
84
+ #contents tr:nth-child(odd) td {background-color:#E5ECF9;}
85
+
86
+ #contents .title {color: #C4651C; font-size: 2em; font-weight: bold; margin-bottom: 20px; }
87
+ #contents .subtitle {color: #333; font-size: 1.5em; font-weight: bold; margin-bottom: 15px;}
88
+
89
+ /* === SIDEBAR === */
90
+ #sidebar {
91
+ width:14%;
92
+ float: right;
93
+ padding: 10px;
94
+ border: 1px solid #aaa;
95
+ margin: 5px 5px 5px 0px;
96
+ box-shadow: 5px 5px 5px #888;
97
+ -moz-box-shadow: 5px 5px 5px #888;
98
+ -webkit-box-shadow: 5px 5px 5px #888;
99
+ }
100
+
101
+ /* ==== FOOTER ==== */
102
+
103
+ #footer {
104
+ clear: both;
105
+ text-align: center;
106
+ color: #666;
107
+ padding: 13px 20px;
108
+ border: 1px solid #aaa;
109
+ }
110
+
111
+ /* ==== NOTICe ==== */
112
+ #notice { padding: 5px 8px; margin: 10px 0; }
113
+ #notice p, #notice div { border:2px solid #FBC2C4; margin-bottom:1em; padding:0.8em; }
114
+ #notice .notice { background-color: #CFC; color:#514721; }
115
+ #notice .error { background-color:#FBE3E4; color:#8A1F11; }
116
+ #notice .success { background-color:#E6EFC2; color:#264409 }
metadata ADDED
@@ -0,0 +1,179 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: simple-layout
3
+ version: !ruby/object:Gem::Version
4
+ prerelease:
5
+ version: 0.1.0
6
+ platform: ruby
7
+ authors:
8
+ - Allen Kim
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+
13
+ date: 2012-03-27 00:00:00 Z
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: shoulda
17
+ requirement: &id001 !ruby/object:Gem::Requirement
18
+ none: false
19
+ requirements:
20
+ - - ">="
21
+ - !ruby/object:Gem::Version
22
+ version: "0"
23
+ type: :development
24
+ prerelease: false
25
+ version_requirements: *id001
26
+ - !ruby/object:Gem::Dependency
27
+ name: rdoc
28
+ requirement: &id002 !ruby/object:Gem::Requirement
29
+ none: false
30
+ requirements:
31
+ - - ~>
32
+ - !ruby/object:Gem::Version
33
+ version: "3.12"
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: *id002
37
+ - !ruby/object:Gem::Dependency
38
+ name: bundler
39
+ requirement: &id003 !ruby/object:Gem::Requirement
40
+ none: false
41
+ requirements:
42
+ - - ~>
43
+ - !ruby/object:Gem::Version
44
+ version: 1.0.0
45
+ type: :development
46
+ prerelease: false
47
+ version_requirements: *id003
48
+ - !ruby/object:Gem::Dependency
49
+ name: jeweler
50
+ requirement: &id004 !ruby/object:Gem::Requirement
51
+ none: false
52
+ requirements:
53
+ - - ~>
54
+ - !ruby/object:Gem::Version
55
+ version: 1.8.3
56
+ type: :development
57
+ prerelease: false
58
+ version_requirements: *id004
59
+ - !ruby/object:Gem::Dependency
60
+ name: rcov
61
+ requirement: &id005 !ruby/object:Gem::Requirement
62
+ none: false
63
+ requirements:
64
+ - - ">="
65
+ - !ruby/object:Gem::Version
66
+ version: "0"
67
+ type: :development
68
+ prerelease: false
69
+ version_requirements: *id005
70
+ description: "This gotta be longer than summary. :). I will fill it out "
71
+ email: bighostkim@gmail.com
72
+ executables: []
73
+
74
+ extensions: []
75
+
76
+ extra_rdoc_files:
77
+ - LICENSE.txt
78
+ - README.rdoc
79
+ files:
80
+ - .document
81
+ - Gemfile
82
+ - Gemfile.lock
83
+ - LICENSE.txt
84
+ - README.rdoc
85
+ - Rakefile
86
+ - VERSION
87
+ - lib/generators/layout/USAGE
88
+ - lib/generators/layout/layout_generator.rb
89
+ - lib/generators/layout/layouts/simple/images/menu_background.png
90
+ - lib/generators/layout/layouts/simple/index.html
91
+ - lib/generators/layout/layouts/simple/simple.html.erb
92
+ - lib/generators/layout/layouts/simple/styles.css
93
+ - lib/simple-layout.rb
94
+ - simple-layout.gemspec
95
+ - test/rails_app/.gitignore
96
+ - test/rails_app/Gemfile
97
+ - test/rails_app/Gemfile.lock
98
+ - test/rails_app/README
99
+ - test/rails_app/Rakefile
100
+ - test/rails_app/app/assets/images/rails.png
101
+ - test/rails_app/app/assets/javascripts/application.js
102
+ - test/rails_app/app/assets/stylesheets/application.css
103
+ - test/rails_app/app/controllers/application_controller.rb
104
+ - test/rails_app/app/helpers/application_helper.rb
105
+ - test/rails_app/app/mailers/.gitkeep
106
+ - test/rails_app/app/models/.gitkeep
107
+ - test/rails_app/app/views/layouts/application.html.erb
108
+ - test/rails_app/config.ru
109
+ - test/rails_app/config/application.rb
110
+ - test/rails_app/config/boot.rb
111
+ - test/rails_app/config/database.yml
112
+ - test/rails_app/config/environment.rb
113
+ - test/rails_app/config/environments/development.rb
114
+ - test/rails_app/config/environments/production.rb
115
+ - test/rails_app/config/environments/test.rb
116
+ - test/rails_app/config/initializers/backtrace_silencers.rb
117
+ - test/rails_app/config/initializers/inflections.rb
118
+ - test/rails_app/config/initializers/mime_types.rb
119
+ - test/rails_app/config/initializers/secret_token.rb
120
+ - test/rails_app/config/initializers/session_store.rb
121
+ - test/rails_app/config/initializers/wrap_parameters.rb
122
+ - test/rails_app/config/locales/en.yml
123
+ - test/rails_app/config/routes.rb
124
+ - test/rails_app/db/seeds.rb
125
+ - test/rails_app/lib/assets/.gitkeep
126
+ - test/rails_app/lib/tasks/.gitkeep
127
+ - test/rails_app/log/.gitkeep
128
+ - test/rails_app/public/404.html
129
+ - test/rails_app/public/422.html
130
+ - test/rails_app/public/500.html
131
+ - test/rails_app/public/favicon.ico
132
+ - test/rails_app/public/index.html
133
+ - test/rails_app/public/robots.txt
134
+ - test/rails_app/script/rails
135
+ - test/rails_app/test/fixtures/.gitkeep
136
+ - test/rails_app/test/functional/.gitkeep
137
+ - test/rails_app/test/integration/.gitkeep
138
+ - test/rails_app/test/performance/browsing_test.rb
139
+ - test/rails_app/test/test_helper.rb
140
+ - test/rails_app/test/unit/.gitkeep
141
+ - test/rails_app/vendor/assets/stylesheets/.gitkeep
142
+ - test/rails_app/vendor/plugins/.gitkeep
143
+ - test/test_layout_generator.rb
144
+ - test/tmp/app/views/layouts/simple.html.erb
145
+ - test/tmp/public/simple/images/menu_background.png
146
+ - test/tmp/public/simple/index.html
147
+ - test/tmp/public/simple/styles.css
148
+ homepage: http://github.com/bighostkim/simple-layout
149
+ licenses:
150
+ - MIT
151
+ post_install_message:
152
+ rdoc_options: []
153
+
154
+ require_paths:
155
+ - lib
156
+ required_ruby_version: !ruby/object:Gem::Requirement
157
+ none: false
158
+ requirements:
159
+ - - ">="
160
+ - !ruby/object:Gem::Version
161
+ hash: -4373676734974263252
162
+ segments:
163
+ - 0
164
+ version: "0"
165
+ required_rubygems_version: !ruby/object:Gem::Requirement
166
+ none: false
167
+ requirements:
168
+ - - ">="
169
+ - !ruby/object:Gem::Version
170
+ version: "0"
171
+ requirements: []
172
+
173
+ rubyforge_project:
174
+ rubygems_version: 1.8.15
175
+ signing_key:
176
+ specification_version: 3
177
+ summary: Make layout ready for your application, so you don't have to
178
+ test_files: []
179
+