simple-layout 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.document +5 -0
- data/Gemfile +14 -0
- data/Gemfile.lock +29 -0
- data/LICENSE.txt +20 -0
- data/README.rdoc +68 -0
- data/Rakefile +37 -0
- data/VERSION +1 -0
- data/lib/generators/layout/USAGE +9 -0
- data/lib/generators/layout/layout_generator.rb +15 -0
- data/lib/generators/layout/layouts/simple/images/menu_background.png +0 -0
- data/lib/generators/layout/layouts/simple/index.html +55 -0
- data/lib/generators/layout/layouts/simple/simple.html.erb +45 -0
- data/lib/generators/layout/layouts/simple/styles.css +116 -0
- data/lib/simple-layout.rb +0 -0
- data/simple-layout.gemspec +119 -0
- data/test/rails_app/.gitignore +5 -0
- data/test/rails_app/Gemfile +34 -0
- data/test/rails_app/Gemfile.lock +122 -0
- data/test/rails_app/README +261 -0
- data/test/rails_app/Rakefile +7 -0
- data/test/rails_app/app/assets/images/rails.png +0 -0
- data/test/rails_app/app/assets/javascripts/application.js +9 -0
- data/test/rails_app/app/assets/stylesheets/application.css +7 -0
- data/test/rails_app/app/controllers/application_controller.rb +3 -0
- data/test/rails_app/app/helpers/application_helper.rb +2 -0
- data/test/rails_app/app/mailers/.gitkeep +0 -0
- data/test/rails_app/app/models/.gitkeep +0 -0
- data/test/rails_app/app/views/layouts/application.html.erb +14 -0
- data/test/rails_app/config.ru +4 -0
- data/test/rails_app/config/application.rb +48 -0
- data/test/rails_app/config/boot.rb +6 -0
- data/test/rails_app/config/database.yml +25 -0
- data/test/rails_app/config/environment.rb +5 -0
- data/test/rails_app/config/environments/development.rb +30 -0
- data/test/rails_app/config/environments/production.rb +60 -0
- data/test/rails_app/config/environments/test.rb +42 -0
- data/test/rails_app/config/initializers/backtrace_silencers.rb +7 -0
- data/test/rails_app/config/initializers/inflections.rb +10 -0
- data/test/rails_app/config/initializers/mime_types.rb +5 -0
- data/test/rails_app/config/initializers/secret_token.rb +7 -0
- data/test/rails_app/config/initializers/session_store.rb +8 -0
- data/test/rails_app/config/initializers/wrap_parameters.rb +14 -0
- data/test/rails_app/config/locales/en.yml +5 -0
- data/test/rails_app/config/routes.rb +58 -0
- data/test/rails_app/db/seeds.rb +7 -0
- data/test/rails_app/lib/assets/.gitkeep +0 -0
- data/test/rails_app/lib/tasks/.gitkeep +0 -0
- data/test/rails_app/log/.gitkeep +0 -0
- data/test/rails_app/public/404.html +26 -0
- data/test/rails_app/public/422.html +26 -0
- data/test/rails_app/public/500.html +26 -0
- data/test/rails_app/public/favicon.ico +0 -0
- data/test/rails_app/public/index.html +241 -0
- data/test/rails_app/public/robots.txt +5 -0
- data/test/rails_app/script/rails +6 -0
- data/test/rails_app/test/fixtures/.gitkeep +0 -0
- data/test/rails_app/test/functional/.gitkeep +0 -0
- data/test/rails_app/test/integration/.gitkeep +0 -0
- data/test/rails_app/test/performance/browsing_test.rb +12 -0
- data/test/rails_app/test/test_helper.rb +13 -0
- data/test/rails_app/test/unit/.gitkeep +0 -0
- data/test/rails_app/vendor/assets/stylesheets/.gitkeep +0 -0
- data/test/rails_app/vendor/plugins/.gitkeep +0 -0
- data/test/test_layout_generator.rb +18 -0
- data/test/tmp/app/views/layouts/simple.html.erb +45 -0
- data/test/tmp/public/simple/images/menu_background.png +0 -0
- data/test/tmp/public/simple/index.html +55 -0
- data/test/tmp/public/simple/styles.css +116 -0
- metadata +179 -0
data/.document
ADDED
data/Gemfile
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
source "http://rubygems.org"
|
2
|
+
# Add dependencies required to use your gem here.
|
3
|
+
# Example:
|
4
|
+
# gem "activesupport", ">= 2.3.5"
|
5
|
+
|
6
|
+
# Add dependencies to develop your gem here.
|
7
|
+
# Include everything needed to run rake, tests, features, etc.
|
8
|
+
group :development do
|
9
|
+
gem "shoulda", ">= 0"
|
10
|
+
gem "rdoc", "~> 3.12"
|
11
|
+
gem "bundler", "~> 1.0.0"
|
12
|
+
gem "jeweler", "~> 1.8.3"
|
13
|
+
gem "rcov", ">= 0"
|
14
|
+
end
|
data/Gemfile.lock
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
GEM
|
2
|
+
remote: http://rubygems.org/
|
3
|
+
specs:
|
4
|
+
git (1.2.5)
|
5
|
+
jeweler (1.8.3)
|
6
|
+
bundler (~> 1.0)
|
7
|
+
git (>= 1.2.5)
|
8
|
+
rake
|
9
|
+
rdoc
|
10
|
+
json (1.6.5)
|
11
|
+
rake (0.9.2.2)
|
12
|
+
rcov (0.9.11)
|
13
|
+
rdoc (3.12)
|
14
|
+
json (~> 1.4)
|
15
|
+
shoulda (3.0.1)
|
16
|
+
shoulda-context (~> 1.0.0)
|
17
|
+
shoulda-matchers (~> 1.0.0)
|
18
|
+
shoulda-context (1.0.0)
|
19
|
+
shoulda-matchers (1.0.0)
|
20
|
+
|
21
|
+
PLATFORMS
|
22
|
+
ruby
|
23
|
+
|
24
|
+
DEPENDENCIES
|
25
|
+
bundler (~> 1.0.0)
|
26
|
+
jeweler (~> 1.8.3)
|
27
|
+
rcov
|
28
|
+
rdoc (~> 3.12)
|
29
|
+
shoulda
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
Copyright (c) 2012 Allen Kim
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
+
a copy of this software and associated documentation files (the
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
9
|
+
the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be
|
12
|
+
included in all copies or substantial portions of the Software.
|
13
|
+
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.rdoc
ADDED
@@ -0,0 +1,68 @@
|
|
1
|
+
= simple-layout
|
2
|
+
|
3
|
+
In your Gemfile:
|
4
|
+
|
5
|
+
roup :development do
|
6
|
+
gem "simple-layout" # Last officially released gem
|
7
|
+
nd
|
8
|
+
|
9
|
+
From console:
|
10
|
+
$rails g layout simple
|
11
|
+
|
12
|
+
In your controller:
|
13
|
+
class PostsContorller < ApplicationController
|
14
|
+
layout :simple
|
15
|
+
...
|
16
|
+
end
|
17
|
+
|
18
|
+
To detailize your layout, modifiy app/views/layout/simple.html.erb
|
19
|
+
|
20
|
+
That's it. Hope it's simple!!
|
21
|
+
|
22
|
+
== Contributing to simple-layout
|
23
|
+
|
24
|
+
For those who wants to create your layout and share with others, please make your .css to match
|
25
|
+
to the layout below:
|
26
|
+
|
27
|
+
You need to make the following files and directories
|
28
|
+
1. styles.css
|
29
|
+
2. <layout-name>/images directory with files used by styles.css
|
30
|
+
3. index.html to show an example
|
31
|
+
3. <layout-name>.html.erb, which will be copied to app/views/layouts
|
32
|
+
|
33
|
+
If you can, send me a pull request. You can also send it to me, so that your layout can be shared.
|
34
|
+
|
35
|
+
+-- #header -----------------------------------------------------------------------------------+
|
36
|
+
| +-- #logo --+ |
|
37
|
+
| | | |
|
38
|
+
| +-----------+ |
|
39
|
+
+----------------------------------------------------------------------------------------------+
|
40
|
+
+-- #navigatgion ------------------------------------------------------------------------------+
|
41
|
+
| |
|
42
|
+
+----------------------------------------------------------------------------------------------+
|
43
|
+
+- #sidebar -+ +--- #contents -----------------------------------------------------------------+
|
44
|
+
| | | +-- #notice ----------------------------------------------------------------+ |
|
45
|
+
| | | | | |
|
46
|
+
| | | +---------------------------------------------------------------------------+ |
|
47
|
+
| | | |
|
48
|
+
| | | |
|
49
|
+
| | | |
|
50
|
+
| | | |
|
51
|
+
| | | |
|
52
|
+
| | | |
|
53
|
+
| | | |
|
54
|
+
| | | |
|
55
|
+
| | | |
|
56
|
+
| | | |
|
57
|
+
| | | |
|
58
|
+
+------------+ +-------------------------------------------------------------------------------+
|
59
|
+
+-- #footer -----------------------------------------------------------------------------------+
|
60
|
+
| |
|
61
|
+
+----------------------------------------------------------------------------------------------+
|
62
|
+
|
63
|
+
Example
|
64
|
+
#header img { border: 1px sold black }
|
65
|
+
|
66
|
+
== Copyright
|
67
|
+
|
68
|
+
Copyright (c) 2012 Allen Kim. See LICENSE.txt for further details.
|
data/Rakefile
ADDED
@@ -0,0 +1,37 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
|
3
|
+
require 'rubygems'
|
4
|
+
require 'bundler'
|
5
|
+
begin
|
6
|
+
Bundler.setup(:default, :development)
|
7
|
+
rescue Bundler::BundlerError => e
|
8
|
+
$stderr.puts e.message
|
9
|
+
$stderr.puts "Run `bundle install` to install missing gems"
|
10
|
+
exit e.status_code
|
11
|
+
end
|
12
|
+
require 'rake'
|
13
|
+
|
14
|
+
require 'jeweler'
|
15
|
+
Jeweler::Tasks.new do |gem|
|
16
|
+
# gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
|
17
|
+
gem.name = "simple-layout"
|
18
|
+
gem.homepage = "http://github.com/bighostkim/simple-layout"
|
19
|
+
gem.license = "MIT"
|
20
|
+
gem.summary = %Q{ Make layout ready for your application, so you don't have to }
|
21
|
+
gem.description = %Q{This gotta be longer than summary. :). I will fill it out }
|
22
|
+
gem.email = "bighostkim@gmail.com"
|
23
|
+
gem.authors = ["Allen Kim"]
|
24
|
+
# dependencies defined in Gemfile
|
25
|
+
end
|
26
|
+
Jeweler::RubygemsDotOrgTasks.new
|
27
|
+
|
28
|
+
require 'rdoc/task'
|
29
|
+
Rake::RDocTask.new do |rdoc|
|
30
|
+
version = File.exist?('VERSION') ? File.read('VERSION') : ""
|
31
|
+
|
32
|
+
rdoc.rdoc_dir = 'rdoc'
|
33
|
+
rdoc.title = "simple-layout #{version}"
|
34
|
+
rdoc.rdoc_files.include('README*')
|
35
|
+
rdoc.rdoc_files.include('lib/**/*.rb')
|
36
|
+
end
|
37
|
+
|
data/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
0.1.0
|
@@ -0,0 +1,15 @@
|
|
1
|
+
require 'rails/generators'
|
2
|
+
|
3
|
+
class LayoutGenerator < Rails::Generators::NamedBase
|
4
|
+
source_root File.expand_path('./layouts', File.dirname(__FILE__))
|
5
|
+
|
6
|
+
desc "This generator creates layout files at public directory and app/views/layouts"
|
7
|
+
def copy_layout_file
|
8
|
+
layout_name = file_name
|
9
|
+
empty_directory "public/#{layout_name}"
|
10
|
+
directory "#{layout_name}/images", "public/#{layout_name}/images"
|
11
|
+
copy_file "#{layout_name}/styles.css", "public/#{layout_name}/styles.css"
|
12
|
+
copy_file "#{layout_name}/index.html", "public/#{layout_name}/index.html"
|
13
|
+
copy_file "#{layout_name}/#{layout_name}.html.erb", "app/views/layouts/#{layout_name}.html.erb"
|
14
|
+
end
|
15
|
+
end
|
Binary file
|
@@ -0,0 +1,55 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>Myapp</title>
|
5
|
+
<link type="text/css" rel="stylesheet" href="styles.css" media="all">
|
6
|
+
</head>
|
7
|
+
<body>
|
8
|
+
<div id="header">
|
9
|
+
<div id="logo"><h1>It Gotta B Simple</h1></div>
|
10
|
+
</div>
|
11
|
+
<div id="navigation">
|
12
|
+
<ul>
|
13
|
+
<li><a href="#">Menu</a></li>
|
14
|
+
<li><a href="#">Goes</a></li>
|
15
|
+
<li><a href="#">Here</a></li>
|
16
|
+
</ul>
|
17
|
+
</div>
|
18
|
+
|
19
|
+
<div id="contents">
|
20
|
+
|
21
|
+
<div id="notice">
|
22
|
+
<div class="notice"> Sample Notice </div>
|
23
|
+
<!-- <div class="error"> Sample Error </div> -->
|
24
|
+
</div>
|
25
|
+
|
26
|
+
<div id="sidebar">
|
27
|
+
<h3> Some List </h3>
|
28
|
+
<ul>
|
29
|
+
<li>list1</li>
|
30
|
+
<li>list2</li>
|
31
|
+
<li>list3</li>
|
32
|
+
<li>list4</li>
|
33
|
+
</ul>
|
34
|
+
</div>
|
35
|
+
|
36
|
+
<div class="title">Page Title</div>
|
37
|
+
<div class="subtitle">Page Sub Title</div>
|
38
|
+
<table>
|
39
|
+
<tr> <th>Table</th> <th>Looks</th> <th>Like</th> <th>This</th> </tr>
|
40
|
+
<tr> <td>Table</td> <td>Looks</td> <td>Like</td> <td>This</td> </tr>
|
41
|
+
<tr> <td>Table</td> <td>Looks</td> <td>Like</td> <td>This</td> </tr>
|
42
|
+
<tr> <td>Table</td> <td>Looks</td> <td>Like</td> <td>This</td> </tr>
|
43
|
+
<tr> <td>Table</td> <td>Looks</td> <td>Like</td> <td>This</td> </tr>
|
44
|
+
<tr> <td>Table</td> <td>Looks</td> <td>Like</td> <td>This</td> </tr>
|
45
|
+
<tr> <td>Table</td> <td>Looks</td> <td>Like</td> <td>This</td> </tr>
|
46
|
+
<tr> <td>Table</td> <td>Looks</td> <td>Like</td> <td>This</td> </tr>
|
47
|
+
</table>
|
48
|
+
</div>
|
49
|
+
|
50
|
+
|
51
|
+
<div id="footer">
|
52
|
+
Copyright goes here
|
53
|
+
</div>
|
54
|
+
</body>
|
55
|
+
</html>
|
@@ -0,0 +1,45 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>Myapp</title>
|
5
|
+
<%= stylesheet_link_tag "slicehost.css" %>
|
6
|
+
</head>
|
7
|
+
<body>
|
8
|
+
<div id="header">
|
9
|
+
<div id="logo"><h1>It Gotta B Simple</h1></div>
|
10
|
+
</div>
|
11
|
+
<div id="navigation">
|
12
|
+
<ul>
|
13
|
+
<li><%=link_to "Menu", "#menu"%></li>
|
14
|
+
<li><%=link_to "Goes", "#goes"%></li>
|
15
|
+
<li><%=link_to "Here", "#here"%></li>
|
16
|
+
</ul>
|
17
|
+
</div>
|
18
|
+
|
19
|
+
<div id="contents">
|
20
|
+
|
21
|
+
<div id="notice">
|
22
|
+
<div class="notice"> Sample Notice </div>
|
23
|
+
<!-- <div class="error"> Sample Error </div> -->
|
24
|
+
</div>
|
25
|
+
|
26
|
+
<div id="sidebar">
|
27
|
+
<h3> Some List </h3>
|
28
|
+
<ul>
|
29
|
+
<li>list1</li>
|
30
|
+
<li>list2</li>
|
31
|
+
<li>list3</li>
|
32
|
+
<li>list4</li>
|
33
|
+
</ul>
|
34
|
+
</div>
|
35
|
+
|
36
|
+
<%=yield%>
|
37
|
+
|
38
|
+
</div>
|
39
|
+
|
40
|
+
|
41
|
+
<div id="footer">
|
42
|
+
Copyright goes here
|
43
|
+
</div>
|
44
|
+
</body>
|
45
|
+
</html>
|
@@ -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 }
|
File without changes
|
@@ -0,0 +1,119 @@
|
|
1
|
+
# Generated by jeweler
|
2
|
+
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
|
+
# -*- encoding: utf-8 -*-
|
5
|
+
|
6
|
+
Gem::Specification.new do |s|
|
7
|
+
s.name = "simple-layout"
|
8
|
+
s.version = "0.1.0"
|
9
|
+
|
10
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
+
s.authors = ["Allen Kim"]
|
12
|
+
s.date = "2012-03-27"
|
13
|
+
s.description = "This gotta be longer than summary. :). I will fill it out "
|
14
|
+
s.email = "bighostkim@gmail.com"
|
15
|
+
s.extra_rdoc_files = [
|
16
|
+
"LICENSE.txt",
|
17
|
+
"README.rdoc"
|
18
|
+
]
|
19
|
+
s.files = [
|
20
|
+
".document",
|
21
|
+
"Gemfile",
|
22
|
+
"Gemfile.lock",
|
23
|
+
"LICENSE.txt",
|
24
|
+
"README.rdoc",
|
25
|
+
"Rakefile",
|
26
|
+
"VERSION",
|
27
|
+
"lib/generators/layout/USAGE",
|
28
|
+
"lib/generators/layout/layout_generator.rb",
|
29
|
+
"lib/generators/layout/layouts/simple/images/menu_background.png",
|
30
|
+
"lib/generators/layout/layouts/simple/index.html",
|
31
|
+
"lib/generators/layout/layouts/simple/simple.html.erb",
|
32
|
+
"lib/generators/layout/layouts/simple/styles.css",
|
33
|
+
"lib/simple-layout.rb",
|
34
|
+
"simple-layout.gemspec",
|
35
|
+
"test/rails_app/.gitignore",
|
36
|
+
"test/rails_app/Gemfile",
|
37
|
+
"test/rails_app/Gemfile.lock",
|
38
|
+
"test/rails_app/README",
|
39
|
+
"test/rails_app/Rakefile",
|
40
|
+
"test/rails_app/app/assets/images/rails.png",
|
41
|
+
"test/rails_app/app/assets/javascripts/application.js",
|
42
|
+
"test/rails_app/app/assets/stylesheets/application.css",
|
43
|
+
"test/rails_app/app/controllers/application_controller.rb",
|
44
|
+
"test/rails_app/app/helpers/application_helper.rb",
|
45
|
+
"test/rails_app/app/mailers/.gitkeep",
|
46
|
+
"test/rails_app/app/models/.gitkeep",
|
47
|
+
"test/rails_app/app/views/layouts/application.html.erb",
|
48
|
+
"test/rails_app/config.ru",
|
49
|
+
"test/rails_app/config/application.rb",
|
50
|
+
"test/rails_app/config/boot.rb",
|
51
|
+
"test/rails_app/config/database.yml",
|
52
|
+
"test/rails_app/config/environment.rb",
|
53
|
+
"test/rails_app/config/environments/development.rb",
|
54
|
+
"test/rails_app/config/environments/production.rb",
|
55
|
+
"test/rails_app/config/environments/test.rb",
|
56
|
+
"test/rails_app/config/initializers/backtrace_silencers.rb",
|
57
|
+
"test/rails_app/config/initializers/inflections.rb",
|
58
|
+
"test/rails_app/config/initializers/mime_types.rb",
|
59
|
+
"test/rails_app/config/initializers/secret_token.rb",
|
60
|
+
"test/rails_app/config/initializers/session_store.rb",
|
61
|
+
"test/rails_app/config/initializers/wrap_parameters.rb",
|
62
|
+
"test/rails_app/config/locales/en.yml",
|
63
|
+
"test/rails_app/config/routes.rb",
|
64
|
+
"test/rails_app/db/seeds.rb",
|
65
|
+
"test/rails_app/lib/assets/.gitkeep",
|
66
|
+
"test/rails_app/lib/tasks/.gitkeep",
|
67
|
+
"test/rails_app/log/.gitkeep",
|
68
|
+
"test/rails_app/public/404.html",
|
69
|
+
"test/rails_app/public/422.html",
|
70
|
+
"test/rails_app/public/500.html",
|
71
|
+
"test/rails_app/public/favicon.ico",
|
72
|
+
"test/rails_app/public/index.html",
|
73
|
+
"test/rails_app/public/robots.txt",
|
74
|
+
"test/rails_app/script/rails",
|
75
|
+
"test/rails_app/test/fixtures/.gitkeep",
|
76
|
+
"test/rails_app/test/functional/.gitkeep",
|
77
|
+
"test/rails_app/test/integration/.gitkeep",
|
78
|
+
"test/rails_app/test/performance/browsing_test.rb",
|
79
|
+
"test/rails_app/test/test_helper.rb",
|
80
|
+
"test/rails_app/test/unit/.gitkeep",
|
81
|
+
"test/rails_app/vendor/assets/stylesheets/.gitkeep",
|
82
|
+
"test/rails_app/vendor/plugins/.gitkeep",
|
83
|
+
"test/test_layout_generator.rb",
|
84
|
+
"test/tmp/app/views/layouts/simple.html.erb",
|
85
|
+
"test/tmp/public/simple/images/menu_background.png",
|
86
|
+
"test/tmp/public/simple/index.html",
|
87
|
+
"test/tmp/public/simple/styles.css"
|
88
|
+
]
|
89
|
+
s.homepage = "http://github.com/bighostkim/simple-layout"
|
90
|
+
s.licenses = ["MIT"]
|
91
|
+
s.require_paths = ["lib"]
|
92
|
+
s.rubygems_version = "1.8.15"
|
93
|
+
s.summary = "Make layout ready for your application, so you don't have to"
|
94
|
+
|
95
|
+
if s.respond_to? :specification_version then
|
96
|
+
s.specification_version = 3
|
97
|
+
|
98
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
99
|
+
s.add_development_dependency(%q<shoulda>, [">= 0"])
|
100
|
+
s.add_development_dependency(%q<rdoc>, ["~> 3.12"])
|
101
|
+
s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
|
102
|
+
s.add_development_dependency(%q<jeweler>, ["~> 1.8.3"])
|
103
|
+
s.add_development_dependency(%q<rcov>, [">= 0"])
|
104
|
+
else
|
105
|
+
s.add_dependency(%q<shoulda>, [">= 0"])
|
106
|
+
s.add_dependency(%q<rdoc>, ["~> 3.12"])
|
107
|
+
s.add_dependency(%q<bundler>, ["~> 1.0.0"])
|
108
|
+
s.add_dependency(%q<jeweler>, ["~> 1.8.3"])
|
109
|
+
s.add_dependency(%q<rcov>, [">= 0"])
|
110
|
+
end
|
111
|
+
else
|
112
|
+
s.add_dependency(%q<shoulda>, [">= 0"])
|
113
|
+
s.add_dependency(%q<rdoc>, ["~> 3.12"])
|
114
|
+
s.add_dependency(%q<bundler>, ["~> 1.0.0"])
|
115
|
+
s.add_dependency(%q<jeweler>, ["~> 1.8.3"])
|
116
|
+
s.add_dependency(%q<rcov>, [">= 0"])
|
117
|
+
end
|
118
|
+
end
|
119
|
+
|