bootstrap_toolbelt 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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 104fbf382e21ff91eef45ff6f10dbac8170bb262
4
- data.tar.gz: 730297af7cbad39003e058612d88a1f95bad606a
3
+ metadata.gz: ae6bd45361bb6b99732dcdba74ec7ce491b9a722
4
+ data.tar.gz: 2f53a89ab815326f614c2b3034e47cb99afc4a77
5
5
  SHA512:
6
- metadata.gz: 2e79c8d0b220717954b03c684b6a5562d112e3161c2019fc28b6afe464c50974788c0189c822eabf3a48be62ce51e09b3a1d96c7fcc3ca800b4cbd4b87915e2b
7
- data.tar.gz: 44a798ea34442651023bddc8ef1e36d96197b2651525810c1b9a5e5ad96a491c02b46061fcfeb2b1f269dbff2a341283d109ef62de587df2c7da67b1de52e5c8
6
+ metadata.gz: cb3c79edf4907dff7331d12e29c4b0c291a575f637d35ab666752c67eb3224bb6ebebc3e955a7f0aec1dd5da8b3484ae4c8a6eda7d522a1386a8b9deeae704ba
7
+ data.tar.gz: 52f0dbefb600d20e22251ba9fac3146062130c60d27718fe6faca155c5c6526b006c41c863a70006c91ad0f26e97157a5f42cd1b25a164bc35ff0614aa5a8c5c
@@ -0,0 +1,15 @@
1
+ module FlashMessages
2
+ extend ActiveSupport::Concern
3
+
4
+ included do
5
+ def create_message(model)
6
+ t('flash.create', { model: t("#{model}.one") } )
7
+ end
8
+ def update_message(model)
9
+ t('flash.update', { model: t("#{model}.one") } )
10
+ end
11
+ def destroy_message(model)
12
+ t('flash.destroy', { model: t("#{model}.one") } )
13
+ end
14
+ end
15
+ end
@@ -8,15 +8,6 @@ module FlashHelper
8
8
  markup.join.html_safe
9
9
  end
10
10
 
11
- def create_message(model)
12
- t('flash.create', { model: t("#{model}.one") } )
13
- end
14
- def update_message(model)
15
- t('flash.update', { model: t("#{model}.one") } )
16
- end
17
- def destroy_message(model)
18
- t('flash.destroy', { model: t("#{model}.one") } )
19
- end
20
11
 
21
12
  private
22
13
 
@@ -0,0 +1,9 @@
1
+ module Navigation
2
+ def nav_link(text, link_path, options = {})
3
+ class_name = current_page?(link_path) ? options.fetch(:class_name, 'active') : ''
4
+
5
+ content_tag(:li, class: class_name) do
6
+ link_to text, link_path, options
7
+ end
8
+ end
9
+ end
@@ -1,3 +1,3 @@
1
1
  module BootstrapToolbelt
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
@@ -390,3 +390,109 @@ Started GET "/assets/application-9dd4861a92e4f9a660455c3058cf3a14.js?body=1" for
390
390
 
391
391
 
392
392
  Started GET "/assets/users-46c9a194bd0668e67d57241f94473dc8.js?body=1" for ::1 at 2015-03-02 09:50:32 +0100
