bootstrap-view_helpers 0.0.2 → 0.0.3

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 (43) hide show
  1. checksums.yaml +4 -4
  2. data/lib/bootstrap/view_helpers/components/modal.rb +2 -2
  3. data/lib/bootstrap/view_helpers/components/modal/header.rb +1 -1
  4. data/lib/bootstrap/view_helpers/version.rb +1 -1
  5. data/test/bootstrap_view_helpers_test.rb +7 -0
  6. data/test/dummy/README.rdoc +28 -0
  7. data/test/dummy/Rakefile +3 -0
  8. data/test/dummy/app/assets/javascripts/application.js +13 -0
  9. data/test/dummy/app/assets/stylesheets/application.css +15 -0
  10. data/test/dummy/app/controllers/application_controller.rb +5 -0
  11. data/test/dummy/app/helpers/application_helper.rb +2 -0
  12. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  13. data/test/dummy/bin/bundle +3 -0
  14. data/test/dummy/bin/rails +4 -0
  15. data/test/dummy/bin/rake +4 -0
  16. data/test/dummy/bin/setup +29 -0
  17. data/test/dummy/config.ru +4 -0
  18. data/test/dummy/config/application.rb +12 -0
  19. data/test/dummy/config/boot.rb +5 -0
  20. data/test/dummy/config/database.yml +25 -0
  21. data/test/dummy/config/environment.rb +5 -0
  22. data/test/dummy/config/environments/development.rb +12 -0
  23. data/test/dummy/config/environments/production.rb +15 -0
  24. data/test/dummy/config/environments/test.rb +13 -0
  25. data/test/dummy/config/initializers/assets.rb +1 -0
  26. data/test/dummy/config/initializers/backtrace_silencers.rb +0 -0
  27. data/test/dummy/config/initializers/cookies_serializer.rb +3 -0
  28. data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  29. data/test/dummy/config/initializers/inflections.rb +16 -0
  30. data/test/dummy/config/initializers/mime_types.rb +4 -0
  31. data/test/dummy/config/initializers/session_store.rb +3 -0
  32. data/test/dummy/config/initializers/to_time_preserves_timezone.rb +10 -0
  33. data/test/dummy/config/initializers/wrap_parameters.rb +3 -0
  34. data/test/dummy/config/locales/en.yml +23 -0
  35. data/test/dummy/config/routes.rb +3 -0
  36. data/test/dummy/config/secrets.yml +22 -0
  37. data/test/dummy/public/404.html +67 -0
  38. data/test/dummy/public/422.html +67 -0
  39. data/test/dummy/public/500.html +66 -0
  40. data/test/dummy/public/favicon.ico +0 -0
  41. data/test/integration/navigation_test.rb +7 -0
  42. data/test/test_helper.rb +28 -0
  43. metadata +80 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1c253237b727ef60ed1c592ae2244045ea115fc6
4
- data.tar.gz: b09831d5980813e6ad41bbbf368a760b116f5242
3
+ metadata.gz: 3475a09f0c138eb321055212041d73c3b6e3d1f9
4
+ data.tar.gz: 8a3a0a7682aac0d64c0d29c2629caccad0feea88
5
5
  SHA512:
6
- metadata.gz: d703e3ad58db741cd6925bb66b483ca4941a069242aa2bc70aea152ec544ff6bb3ec423a3412d71a0bd7988167b88c503e8bb33fbd154ff2652078bde0c5ef3e
7
- data.tar.gz: 3b93b3acea48e1fce4da8ac8fb1a33957826aa9de6f3a845d1e720bcc6cbb2296d6b080a9b9de9258621fff7f35984a7d797d86b43e29453b1aa4ea3bbe006e5
6
+ metadata.gz: 1ed6d3915f0c667dd260ab10abbfe3b85f29358e08e170c8867399527b65fdda850223219f8a94ffd5d87bd022d75d4343f102717bd54b3297ad9ce49066b709
7
+ data.tar.gz: 3b796fafcb9b60905540dd97febaafa304fc6f119fb899caa1426a6e7e29b2f447ebc1b0bb81d0000ba69dd78842318455f46b2e826783fb7c3fb4d5fcc14164
@@ -18,7 +18,7 @@ module Bootstrap
18
18
 
