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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6a641b08c309d6355240a0cb59dec84b96552572
4
- data.tar.gz: 96c0a3a67b8df216c83c695bddc5111f0239ece1
3
+ metadata.gz: e9077f254c8e4707711b4b8a4bb521f0824ba95a
4
+ data.tar.gz: f858ff8a950238aa2f6f1cf050d5a78fcaab46ea
5
5
  SHA512:
6
- metadata.gz: 7eacaae333704ced506a7d920ac533c818460237cbf60f06698bf993e142c5d59e0d85d7478da2e470e2ceee7ca7b20a3ac3a2039865530cbcfca72a32dfdd9d
7
- data.tar.gz: c5de32f69349861b4672df836ecbe24179f33c1c1cf55d968fac1171c3c6ff4728899c23b7ee372d73e4b2738038299e1a3412c081ac61831b713ee7575847cf
6
+ metadata.gz: d671387317ffd0777cc42c41e17b86dda448e4651b90e6a10aab842073aab993a7864125856f87fe7672ddf5df7fe32a81dc7e1a118d2c4827661d60d60d0895
7
+ data.tar.gz: b187eb595c18f78588d03c45b0c2dbc308493e18c0773992713e216643d4009d639111e73ff2637f8b0bf5a3f5b4b31bdc304484ecbc592c94fedd68d7ec89dc
@@ -1,6 +1,8 @@
1
1
  <%= content_for :body do %>
2
- <h1><%= @error.code %>: <%= @error.title %>!</h1>
3
- <p><%= @error.message %></p>
4
- <p>Requested URL: <%= @error.request_url %></p>
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}.css.scss", "// Place #{module_name} admin styles here\n\n"
16
- create_file "app/assets/stylesheets/#{module_name_formatted}.css.scss", "// Place #{module_name} styles here\n\n"
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.css.scss', 'app/assets/stylesheets/admin/application.css.scss'
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.css.scss', 'app/assets/stylesheets/application.css.scss'
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
 
@@ -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' %>
@@ -1,5 +1,5 @@
1
1
  module Spud
2
2
  module Core
3
- VERSION = "1.3.1"
3
+ VERSION = "1.3.2"
4
4
  end
5
5
  end
@@ -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.1
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-02-23 00:00:00.000000000 Z
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.css.scss
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.2.1
492
+ rubygems_version: 2.4.6
492
493
  signing_key:
493
494
  specification_version: 4
494
495
  summary: Twice Baked Core Engine