tb_core 1.3.1 → 1.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/views/layouts/error_page.html.erb +5 -3
- data/lib/generators/spud/module_generator.rb +2 -2
- data/lib/generators/spud/setup_generator.rb +4 -2
- data/lib/generators/spud/templates/assets/{admin.css.scss → admin.scss} +0 -0
- data/lib/generators/spud/templates/assets/{application.css.scss → application.scss} +0 -0
- data/lib/generators/spud/templates/views/layouts/error_page.html.erb +8 -0
- data/lib/spud_core/version.rb +1 -1
- data/lib/tb_core/form_builder.rb +12 -0
- metadata +6 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e9077f254c8e4707711b4b8a4bb521f0824ba95a
|
4
|
+
data.tar.gz: f858ff8a950238aa2f6f1cf050d5a78fcaab46ea
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d671387317ffd0777cc42c41e17b86dda448e4651b90e6a10aab842073aab993a7864125856f87fe7672ddf5df7fe32a81dc7e1a118d2c4827661d60d60d0895
|
7
|
+
data.tar.gz: b187eb595c18f78588d03c45b0c2dbc308493e18c0773992713e216643d4009d639111e73ff2637f8b0bf5a3f5b4b31bdc304484ecbc592c94fedd68d7ec89dc
|
@@ -1,6 +1,8 @@
|
|
1
1
|
<%= content_for :body do %>
|
2
|
-
<
|
3
|
-
|
4
|
-
|
2
|
+
<div class="error-page">
|
3
|
+
<h1><%= @error.code %>: <%= @error.title %>!</h1>
|
4
|
+
<p><%= @error.message %></p>
|
5
|
+
<p>Requested URL: <%= @error.request_url %></p>
|
6
|
+
</div>
|
5
7
|
<% end %>
|
6
8
|
<%= render :template => 'layouts/application' %>
|
@@ -12,8 +12,8 @@ class Spud::ModuleGenerator < ::Rails::Generators::Base
|
|
12
12
|
template "controller.rb.erb", "app/controllers/#{module_name_formatted}_controller.rb"
|
13
13
|
template "assets/module.js.erb", "app/assets/javascripts/#{module_name_formatted}.js"
|
14
14
|
template "assets/admin/module.js.erb", "app/assets/javascripts/admin/#{module_name_formatted}.js"
|
15
|
-
create_file "app/assets/stylesheets/admin/#{module_name_formatted}.
|
16
|
-
create_file "app/assets/stylesheets/#{module_name_formatted}.
|
15
|
+
create_file "app/assets/stylesheets/admin/#{module_name_formatted}.scss", "// Place #{module_name} admin styles here\n\n"
|
16
|
+
create_file "app/assets/stylesheets/#{module_name_formatted}.scss", "// Place #{module_name} styles here\n\n"
|
17
17
|
template "views/admin/index.html.erb", "app/views/admin/#{module_name_formatted}/index.html.erb"
|
18
18
|
template "views/admin/show.html.erb", "app/views/admin/#{module_name_formatted}/show.html.erb"
|
19
19
|
template "views/admin/new.html.erb", "app/views/admin/#{module_name_formatted}/new.html.erb"
|
@@ -8,11 +8,13 @@ class Spud::SetupGenerator < ::Rails::Generators::Base
|
|
8
8
|
end
|
9
9
|
|
10
10
|
template "views/layouts/application.html.erb", "app/views/layouts/application.html.erb"
|
11
|
+
template "views/layouts/error_page.html.erb", "app/views/layouts/error_page.html.erb"
|
12
|
+
|
11
13
|
template "application_controller.rb", "app/controllers/application_controller.rb"
|
12
|
-
template 'assets/admin.
|
14
|
+
template 'assets/admin.scss', 'app/assets/stylesheets/admin/application.scss'
|
13
15
|
|
14
16
|
remove_file 'app/assets/stylesheets/application.css'
|
15
|
-
template 'assets/application.
|
17
|
+
template 'assets/application.scss', 'app/assets/stylesheets/application.scss'
|
16
18
|
template 'assets/application.js', 'app/assets/javascripts/application.js'
|
17
19
|
template 'assets/admin/application.js', 'app/assets/javascripts/admin/application.js'
|
18
20
|
|
File without changes
|
File without changes
|
@@ -0,0 +1,8 @@
|
|
1
|
+
<%%= content_for :body do %>
|
2
|
+
<div class="error-page">
|
3
|
+
<h1><%%= @error.code %>: <%%= @error.title %>!</h1>
|
4
|
+
<p><%%= @error.message %></p>
|
5
|
+
<p>Requested URL: <%%= @error.request_url %></p>
|
6
|
+
</div>
|
7
|
+
<%% end %>
|
8
|
+
<%%= render :template => 'layouts/application' %>
|
data/lib/spud_core/version.rb
CHANGED
data/lib/tb_core/form_builder.rb
CHANGED
@@ -152,6 +152,18 @@ class TbCore::FormBuilder < ActionView::Helpers::FormBuilder
|
|
152
152
|
tb_input_field(attribute, :text_field, options)
|
153
153
|
end
|
154
154
|
|
155
|
+
# Builds a email field group
|
156
|
+
#
|
157
|
+
def tb_email_field(attribute, options={})
|
158
|
+
tb_input_field(attribute, :email_field, options)
|
159
|
+
end
|
160
|
+
|
161
|
+
# Builds a telephone field group
|
162
|
+
#
|
163
|
+
def tb_phone_field(attribute, options={})
|
164
|
+
tb_input_field(attribute, :phone_field, options)
|
165
|
+
end
|
166
|
+
|
155
167
|
# Builds a text area group
|
156
168
|
#
|
157
169
|
def tb_text_area(attribute, options={})
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tb_core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Greg Woods
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-03-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -383,11 +383,11 @@ files:
|
|
383
383
|
- lib/generators/spud/setup_generator.rb
|
384
384
|
- lib/generators/spud/templates/admin_controller.rb.erb
|
385
385
|
- lib/generators/spud/templates/application_controller.rb
|
386
|
-
- lib/generators/spud/templates/assets/admin.
|
386
|
+
- lib/generators/spud/templates/assets/admin.scss
|
387
387
|
- lib/generators/spud/templates/assets/admin/application.js
|
388
388
|
- lib/generators/spud/templates/assets/admin/module.js.erb
|
389
|
-
- lib/generators/spud/templates/assets/application.css.scss
|
390
389
|
- lib/generators/spud/templates/assets/application.js
|
390
|
+
- lib/generators/spud/templates/assets/application.scss
|
391
391
|
- lib/generators/spud/templates/assets/module.js.erb
|
392
392
|
- lib/generators/spud/templates/controller.rb.erb
|
393
393
|
- lib/generators/spud/templates/views/admin/_form.html.erb
|
@@ -398,6 +398,7 @@ files:
|
|
398
398
|
- lib/generators/spud/templates/views/frontend/index.html.erb
|
399
399
|
- lib/generators/spud/templates/views/frontend/show.html.erb
|
400
400
|
- lib/generators/spud/templates/views/layouts/application.html.erb
|
401
|
+
- lib/generators/spud/templates/views/layouts/error_page.html.erb
|
401
402
|
- lib/responds_to_parent.rb
|
402
403
|
- lib/spud_core/belongs_to_app.rb
|
403
404
|
- lib/spud_core/catch_all_route.rb
|
@@ -488,7 +489,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
488
489
|
version: '0'
|
489
490
|
requirements: []
|
490
491
|
rubyforge_project:
|
491
|
-
rubygems_version: 2.
|
492
|
+
rubygems_version: 2.4.6
|
492
493
|
signing_key:
|
493
494
|
specification_version: 4
|
494
495
|
summary: Twice Baked Core Engine
|