19
19
  def header(title_or_options = nil, header_options = {}, &block)
20
20
  header_options = title_or_options || {} if block.present?
21
- title_or_options = nil if block.blank?
21
+ title_or_options = nil if block.present?
22
22
  header_options[:title] ||= title_or_options || title_text
23
23
  header_options[:dismiss] ||= dismiss
24
24
  Header.new(view, header_options, &block).to_html
@@ -50,6 +50,7 @@ module Bootstrap
50
50
 
51
51
  def dialog_options
52
52
  class_name = "modal-dialog#{' modal-dialog-centered' if centered}"
53
+ class_name << " modal-#{size}" if size.present?
53
54
  { class: class_name, role: 'document' }
54
55
  end
55
56
 
@@ -72,7 +73,6 @@ module Bootstrap
72
73
 
73
74
  def inject_class_name_to_options
74
75
  options[:class] = "#{options[:class]} modal#{fade}#{show}"
75
- options[:class] << " modal-#{size}" if size.present?
76
76
  options[:class].strip!
77
77
  end
78
78
 
@@ -4,7 +4,7 @@ module Bootstrap
4
4
  class Modal < Component
5
5
  class Header < Component
6
6
  def to_html
7
- content_tag(:div, class: 'modal-header') do
7
+ content_tag(:div, class: options[:class]) do
8
8
  concat(block.call(self)) if block.present?
9
9
  concat title if block.blank?
10
10
  concat close_button if dismiss
@@ -1,5 +1,5 @@
1
1
  module Bootstrap
2
2
  module ViewHelpers
3
- VERSION = '0.0.2'.freeze
3
+ VERSION = '0.0.3'.freeze
4
4
  end
5
5
  end
