playmo 0.0.11 → 0.0.12
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/generators/rails/templates/layout.html.erb +5 -7
- data/lib/playmo/recipes/application_helper_recipe.rb +24 -0
- data/lib/playmo/recipes/devise_recipe.rb +63 -45
- data/lib/playmo/recipes/layout_recipe.rb +1 -2
- data/lib/playmo/recipes/templates/application_helper_recipe/application_helper.rb +17 -1
- data/lib/playmo/recipes/templates/application_helper_recipe/flash_messages.js +19 -0
- data/lib/playmo/recipes/templates/assets_recipe/stylesheets/application.css.scss +12 -14
- data/lib/playmo/recipes/templates/assets_recipe/stylesheets/partials/_forms.css.scss +3 -3
- data/lib/playmo/recipes/templates/assets_recipe/stylesheets/partials/_layout.css.scss +27 -36
- data/lib/playmo/recipes/templates/assets_recipe/stylesheets/partials/_overrides.css.scss +23 -13
- data/lib/playmo/recipes/templates/layout_recipe/application.html.erb +7 -7
- data/playmo.gemspec +1 -1
- metadata +98 -60
@@ -21,19 +21,17 @@
|
|
21
21
|
|
22
22
|
<div id="main-wrapper">
|
23
23
|
<header>
|
24
|
-
|
24
|
+
<h1><%%= link_to_unless_current 'Welcome aboard!', main_app.root_path %></h1>
|
25
25
|
</header>
|
26
26
|
|
27
27
|
<div id="body">
|
28
|
-
|
29
|
-
<section id="content">
|
28
|
+
<section id="content" class="content">
|
30
29
|
<%%= yield %>
|
31
30
|
</section>
|
32
31
|
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
32
|
+
<aside>
|
33
|
+
<%%= content_for?(:sidebar) ? yield(:sidebar) : render("shared/sidebar") %>
|
34
|
+
</aside>
|
37
35
|
</div>
|
38
36
|
</div>
|
39
37
|
|
@@ -7,6 +7,30 @@ module Playmo
|
|
7
7
|
silently do
|
8
8
|
remove_file 'app/helpers/application_helper.rb'
|
9
9
|
copy_file 'application_helper.rb', 'app/helpers/application_helper.rb'
|
10
|
+
|
11
|
+
# TODO: Add version for prototype and Jquery
|
12
|
+
# TODO: Translate flash_messages.js to CoffeeScript
|
13
|
+
copy_file 'flash_messages.js', 'app/assets/javascripts/flash_messages.js'
|
14
|
+
|
15
|
+
Event.events.listen(:after_install) do
|
16
|
+
gsub_file 'app/assets/javascripts/application.js', '//= require_tree .' do
|
17
|
+
<<-CONTENT.gsub(/^ {16}/, '')
|
18
|
+
//= require flash_messages
|
19
|
+
//= require_tree .
|
20
|
+
CONTENT
|
21
|
+
end
|
22
|
+
end
|
23
|
+
|
24
|
+
gsub_file 'config/locales/en.yml', 'en:' do
|
25
|
+
<<-CONTENT.gsub(/^ {14}/, '')
|
26
|
+
en:
|
27
|
+
helpers:
|
28
|
+
application:
|
29
|
+
link_to_delete:
|
30
|
+
link_text: Delete?
|
31
|
+
confirmation: Are you sure?
|
32
|
+
CONTENT
|
33
|
+
end
|
10
34
|
end
|
11
35
|
end
|
12
36
|
end
|
@@ -24,7 +24,7 @@ module Playmo
|
|
24
24
|
|
25
25
|
# Add :name accessor to default accessors
|
26
26
|
# Also add some specific methods
|
27
|
-
gsub_file 'app/models/user.rb', 'attr_accessible :email, :password, :password_confirmation, :remember_me' do
|
27
|
+
gsub_file 'app/models/user.rb', ' attr_accessible :email, :password, :password_confirmation, :remember_me' do
|
28
28
|
<<-CONTENT.gsub(/^ {12}/, '')
|
29
29
|
attr_accessible :email, :password, :password_confirmation, :remember_me, :name
|
30
30
|
cattr_accessor :current
|
@@ -72,9 +72,9 @@ module Playmo
|
|
72
72
|
# Add links into layout
|
73
73
|
def add_layout_links
|
74
74
|
case retrieve(:markup)
|
75
|
-
when :erb then
|
76
|
-
when :haml then
|
77
|
-
when :slim then
|
75
|
+
when :erb then create_userbar_with_erb
|
76
|
+
when :haml then create_userbar_with_haml
|
77
|
+
when :slim then create_userbar_with_slim
|
78
78
|
end
|
79
79
|
end
|
80
80
|
|
@@ -86,63 +86,81 @@ module Playmo
|
|
86
86
|
end
|
87
87
|
end
|
88
88
|
|
89
|
-
def
|
90
|
-
gsub_file 'app/views/layouts/application.html.erb', '</header>' do
|
91
|
-
<<-CONTENT.gsub(/^ {
|
92
|
-
|
93
|
-
<ul>
|
94
|
-
<% if user_signed_in? %>
|
95
|
-
<li>
|
96
|
-
Hello, Dear <strong><%= current_user.username %></strong>!
|
97
|
-
Maybe, you want to <%= link_to 'logout', destroy_user_session_path %>?
|
98
|
-
</li>
|
99
|
-
<% else %>
|
100
|
-
<li>
|
101
|
-
Hello Guest, maybe you want to <%= link_to 'Join us', new_user_registration_path %> or <%= link_to 'login', new_user_session_path %>?
|
102
|
-
</li>
|
103
|
-
<% end %>
|
104
|
-
</ul>
|
105
|
-
</div>
|
89
|
+
def create_userbar_with_erb
|
90
|
+
gsub_file 'app/views/layouts/application.html.erb', ' </header>' do
|
91
|
+
<<-CONTENT.gsub(/^ {6}/, '')
|
92
|
+
<%= render 'shared/userbar' %>
|
106
93
|
</header>
|
107
94
|
CONTENT
|
108
95
|
end
|
96
|
+
|
97
|
+
create_file 'app/views/shared/_userbar.html.erb' do
|
98
|
+
<<-CONTENT.gsub(/^ {12}/, '')
|
99
|
+
<div id="user-info">
|
100
|
+
<ul>
|
101
|
+
<% if user_signed_in? %>
|
102
|
+
<li>
|
103
|
+
Hello, Dear <strong><%= current_user.username %></strong>!
|
104
|
+
Maybe, you want to <%= link_to 'logout', main_app.destroy_user_session_path, :method => :delete %>?
|
105
|
+
</li>
|
106
|
+
<% else %>
|
107
|
+
<li>
|
108
|
+
Hello Guest, maybe you want to <%= link_to 'Join us', main_app.new_user_registration_path %> or <%= link_to 'login', main_app.new_user_session_path %>?
|
109
|
+
</li>
|
110
|
+
<% end %>
|
111
|
+
</ul>
|
112
|
+
</div>
|
113
|
+
CONTENT
|
114
|
+
end
|
109
115
|
end
|
110
116
|
|
111
|
-
def
|
117
|
+
def create_userbar_with_haml
|
112
118
|
gsub_file 'app/views/layouts/application.html.haml', ' #body' do
|
113
|
-
<<-
|
114
|
-
|
115
|
-
%ul
|
116
|
-
- if user_signed_in?
|
117
|
-
%li
|
118
|
-
Hello, Dear
|
119
|
-
= succeed "!" do
|
120
|
-
%strong= current_user.username
|
121
|
-
Maybe, you want to #{link_to 'logout', destroy_user_session_path}?
|
122
|
-
- else
|
123
|
-
%li
|
124
|
-
Hello Guest, maybe you want to #{link_to 'Join us', new_user_registration_path} or #{link_to 'login', new_user_session_path}?
|
119
|
+
<<-CONTENT.gsub(/^ {6}/, '')
|
120
|
+
= render 'shared/userbar'
|
125
121
|
#body
|
126
122
|
CONTENT
|
127
123
|
end
|
124
|
+
|
125
|
+
create_file 'app/views/shared/_userbar.html.haml' do
|
126
|
+
<<-'CONTENT'.gsub(/^ {12}/, '')
|
127
|
+
#user-info
|
128
|
+
%ul
|
129
|
+
- if user_signed_in?
|
130
|
+
%li
|
131
|
+
Hello, Dear
|
132
|
+
= succeed "!" do
|
133
|
+
%strong= current_user.username
|
134
|
+
Maybe, you want to #{link_to 'logout', main_app.destroy_user_session_path, :method => :delete}?
|
135
|
+
- else
|
136
|
+
%li
|
137
|
+
Hello Guest, maybe you want to #{link_to 'Join us', main_app.new_user_registration_path} or #{link_to 'login', main_app.new_user_session_path}?
|
138
|
+
CONTENT
|
139
|
+
end
|
128
140
|
end
|
129
141
|
|
130
|
-
def
|
142
|
+
def create_userbar_with_slim
|
131
143
|
gsub_file 'app/views/layouts/application.html.slim', ' #body' do
|
132
144
|
<<-'CONTENT'.gsub(/^ {6}/, '')
|
133
|
-
|
134
|
-
ul
|
135
|
-
- if user_signed_in?
|
136
|
-
li
|
137
|
-
' Hello, Dear
|
138
|
-
strong= current_user.username
|
139
|
-
' ! Maybe, you want to #{link_to 'logout', destroy_user_session_path}?
|
140
|
-
- else
|
141
|
-
li
|
142
|
-
| Hello Guest, maybe you want to #{link_to 'Join us', new_user_registration_path} or #{link_to 'login', new_user_session_path}?
|
145
|
+
= render 'shared/userbar'
|
143
146
|
#body
|
144
147
|
CONTENT
|
145
148
|
end
|
149
|
+
|
150
|
+
create_file 'app/views/shared/_userbar.html.slim' do
|
151
|
+
<<-'CONTENT'.gsub(/^ {12}/, '')
|
152
|
+
#user-info
|
153
|
+
ul
|
154
|
+
- if user_signed_in?
|
155
|
+
li
|
156
|
+
' Hello, Dear
|
157
|
+
strong= current_user.username
|
158
|
+
' ! Maybe, you want to #{link_to 'logout', main_app.destroy_user_session_path, :method => :delete}?
|
159
|
+
- else
|
160
|
+
li
|
161
|
+
| Hello Guest, maybe you want to #{link_to 'Join us', main_app.new_user_registration_path} or #{link_to 'login', main_app.new_user_session_path}?
|
162
|
+
CONTENT
|
163
|
+
end
|
146
164
|
end
|
147
165
|
|
148
166
|
def process_views_with_haml
|
@@ -5,9 +5,8 @@ module Playmo
|
|
5
5
|
|
6
6
|
def setup
|
7
7
|
silently do
|
8
|
-
remove_file 'app/views/layouts/application.html.erb'
|
9
|
-
|
10
8
|
Event.events.listen(:after_install) do |event_data|
|
9
|
+
remove_file 'app/views/layouts/application.html.erb'
|
11
10
|
generate :layout, "application #{retrieve(:markup)}"
|
12
11
|
end
|
13
12
|
end
|
@@ -1,12 +1,28 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
1
3
|
module ApplicationHelper
|
2
4
|
attr_accessor :page_title
|
3
5
|
|
6
|
+
def link_to_delete(link, title, heading_tag = :h3)
|
7
|
+
content_for :sidebar do
|
8
|
+
content_tag :div, :class => 'danger-zone' do
|
9
|
+
result = content_tag heading_tag, raw(title)
|
10
|
+
link_text = t('helpers.application.link_to_delete.link_text')
|
11
|
+
confirmation = t('helpers.application.link_to_delete.confirmation')
|
12
|
+
|
13
|
+
result << link_to(link_text, link, confirm: confirmation, method: :delete)
|
14
|
+
result
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
4
19
|
def flash_messages
|
5
20
|
return unless flash.any?
|
6
21
|
|
7
22
|
items = []
|
8
23
|
flash.each do |name, msg|
|
9
|
-
|
24
|
+
msg << content_tag(:a, raw('×'), :href => "#")
|
25
|
+
items << content_tag(:li, raw(msg), :id => "flash-#{name}")
|
10
26
|
end
|
11
27
|
|
12
28
|
content_tag :div, :id => 'flash-messages' do
|
@@ -0,0 +1,19 @@
|
|
1
|
+
(function(){
|
2
|
+
var $ = document.id;
|
3
|
+
|
4
|
+
document.addEvent('domready', function() {
|
5
|
+
var messages = $('flash-messages');
|
6
|
+
|
7
|
+
if (messages) {
|
8
|
+
var close = messages.getElement('a');
|
9
|
+
var hideMessages = function() { messages.slide('out'); };
|
10
|
+
|
11
|
+
close.addEvent('click', function(e) {
|
12
|
+
e.stop();
|
13
|
+
hideMessages();
|
14
|
+
});
|
15
|
+
|
16
|
+
hideMessages.delay(10000);
|
17
|
+
}
|
18
|
+
})
|
19
|
+
})();
|
@@ -1,29 +1,27 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
* the top of the compiled file, but it's generally better to create a new file per style scope.
|
5
|
-
*/
|
1
|
+
// This is a manifest file that'll automatically include all the stylesheets available in this directory
|
2
|
+
// and any sub-directories. You're free to add application-wide styles to this file and they'll appear at
|
3
|
+
// the top of the compiled file, but it's generally better to create a new file per style scope.
|
6
4
|
|
7
|
-
|
5
|
+
// Here's where we define some default constants
|
8
6
|
@import "partials/constants";
|
9
7
|
|
10
|
-
|
8
|
+
// Then we'll import the compass extension
|
11
9
|
@import "partials/html5-boilerplate";
|
12
10
|
|
13
|
-
|
14
|
-
(except media) by uncommeting this line
|
11
|
+
// Now, you can simply include everything
|
12
|
+
// (except media) by uncommeting this line
|
15
13
|
@include html5-boilerplate;
|
16
14
|
|
17
|
-
|
18
|
-
you want more control over individual mixins
|
15
|
+
// Or, you can import the "overrides" partial if
|
16
|
+
// you want more control over individual mixins
|
19
17
|
@import "partials/overrides";
|
20
18
|
|
21
|
-
|
22
|
-
and add more as needed (i.e. forms, tables, nav)
|
19
|
+
// Finally, put your own styles in these partials
|
20
|
+
// and add more as needed (i.e. forms, tables, nav)
|
23
21
|
@import "partials/layout";
|
24
22
|
@import "partials/forms";
|
25
23
|
|
26
24
|
@import "partials/simple_form";
|
27
25
|
|
28
|
-
|
26
|
+
// Media should come last
|
29
27
|
@import "media";
|
@@ -15,7 +15,7 @@ form {
|
|
15
15
|
margin: 0 0 7px 0;
|
16
16
|
}
|
17
17
|
|
18
|
-
|
18
|
+
// Fields
|
19
19
|
input[type=text],
|
20
20
|
input[type=password],
|
21
21
|
input[type=search],
|
@@ -33,7 +33,7 @@ form {
|
|
33
33
|
background: #fff asset-url("input-bg.gif", image);
|
34
34
|
@include border-radius(4px);
|
35
35
|
@include single-box-shadow(#bbb, 1px, 1px, 3px, 0px, true);
|
36
|
-
|
36
|
+
@include box-sizing(border-box);
|
37
37
|
}
|
38
38
|
|
39
39
|
input[type=text]:focus,
|
@@ -57,7 +57,7 @@ form {
|
|
57
57
|
resize: vertical;
|
58
58
|
}
|
59
59
|
|
60
|
-
|
60
|
+
// Buttons
|
61
61
|
input[type=submit],
|
62
62
|
input[type=button] {
|
63
63
|
font-size: 140%;
|
@@ -1,9 +1,8 @@
|
|
1
|
-
|
1
|
+
//
|
2
|
+
// Styles for pages layout, custom CSS styles for layout containers positioning.
|
3
|
+
// Make the separation for home, domestic and other pages by define id for the 'body' tag.
|
4
|
+
//
|
2
5
|
|
3
|
-
Styles for pages layout, custom CSS styles for layout containers positioning.
|
4
|
-
Make the separation for home, domestic and other pages by define id for the 'body' tag.
|
5
|
-
|
6
|
-
===============================================================================================*/
|
7
6
|
@import "compass/css3/border-radius";
|
8
7
|
@import "compass/css3/box-shadow";
|
9
8
|
@import "compass/css3/text-shadow";
|
@@ -23,16 +22,8 @@
|
|
23
22
|
border: 0;
|
24
23
|
}
|
25
24
|
|
26
|
-
@font-face {
|
27
|
-
font-family: 'Ubuntu';
|
28
|
-
font-style: normal;
|
29
|
-
font-weight: 500;
|
30
|
-
src: local('Ubuntu Medium'), local('Ubuntu-Medium'), url('http://themes.googleusercontent.com/font?kit=wPL39jTIyO02mfXIlk2kcZONKhqmvY42kW5NWmrYr04') format('woff');
|
31
|
-
}
|
32
|
-
|
33
25
|
#{headings(all)} {
|
34
26
|
font: $base-font-family;
|
35
|
-
font-family: 'Ubuntu';
|
36
27
|
}
|
37
28
|
|
38
29
|
body {
|
@@ -40,19 +31,19 @@ body {
|
|
40
31
|
margin: 0;
|
41
32
|
background: #222 asset-url("bg.jpg", image);
|
42
33
|
|
43
|
-
#
|
34
|
+
#flash-messages {
|
44
35
|
left: 0;
|
45
36
|
position: fixed;
|
46
37
|
top: 0;
|
47
38
|
width: 100%;
|
48
39
|
z-index: 65000;
|
49
40
|
|
50
|
-
|
41
|
+
ul {
|
51
42
|
@include border-radius(0 0 7px 7px);
|
52
|
-
@include box-shadow(#
|
43
|
+
@include single-box-shadow(#555, 1px, 1px, 10px, 1px);
|
53
44
|
@include opacity(0.9);
|
54
|
-
background:
|
55
|
-
color: #
|
45
|
+
background: #555;
|
46
|
+
color: #fff;
|
56
47
|
font-size: 120%;
|
57
48
|
margin: 0 auto;
|
58
49
|
padding: 5px;
|
@@ -61,23 +52,23 @@ body {
|
|
61
52
|
width: 700px;
|
62
53
|
}
|
63
54
|
|
64
|
-
|
55
|
+
li {
|
65
56
|
margin: 18px 50px;
|
66
|
-
}
|
67
57
|
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
}
|
58
|
+
a {
|
59
|
+
color: #fff;
|
60
|
+
display: inline-block;
|
61
|
+
font-size: 200%;
|
62
|
+
left: 670px;
|
63
|
+
padding: 5px;
|
64
|
+
position: absolute;
|
65
|
+
text-decoration: none;
|
66
|
+
top: 17px;
|
78
67
|
|
79
|
-
|
80
|
-
|
68
|
+
&:hover {
|
69
|
+
color: maroon;
|
70
|
+
}
|
71
|
+
}
|
81
72
|
}
|
82
73
|
}
|
83
74
|
|
@@ -87,7 +78,7 @@ body {
|
|
87
78
|
padding: 0 0 30px 0;
|
88
79
|
background: #f4f4f4;
|
89
80
|
@include border-radius(12px);
|
90
|
-
@include box-shadow(#
|
81
|
+
@include single-box-shadow(#222, 0px,0px, 35px, 0px);
|
91
82
|
@include background-image(linear-gradient(#e9e9e9, #fff 40%, #fff));
|
92
83
|
border: 1px solid #fff;
|
93
84
|
}
|
@@ -142,7 +133,7 @@ body {
|
|
142
133
|
}
|
143
134
|
|
144
135
|
a:hover {
|
145
|
-
background: #222 url(
|
136
|
+
background: #222 asset-url("bg.jpg", image);
|
146
137
|
}
|
147
138
|
|
148
139
|
a.current { font-weight: bold; }
|
@@ -173,7 +164,7 @@ body {
|
|
173
164
|
float: left;
|
174
165
|
margin: 0 30px 0 0;
|
175
166
|
|
176
|
-
|
167
|
+
// Pagination styles
|
177
168
|
nav.pagination {
|
178
169
|
margin: 0 0 5px 0;
|
179
170
|
|
@@ -192,7 +183,7 @@ body {
|
|
192
183
|
margin: 0 5px 0 0;
|
193
184
|
@include border-radius(4px);
|
194
185
|
@include background-image(linear-gradient(#fff, #fff 40%, #e9e9e9));
|
195
|
-
@include box-shadow(#aaa, 0px, 0px, 2px, 0px);
|
186
|
+
@include single-box-shadow(#aaa, 0px, 0px, 2px, 0px);
|
196
187
|
@include single-text-shadow(#fff, 1px, 1px, 0);
|
197
188
|
}
|
198
189
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
@import "compass/typography/links/link-colors";
|
2
2
|
|
3
|
-
|
3
|
+
// 1. General Elements =======================================================
|
4
4
|
body {
|
5
5
|
background-color: #fff;
|
6
6
|
font: .75em/18px $base-font-family;
|
@@ -8,24 +8,24 @@ body {
|
|
8
8
|
|
9
9
|
a { @include link-colors($link-color, $link-hover-color, $link-active-color, $link-color, $link-hover-color); }
|
10
10
|
|
11
|
-
|
11
|
+
// 2. Headings
|
12
12
|
#{headings(all)} {
|
13
13
|
margin: 0 0 10px 0;
|
14
14
|
padding: 0;
|
15
15
|
line-height: 1.2em;
|
16
16
|
}
|
17
17
|
|
18
|
-
h1 { font-size: 2em; }
|
19
|
-
h2 { font-size: 1.7em; }
|
20
|
-
h3 { font-size: 1.5em; }
|
21
|
-
h4 { font-size: 1.1em; }
|
22
|
-
h5 { font-size: 1em; }
|
23
|
-
h6 { font-size: 0.8em; }
|
18
|
+
h1 { font-size: 2em; } // 100%
|
19
|
+
h2 { font-size: 1.7em; } // -0.3
|
20
|
+
h3 { font-size: 1.5em; } // -0.6
|
21
|
+
h4 { font-size: 1.1em; } // -0.9
|
22
|
+
h5 { font-size: 1em; } // -1
|
23
|
+
h6 { font-size: 0.8em; } // -1.2
|
24
24
|
|
25
|
-
|
25
|
+
// 3. Lists
|
26
26
|
ul, ol, dl { list-style: none; margin: 0; padding: 0; }
|
27
27
|
|
28
|
-
|
28
|
+
// 4. Tables
|
29
29
|
table {
|
30
30
|
border-collapse: collapse;
|
31
31
|
border-spacing: 0;
|
@@ -39,7 +39,7 @@ table {
|
|
39
39
|
}
|
40
40
|
|
41
41
|
|
42
|
-
|
42
|
+
// 5. Article markup
|
43
43
|
strong { font-weight: bold; }
|
44
44
|
em { font-style: italic; }
|
45
45
|
sup, sub { vertical-align: baseline; position: relative; }
|
@@ -71,11 +71,21 @@ pre, code, kbd, samp, var {
|
|
71
71
|
|
72
72
|
pre { margin: 0 0 18px 0; padding: 0; }
|
73
73
|
|
74
|
-
|
74
|
+
article, .content {
|
75
|
+
ul, ol {
|
76
|
+
padding-bottom: 1.5em;
|
77
|
+
padding-left: 1.5em;
|
78
|
+
list-style: disc;
|
79
|
+
}
|
80
|
+
|
81
|
+
ol { list-style: decimal; }
|
82
|
+
}
|
83
|
+
|
84
|
+
// 6. Images
|
75
85
|
a img { border: 0; }
|
76
86
|
img.f-left { float: left; margin: 0 18px 0 0; clear: left; }
|
77
87
|
img.f-right { float: right; margin: 0 0 0 18px; }
|
78
88
|
|
79
|
-
|
89
|
+
// 7. Other styles
|
80
90
|
::-moz-selection{ background: #555; color:#fff; }
|
81
91
|
::selection { background: #555; color:#fff; }
|
@@ -17,19 +17,19 @@
|
|
17
17
|
|
18
18
|
<div id="container">
|
19
19
|
<header>
|
20
|
-
|
20
|
+
<h1><%%= link_to_unless_current 'Welcome aboard!', root_path %></h1>
|
21
21
|
</header>
|
22
22
|
|
23
23
|
<div id="main">
|
24
24
|
<%%= flash_messages %>
|
25
25
|
|
26
|
-
|
27
|
-
|
28
|
-
|
26
|
+
<article class="article">
|
27
|
+
<%%= yield %>
|
28
|
+
</article>
|
29
29
|
|
30
|
-
|
31
|
-
|
32
|
-
|
30
|
+
<aside>
|
31
|
+
<%%= content_for?(:sidebar) ? yield(:sidebar) : render("shared/sidebar") %>
|
32
|
+
</aside>
|
33
33
|
|
34
34
|
</div>
|
35
35
|
|
data/playmo.gemspec
CHANGED
metadata
CHANGED
@@ -1,79 +1,108 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: playmo
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 7
|
5
5
|
prerelease:
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 0
|
9
|
+
- 12
|
10
|
+
version: 0.0.12
|
6
11
|
platform: ruby
|
7
|
-
authors:
|
12
|
+
authors:
|
8
13
|
- Andrew Kozloff
|
9
14
|
autorequire:
|
10
15
|
bindir: bin
|
11
16
|
cert_chain: []
|
12
|
-
|
13
|
-
|
14
|
-
|
17
|
+
|
18
|
+
date: 2011-12-23 00:00:00 Z
|
19
|
+
dependencies:
|
20
|
+
- !ruby/object:Gem::Dependency
|
15
21
|
name: rails
|
16
|
-
|
22
|
+
prerelease: false
|
23
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
17
24
|
none: false
|
18
|
-
requirements:
|
25
|
+
requirements:
|
19
26
|
- - ~>
|
20
|
-
- !ruby/object:Gem::Version
|
21
|
-
|
27
|
+
- !ruby/object:Gem::Version
|
28
|
+
hash: 5
|
29
|
+
segments:
|
30
|
+
- 3
|
31
|
+
- 1
|
32
|
+
version: "3.1"
|
22
33
|
type: :runtime
|
23
|
-
|
24
|
-
|
25
|
-
- !ruby/object:Gem::Dependency
|
34
|
+
version_requirements: *id001
|
35
|
+
- !ruby/object:Gem::Dependency
|
26
36
|
name: ruby_events
|
27
|
-
|
37
|
+
prerelease: false
|
38
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
28
39
|
none: false
|
29
|
-
requirements:
|
30
|
-
- -
|
31
|
-
- !ruby/object:Gem::Version
|
32
|
-
|
40
|
+
requirements:
|
41
|
+
- - ">="
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
hash: 3
|
44
|
+
segments:
|
45
|
+
- 0
|
46
|
+
version: "0"
|
33
47
|
type: :runtime
|
34
|
-
|
35
|
-
|
36
|
-
- !ruby/object:Gem::Dependency
|
48
|
+
version_requirements: *id002
|
49
|
+
- !ruby/object:Gem::Dependency
|
37
50
|
name: haml2slim
|
38
|
-
|
51
|
+
prerelease: false
|
52
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
39
53
|
none: false
|
40
|
-
requirements:
|
41
|
-
- - =
|
42
|
-
- !ruby/object:Gem::Version
|
54
|
+
requirements:
|
55
|
+
- - "="
|
56
|
+
- !ruby/object:Gem::Version
|
57
|
+
hash: 3
|
58
|
+
segments:
|
59
|
+
- 0
|
60
|
+
- 4
|
61
|
+
- 6
|
43
62
|
version: 0.4.6
|
44
63
|
type: :runtime
|
45
|
-
|
46
|
-
|
47
|
-
- !ruby/object:Gem::Dependency
|
64
|
+
version_requirements: *id003
|
65
|
+
- !ruby/object:Gem::Dependency
|
48
66
|
name: haml
|
49
|
-
|
67
|
+
prerelease: false
|
68
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
50
69
|
none: false
|
51
|
-
requirements:
|
52
|
-
- - =
|
53
|
-
- !ruby/object:Gem::Version
|
70
|
+
requirements:
|
71
|
+
- - "="
|
72
|
+
- !ruby/object:Gem::Version
|
73
|
+
hash: 5
|
74
|
+
segments:
|
75
|
+
- 3
|
76
|
+
- 1
|
77
|
+
- 3
|
54
78
|
version: 3.1.3
|
55
79
|
type: :runtime
|
56
|
-
|
57
|
-
|
58
|
-
- !ruby/object:Gem::Dependency
|
80
|
+
version_requirements: *id004
|
81
|
+
- !ruby/object:Gem::Dependency
|
59
82
|
name: rspec-rails
|
60
|
-
|
83
|
+
prerelease: false
|
84
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
61
85
|
none: false
|
62
|
-
requirements:
|
86
|
+
requirements:
|
63
87
|
- - ~>
|
64
|
-
- !ruby/object:Gem::Version
|
65
|
-
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
hash: 9
|
90
|
+
segments:
|
91
|
+
- 2
|
92
|
+
- 5
|
93
|
+
version: "2.5"
|
66
94
|
type: :development
|
67
|
-
|
68
|
-
version_requirements: *14604100
|
95
|
+
version_requirements: *id005
|
69
96
|
description:
|
70
|
-
email:
|
97
|
+
email:
|
71
98
|
- andrew@tanraya.com
|
72
|
-
executables:
|
99
|
+
executables:
|
73
100
|
- playmo
|
74
101
|
extensions: []
|
102
|
+
|
75
103
|
extra_rdoc_files: []
|
76
|
-
|
104
|
+
|
105
|
+
files:
|
77
106
|
- .gitignore
|
78
107
|
- .rspec
|
79
108
|
- Gemfile
|
@@ -120,6 +149,7 @@ files:
|
|
120
149
|
- lib/playmo/recipes/templates/application_controller_recipe/internal_error.html.erb
|
121
150
|
- lib/playmo/recipes/templates/application_controller_recipe/not_found.html.erb
|
122
151
|
- lib/playmo/recipes/templates/application_helper_recipe/application_helper.rb
|
152
|
+
- lib/playmo/recipes/templates/application_helper_recipe/flash_messages.js
|
123
153
|
- lib/playmo/recipes/templates/assets_recipe/images/bg.jpg
|
124
154
|
- lib/playmo/recipes/templates/assets_recipe/images/input-bg.gif
|
125
155
|
- lib/playmo/recipes/templates/assets_recipe/stylesheets/application.css.scss
|
@@ -150,28 +180,36 @@ files:
|
|
150
180
|
- spec/support/.gitkeep
|
151
181
|
homepage: https://github.com/tanraya/playmo
|
152
182
|
licenses: []
|
183
|
+
|
153
184
|
post_install_message:
|
154
185
|
rdoc_options: []
|
155
|
-
|
186
|
+
|
187
|
+
require_paths:
|
156
188
|
- lib
|
157
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
189
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
158
190
|
none: false
|
159
|
-
requirements:
|
160
|
-
- -
|
161
|
-
- !ruby/object:Gem::Version
|
162
|
-
|
163
|
-
|
191
|
+
requirements:
|
192
|
+
- - ">="
|
193
|
+
- !ruby/object:Gem::Version
|
194
|
+
hash: 3
|
195
|
+
segments:
|
196
|
+
- 0
|
197
|
+
version: "0"
|
198
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
164
199
|
none: false
|
165
|
-
requirements:
|
166
|
-
- -
|
167
|
-
- !ruby/object:Gem::Version
|
168
|
-
|
200
|
+
requirements:
|
201
|
+
- - ">="
|
202
|
+
- !ruby/object:Gem::Version
|
203
|
+
hash: 3
|
204
|
+
segments:
|
205
|
+
- 0
|
206
|
+
version: "0"
|
169
207
|
requirements: []
|
208
|
+
|
170
209
|
rubyforge_project: playmo
|
171
|
-
rubygems_version: 1.
|
210
|
+
rubygems_version: 1.7.2
|
172
211
|
signing_key:
|
173
212
|
specification_version: 3
|
174
|
-
summary: Special kit that allows you create html5-ready Rails 3 apps quick with pre-included
|
175
|
-
few useful libs in your app
|
213
|
+
summary: Special kit that allows you create html5-ready Rails 3 apps quick with pre-included few useful libs in your app
|
176
214
|
test_files: []
|
177
|
-
|
215
|
+
|