393
+
394
+
395
+ Started GET "/lists/2" for ::1 at 2015-03-04 13:45:19 +0100
396
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
397
+
398
+ ActionController::RoutingError (No route matches [GET] "/lists/2"):
399
+ actionpack (4.2.0) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
400
+ actionpack (4.2.0) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
401
+ railties (4.2.0) lib/rails/rack/logger.rb:38:in `call_app'
402
+ railties (4.2.0) lib/rails/rack/logger.rb:20:in `block in call'
403
+ activesupport (4.2.0) lib/active_support/tagged_logging.rb:68:in `block in tagged'
404
+ activesupport (4.2.0) lib/active_support/tagged_logging.rb:26:in `tagged'
405
+ activesupport (4.2.0) lib/active_support/tagged_logging.rb:68:in `tagged'
406
+ railties (4.2.0) lib/rails/rack/logger.rb:20:in `call'
407
+ actionpack (4.2.0) lib/action_dispatch/middleware/request_id.rb:21:in `call'
408
+ rack (1.6.0) lib/rack/methodoverride.rb:22:in `call'
409
+ rack (1.6.0) lib/rack/runtime.rb:18:in `call'
410
+ activesupport (4.2.0) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'
411
+ rack (1.6.0) lib/rack/lock.rb:17:in `call'
412
+ actionpack (4.2.0) lib/action_dispatch/middleware/static.rb:113:in `call'
413
+ rack (1.6.0) lib/rack/sendfile.rb:113:in `call'
414
+ railties (4.2.0) lib/rails/engine.rb:518:in `call'
415
+ railties (4.2.0) lib/rails/application.rb:164:in `call'
416
+ rack (1.6.0) lib/rack/lock.rb:17:in `call'
417
+ rack (1.6.0) lib/rack/content_length.rb:15:in `call'
418
+ rack (1.6.0) lib/rack/handler/webrick.rb:89:in `service'
419
+ /usr/local/opt/rbenv/versions/2.2.0/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service'
420
+ /usr/local/opt/rbenv/versions/2.2.0/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run'
421
+ /usr/local/opt/rbenv/versions/2.2.0/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread'
422
+
423
+
424
+ Rendered /usr/local/opt/rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/actionpack-4.2.0/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.3ms)
425
+ Rendered /usr/local/opt/rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/actionpack-4.2.0/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.9ms)
426
+ Rendered /usr/local/opt/rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/actionpack-4.2.0/lib/action_dispatch/middleware/templates/routes/_table.html.erb (8.3ms)
427
+ Rendered /usr/local/opt/rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/actionpack-4.2.0/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (8.3ms)
428
+ Rendered /usr/local/opt/rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/actionpack-4.2.0/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (82.7ms)
429
+
430
+
431
+ Started GET "/lists/20" for ::1 at 2015-03-04 13:45:36 +0100
432
+
433
+ ActionController::RoutingError (No route matches [GET] "/lists/20"):
434
+ actionpack (4.2.0) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
435
+ actionpack (4.2.0) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
436
+ railties (4.2.0) lib/rails/rack/logger.rb:38:in `call_app'
437
+ railties (4.2.0) lib/rails/rack/logger.rb:20:in `block in call'
438
+ activesupport (4.2.0) lib/active_support/tagged_logging.rb:68:in `block in tagged'
439
+ activesupport (4.2.0) lib/active_support/tagged_logging.rb:26:in `tagged'
440
+ activesupport (4.2.0) lib/active_support/tagged_logging.rb:68:in `tagged'
441
+ railties (4.2.0) lib/rails/rack/logger.rb:20:in `call'
442
+ actionpack (4.2.0) lib/action_dispatch/middleware/request_id.rb:21:in `call'
443
+ rack (1.6.0) lib/rack/methodoverride.rb:22:in `call'
444
+ rack (1.6.0) lib/rack/runtime.rb:18:in `call'
445
+ activesupport (4.2.0) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'
446
+ rack (1.6.0) lib/rack/lock.rb:17:in `call'
447
+ actionpack (4.2.0) lib/action_dispatch/middleware/static.rb:113:in `call'
448
+ rack (1.6.0) lib/rack/sendfile.rb:113:in `call'
449
+ railties (4.2.0) lib/rails/engine.rb:518:in `call'
450
+ railties (4.2.0) lib/rails/application.rb:164:in `call'
451
+ rack (1.6.0) lib/rack/lock.rb:17:in `call'
452
+ rack (1.6.0) lib/rack/content_length.rb:15:in `call'
453
+ rack (1.6.0) lib/rack/handler/webrick.rb:89:in `service'
454
+ /usr/local/opt/rbenv/versions/2.2.0/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service'
455
+ /usr/local/opt/rbenv/versions/2.2.0/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run'
456
+ /usr/local/opt/rbenv/versions/2.2.0/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread'
457
+
458
+
459
+ Rendered /usr/local/opt/rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/actionpack-4.2.0/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.3ms)
460
+ Rendered /usr/local/opt/rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/actionpack-4.2.0/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.8ms)
461
+ Rendered /usr/local/opt/rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/actionpack-4.2.0/lib/action_dispatch/middleware/templates/routes/_table.html.erb (1.0ms)
462
+ Rendered /usr/local/opt/rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/actionpack-4.2.0/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.1ms)
463
+ Rendered /usr/local/opt/rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/actionpack-4.2.0/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (61.7ms)
464
+
465
+
466
+ Started GET "/lists" for ::1 at 2015-03-04 13:45:40 +0100
467
+
468
+ ActionController::RoutingError (No route matches [GET] "/lists"):
469
+ actionpack (4.2.0) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
470
+ actionpack (4.2.0) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
471
+ railties (4.2.0) lib/rails/rack/logger.rb:38:in `call_app'
472
+ railties (4.2.0) lib/rails/rack/logger.rb:20:in `block in call'
473
+ activesupport (4.2.0) lib/active_support/tagged_logging.rb:68:in `block in tagged'
474
+ activesupport (4.2.0) lib/active_support/tagged_logging.rb:26:in `tagged'
475
+ activesupport (4.2.0) lib/active_support/tagged_logging.rb:68:in `tagged'
476
+ railties (4.2.0) lib/rails/rack/logger.rb:20:in `call'
477
+ actionpack (4.2.0) lib/action_dispatch/middleware/request_id.rb:21:in `call'
478
+ rack (1.6.0) lib/rack/methodoverride.rb:22:in `call'
479
+ rack (1.6.0) lib/rack/runtime.rb:18:in `call'
480
+ activesupport (4.2.0) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'
481
+ rack (1.6.0) lib/rack/lock.rb:17:in `call'
482
+ actionpack (4.2.0) lib/action_dispatch/middleware/static.rb:113:in `call'
483
+ rack (1.6.0) lib/rack/sendfile.rb:113:in `call'
484
+ railties (4.2.0) lib/rails/engine.rb:518:in `call'
485
+ railties (4.2.0) lib/rails/application.rb:164:in `call'
486
+ rack (1.6.0) lib/rack/lock.rb:17:in `call'
487
+ rack (1.6.0) lib/rack/content_length.rb:15:in `call'
488
+ rack (1.6.0) lib/rack/handler/webrick.rb:89:in `service'
489
+ /usr/local/opt/rbenv/versions/2.2.0/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service'
490
+ /usr/local/opt/rbenv/versions/2.2.0/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run'
491
+ /usr/local/opt/rbenv/versions/2.2.0/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread'
492
+
493
+
494
+ Rendered /usr/local/opt/rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/actionpack-4.2.0/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.3ms)
495
+ Rendered /usr/local/opt/rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/actionpack-4.2.0/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.7ms)
496
+ Rendered /usr/local/opt/rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/actionpack-4.2.0/lib/action_dispatch/middleware/templates/routes/_table.html.erb (1.0ms)
497
+ Rendered /usr/local/opt/rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/actionpack-4.2.0/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.1ms)
498
+ Rendered /usr/local/opt/rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/actionpack-4.2.0/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (62.3ms)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bootstrap_toolbelt
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
  - Kristian Rasmussen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-04 00:00:00.000000000 Z
11
+ date: 2015-03-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -48,8 +48,10 @@ files:
48
48
  - MIT-LICENSE
49
49
  - README.rdoc
50
50
  - Rakefile
51
+ - app/controllers/concerns/flash_messages.rb
51
52
  - app/helpers/flash_helper.rb
52
53
  - app/helpers/icon_helper.rb
54
+ - app/helpers/navigation_helper.rb
53
55
  - app/views/flash_helper/_flash.html.erb
54
56
  - app/views/shared/_flash.html.erb
55
57
  - config/locales/da.yml
@@ -127,7 +129,6 @@ files:
127
129
  - test/dummy/tmp/cache/assets/development/sprockets/d771ace226fc8215a3572e0aa35bb0d6
128
130
  - test/dummy/tmp/cache/assets/development/sprockets/f56253b5f374fff1a33fbbc9881c9124
129
131
  - test/dummy/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655
130
- - test/dummy/tmp/pids/server.pid
131
132
  - test/integration/navigation_test.rb
132
133
  - test/test_helper.rb
133
134
  homepage: http://github.com/iamkristian/bootstrap_toolbelt
@@ -223,6 +224,5 @@ test_files:
223
224
  - test/dummy/tmp/cache/assets/development/sprockets/d771ace226fc8215a3572e0aa35bb0d6
224
225
  - test/dummy/tmp/cache/assets/development/sprockets/f56253b5f374fff1a33fbbc9881c9124
225
226
  - test/dummy/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655
226
- - test/dummy/tmp/pids/server.pid
227
227
  - test/integration/navigation_test.rb
228
228
  - test/test_helper.rb
@@ -1 +0,0 @@
1
- 41821