@@ -0,0 +1,7 @@
1
+ require 'test_helper'
2
+
3
+ class BootstrapViewHelpersTest < ActiveSupport::TestCase
4
+ test 'truth' do
5
+ assert_kind_of Module, BootstrapViewHelpers
6
+ end
7
+ end
@@ -0,0 +1,28 @@
1
+ == README
2
+
3
+ This README would normally document whatever steps are necessary to get the
4
+ application up and running.
5
+
6
+ Things you may want to cover:
7
+
8
+ * Ruby version
9
+
10
+ * System dependencies
11
+
12
+ * Configuration
13
+
14
+ * Database creation
15
+
16
+ * Database initialization
17
+
18
+ * How to run the test suite
19
+
20
+ * Services (job queues, cache servers, search engines, etc.)
21
+
22
+ * Deployment instructions
23
+
24
+ * ...
25
+
26
+
27
+ Please feel free to use a different markup language if you do not plan to run
28
+ <tt>rake doc:app</tt>.
@@ -0,0 +1,3 @@
1
+ require File.expand_path('../config/application', __FILE__)
2
+
3
+ Rails.application.load_tasks
@@ -0,0 +1,13 @@
1
+ // This is a manifest file that'll be compiled into application.js, which will include all the files
2
+ // listed below.
3
+ //
4
+ // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
5
+ // or any plugin's vendor/assets/javascripts directory can be referenced here using a relative path.
6
+ //
7
+ // It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
8
+ // compiled file.
9
+ //
10
+ // Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
11
+ // about supported directives.
12
+ //
13
+ //= require_tree .
@@ -0,0 +1,15 @@
1
+ /*
2
+ * This is a manifest file that'll be compiled into application.css, which will include all the files
3
+ * listed below.
4
+ *
5
+ * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
6
+ * or any plugin's vendor/assets/stylesheets directory can be referenced here using a relative path.
7
+ *
8
+ * You're free to add application-wide styles to this file and they'll appear at the bottom of the
9
+ * compiled file so the styles you add here take precedence over styles defined in any styles
10
+ * defined in the other CSS/SCSS files in this directory. It is generally better to create a new
11
+ * file per style scope.
12
+ *
13
+ *= require_tree .
14
+ *= require_self
15
+ */
@@ -0,0 +1,5 @@
1
+ class ApplicationController < ActionController::Base
2
+ # Prevent CSRF attacks by raising an exception.
3
+ # For APIs, you may want to use :null_session instead.
4
+ protect_from_forgery with: :exception
5
+ end
@@ -0,0 +1,2 @@
1
+ module ApplicationHelper
2
+ end
@@ -0,0 +1,14 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>Dummy</title>
5
+ <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %>
6
+ <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
7
+ <%= csrf_meta_tags %>
8
+ </head>
9
+ <body>
10
+
11
+ <%= yield %>
12
+
13
+ </body>
14
+ </html>
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
3
+ load Gem.bin_path('bundler', 'bundle')
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env ruby
2
+ APP_PATH = File.expand_path('../../config/application', __FILE__)
3
+ require_relative '../config/boot'
4
+ require 'rails/commands'
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env ruby
2
+ require_relative '../config/boot'
3
+ require 'rake'
4
+ Rake.application.run
@@ -0,0 +1,29 @@
1
+ #!/usr/bin/env ruby
2
+ require 'pathname'
3
+
4
+ # path to your application root.
5
+ APP_ROOT = Pathname.new File.expand_path('../../', __FILE__)
6
+
7
+ Dir.chdir APP_ROOT do
8
+ # This script is a starting point to setup your application.
9
+ # Add necessary setup steps to this file:
10
+
11
+ puts '== Installing dependencies =='
12
+ system 'gem install bundler --conservative'
13
+ system 'bundle check || bundle install'
14
+
15
+ # puts "\n== Copying sample files =="
16
+ # unless File.exist?("config/database.yml")
17
+ # system "cp config/database.yml.sample config/database.yml"
18
+ # end
19
+
20
+ puts "\n== Preparing database =="
21
+ system 'bin/rake db:setup'
22
+
23
+ puts "\n== Removing old logs and tempfiles =="
24
+ system 'rm -f log/*'
25
+ system 'rm -rf tmp/cache'
26
+
27
+ puts "\n== Restarting application server =="
28
+ system 'touch tmp/restart.txt'
29
+ end
@@ -0,0 +1,4 @@
1
+ # This file is used by Rack-based servers to start the application.
2
+
3
+ require ::File.expand_path('../config/environment', __FILE__)
4
+ run Rails.application
@@ -0,0 +1,12 @@
1
+ require File.expand_path('../boot', __FILE__)
2
+
3
+ require 'rails/all'
4
+
5
+ Bundler.require(*Rails.groups)
6
+ require 'bootstrap_view_helpers'
7
+
8
+ module Dummy
9
+ class Application < Rails::Application
10
+ config.active_record.raise_in_transactional_callbacks = true
11
+ end
12
+ end
@@ -0,0 +1,5 @@
1
+ # Set up gems listed in the Gemfile.
2
+ ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../../../Gemfile', __FILE__)
3
+
4
+ require 'bundler/setup' if File.exist?(ENV['BUNDLE_GEMFILE'])
5
+ $LOAD_PATH.unshift File.expand_path('../../../../lib', __FILE__)
@@ -0,0 +1,25 @@
1
+ # SQLite version 3.x
2
+ # gem install sqlite3
3
+ #
4
+ # Ensure the SQLite 3 gem is defined in your Gemfile
5
+ # gem 'sqlite3'
6
+ #
7
+ default: &default
8
+ adapter: sqlite3
9
+ pool: 5
10
+ timeout: 5000
11
+
12
+ development:
13
+ <<: *default
14
+ database: db/development.sqlite3
15
+
16
+ # Warning: The database defined as "test" will be erased and
17
+ # re-generated from your development database when you run "rake".
18
+ # Do not set this db to the same as development or production.
19
+ test:
20
+ <<: *default
21
+ database: db/test.sqlite3
22
+
23
+ production:
24
+ <<: *default
25
+ database: db/production.sqlite3
@@ -0,0 +1,5 @@
1
+ # Load the Rails application.
2
+ require File.expand_path('../application', __FILE__)
3
+
4
+ # Initialize the Rails application.
5
+ Rails.application.initialize!
@@ -0,0 +1,12 @@
1
+ Rails.application.configure do
2
+ config.cache_classes = false
3
+ config.eager_load = false
4
+ config.consider_all_requests_local = true
5
+ config.action_controller.perform_caching = false
6
+ config.action_mailer.raise_delivery_errors = false
7
+ config.active_support.deprecation = :log
8
+ config.active_record.migration_error = :page_load
9
+ config.assets.debug = true
10
+ config.assets.digest = true
11
+ config.assets.raise_runtime_errors = true
12
+ end
@@ -0,0 +1,15 @@
1
+ Rails.application.configure do
2
+ config.cache_classes = true
3
+ config.eager_load = true
4
+ config.consider_all_requests_local = false
5
+ config.action_controller.perform_caching = true
6
+ config.serve_static_files = ENV['RAILS_SERVE_STATIC_FILES'].present?
7
+ config.assets.js_compressor = :uglifier
8
+ config.assets.compile = false
9
+ config.assets.digest = true
10
+ config.log_level = :debug
11
+ config.i18n.fallbacks = true
12
+ config.active_support.deprecation = :notify
13
+ config.log_formatter = ::Logger::Formatter.new
14
+ config.active_record.dump_schema_after_migration = false
15
+ end
@@ -0,0 +1,13 @@
1
+ Rails.application.configure do
2
+ config.cache_classes = true
3
+ config.eager_load = false
4
+ config.serve_static_files = true
5
+ config.static_cache_control = 'public, max-age=3600'
6
+ config.consider_all_requests_local = true
7
+ config.action_controller.perform_caching = false
8
+ config.action_dispatch.show_exceptions = false
9
+ config.action_controller.allow_forgery_protection = false
10
+ config.action_mailer.delivery_method = :test
11
+ config.active_support.test_order = :random
12
+ config.active_support.deprecation = :stderr
13
+ end
@@ -0,0 +1 @@
1
+ Rails.application.config.assets.version = '1.0'
@@ -0,0 +1,3 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ Rails.application.config.action_dispatch.cookies_serializer = :json
@@ -0,0 +1,4 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Configure sensitive parameters which will be filtered from the log file.
4
+ Rails.application.config.filter_parameters += [:password]
@@ -0,0 +1,16 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Add new inflection rules using the following format. Inflections
4
+ # are locale specific, and you may define rules for as many different
5
+ # locales as you wish. All of these examples are active by default:
6
+ # ActiveSupport::Inflector.inflections(:en) do |inflect|
7
+ # inflect.plural /^(ox)$/i, '\1en'
8
+ # inflect.singular /^(ox)en/i, '\1'
9
+ # inflect.irregular 'person', 'people'
10
+ # inflect.uncountable %w( fish sheep )
11
+ # end
12
+
13
+ # These inflection rules are supported but not enabled by default:
14
+ # ActiveSupport::Inflector.inflections(:en) do |inflect|
15
+ # inflect.acronym 'RESTful'
16
+ # end
@@ -0,0 +1,4 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Add new mime types for use in respond_to blocks:
4
+ # Mime::Type.register "text/richtext", :rtf
@@ -0,0 +1,3 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ Rails.application.config.session_store :cookie_store, key: '_dummy_session'
@@ -0,0 +1,10 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Preserve the timezone of the receiver when calling to `to_time`.
4
+ # Ruby 2.4 will change the behavior of `to_time` to preserve the timezone
5
+ # when converting to an instance of `Time` instead of the previous behavior
6
+ # of converting to the local system timezone.
7
+ #
8
+ # Rails 5.0 introduced this config option so that apps made with earlier
9
+ # versions of Rails are not affected when upgrading.
10
+ ActiveSupport.to_time_preserves_timezone = true
@@ -0,0 +1,3 @@
1
+ ActiveSupport.on_load(:action_controller) do
2
+ wrap_parameters format: [:json] if respond_to?(:wrap_parameters)
3
+ end
@@ -0,0 +1,23 @@
1
+ # Files in the config/locales directory are used for internationalization
2
+ # and are automatically loaded by Rails. If you want to use locales other
3
+ # than English, add the necessary files in this directory.
4
+ #
5
+ # To use the locales, use `I18n.t`:
6
+ #
7
+ # I18n.t 'hello'
8
+ #
9
+ # In views, this is aliased to just `t`:
10
+ #
11
+ # <%= t('hello') %>
12
+ #
13
+ # To use a different locale, set it with `I18n.locale`:
14
+ #
15
+ # I18n.locale = :es
16
+ #
17
+ # This would use the information in config/locales/es.yml.
18
+ #
19
+ # To learn more, please read the Rails Internationalization guide
20
+ # available at http://guides.rubyonrails.org/i18n.html.
21
+
22
+ en:
23
+ hello: "Hello world"
@@ -0,0 +1,3 @@
1
+ Rails.application.routes.draw do
2
+ mount BootstrapViewHelpers::Engine => '/bootstrap_view_helpers'
3
+ end
@@ -0,0 +1,22 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Your secret key is used for verifying the integrity of signed cookies.
4
+ # If you change this key, all old signed cookies will become invalid!
5
+
6
+ # Make sure the secret is at least 30 characters and all random,
7
+ # no regular words or you'll be exposed to dictionary attacks.
8
+ # You can use `rake secret` to generate a secure secret key.
9
+
10
+ # Make sure the secrets in this file are kept private
11
+ # if you're sharing your code publicly.
12
+
13
+ development:
14
+ secret_key_base: 2e174d01f8d99fffb0afbdd57ee35b705199b43ec2f295a65fe371bcb969e08ade877e74386a110aa5aad36a2f12ac8e9975139c2191be70c1a6c2ba2bd64ee1
15
+
16
+ test:
17
+ secret_key_base: aa3d45d3f89c20c19fbecbc84ec292fce389008f7d8a95493e816007275b55c0abcbc1ec85f51c25f22dd04225c8f2a8915b1437cceeb3b098b77a83eabd2b57
18
+
19
+ # Do not keep production secrets in the repository,
20
+ # instead read values from the environment.
21
+ production:
22
+ secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>
@@ -0,0 +1,67 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The page you were looking for doesn't exist (404)</title>
5
+ <meta name="viewport" content="width=device-width,initial-scale=1">
6
+ <style>
7
+ body {
8
+ background-color: #EFEFEF;
9
+ color: #2E2F30;
10
+ text-align: center;
11
+ font-family: arial, sans-serif;
12
+ margin: 0;
13
+ }
14
+
15
+ div.dialog {
16
+ width: 95%;
17
+ max-width: 33em;
18
+ margin: 4em auto 0;
19
+ }
20
+
21
+ div.dialog > div {
22
+ border: 1px solid #CCC;
23
+ border-right-color: #999;
24
+ border-left-color: #999;
25
+ border-bottom-color: #BBB;
26
+ border-top: #B00100 solid 4px;
27
+ border-top-left-radius: 9px;
28
+ border-top-right-radius: 9px;
29
+ background-color: white;
30
+ padding: 7px 12% 0;
31
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
32
+ }
33
+
34
+ h1 {
35
+ font-size: 100%;
36
+ color: #730E15;
37
+ line-height: 1.5em;
38
+ }
39
+
40
+ div.dialog > p {
41
+ margin: 0 0 1em;
42
+ padding: 1em;
43
+ background-color: #F7F7F7;
44
+ border: 1px solid #CCC;
45
+ border-right-color: #999;
46
+ border-left-color: #999;
47
+ border-bottom-color: #999;
48
+ border-bottom-left-radius: 4px;
49
+ border-bottom-right-radius: 4px;
50
+ border-top-color: #DADADA;
51
+ color: #666;
52
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
53
+ }
54
+ </style>
55
+ </head>
56
+
57
+ <body>
58
+ <!-- This file lives in public/404.html -->
59
+ <div class="dialog">
60
+ <div>
61
+ <h1>The page you were looking for doesn't exist.</h1>
62
+ <p>You may have mistyped the address or the page may have moved.</p>
63
+ </div>
64
+ <p>If you are the application owner check the logs for more information.</p>
65
+ </div>
66
+ </body>
67
+ </html>
@@ -0,0 +1,67 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The change you wanted was rejected (422)</title>
5
+ <meta name="viewport" content="width=device-width,initial-scale=1">
6
+ <style>
7
+ body {
8
+ background-color: #EFEFEF;
9
+ color: #2E2F30;
10
+ text-align: center;
11
+ font-family: arial, sans-serif;
12
+ margin: 0;
13
+ }
14
+
15
+ div.dialog {
16
+ width: 95%;
17
+ max-width: 33em;
18
+ margin: 4em auto 0;
19
+ }
20
+
21
+ div.dialog > div {
22
+ border: 1px solid #CCC;
23
+ border-right-color: #999;
24
+ border-left-color: #999;
25
+ border-bottom-color: #BBB;
26
+ border-top: #B00100 solid 4px;
27
+ border-top-left-radius: 9px;
28
+ border-top-right-radius: 9px;
29
+ background-color: white;
30
+ padding: 7px 12% 0;
31
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
32
+ }
33
+
34
+ h1 {
35
+ font-size: 100%;
36
+ color: #730E15;
37
+ line-height: 1.5em;
38
+ }
39
+
40
+ div.dialog > p {
41
+ margin: 0 0 1em;
42
+ padding: 1em;
43
+ background-color: #F7F7F7;
44
+ border: 1px solid #CCC;
45
+ border-right-color: #999;
46
+ border-left-color: #999;
47
+ border-bottom-color: #999;
48
+ border-bottom-left-radius: 4px;
49
+ border-bottom-right-radius: 4px;
50
+ border-top-color: #DADADA;
51
+ color: #666;
52
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
53
+ }
54
+ </style>
55
+ </head>
56
+
57
+ <body>
58
+ <!-- This file lives in public/422.html -->
59
+ <div class="dialog">
60
+ <div>
61
+ <h1>The change you wanted was rejected.</h1>
62
+ <p>Maybe you tried to change something you didn't have access to.</p>
63
+ </div>
64
+ <p>If you are the application owner check the logs for more information.</p>
65
+ </div>
66
+ </body>
67
+ </html>
@@ -0,0 +1,66 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>We're sorry, but something went wrong (500)</title>
5
+ <meta name="viewport" content="width=device-width,initial-scale=1">
6
+ <style>
7
+ body {
8
+ background-color: #EFEFEF;
9
+ color: #2E2F30;
10
+ text-align: center;
11
+ font-family: arial, sans-serif;
12
+ margin: 0;
13
+ }
14
+
15
+ div.dialog {
16
+ width: 95%;
17
+ max-width: 33em;
18
+ margin: 4em auto 0;
19
+ }
20
+
21
+ div.dialog > div {
22
+ border: 1px solid #CCC;
23
+ border-right-color: #999;
24
+ border-left-color: #999;
25
+ border-bottom-color: #BBB;
26
+ border-top: #B00100 solid 4px;
27
+ border-top-left-radius: 9px;
28
+ border-top-right-radius: 9px;
29
+ background-color: white;
30
+ padding: 7px 12% 0;
31
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
32
+ }
33
+
34
+ h1 {
35
+ font-size: 100%;
36
+ color: #730E15;
37
+ line-height: 1.5em;
38
+ }
39
+
40
+ div.dialog > p {
41
+ margin: 0 0 1em;
42
+ padding: 1em;
43
+ background-color: #F7F7F7;
44
+ border: 1px solid #CCC;
45
+ border-right-color: #999;
46
+ border-left-color: #999;
47
+ border-bottom-color: #999;
48
+ border-bottom-left-radius: 4px;
49
+ border-bottom-right-radius: 4px;
50
+ border-top-color: #DADADA;
51
+ color: #666;
52
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
53
+ }
54
+ </style>
55
+ </head>
56
+
57
+ <body>
58
+ <!-- This file lives in public/500.html -->
59
+ <div class="dialog">
60
+ <div>
61
+ <h1>We're sorry, but something went wrong.</h1>
62
+ </div>
63
+ <p>If you are the application owner check the logs for more information.</p>
64
+ </div>
65
+ </body>
66
+ </html>
File without changes
@@ -0,0 +1,7 @@
1
+ require 'test_helper'
2
+
3
+ class NavigationTest < ActionDispatch::IntegrationTest
4
+ # test "the truth" do
5
+ # assert true
6
+ # end
7
+ end
@@ -0,0 +1,28 @@
1
+ # Configure Rails Environment
2
+ ENV['RAILS_ENV'] = 'test'
3
+
4
+ require File.expand_path('../../test/dummy/config/environment.rb', __FILE__)
5
+ ActiveRecord::Migrator.migrations_paths = [File.expand_path(
6
+ '../../test/dummy/db/migrate', __FILE__
7
+ )]
8
+ ActiveRecord::Migrator.migrations_paths << File.expand_path(
9
+ '../../db/migrate', __FILE__
10
+ )
11
+
12
+ require 'rails/test_help'
13
+
14
+ # Filter out Minitest backtrace while allowing backtrace from other libraries
15
+ # to be shown.
16
+ Minitest.backtrace_filter = Minitest::BacktraceFilter.new
17
+
18
+ # Load support files
19
+ Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
20
+
21
+ # Load fixtures from the engine
22
+ if ActiveSupport::TestCase.respond_to?(:fixture_path=)
23
+ ActiveSupport::TestCase.fixture_path = File.expand_path('../fixtures',
24
+ __FILE__)
25
+ ActionDispatch::IntegrationTest.fixture_path =
26
+ ActiveSupport::TestCase.fixture_path
27
+ ActiveSupport::TestCase.fixtures :all
28
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bootstrap-view_helpers
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rodrigo Castro Azevedo
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-01-29 00:00:00.000000000 Z
11
+ date: 2018-03-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -80,6 +80,44 @@ files:
80
80
  - lib/bootstrap/view_helpers/engine.rb
81
81
  - lib/bootstrap/view_helpers/version.rb
82
82
  - lib/tasks/bootstrap/view_helpers_tasks.rake
83
+ - test/bootstrap_view_helpers_test.rb
84
+ - test/dummy/README.rdoc
85
+ - test/dummy/Rakefile
86
+ - test/dummy/app/assets/javascripts/application.js
87
+ - test/dummy/app/assets/stylesheets/application.css
88
+ - test/dummy/app/controllers/application_controller.rb
89
+ - test/dummy/app/helpers/application_helper.rb
90
+ - test/dummy/app/views/layouts/application.html.erb
91
+ - test/dummy/bin/bundle
92
+ - test/dummy/bin/rails
93
+ - test/dummy/bin/rake
94
+ - test/dummy/bin/setup
95
+ - test/dummy/config.ru
96
+ - test/dummy/config/application.rb
97
+ - test/dummy/config/boot.rb
98
+ - test/dummy/config/database.yml
99
+ - test/dummy/config/environment.rb
100
+ - test/dummy/config/environments/development.rb
101
+ - test/dummy/config/environments/production.rb
102
+ - test/dummy/config/environments/test.rb
103
+ - test/dummy/config/initializers/assets.rb
104
+ - test/dummy/config/initializers/backtrace_silencers.rb
105
+ - test/dummy/config/initializers/cookies_serializer.rb
106
+ - test/dummy/config/initializers/filter_parameter_logging.rb
107
+ - test/dummy/config/initializers/inflections.rb
108
+ - test/dummy/config/initializers/mime_types.rb
109
+ - test/dummy/config/initializers/session_store.rb
110
+ - test/dummy/config/initializers/to_time_preserves_timezone.rb
111
+ - test/dummy/config/initializers/wrap_parameters.rb
112
+ - test/dummy/config/locales/en.yml
113
+ - test/dummy/config/routes.rb
114
+ - test/dummy/config/secrets.yml
115
+ - test/dummy/public/404.html
116
+ - test/dummy/public/422.html
117
+ - test/dummy/public/500.html
118
+ - test/dummy/public/favicon.ico
119
+ - test/integration/navigation_test.rb
120
+ - test/test_helper.rb
83
121
  homepage: http://github.com
84
122
  licenses:
85
123
  - MIT
@@ -100,8 +138,46 @@ required_rubygems_version: !ruby/object:Gem::Requirement
100
138
  version: '0'
101
139
  requirements: []
102
140
  rubyforge_project:
103
- rubygems_version: 2.5.1
141
+ rubygems_version: 2.6.14
104
142
  signing_key:
105
143
  specification_version: 4
106
144
  summary: 'PAFA: Summary of BootstrapViewHelpers.'
107
- test_files: []
145
+ test_files:
146
+ - test/integration/navigation_test.rb
147
+ - test/bootstrap_view_helpers_test.rb
148
+ - test/dummy/README.rdoc
149
+ - test/dummy/config/environments/development.rb
150
+ - test/dummy/config/environments/test.rb
151
+ - test/dummy/config/environments/production.rb
152
+ - test/dummy/config/locales/en.yml
153
+ - test/dummy/config/initializers/to_time_preserves_timezone.rb
154
+ - test/dummy/config/initializers/inflections.rb
155
+ - test/dummy/config/initializers/filter_parameter_logging.rb
156
+ - test/dummy/config/initializers/wrap_parameters.rb
157
+ - test/dummy/config/initializers/backtrace_silencers.rb
158
+ - test/dummy/config/initializers/cookies_serializer.rb
159
+ - test/dummy/config/initializers/assets.rb
160
+ - test/dummy/config/initializers/mime_types.rb
161
+ - test/dummy/config/initializers/session_store.rb
162
+ - test/dummy/config/environment.rb
163
+ - test/dummy/config/secrets.yml
164
+ - test/dummy/config/routes.rb
165
+ - test/dummy/config/application.rb
166
+ - test/dummy/config/database.yml
167
+ - test/dummy/config/boot.rb
168
+ - test/dummy/Rakefile
169
+ - test/dummy/bin/setup
170
+ - test/dummy/bin/rails
171
+ - test/dummy/bin/bundle
172
+ - test/dummy/bin/rake
173
+ - test/dummy/config.ru
174
+ - test/dummy/public/500.html
175
+ - test/dummy/public/404.html
176
+ - test/dummy/public/favicon.ico
177
+ - test/dummy/public/422.html
178
+ - test/dummy/app/assets/javascripts/application.js
179
+ - test/dummy/app/assets/stylesheets/application.css
180
+ - test/dummy/app/helpers/application_helper.rb
181
+ - test/dummy/app/controllers/application_controller.rb
182
+ - test/dummy/app/views/layouts/application.html.erb
183
+ - test/test_helper.rb