better_frame 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 (26) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/better_frame/application.js +1 -1
  3. data/lib/better_frame/version.rb +1 -1
  4. data/test/dummy/log/development.log +220 -0
  5. data/test/dummy/tmp/cache/assets/sprockets/v3.0/-U/-UF4rrUOO5TGqLjCV3hWaJ2n7Eejrp7p1vMTTEpB1g4.cache +3 -0
  6. data/test/dummy/tmp/cache/assets/sprockets/v3.0/4N/4NwH0RDw9DgaNyUsqVWWtsiWlrI-sdELQFc6TXGnxd8.cache +2 -0
  7. data/test/dummy/tmp/cache/assets/sprockets/v3.0/6C/6CoG0W7jAq_A3gtoiOk94XHFUGD3-9M5GW3uNBzj6yE.cache +0 -0
  8. data/test/dummy/tmp/cache/assets/sprockets/v3.0/86/866q36DGmnkGHvYISyzZT6MNE46R4rXtkVdH9sj8Dgo.cache +1 -0
  9. data/test/dummy/tmp/cache/assets/sprockets/v3.0/A7/A7mMkoEbbynYtn0Ekl5HtoYn9HRP5IYzd98aGb_8S24.cache +1 -0
  10. data/test/dummy/tmp/cache/assets/sprockets/v3.0/BZ/BZxsmR9Tu9PgEU5-ODBTT-_Sd8_WYG0CxmlWOCBPyPc.cache +1 -0
  11. data/test/dummy/tmp/cache/assets/sprockets/v3.0/D3/D3E_u8aP1-8k1Ea--HLYBVSsGfQtgWlcJbBQmYnhJho.cache +1 -0
  12. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Iw/IwM9HxYJwvtPLAbM5jgrkK32oYlIlogVgJZmvp6R7PM.cache +0 -0
  13. data/test/dummy/tmp/cache/assets/sprockets/v3.0/N8/N8bTCyNNE19QpLIim2VjWoDQ_-harb5Fgz5ujL4v67E.cache +1 -0
  14. data/test/dummy/tmp/cache/assets/sprockets/v3.0/VP/VPo97yJZ6cldC6CSdbHdAQI7w90zCLQYdX3wzCKuxbM.cache +1 -0
  15. data/test/dummy/tmp/cache/assets/sprockets/v3.0/WA/WArUBg3e2XDJgX-yr3VKa9Z9MWsYuAIhujUfYbynp4I.cache +1 -0
  16. data/test/dummy/tmp/cache/assets/sprockets/v3.0/WP/WPF6bHwvvtrZ0OaJZX0-1ap5ClEyDrIGpAsaLTyunOc.cache +0 -0
  17. data/test/dummy/tmp/cache/assets/sprockets/v3.0/YX/YXyg5vNjh3mk8OHzPYKBmwiVuwbcVx-zPfKr91XE56w.cache +2 -0
  18. data/test/dummy/tmp/cache/assets/sprockets/v3.0/ZR/ZRgyWI_sH8vLMItcb3tWWOARtEEyORGq2AZdoJl3qYo.cache +0 -0
  19. data/test/dummy/tmp/cache/assets/sprockets/v3.0/aL/aLIQ7TRiw8b4LN_dZEDwmZMcEg_lDExomPyyeSv8hpE.cache +1 -0
  20. data/test/dummy/tmp/cache/assets/sprockets/v3.0/d-/d-si9U_lgjWm7lqt82Lgk2ypfn6yXnIcgzpQrv_3FYo.cache +1 -0
  21. data/test/dummy/tmp/cache/assets/sprockets/v3.0/sc/sc_cvz9ujmCBwQwtw93KNqcaEZaX_-ZqkpQoBCUu1ME.cache +3 -0
  22. data/test/dummy/tmp/cache/assets/sprockets/v3.0/tA/tAQK3TnXA5U6bpAJkCc9XZ8ED1V3_hh2dNiBiebEHSk.cache +1 -0
  23. data/test/dummy/tmp/cache/assets/sprockets/v3.0/tI/tIA189AhePTmxEmtI8YCdJffexgn_Wlu3LEkvBspNM4.cache +0 -0
  24. data/test/dummy/tmp/cache/assets/sprockets/v3.0/vE/vEBmsp3Y06XVU40PqBhxWsMx2x2tOG6gqMq2-cYKeR8.cache +1 -0
  25. metadata +42 -3
  26. data/app/assets/javascripts/better_frame/jquery-ujs.js +0 -550
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 549e7be66adb95f25f3a663c80ac18381c60f1d0
4
- data.tar.gz: ace5baea310f70880907a709c209b90d9aaf53b1
3
+ metadata.gz: 375d15229a8bb12e02f262aecb7d06d8e7093a89
4
+ data.tar.gz: b66ef4938ea18b027a99dd86f20b051099d2cd77
5
5
  SHA512:
6
- metadata.gz: f36b35c1a3d1d58ad3de68e548d8add5c599c90ff2e566fbec08de2892197eb5eac886ef36d0b9e0922c27d5e6a0d832ed4a06c6d13e22735cfbbfe0f22e64b6
7
- data.tar.gz: 5ff9687d6f713b57e7e4ceeeb5835fe453a1c1566ff1b47c21974bdb6149e6cd6920a9c07b8f4a2d330794a2f1fed169079aa1c5555b1ce4d6894ac1781e10c0
6
+ metadata.gz: 242a4ea7282aefbfc598daea03e2fbdeb46f18010415a83908e262d7a4967b0e61c500b461cab65a5f576ff7a2f27ecd120fb2b809a28822ea5c35e0b17caaae
7
+ data.tar.gz: 01f98d016b740c36d61e214f9182d67d319b81f01981ea2938cc00ed12509b46960c790df6c44bdb4c9991d2e439644adff827aaeb276c3c7eb8277e30d15ebf
@@ -10,5 +10,5 @@
10
10
  // Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
11
11
  // about supported directives.
12
12
  //
13
- //= require jquery-ujs
13
+ //= require better_frame/jquery-ujs
14
14
  //= require_tree .
@@ -1,3 +1,3 @@
1
1
  module BetterFrame
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
@@ -412,3 +412,223 @@ Started GET "/" for ::1 at 2016-07-13 16:11:14 +0200
412
412
  Processing by Rails::WelcomeController#index as */*
413
413
  Rendered /Users/YvesSi/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.7/lib/rails/templates/rails/welcome/index.html.erb (0.1ms)
414
414
  Completed 200 OK in 28ms (Views: 27.3ms | ActiveRecord: 0.0ms)
415
+
416
+
417
+ Started GET "/better_frame" for ::1 at 2016-07-14 08:48:09 +0200
418
+ Processing by BetterFrame::ApiController#include as HTML
419
+ Rendered /Users/YvesSi/Projects/better_frame/app/views/better_frame/api/include.js.erb (240.3ms)
420
+ Completed 500 Internal Server Error in 259ms (ActiveRecord: 0.0ms)
421
+
422
+ ActionView::Template::Error (couldn't find file 'jquery-ujs' with type 'application/javascript'
423
+ Checked in these paths:
424
+ /Users/YvesSi/Projects/better_frame/test/dummy/app/assets/images
425
+ /Users/YvesSi/Projects/better_frame/test/dummy/app/assets/javascripts
426
+ /Users/YvesSi/Projects/better_frame/test/dummy/app/assets/stylesheets
427
+ /Users/YvesSi/Projects/better_frame/app/assets/images
428
+ /Users/YvesSi/Projects/better_frame/app/assets/javascripts
429
+ /Users/YvesSi/Projects/better_frame/app/assets/stylesheets
430
+ /Users/YvesSi/Projects/better_frame/vendor/assets/javascripts):
431
+ 1: (function($) {
432
+ 2: $.getScript("<%= javascript_url('application.js') %>");
433
+ 3: $.getScript("<%= javascript_url('better_frame/application.js') %>");
434
+ 4: })(jQuery);
435
+ /Users/YvesSi/Projects/better_frame/app/assets/javascripts/better_frame/application.js:13
436
+ sprockets (3.6.3) lib/sprockets/resolve.rb:65:in `resolve!'
437
+ sprockets (3.6.3) lib/sprockets/directive_processor.rb:399:in `resolve'
438
+ sprockets (3.6.3) lib/sprockets/directive_processor.rb:207:in `process_require_directive'
439
+ sprockets (3.6.3) lib/sprockets/directive_processor.rb:180:in `block in process_directives'
440
+ sprockets (3.6.3) lib/sprockets/directive_processor.rb:178:in `each'
441
+ sprockets (3.6.3) lib/sprockets/directive_processor.rb:178:in `process_directives'
442
+ sprockets (3.6.3) lib/sprockets/directive_processor.rb:83:in `_call'
443
+ sprockets (3.6.3) lib/sprockets/directive_processor.rb:68:in `call'
444
+ sprockets (3.6.3) lib/sprockets/processor_utils.rb:75:in `call_processor'
445
+ sprockets (3.6.3) lib/sprockets/processor_utils.rb:57:in `block in call_processors'
446
+ sprockets (3.6.3) lib/sprockets/processor_utils.rb:56:in `reverse_each'
447
+ sprockets (3.6.3) lib/sprockets/processor_utils.rb:56:in `call_processors'
448
+ sprockets (3.6.3) lib/sprockets/loader.rb:134:in `load_from_unloaded'
449
+ sprockets (3.6.3) lib/sprockets/loader.rb:60:in `block in load'
450
+ sprockets (3.6.3) lib/sprockets/loader.rb:317:in `fetch_asset_from_dependency_cache'
451
+ sprockets (3.6.3) lib/sprockets/loader.rb:44:in `load'
452
+ sprockets (3.6.3) lib/sprockets/cached_environment.rb:20:in `block in initialize'
453
+ sprockets (3.6.3) lib/sprockets/cached_environment.rb:47:in `yield'
454
+ sprockets (3.6.3) lib/sprockets/cached_environment.rb:47:in `load'
455
+ sprockets (3.6.3) lib/sprockets/bundle.rb:23:in `block in call'
456
+ sprockets (3.6.3) lib/sprockets/utils.rb:196:in `dfs'
457
+ sprockets (3.6.3) lib/sprockets/bundle.rb:24:in `call'
458
+ sprockets (3.6.3) lib/sprockets/processor_utils.rb:75:in `call_processor'
459
+ sprockets (3.6.3) lib/sprockets/processor_utils.rb:57:in `block in call_processors'
460
+ sprockets (3.6.3) lib/sprockets/processor_utils.rb:56:in `reverse_each'
461
+ sprockets (3.6.3) lib/sprockets/processor_utils.rb:56:in `call_processors'
462
+ sprockets (3.6.3) lib/sprockets/loader.rb:134:in `load_from_unloaded'
463
+ sprockets (3.6.3) lib/sprockets/loader.rb:60:in `block in load'
464
+ sprockets (3.6.3) lib/sprockets/loader.rb:317:in `fetch_asset_from_dependency_cache'
465
+ sprockets (3.6.3) lib/sprockets/loader.rb:44:in `load'
466
+ sprockets (3.6.3) lib/sprockets/cached_environment.rb:20:in `block in initialize'
467
+ sprockets (3.6.3) lib/sprockets/cached_environment.rb:47:in `yield'
468
+ sprockets (3.6.3) lib/sprockets/cached_environment.rb:47:in `load'
469
+ sprockets (3.6.3) lib/sprockets/base.rb:66:in `find_asset'
470
+ sprockets (3.6.3) lib/sprockets/base.rb:73:in `find_all_linked_assets'
471
+ sprockets (3.6.3) lib/sprockets/manifest.rb:142:in `block in find'
472
+ sprockets (3.6.3) lib/sprockets/legacy.rb:114:in `block (2 levels) in logical_paths'
473
+ sprockets (3.6.3) lib/sprockets/path_utils.rb:228:in `block in stat_tree'
474
+ sprockets (3.6.3) lib/sprockets/path_utils.rb:212:in `block in stat_directory'
475
+ sprockets (3.6.3) lib/sprockets/path_utils.rb:209:in `each'
476
+ sprockets (3.6.3) lib/sprockets/path_utils.rb:209:in `stat_directory'
477
+ sprockets (3.6.3) lib/sprockets/path_utils.rb:227:in `stat_tree'
478
+ sprockets (3.6.3) lib/sprockets/path_utils.rb:231:in `block in stat_tree'
479
+ sprockets (3.6.3) lib/sprockets/path_utils.rb:212:in `block in stat_directory'
480
+ sprockets (3.6.3) lib/sprockets/path_utils.rb:209:in `each'
481
+ sprockets (3.6.3) lib/sprockets/path_utils.rb:209:in `stat_directory'
482
+ sprockets (3.6.3) lib/sprockets/path_utils.rb:227:in `stat_tree'
483
+ sprockets (3.6.3) lib/sprockets/legacy.rb:105:in `each'
484
+ sprockets (3.6.3) lib/sprockets/legacy.rb:105:in `block in logical_paths'
485
+ sprockets (3.6.3) lib/sprockets/legacy.rb:104:in `each'
486
+ sprockets (3.6.3) lib/sprockets/legacy.rb:104:in `logical_paths'
487
+ sprockets (3.6.3) lib/sprockets/manifest.rb:140:in `find'
488
+ sprockets-rails (3.1.1) lib/sprockets/railtie.rb:50:in `each'
489
+ sprockets-rails (3.1.1) lib/sprockets/railtie.rb:50:in `map'
490
+ sprockets-rails (3.1.1) lib/sprockets/railtie.rb:50:in `precompiled_assets'
491
+ sprockets-rails (3.1.1) lib/sprockets/railtie.rb:35:in `asset_precompiled?'
492
+ sprockets-rails (3.1.1) lib/sprockets/railtie.rb:250:in `block (3 levels) in <class:Railtie>'
493
+ sprockets-rails (3.1.1) lib/sprockets/rails/helper.rb:342:in `call'
494
+ sprockets-rails (3.1.1) lib/sprockets/rails/helper.rb:342:in `precompiled?'
495
+ sprockets-rails (3.1.1) lib/sprockets/rails/helper.rb:346:in `raise_unless_precompiled_asset'
496
+ sprockets-rails (3.1.1) lib/sprockets/rails/helper.rb:320:in `digest_path'
497
+ sprockets-rails (3.1.1) lib/sprockets/rails/helper.rb:308:in `asset_path'
498
+ sprockets-rails (3.1.1) lib/sprockets/rails/helper.rb:85:in `block in resolve_asset_path'
499
+ sprockets-rails (3.1.1) lib/sprockets/rails/helper.rb:225:in `block in resolve_asset'
500
+ sprockets-rails (3.1.1) lib/sprockets/rails/helper.rb:224:in `each'
501
+ sprockets-rails (3.1.1) lib/sprockets/rails/helper.rb:224:in `detect'
502
+ sprockets-rails (3.1.1) lib/sprockets/rails/helper.rb:224:in `resolve_asset'
503
+ sprockets-rails (3.1.1) lib/sprockets/rails/helper.rb:84:in `resolve_asset_path'
504
+ sprockets-rails (3.1.1) lib/sprockets/rails/helper.rb:74:in `compute_asset_path'
505
+ actionview (4.2.7) lib/action_view/helpers/asset_url_helper.rb:135:in `asset_path'
506
+ actionview (4.2.7) lib/action_view/helpers/asset_url_helper.rb:162:in `asset_url'
507
+ actionview (4.2.7) lib/action_view/helpers/asset_url_helper.rb:252:in `javascript_url'
508
+ /Users/YvesSi/Projects/better_frame/app/views/better_frame/api/include.js.erb:2:in `___sers__ves_i__rojects_better_frame_app_views_better_frame_api_include_js_erb___2314857487751174969_70308137922140'
509
+ actionview (4.2.7) lib/action_view/template.rb:145:in `block in render'
510
+ activesupport (4.2.7) lib/active_support/notifications.rb:166:in `instrument'
511
+ actionview (4.2.7) lib/action_view/template.rb:333:in `instrument'
512
+ actionview (4.2.7) lib/action_view/template.rb:143:in `render'
513
+ actionview (4.2.7) lib/action_view/renderer/template_renderer.rb:54:in `block (2 levels) in render_template'
514
+ actionview (4.2.7) lib/action_view/renderer/abstract_renderer.rb:39:in `block in instrument'
515
+ activesupport (4.2.7) lib/active_support/notifications.rb:164:in `block in instrument'
516
+ activesupport (4.2.7) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
517
+ activesupport (4.2.7) lib/active_support/notifications.rb:164:in `instrument'
518
+ actionview (4.2.7) lib/action_view/renderer/abstract_renderer.rb:39:in `instrument'
519
+ actionview (4.2.7) lib/action_view/renderer/template_renderer.rb:53:in `block in render_template'
520
+ actionview (4.2.7) lib/action_view/renderer/template_renderer.rb:61:in `render_with_layout'
521
+ actionview (4.2.7) lib/action_view/renderer/template_renderer.rb:52:in `render_template'
522
+ actionview (4.2.7) lib/action_view/renderer/template_renderer.rb:14:in `render'
523
+ actionview (4.2.7) lib/action_view/renderer/renderer.rb:46:in `render_template'
524
+ actionview (4.2.7) lib/action_view/renderer/renderer.rb:27:in `render'
525
+ actionview (4.2.7) lib/action_view/rendering.rb:100:in `_render_template'
526
+ actionpack (4.2.7) lib/action_controller/metal/streaming.rb:217:in `_render_template'
527
+ actionview (4.2.7) lib/action_view/rendering.rb:83:in `render_to_body'
528
+ actionpack (4.2.7) lib/action_controller/metal/rendering.rb:32:in `render_to_body'
529
+ actionpack (4.2.7) lib/action_controller/metal/renderers.rb:37:in `render_to_body'
530
+ actionpack (4.2.7) lib/abstract_controller/rendering.rb:25:in `render'
531
+ actionpack (4.2.7) lib/action_controller/metal/rendering.rb:16:in `render'
532
+ actionpack (4.2.7) lib/action_controller/metal/instrumentation.rb:44:in `block (2 levels) in render'
533
+ activesupport (4.2.7) lib/active_support/core_ext/benchmark.rb:12:in `block in ms'
534
+ /Users/YvesSi/.rbenv/versions/2.2.2/lib/ruby/2.2.0/benchmark.rb:303:in `realtime'
535
+ activesupport (4.2.7) lib/active_support/core_ext/benchmark.rb:12:in `ms'
536
+ actionpack (4.2.7) lib/action_controller/metal/instrumentation.rb:44:in `block in render'
537
+ actionpack (4.2.7) lib/action_controller/metal/instrumentation.rb:87:in `cleanup_view_runtime'
538
+ activerecord (4.2.7) lib/active_record/railties/controller_runtime.rb:25:in `cleanup_view_runtime'
539
+ actionpack (4.2.7) lib/action_controller/metal/instrumentation.rb:43:in `render'
540
+ /Users/YvesSi/Projects/better_frame/app/controllers/better_frame/api_controller.rb:6:in `include'
541
+ actionpack (4.2.7) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
542
+ actionpack (4.2.7) lib/abstract_controller/base.rb:198:in `process_action'
543
+ actionpack (4.2.7) lib/action_controller/metal/rendering.rb:10:in `process_action'
544
+ actionpack (4.2.7) lib/abstract_controller/callbacks.rb:20:in `block in process_action'
545
+ activesupport (4.2.7) lib/active_support/callbacks.rb:117:in `call'
546
+ activesupport (4.2.7) lib/active_support/callbacks.rb:117:in `call'
547
+ activesupport (4.2.7) lib/active_support/callbacks.rb:555:in `block (2 levels) in compile'
548
+ activesupport (4.2.7) lib/active_support/callbacks.rb:505:in `call'
549
+ activesupport (4.2.7) lib/active_support/callbacks.rb:505:in `call'
550
+ activesupport (4.2.7) lib/active_support/callbacks.rb:92:in `__run_callbacks__'
551
+ activesupport (4.2.7) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks'
552
+ activesupport (4.2.7) lib/active_support/callbacks.rb:81:in `run_callbacks'
553
+ actionpack (4.2.7) lib/abstract_controller/callbacks.rb:19:in `process_action'
554
+ actionpack (4.2.7) lib/action_controller/metal/rescue.rb:29:in `process_action'
555
+ actionpack (4.2.7) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'
556
+ activesupport (4.2.7) lib/active_support/notifications.rb:164:in `block in instrument'
557
+ activesupport (4.2.7) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
558
+ activesupport (4.2.7) lib/active_support/notifications.rb:164:in `instrument'
559
+ actionpack (4.2.7) lib/action_controller/metal/instrumentation.rb:30:in `process_action'
560
+ actionpack (4.2.7) lib/action_controller/metal/params_wrapper.rb:250:in `process_action'
561
+ activerecord (4.2.7) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
562
+ actionpack (4.2.7) lib/abstract_controller/base.rb:137:in `process'
563
+ actionview (4.2.7) lib/action_view/rendering.rb:30:in `process'
564
+ actionpack (4.2.7) lib/action_controller/metal.rb:196:in `dispatch'
565
+ actionpack (4.2.7) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
566
+ actionpack (4.2.7) lib/action_controller/metal.rb:237:in `block in action'
567
+ actionpack (4.2.7) lib/action_dispatch/routing/route_set.rb:74:in `call'
568
+ actionpack (4.2.7) lib/action_dispatch/routing/route_set.rb:74:in `dispatch'
569
+ actionpack (4.2.7) lib/action_dispatch/routing/route_set.rb:43:in `serve'
570
+ actionpack (4.2.7) lib/action_dispatch/journey/router.rb:43:in `block in serve'
571
+ actionpack (4.2.7) lib/action_dispatch/journey/router.rb:30:in `each'
572
+ actionpack (4.2.7) lib/action_dispatch/journey/router.rb:30:in `serve'
573
+ actionpack (4.2.7) lib/action_dispatch/routing/route_set.rb:817:in `call'
574
+ railties (4.2.7) lib/rails/engine.rb:518:in `call'
575
+ railties (4.2.7) lib/rails/railtie.rb:194:in `public_send'
576
+ railties (4.2.7) lib/rails/railtie.rb:194:in `method_missing'
577
+ actionpack (4.2.7) lib/action_dispatch/routing/mapper.rb:51:in `serve'
578
+ actionpack (4.2.7) lib/action_dispatch/journey/router.rb:43:in `block in serve'
579
+ actionpack (4.2.7) lib/action_dispatch/journey/router.rb:30:in `each'
580
+ actionpack (4.2.7) lib/action_dispatch/journey/router.rb:30:in `serve'
581
+ actionpack (4.2.7) lib/action_dispatch/routing/route_set.rb:817:in `call'
582
+ rack (1.6.4) lib/rack/etag.rb:24:in `call'
583
+ rack (1.6.4) lib/rack/conditionalget.rb:25:in `call'
584
+ rack (1.6.4) lib/rack/head.rb:13:in `call'
585
+ actionpack (4.2.7) lib/action_dispatch/middleware/params_parser.rb:27:in `call'
586
+ actionpack (4.2.7) lib/action_dispatch/middleware/flash.rb:260:in `call'
587
+ rack (1.6.4) lib/rack/session/abstract/id.rb:225:in `context'
588
+ rack (1.6.4) lib/rack/session/abstract/id.rb:220:in `call'
589
+ actionpack (4.2.7) lib/action_dispatch/middleware/cookies.rb:560:in `call'
590
+ activerecord (4.2.7) lib/active_record/query_cache.rb:36:in `call'
591
+ activerecord (4.2.7) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call'
592
+ activerecord (4.2.7) lib/active_record/migration.rb:377:in `call'
593
+ actionpack (4.2.7) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
594
+ activesupport (4.2.7) lib/active_support/callbacks.rb:88:in `__run_callbacks__'
595
+ activesupport (4.2.7) lib/active_support/callbacks.rb:778:in `_run_call_callbacks'
596
+ activesupport (4.2.7) lib/active_support/callbacks.rb:81:in `run_callbacks'
597
+ actionpack (4.2.7) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
598
+ actionpack (4.2.7) lib/action_dispatch/middleware/reloader.rb:73:in `call'
599
+ actionpack (4.2.7) lib/action_dispatch/middleware/remote_ip.rb:78:in `call'
600
+ actionpack (4.2.7) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
601
+ actionpack (4.2.7) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
602
+ railties (4.2.7) lib/rails/rack/logger.rb:38:in `call_app'
603
+ railties (4.2.7) lib/rails/rack/logger.rb:20:in `block in call'
604
+ activesupport (4.2.7) lib/active_support/tagged_logging.rb:68:in `block in tagged'
605
+ activesupport (4.2.7) lib/active_support/tagged_logging.rb:26:in `tagged'
606
+ activesupport (4.2.7) lib/active_support/tagged_logging.rb:68:in `tagged'
607
+ railties (4.2.7) lib/rails/rack/logger.rb:20:in `call'
608
+ actionpack (4.2.7) lib/action_dispatch/middleware/request_id.rb:21:in `call'
609
+ rack (1.6.4) lib/rack/methodoverride.rb:22:in `call'
610
+ rack (1.6.4) lib/rack/runtime.rb:18:in `call'
611
+ activesupport (4.2.7) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'
612
+ rack (1.6.4) lib/rack/lock.rb:17:in `call'
613
+ actionpack (4.2.7) lib/action_dispatch/middleware/static.rb:120:in `call'
614
+ rack (1.6.4) lib/rack/sendfile.rb:113:in `call'
615
+ railties (4.2.7) lib/rails/engine.rb:518:in `call'
616
+ railties (4.2.7) lib/rails/application.rb:165:in `call'
617
+ rack (1.6.4) lib/rack/lock.rb:17:in `call'
618
+ rack (1.6.4) lib/rack/content_length.rb:15:in `call'
619
+ rack (1.6.4) lib/rack/handler/webrick.rb:88:in `service'
620
+ /Users/YvesSi/.rbenv/versions/2.2.2/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service'
621
+ /Users/YvesSi/.rbenv/versions/2.2.2/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run'
622
+ /Users/YvesSi/.rbenv/versions/2.2.2/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread'
623
+
624
+
625
+ Rendered /Users/YvesSi/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.7/lib/action_dispatch/middleware/templates/rescues/_source.erb (21.3ms)
626
+ Rendered /Users/YvesSi/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.7/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (10.6ms)
627
+ Rendered /Users/YvesSi/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.7/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (17.2ms)
628
+ Rendered /Users/YvesSi/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/actionpack-4.2.7/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (136.7ms)
629
+
630
+
631
+ Started GET "/better_frame" for ::1 at 2016-07-14 08:49:01 +0200
632
+ Processing by BetterFrame::ApiController#include as HTML
633
+ Rendered /Users/YvesSi/Projects/better_frame/app/views/better_frame/api/include.js.erb (247.2ms)
634
+ Completed 200 OK in 268ms (Views: 267.7ms | ActiveRecord: 0.0ms)
@@ -0,0 +1,3 @@
1
+ [o:Set:
2
+ @hash{
3
+ I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"jfile-digest:///Users/YvesSi/Projects/better_frame/app/assets/javascripts/better_frame/better_frame.js;TT
@@ -0,0 +1,2 @@
1
+ [o:Set:
2
+ @hash{I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI"Lprocessors:type=application/javascript&file_type=application/javascript;TTI"ifile-digest:///Users/YvesSi/Projects/better_frame/app/assets/javascripts/better_frame/application.js;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"kfile-digest:///Users/YvesSi/Projects/better_frame/vendor/assets/javascripts/better_frame/jquery-ujs.js;TTI"jfile-digest:///Users/YvesSi/Projects/better_frame/app/assets/javascripts/better_frame/better_frame.js;TTI"1file-digest://app/assets/images/better_frame;TTI"<file-digest://app/assets/images/better_frame/jquery-ujs;TTI"6file-digest://app/assets/javascripts/better_frame;TTI"Afile-digest://app/assets/javascripts/better_frame/jquery-ujs;TTI"6file-digest://app/assets/stylesheets/better_frame;TTI"Afile-digest://app/assets/stylesheets/better_frame/jquery-ujs;TTI"Ufile-digest:///Users/YvesSi/Projects/better_frame/app/assets/images/better_frame;TTI"`file-digest:///Users/YvesSi/Projects/better_frame/app/assets/images/better_frame/jquery-ujs;TTI"Zfile-digest:///Users/YvesSi/Projects/better_frame/app/assets/javascripts/better_frame;TTI"efile-digest:///Users/YvesSi/Projects/better_frame/app/assets/javascripts/better_frame/jquery-ujs;TTI"Zfile-digest:///Users/YvesSi/Projects/better_frame/app/assets/stylesheets/better_frame;TTI"efile-digest:///Users/YvesSi/Projects/better_frame/app/assets/stylesheets/better_frame/jquery-ujs;TTI"]file-digest:///Users/YvesSi/Projects/better_frame/vendor/assets/javascripts/better_frame;TTI"hfile-digest:///Users/YvesSi/Projects/better_frame/vendor/assets/javascripts/better_frame/jquery-ujs;TT
@@ -0,0 +1 @@
1
+ I"�/Users/YvesSi/Projects/better_frame/vendor/assets/javascripts/better_frame/jquery-ujs.js?type=application/javascript&pipeline=self&id=1e1c1c18d919a331b60ab4d06a18ec1ae8d2de374b544272ed66f882d6195ede:ET
@@ -0,0 +1 @@
1
+ "%)�������'�8ȢjX��!J4�Cu��X�4�
@@ -0,0 +1 @@
1
+ "%��hV��]j��V�RP˓&e fgB_��ؐ
@@ -0,0 +1 @@
1
+ I"�/Users/YvesSi/Projects/better_frame/app/assets/javascripts/better_frame/application.js?type=application/javascript&id=4e36a1faabfe4afe765cd9fed805fd25f65f13d6593e6e0e26b835bb1c16587c:ET
@@ -0,0 +1 @@
1
+ "%�^M��h�E�uu �b��^uf}>��}r�w��
@@ -0,0 +1 @@
1
+ "%��B�����șo�$'�A�d��L���xR�U
@@ -0,0 +1 @@
1
+ "%%ͥzg@��uPi���^�H�<򈤾��;!�
@@ -0,0 +1,2 @@
1
+ [o:Set:
2
+ @hash{I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"ifile-digest:///Users/YvesSi/Projects/better_frame/app/assets/javascripts/better_frame/application.js;TTI"1file-digest://app/assets/images/better_frame;TTI"<file-digest://app/assets/images/better_frame/jquery-ujs;TTI"6file-digest://app/assets/javascripts/better_frame;TTI"Afile-digest://app/assets/javascripts/better_frame/jquery-ujs;TTI"6file-digest://app/assets/stylesheets/better_frame;TTI"Afile-digest://app/assets/stylesheets/better_frame/jquery-ujs;TTI"Ufile-digest:///Users/YvesSi/Projects/better_frame/app/assets/images/better_frame;TTI"`file-digest:///Users/YvesSi/Projects/better_frame/app/assets/images/better_frame/jquery-ujs;TTI"Zfile-digest:///Users/YvesSi/Projects/better_frame/app/assets/javascripts/better_frame;TTI"efile-digest:///Users/YvesSi/Projects/better_frame/app/assets/javascripts/better_frame/jquery-ujs;TTI"Zfile-digest:///Users/YvesSi/Projects/better_frame/app/assets/stylesheets/better_frame;TTI"efile-digest:///Users/YvesSi/Projects/better_frame/app/assets/stylesheets/better_frame/jquery-ujs;TTI"]file-digest:///Users/YvesSi/Projects/better_frame/vendor/assets/javascripts/better_frame;TTI"hfile-digest:///Users/YvesSi/Projects/better_frame/vendor/assets/javascripts/better_frame/jquery-ujs;TTI"kfile-digest:///Users/YvesSi/Projects/better_frame/vendor/assets/javascripts/better_frame/jquery-ujs.js;TTI"jfile-digest:///Users/YvesSi/Projects/better_frame/app/assets/javascripts/better_frame/better_frame.js;TT
@@ -0,0 +1 @@
1
+ "%�^M��h�E�uu �b��^uf}>��}r�w��
@@ -0,0 +1 @@
1
+ I"�/Users/YvesSi/Projects/better_frame/app/assets/javascripts/better_frame/better_frame.js?type=application/javascript&pipeline=self&id=89a268a799159bc32a047a932b4f2334849fa57090216bcfb1aaa1a72f8b0ee3:ET
@@ -0,0 +1,3 @@
1
+ [o:Set:
2
+ @hash{
3
+ I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"kfile-digest:///Users/YvesSi/Projects/better_frame/vendor/assets/javascripts/better_frame/jquery-ujs.js;TT
@@ -0,0 +1 @@
1
+ "%���e=܊co�8S��������Gl)��{Q�
@@ -0,0 +1 @@
1
+ I"�/Users/YvesSi/Projects/better_frame/app/assets/javascripts/better_frame/application.js?type=application/javascript&pipeline=self&id=9875f26128c1e21ea3950f0407c63c020f4bfed515db46b25513e8f34b0666a2:ET
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: better_frame
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
  - Yves Siegrist
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-07-13 00:00:00.000000000 Z
11
+ date: 2016-07-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -85,7 +85,6 @@ files:
85
85
  - Rakefile
86
86
  - app/assets/javascripts/better_frame/application.js
87
87
  - app/assets/javascripts/better_frame/better_frame.js
88
- - app/assets/javascripts/better_frame/jquery-ujs.js
89
88
  - app/assets/stylesheets/better_frame/application.css
90
89
  - app/controllers/better_frame/api_controller.rb
91
90
  - app/controllers/better_frame/application_controller.rb
@@ -137,6 +136,7 @@ files:
137
136
  - test/dummy/public/422.html
138
137
  - test/dummy/public/500.html
139
138
  - test/dummy/public/favicon.ico
139
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/-U/-UF4rrUOO5TGqLjCV3hWaJ2n7Eejrp7p1vMTTEpB1g4.cache
140
140
  - test/dummy/tmp/cache/assets/sprockets/v3.0/05/05dJT5kHbHdYC9fh5aYzmm4QgRB7bJCHHnFkncdl_i8.cache
141
141
  - test/dummy/tmp/cache/assets/sprockets/v3.0/06/06g29tG6sD-8eZ4WQsdbyyLOs2ExTzqfS5A8Ua0W_3U.cache
142
142
  - test/dummy/tmp/cache/assets/sprockets/v3.0/0Q/0QJqsJu06yj21UrT9OM-665H2YBDCiRXCXi7VjK-NZk.cache
@@ -145,17 +145,25 @@ files:
145
145
  - test/dummy/tmp/cache/assets/sprockets/v3.0/2l/2lXYzvW9QQ1yuse4mwl7YRZBxyMTWSWwYBI2HyWKm4c.cache
146
146
  - test/dummy/tmp/cache/assets/sprockets/v3.0/3V/3VxVdKH0WTrlufIfawmXcVQ5gUXCkxUsFmxnhyiRHe4.cache
147
147
  - test/dummy/tmp/cache/assets/sprockets/v3.0/3p/3p498fGWaomalX2pg-NtSTCGW5cvVy12WWclD4vDPzA.cache
148
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/4N/4NwH0RDw9DgaNyUsqVWWtsiWlrI-sdELQFc6TXGnxd8.cache
148
149
  - test/dummy/tmp/cache/assets/sprockets/v3.0/5L/5Lly_CA8DZvPhQV2jDQx-Y6P_y3Ygra9t5jfSlGhHDA.cache
150
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/6C/6CoG0W7jAq_A3gtoiOk94XHFUGD3-9M5GW3uNBzj6yE.cache
149
151
  - test/dummy/tmp/cache/assets/sprockets/v3.0/6n/6n5Wwq3TTknif7ZqSn9U_xmUTTXUNkHd8rVMCVOJLb0.cache
152
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/86/866q36DGmnkGHvYISyzZT6MNE46R4rXtkVdH9sj8Dgo.cache
150
153
  - test/dummy/tmp/cache/assets/sprockets/v3.0/8H/8HzYTTh9PrbpPAQIYNG-dNUDdoYqzPxeVt8VNS32-c8.cache
151
154
  - test/dummy/tmp/cache/assets/sprockets/v3.0/9I/9Ifg8Z4-cRSvQaNqZv8GhnCJeXnAhAoaLHdSeUGMfj4.cache
152
155
  - test/dummy/tmp/cache/assets/sprockets/v3.0/9x/9xjl8W3RzwZ636saHQQ4sZ__44krDdpRqedIHXe6Jmc.cache
156
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/A7/A7mMkoEbbynYtn0Ekl5HtoYn9HRP5IYzd98aGb_8S24.cache
153
157
  - test/dummy/tmp/cache/assets/sprockets/v3.0/BS/BSGxxXE3zhOpIF1l6CWhIapdKBUcx80GAMYk08JT9tQ.cache
158
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/BZ/BZxsmR9Tu9PgEU5-ODBTT-_Sd8_WYG0CxmlWOCBPyPc.cache
159
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/D3/D3E_u8aP1-8k1Ea--HLYBVSsGfQtgWlcJbBQmYnhJho.cache
154
160
  - test/dummy/tmp/cache/assets/sprockets/v3.0/E1/E180QQjV9ByJ8ni5JD1npeff2gdXJH59MNa2X0kkoDY.cache
155
161
  - test/dummy/tmp/cache/assets/sprockets/v3.0/Eh/EhT-6lV5T_LOXsmS74yMS00Rq3mtYJy3eBgsanRKC2o.cache
156
162
  - test/dummy/tmp/cache/assets/sprockets/v3.0/FW/FWTZ8XU81luG-WSwRbhl1UPlDGVmWw5vHi1kxTzy1vs.cache
157
163
  - test/dummy/tmp/cache/assets/sprockets/v3.0/Hb/Hb20VxnNv44tzEHvjoGU79fhBGJER3v2IAkRGeSDx9c.cache
158
164
  - test/dummy/tmp/cache/assets/sprockets/v3.0/IQ/IQFf94JMoMRSsuX1ABxYhZKGgJKU_s08F2s8dw9OiXM.cache
165
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/Iw/IwM9HxYJwvtPLAbM5jgrkK32oYlIlogVgJZmvp6R7PM.cache
166
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/N8/N8bTCyNNE19QpLIim2VjWoDQ_-harb5Fgz5ujL4v67E.cache
159
167
  - test/dummy/tmp/cache/assets/sprockets/v3.0/OI/OI6uxGcnsKavdWTtwDAasU3wPx8QXhzBgV0X2n1KjMQ.cache
160
168
  - test/dummy/tmp/cache/assets/sprockets/v3.0/P8/P8_H1P2qWDQvVNxfsACwndyhXM1d4oIUlnqWgFJYAHU.cache
161
169
  - test/dummy/tmp/cache/assets/sprockets/v3.0/PH/PH9VNK-TKOwtUcbiWBInXujUiGW2DuQIyr31LcB7hZ0.cache
@@ -165,8 +173,15 @@ files:
165
173
  - test/dummy/tmp/cache/assets/sprockets/v3.0/UD/UDs1ANCz_5JLG5rfCkTP0gVJqyN456JCzl7Es1ZimAw.cache
166
174
  - test/dummy/tmp/cache/assets/sprockets/v3.0/Uf/UfOjS_XOCFu5WK8fKji8aAz6GiuWaPry6Fd3cxT2s-g.cache
167
175
  - test/dummy/tmp/cache/assets/sprockets/v3.0/V9/V9sJyFczu6jh034q9gtqFhscD6Qyn4n3ObfjVfgsLYM.cache
176
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/VP/VPo97yJZ6cldC6CSdbHdAQI7w90zCLQYdX3wzCKuxbM.cache
177
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/WA/WArUBg3e2XDJgX-yr3VKa9Z9MWsYuAIhujUfYbynp4I.cache
178
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/WP/WPF6bHwvvtrZ0OaJZX0-1ap5ClEyDrIGpAsaLTyunOc.cache
179
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/YX/YXyg5vNjh3mk8OHzPYKBmwiVuwbcVx-zPfKr91XE56w.cache
180
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/ZR/ZRgyWI_sH8vLMItcb3tWWOARtEEyORGq2AZdoJl3qYo.cache
181
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/aL/aLIQ7TRiw8b4LN_dZEDwmZMcEg_lDExomPyyeSv8hpE.cache
168
182
  - test/dummy/tmp/cache/assets/sprockets/v3.0/aZ/aZUUurpDlOd0Nom5bHzSyWAmUlCeuavTqagtehhfh6w.cache
169
183
  - test/dummy/tmp/cache/assets/sprockets/v3.0/b8/b8wPbH-jz0E_8NYCcvEA86_ZYbi1eGgKJyp1Rx3nR4I.cache
184
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/d-/d-si9U_lgjWm7lqt82Lgk2ypfn6yXnIcgzpQrv_3FYo.cache
170
185
  - test/dummy/tmp/cache/assets/sprockets/v3.0/eV/eVMv5tkg7zmyV83Vlqb0kdMrFY7dGjezbxyer8NnAY8.cache
171
186
  - test/dummy/tmp/cache/assets/sprockets/v3.0/eW/eWbmvytv-Y07apUFeY4gaAAc-3lFYQm_BvlXsyfdVPg.cache
172
187
  - test/dummy/tmp/cache/assets/sprockets/v3.0/fH/fHnrrVKpXS6UH310ICv6F_RqJUVskXkgg76_DK4k0qw.cache
@@ -179,7 +194,11 @@ files:
179
194
  - test/dummy/tmp/cache/assets/sprockets/v3.0/pE/pEhaat2KBd5SrT7szC_8R1_6hK17FTpvoRFkmCRSD3M.cache
180
195
  - test/dummy/tmp/cache/assets/sprockets/v3.0/pk/pkVgBJHJBczKFxUhJi4dLDLmDsGrEVkQ8P2cjgZh3L0.cache
181
196
  - test/dummy/tmp/cache/assets/sprockets/v3.0/qU/qUJu3-6hnwhWY43BIO_7CU7V6w3zpI5qehYdt7Czs6Q.cache
197
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/sc/sc_cvz9ujmCBwQwtw93KNqcaEZaX_-ZqkpQoBCUu1ME.cache
198
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/tA/tAQK3TnXA5U6bpAJkCc9XZ8ED1V3_hh2dNiBiebEHSk.cache
199
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/tI/tIA189AhePTmxEmtI8YCdJffexgn_Wlu3LEkvBspNM4.cache
182
200
  - test/dummy/tmp/cache/assets/sprockets/v3.0/tz/tzkajjporZ8qATygMdV8UCEDMOUiSMshAvwF3tWROxI.cache
201
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/vE/vEBmsp3Y06XVU40PqBhxWsMx2x2tOG6gqMq2-cYKeR8.cache
183
202
  - test/dummy/tmp/cache/assets/sprockets/v3.0/zC/zCvZR1O3X9hF89g5lHgzBXdtAsSuF8HgVwFwxYFYiIc.cache
184
203
  - test/dummy/tmp/cache/assets/sprockets/v3.0/zV/zVGZ1MAEaZH5-xDkESXQWmjz_aGPt5-cOrqSAVYJzIU.cache
185
204
  - test/integration/navigation_test.rb
@@ -248,6 +267,7 @@ test_files:
248
267
  - test/dummy/public/favicon.ico
249
268
  - test/dummy/Rakefile
250
269
  - test/dummy/README.rdoc
270
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/-U/-UF4rrUOO5TGqLjCV3hWaJ2n7Eejrp7p1vMTTEpB1g4.cache
251
271
  - test/dummy/tmp/cache/assets/sprockets/v3.0/05/05dJT5kHbHdYC9fh5aYzmm4QgRB7bJCHHnFkncdl_i8.cache
252
272
  - test/dummy/tmp/cache/assets/sprockets/v3.0/06/06g29tG6sD-8eZ4WQsdbyyLOs2ExTzqfS5A8Ua0W_3U.cache
253
273
  - test/dummy/tmp/cache/assets/sprockets/v3.0/0Q/0QJqsJu06yj21UrT9OM-665H2YBDCiRXCXi7VjK-NZk.cache
@@ -256,14 +276,22 @@ test_files:
256
276
  - test/dummy/tmp/cache/assets/sprockets/v3.0/2l/2lXYzvW9QQ1yuse4mwl7YRZBxyMTWSWwYBI2HyWKm4c.cache
257
277
  - test/dummy/tmp/cache/assets/sprockets/v3.0/3p/3p498fGWaomalX2pg-NtSTCGW5cvVy12WWclD4vDPzA.cache
258
278
  - test/dummy/tmp/cache/assets/sprockets/v3.0/3V/3VxVdKH0WTrlufIfawmXcVQ5gUXCkxUsFmxnhyiRHe4.cache
279
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/4N/4NwH0RDw9DgaNyUsqVWWtsiWlrI-sdELQFc6TXGnxd8.cache
259
280
  - test/dummy/tmp/cache/assets/sprockets/v3.0/5L/5Lly_CA8DZvPhQV2jDQx-Y6P_y3Ygra9t5jfSlGhHDA.cache
281
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/6C/6CoG0W7jAq_A3gtoiOk94XHFUGD3-9M5GW3uNBzj6yE.cache
260
282
  - test/dummy/tmp/cache/assets/sprockets/v3.0/6n/6n5Wwq3TTknif7ZqSn9U_xmUTTXUNkHd8rVMCVOJLb0.cache
283
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/86/866q36DGmnkGHvYISyzZT6MNE46R4rXtkVdH9sj8Dgo.cache
261
284
  - test/dummy/tmp/cache/assets/sprockets/v3.0/8H/8HzYTTh9PrbpPAQIYNG-dNUDdoYqzPxeVt8VNS32-c8.cache
262
285
  - test/dummy/tmp/cache/assets/sprockets/v3.0/9I/9Ifg8Z4-cRSvQaNqZv8GhnCJeXnAhAoaLHdSeUGMfj4.cache
263
286
  - test/dummy/tmp/cache/assets/sprockets/v3.0/9x/9xjl8W3RzwZ636saHQQ4sZ__44krDdpRqedIHXe6Jmc.cache
287
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/A7/A7mMkoEbbynYtn0Ekl5HtoYn9HRP5IYzd98aGb_8S24.cache
288
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/aL/aLIQ7TRiw8b4LN_dZEDwmZMcEg_lDExomPyyeSv8hpE.cache
264
289
  - test/dummy/tmp/cache/assets/sprockets/v3.0/aZ/aZUUurpDlOd0Nom5bHzSyWAmUlCeuavTqagtehhfh6w.cache
265
290
  - test/dummy/tmp/cache/assets/sprockets/v3.0/b8/b8wPbH-jz0E_8NYCcvEA86_ZYbi1eGgKJyp1Rx3nR4I.cache
266
291
  - test/dummy/tmp/cache/assets/sprockets/v3.0/BS/BSGxxXE3zhOpIF1l6CWhIapdKBUcx80GAMYk08JT9tQ.cache
292
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/BZ/BZxsmR9Tu9PgEU5-ODBTT-_Sd8_WYG0CxmlWOCBPyPc.cache
293
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/d-/d-si9U_lgjWm7lqt82Lgk2ypfn6yXnIcgzpQrv_3FYo.cache
294
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/D3/D3E_u8aP1-8k1Ea--HLYBVSsGfQtgWlcJbBQmYnhJho.cache
267
295
  - test/dummy/tmp/cache/assets/sprockets/v3.0/E1/E180QQjV9ByJ8ni5JD1npeff2gdXJH59MNa2X0kkoDY.cache
268
296
  - test/dummy/tmp/cache/assets/sprockets/v3.0/Eh/EhT-6lV5T_LOXsmS74yMS00Rq3mtYJy3eBgsanRKC2o.cache
269
297
  - test/dummy/tmp/cache/assets/sprockets/v3.0/eV/eVMv5tkg7zmyV83Vlqb0kdMrFY7dGjezbxyer8NnAY8.cache
@@ -276,8 +304,10 @@ test_files:
276
304
  - test/dummy/tmp/cache/assets/sprockets/v3.0/iG/iGlUGOWl7fvWZJi5GG2Pu4jqsN0NfI2720QCQ1WN4dg.cache
277
305
  - test/dummy/tmp/cache/assets/sprockets/v3.0/IQ/IQFf94JMoMRSsuX1ABxYhZKGgJKU_s08F2s8dw9OiXM.cache
278
306
  - test/dummy/tmp/cache/assets/sprockets/v3.0/iU/iUF2SYov8Uctd7JlIdQEl_-P1-QFMOezxWvKScsJDj8.cache
307
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/Iw/IwM9HxYJwvtPLAbM5jgrkK32oYlIlogVgJZmvp6R7PM.cache
279
308
  - test/dummy/tmp/cache/assets/sprockets/v3.0/kc/kc8Vtq8k57jiZ_8gNrE709_la6tEI-0O_ggpb6dzZyI.cache
280
309
  - test/dummy/tmp/cache/assets/sprockets/v3.0/lh/lhf0U9BdQek3HV8xDosD8VDEIW4pnFnG3ZJyy0aQ85o.cache
310
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/N8/N8bTCyNNE19QpLIim2VjWoDQ_-harb5Fgz5ujL4v67E.cache
281
311
  - test/dummy/tmp/cache/assets/sprockets/v3.0/OI/OI6uxGcnsKavdWTtwDAasU3wPx8QXhzBgV0X2n1KjMQ.cache
282
312
  - test/dummy/tmp/cache/assets/sprockets/v3.0/P8/P8_H1P2qWDQvVNxfsACwndyhXM1d4oIUlnqWgFJYAHU.cache
283
313
  - test/dummy/tmp/cache/assets/sprockets/v3.0/pE/pEhaat2KBd5SrT7szC_8R1_6hK17FTpvoRFkmCRSD3M.cache
@@ -285,13 +315,22 @@ test_files:
285
315
  - test/dummy/tmp/cache/assets/sprockets/v3.0/pk/pkVgBJHJBczKFxUhJi4dLDLmDsGrEVkQ8P2cjgZh3L0.cache
286
316
  - test/dummy/tmp/cache/assets/sprockets/v3.0/Q6/Q6WYcAgF_tevBIT_iZkQSk9dRB1mz-bqMo_3dyB0oh4.cache
287
317
  - test/dummy/tmp/cache/assets/sprockets/v3.0/qU/qUJu3-6hnwhWY43BIO_7CU7V6w3zpI5qehYdt7Czs6Q.cache
318
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/sc/sc_cvz9ujmCBwQwtw93KNqcaEZaX_-ZqkpQoBCUu1ME.cache
288
319
  - test/dummy/tmp/cache/assets/sprockets/v3.0/Sk/SkvWm-PhO9HiTFWvW0hLslGJ82RVUwItyY5Cv1k8inw.cache
289
320
  - test/dummy/tmp/cache/assets/sprockets/v3.0/T0/T0QQD1aiD_6MalQ-61TOl6A4gAXeo7_iIxqSt-D33es.cache
321
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/tA/tAQK3TnXA5U6bpAJkCc9XZ8ED1V3_hh2dNiBiebEHSk.cache
322
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/tI/tIA189AhePTmxEmtI8YCdJffexgn_Wlu3LEkvBspNM4.cache
290
323
  - test/dummy/tmp/cache/assets/sprockets/v3.0/tz/tzkajjporZ8qATygMdV8UCEDMOUiSMshAvwF3tWROxI.cache
291
324
  - test/dummy/tmp/cache/assets/sprockets/v3.0/UD/UDs1ANCz_5JLG5rfCkTP0gVJqyN456JCzl7Es1ZimAw.cache
292
325
  - test/dummy/tmp/cache/assets/sprockets/v3.0/Uf/UfOjS_XOCFu5WK8fKji8aAz6GiuWaPry6Fd3cxT2s-g.cache
293
326
  - test/dummy/tmp/cache/assets/sprockets/v3.0/V9/V9sJyFczu6jh034q9gtqFhscD6Qyn4n3ObfjVfgsLYM.cache
327
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/vE/vEBmsp3Y06XVU40PqBhxWsMx2x2tOG6gqMq2-cYKeR8.cache
328
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/VP/VPo97yJZ6cldC6CSdbHdAQI7w90zCLQYdX3wzCKuxbM.cache
329
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/WA/WArUBg3e2XDJgX-yr3VKa9Z9MWsYuAIhujUfYbynp4I.cache
330
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/WP/WPF6bHwvvtrZ0OaJZX0-1ap5ClEyDrIGpAsaLTyunOc.cache
331
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/YX/YXyg5vNjh3mk8OHzPYKBmwiVuwbcVx-zPfKr91XE56w.cache
294
332
  - test/dummy/tmp/cache/assets/sprockets/v3.0/zC/zCvZR1O3X9hF89g5lHgzBXdtAsSuF8HgVwFwxYFYiIc.cache
333
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/ZR/ZRgyWI_sH8vLMItcb3tWWOARtEEyORGq2AZdoJl3qYo.cache
295
334
  - test/dummy/tmp/cache/assets/sprockets/v3.0/zV/zVGZ1MAEaZH5-xDkESXQWmjz_aGPt5-cOrqSAVYJzIU.cache
296
335
  - test/integration/navigation_test.rb
297
336
  - test/test_helper.rb
@@ -1,550 +0,0 @@
1
- (function($, undefined) {
2
-
3
- /**
4
- * Unobtrusive scripting adapter for jQuery
5
- * https://github.com/rails/jquery-ujs
6
- *
7
- * Requires jQuery 1.8.0 or later.
8
- *
9
- * Released under the MIT license
10
- *
11
- */
12
-
13
- // Cut down on the number of issues from people inadvertently including jquery_ujs twice
14
- // by detecting and raising an error when it happens.
15
- 'use strict';
16
-
17
- if ( $.rails !== undefined ) {
18
- $.error('jquery-ujs has already been loaded!');
19
- }
20
-
21
- // Shorthand to make it a little easier to call public rails functions from within rails.js
22
- var rails;
23
- var $document = $(document);
24
-
25
- $.rails = rails = {
26
- // Link elements bound by jquery-ujs
27
- linkClickSelector: 'a[data-confirm], a[data-method], a[data-remote]:not([disabled]), a[data-disable-with], a[data-disable]',
28
-
29
- // Button elements bound by jquery-ujs
30
- buttonClickSelector: 'button[data-remote]:not([form]):not(form button), button[data-confirm]:not([form]):not(form button)',
31
-
32
- // Select elements bound by jquery-ujs
33
- inputChangeSelector: 'select[data-remote], input[data-remote], textarea[data-remote]',
34
-
35
- // Form elements bound by jquery-ujs
36
- formSubmitSelector: 'form',
37
-
38
- // Form input elements bound by jquery-ujs
39
- formInputClickSelector: 'form input[type=submit], form input[type=image], form button[type=submit], form button:not([type]), input[type=submit][form], input[type=image][form], button[type=submit][form], button[form]:not([type])',
40
-
41
- // Form input elements disabled during form submission
42
- disableSelector: 'input[data-disable-with]:enabled, button[data-disable-with]:enabled, textarea[data-disable-with]:enabled, input[data-disable]:enabled, button[data-disable]:enabled, textarea[data-disable]:enabled',
43
-
44
- // Form input elements re-enabled after form submission
45
- enableSelector: 'input[data-disable-with]:disabled, button[data-disable-with]:disabled, textarea[data-disable-with]:disabled, input[data-disable]:disabled, button[data-disable]:disabled, textarea[data-disable]:disabled',
46
-
47
- // Form required input elements
48
- requiredInputSelector: 'input[name][required]:not([disabled]), textarea[name][required]:not([disabled])',
49
-
50
- // Form file input elements
51
- fileInputSelector: 'input[name][type=file]:not([disabled])',
52
-
53
- // Link onClick disable selector with possible reenable after remote submission
54
- linkDisableSelector: 'a[data-disable-with], a[data-disable]',
55
-
56
- // Button onClick disable selector with possible reenable after remote submission
57
- buttonDisableSelector: 'button[data-remote][data-disable-with], button[data-remote][data-disable]',
58
-
59
- // Up-to-date Cross-Site Request Forgery token
60
- csrfToken: function() {
61
- return $('meta[name=csrf-token]').attr('content');
62
- },
63
-
64
- // URL param that must contain the CSRF token
65
- csrfParam: function() {
66
- return $('meta[name=csrf-param]').attr('content');
67
- },
68
-
69
- // Make sure that every Ajax request sends the CSRF token
70
- CSRFProtection: function(xhr) {
71
- var token = rails.csrfToken();
72
- if (token) xhr.setRequestHeader('X-CSRF-Token', token);
73
- },
74
-
75
- // Make sure that all forms have actual up-to-date tokens (cached forms contain old ones)
76
- refreshCSRFTokens: function(){
77
- $('form input[name="' + rails.csrfParam() + '"]').val(rails.csrfToken());
78
- },
79
-
80
- // Triggers an event on an element and returns false if the event result is false
81
- fire: function(obj, name, data) {
82
- var event = $.Event(name);
83
- obj.trigger(event, data);
84
- return event.result !== false;
85
- },
86
-
87
- // Default confirm dialog, may be overridden with custom confirm dialog in $.rails.confirm
88
- confirm: function(message) {
89
- return confirm(message);
90
- },
91
-
92
- // Default ajax function, may be overridden with custom function in $.rails.ajax
93
- ajax: function(options) {
94
- return $.ajax(options);
95
- },
96
-
97
- // Default way to get an element's href. May be overridden at $.rails.href.
98
- href: function(element) {
99
- return element[0].href;
100
- },
101
-
102
- // Checks "data-remote" if true to handle the request through a XHR request.
103
- isRemote: function(element) {
104
- return element.data('remote') !== undefined && element.data('remote') !== false;
105
- },
106
-
107
- // Submits "remote" forms and links with ajax
108
- handleRemote: function(element) {
109
- var method, url, data, withCredentials, dataType, options;
110
-
111
- if (rails.fire(element, 'ajax:before')) {
112
- withCredentials = element.data('with-credentials') || null;
113
- dataType = element.data('type') || ($.ajaxSettings && $.ajaxSettings.dataType);
114
-
115
- if (element.is('form')) {
116
- method = element.data('ujs:submit-button-formmethod') || element.attr('method');
117
- url = element.data('ujs:submit-button-formaction') || element.attr('action');
118
- data = $(element[0]).serializeArray();
119
- // memoized value from clicked submit button
120
- var button = element.data('ujs:submit-button');
121
- if (button) {
122
- data.push(button);
123
- element.data('ujs:submit-button', null);
124
- }
125
- element.data('ujs:submit-button-formmethod', null);
126
- element.data('ujs:submit-button-formaction', null);
127
- } else if (element.is(rails.inputChangeSelector)) {
128
- method = element.data('method');
129
- url = element.data('url');
130
- data = element.serialize();
131
- if (element.data('params')) data = data + '&' + element.data('params');
132
- } else if (element.is(rails.buttonClickSelector)) {
133
- method = element.data('method') || 'get';
134
- url = element.data('url');
135
- data = element.serialize();
136
- if (element.data('params')) data = data + '&' + element.data('params');
137
- } else {
138
- method = element.data('method');
139
- url = rails.href(element);
140
- data = element.data('params') || null;
141
- }
142
-
143
- options = {
144
- type: method || 'GET', data: data, dataType: dataType,
145
- // stopping the "ajax:beforeSend" event will cancel the ajax request
146
- beforeSend: function(xhr, settings) {
147
- if (settings.dataType === undefined) {
148
- xhr.setRequestHeader('accept', '*/*;q=0.5, ' + settings.accepts.script);
149
- }
150
- if (rails.fire(element, 'ajax:beforeSend', [xhr, settings])) {
151
- element.trigger('ajax:send', xhr);
152
- } else {
153
- return false;
154
- }
155
- },
156
- success: function(data, status, xhr) {
157
- element.trigger('ajax:success', [data, status, xhr]);
158
- },
159
- complete: function(xhr, status) {
160
- element.trigger('ajax:complete', [xhr, status]);
161
- },
162
- error: function(xhr, status, error) {
163
- element.trigger('ajax:error', [xhr, status, error]);
164
- },
165
- crossDomain: rails.isCrossDomain(url)
166
- };
167
-
168
- // There is no withCredentials for IE6-8 when
169
- // "Enable native XMLHTTP support" is disabled
170
- if (withCredentials) {
171
- options.xhrFields = {
172
- withCredentials: withCredentials
173
- };
174
- }
175
-
176
- // If the remote is called with get leave the query string to ?query=...
177
- // Else: Send the form as form data, to be able to send files with ajax
178
- if (method.toLowerCase() !== "get") {
179
- options.processData = false;
180
- options.contentType = false;
181
- options.data = new FormData(element[0]);
182
- }
183
-
184
- // Only pass url to `ajax` options if not blank
185
- if (url) { options.url = url; }
186
-
187
- return rails.ajax(options);
188
- } else {
189
- return false;
190
- }
191
- },
192
-
193
- // Determines if the request is a cross domain request.
194
- isCrossDomain: function(url) {
195
- var originAnchor = document.createElement('a');
196
- originAnchor.href = location.href;
197
- var urlAnchor = document.createElement('a');
198
-
199
- try {
200
- urlAnchor.href = url;
201
- // This is a workaround to a IE bug.
202
- urlAnchor.href = urlAnchor.href;
203
-
204
- // If URL protocol is false or is a string containing a single colon
205
- // *and* host are false, assume it is not a cross-domain request
206
- // (should only be the case for IE7 and IE compatibility mode).
207
- // Otherwise, evaluate protocol and host of the URL against the origin
208
- // protocol and host.
209
- return !(((!urlAnchor.protocol || urlAnchor.protocol === ':') && !urlAnchor.host) ||
210
- (originAnchor.protocol + '//' + originAnchor.host ===
211
- urlAnchor.protocol + '//' + urlAnchor.host));
212
- } catch (e) {
213
- // If there is an error parsing the URL, assume it is crossDomain.
214
- return true;
215
- }
216
- },
217
-
218
- // Handles "data-method" on links such as:
219
- // <a href="/users/5" data-method="delete" rel="nofollow" data-confirm="Are you sure?">Delete</a>
220
- handleMethod: function(link) {
221
- var href = rails.href(link),
222
- method = link.data('method'),
223
- target = link.attr('target'),
224
- csrfToken = rails.csrfToken(),
225
- csrfParam = rails.csrfParam(),
226
- form = $('<form method="post" action="' + href + '"></form>'),
227
- metadataInput = '<input name="_method" value="' + method + '" type="hidden" />';
228
-
229
- if (csrfParam !== undefined && csrfToken !== undefined && !rails.isCrossDomain(href)) {
230
- metadataInput += '<input name="' + csrfParam + '" value="' + csrfToken + '" type="hidden" />';
231
- }
232
-
233
- if (target) { form.attr('target', target); }
234
-
235
- form.hide().append(metadataInput).appendTo('body');
236
- form.submit();
237
- },
238
-
239
- // Helper function that returns form elements that match the specified CSS selector
240
- // If form is actually a "form" element this will return associated elements outside the from that have
241
- // the html form attribute set
242
- formElements: function(form, selector) {
243
- return form.is('form') ? $(form[0].elements).filter(selector) : form.find(selector);
244
- },
245
-
246
- /* Disables form elements:
247
- - Caches element value in 'ujs:enable-with' data store
248
- - Replaces element text with value of 'data-disable-with' attribute
249
- - Sets disabled property to true
250
- */
251
- disableFormElements: function(form) {
252
- rails.formElements(form, rails.disableSelector).each(function() {
253
- rails.disableFormElement($(this));
254
- });
255
- },
256
-
257
- disableFormElement: function(element) {
258
- var method, replacement;
259
-
260
- method = element.is('button') ? 'html' : 'val';
261
- replacement = element.data('disable-with');
262
-
263
- if (replacement !== undefined) {
264
- element.data('ujs:enable-with', element[method]());
265
- element[method](replacement);
266
- }
267
-
268
- element.prop('disabled', true);
269
- element.data('ujs:disabled', true);
270
- },
271
-
272
- /* Re-enables disabled form elements:
273
- - Replaces element text with cached value from 'ujs:enable-with' data store (created in `disableFormElements`)
274
- - Sets disabled property to false
275
- */
276
- enableFormElements: function(form) {
277
- rails.formElements(form, rails.enableSelector).each(function() {
278
- rails.enableFormElement($(this));
279
- });
280
- },
281
-
282
- enableFormElement: function(element) {
283
- var method = element.is('button') ? 'html' : 'val';
284
- if (element.data('ujs:enable-with') !== undefined) {
285
- element[method](element.data('ujs:enable-with'));
286
- element.removeData('ujs:enable-with'); // clean up cache
287
- }
288
- element.prop('disabled', false);
289
- element.removeData('ujs:disabled');
290
- },
291
-
292
- /* For 'data-confirm' attribute:
293
- - Fires `confirm` event
294
- - Shows the confirmation dialog
295
- - Fires the `confirm:complete` event
296
-
297
- Returns `true` if no function stops the chain and user chose yes; `false` otherwise.
298
- Attaching a handler to the element's `confirm` event that returns a `falsy` value cancels the confirmation dialog.
299
- Attaching a handler to the element's `confirm:complete` event that returns a `falsy` value makes this function
300
- return false. The `confirm:complete` event is fired whether or not the user answered true or false to the dialog.
301
- */
302
- allowAction: function(element) {
303
- var message = element.data('confirm'),
304
- answer = false, callback;
305
- if (!message) { return true; }
306
-
307
- if (rails.fire(element, 'confirm')) {
308
- try {
309
- answer = rails.confirm(message);
310
- } catch (e) {
311
- (console.error || console.log).call(console, e.stack || e);
312
- }
313
- callback = rails.fire(element, 'confirm:complete', [answer]);
314
- }
315
- return answer && callback;
316
- },
317
-
318
- // Helper function which checks for blank inputs in a form that match the specified CSS selector
319
- blankInputs: function(form, specifiedSelector, nonBlank) {
320
- var foundInputs = $(),
321
- input,
322
- valueToCheck,
323
- radiosForNameWithNoneSelected,
324
- radioName,
325
- selector = specifiedSelector || 'input,textarea',
326
- requiredInputs = form.find(selector),
327
- checkedRadioButtonNames = {};
328
-
329
- requiredInputs.each(function() {
330
- input = $(this);
331
- if (input.is('input[type=radio]')) {
332
-
333
- // Don't count unchecked required radio as blank if other radio with same name is checked,
334
- // regardless of whether same-name radio input has required attribute or not. The spec
335
- // states https://www.w3.org/TR/html5/forms.html#the-required-attribute
336
- radioName = input.attr('name');
337
-
338
- // Skip if we've already seen the radio with this name.
339
- if (!checkedRadioButtonNames[radioName]) {
340
-
341
- // If none checked
342
- if (form.find('input[type=radio]:checked[name="' + radioName + '"]').length === 0) {
343
- radiosForNameWithNoneSelected = form.find(
344
- 'input[type=radio][name="' + radioName + '"]');
345
- foundInputs = foundInputs.add(radiosForNameWithNoneSelected);
346
- }
347
-
348
- // We only need to check each name once.
349
- checkedRadioButtonNames[radioName] = radioName;
350
- }
351
- } else {
352
- valueToCheck = input.is('input[type=checkbox],input[type=radio]') ? input.is(':checked') : !!input.val();
353
- if (valueToCheck === nonBlank) {
354
- foundInputs = foundInputs.add(input);
355
- }
356
- }
357
- });
358
- return foundInputs.length ? foundInputs : false;
359
- },
360
-
361
- // Helper function which checks for non-blank inputs in a form that match the specified CSS selector
362
- nonBlankInputs: function(form, specifiedSelector) {
363
- return rails.blankInputs(form, specifiedSelector, true); // true specifies nonBlank
364
- },
365
-
366
- // Helper function, needed to provide consistent behavior in IE
367
- stopEverything: function(e) {
368
- $(e.target).trigger('ujs:everythingStopped');
369
- e.stopImmediatePropagation();
370
- return false;
371
- },
372
-
373
- // Replace element's html with the 'data-disable-with' after storing original html
374
- // and prevent clicking on it
375
- disableElement: function(element) {
376
- var replacement = element.data('disable-with');
377
-
378
- if (replacement !== undefined) {
379
- element.data('ujs:enable-with', element.html()); // store enabled state
380
- element.html(replacement);
381
- }
382
-
383
- element.bind('click.railsDisable', function(e) { // prevent further clicking
384
- return rails.stopEverything(e);
385
- });
386
- element.data('ujs:disabled', true);
387
- },
388
-
389
- // Restore element to its original state which was disabled by 'disableElement' above
390
- enableElement: function(element) {
391
- if (element.data('ujs:enable-with') !== undefined) {
392
- element.html(element.data('ujs:enable-with')); // set to old enabled state
393
- element.removeData('ujs:enable-with'); // clean up cache
394
- }
395
- element.unbind('click.railsDisable'); // enable element
396
- element.removeData('ujs:disabled');
397
- }
398
- };
399
-
400
- if (rails.fire($document, 'rails:attachBindings')) {
401
-
402
- $.ajaxPrefilter(function(options, originalOptions, xhr){ if ( !options.crossDomain ) { rails.CSRFProtection(xhr); }});
403
-
404
- // This event works the same as the load event, except that it fires every
405
- // time the page is loaded.
406
- //
407
- // See https://github.com/rails/jquery-ujs/issues/357
408
- // See https://developer.mozilla.org/en-US/docs/Using_Firefox_1.5_caching
409
- $(window).on('pageshow.rails', function () {
410
- $($.rails.enableSelector).each(function () {
411
- var element = $(this);
412
-
413
- if (element.data('ujs:disabled')) {
414
- $.rails.enableFormElement(element);
415
- }
416
- });
417
-
418
- $($.rails.linkDisableSelector).each(function () {
419
- var element = $(this);
420
-
421
- if (element.data('ujs:disabled')) {
422
- $.rails.enableElement(element);
423
- }
424
- });
425
- });
426
-
427
- $document.delegate(rails.linkDisableSelector, 'ajax:complete', function() {
428
- rails.enableElement($(this));
429
- });
430
-
431
- $document.delegate(rails.buttonDisableSelector, 'ajax:complete', function() {
432
- rails.enableFormElement($(this));
433
- });
434
-
435
- $document.delegate(rails.linkClickSelector, 'click.rails', function(e) {
436
- var link = $(this), method = link.data('method'), data = link.data('params'), metaClick = e.metaKey || e.ctrlKey;
437
- if (!rails.allowAction(link)) return rails.stopEverything(e);
438
-
439
- if (!metaClick && link.is(rails.linkDisableSelector)) rails.disableElement(link);
440
-
441
- if (rails.isRemote(link)) {
442
- if (metaClick && (!method || method === 'GET') && !data) { return true; }
443
-
444
- var handleRemote = rails.handleRemote(link);
445
- // Response from rails.handleRemote() will either be false or a deferred object promise.
446
- if (handleRemote === false) {
447
- rails.enableElement(link);
448
- } else {
449
- handleRemote.fail( function() { rails.enableElement(link); } );
450
- }
451
- return false;
452
-
453
- } else if (method) {
454
- rails.handleMethod(link);
455
- return false;
456
- }
457
- });
458
-
459
- $document.delegate(rails.buttonClickSelector, 'click.rails', function(e) {
460
- var button = $(this);
461
-
462
- if (!rails.allowAction(button) || !rails.isRemote(button)) return rails.stopEverything(e);
463
-
464
- if (button.is(rails.buttonDisableSelector)) rails.disableFormElement(button);
465
-
466
- var handleRemote = rails.handleRemote(button);
467
- // Response from rails.handleRemote() will either be false or a deferred object promise.
468
- if (handleRemote === false) {
469
- rails.enableFormElement(button);
470
- } else {
471
- handleRemote.fail( function() { rails.enableFormElement(button); } );
472
- }
473
- return false;
474
- });
475
-
476
- $document.delegate(rails.inputChangeSelector, 'change.rails', function(e) {
477
- var link = $(this);
478
- if (!rails.allowAction(link) || !rails.isRemote(link)) return rails.stopEverything(e);
479
-
480
- rails.handleRemote(link);
481
- return false;
482
- });
483
-
484
- $document.delegate(rails.formSubmitSelector, 'submit.rails', function(e) {
485
- var form = $(this),
486
- remote = rails.isRemote(form),
487
- blankRequiredInputs,
488
- nonBlankFileInputs;
489
-
490
- if (!rails.allowAction(form)) return rails.stopEverything(e);
491
-
492
- // Skip other logic when required values are missing or file upload is present
493
- if (form.attr('novalidate') === undefined) {
494
- if (form.data('ujs:formnovalidate-button') === undefined) {
495
- blankRequiredInputs = rails.blankInputs(form, rails.requiredInputSelector, false);
496
- if (blankRequiredInputs && rails.fire(form, 'ajax:aborted:required', [blankRequiredInputs])) {
497
- return rails.stopEverything(e);
498
- }
499
- } else {
500
- // Clear the formnovalidate in case the next button click is not on a formnovalidate button
501
- // Not strictly necessary to do here, since it is also reset on each button click, but just to be certain
502
- form.data('ujs:formnovalidate-button', undefined);
503
- }
504
- }
505
-
506
- if (remote) {
507
- rails.handleRemote(form);
508
- return false;
509
-
510
- } else {
511
- // Slight timeout so that the submit button gets properly serialized
512
- setTimeout(function(){ rails.disableFormElements(form); }, 13);
513
- }
514
- });
515
-
516
- $document.delegate(rails.formInputClickSelector, 'click.rails', function(event) {
517
- var button = $(this);
518
-
519
- if (!rails.allowAction(button)) return rails.stopEverything(event);
520
-
521
- // Register the pressed submit button
522
- var name = button.attr('name'),
523
- data = name ? {name:name, value:button.val()} : null;
524
-
525
- var form = button.closest('form');
526
- if (form.length === 0) {
527
- form = $('#' + button.attr('form'));
528
- }
529
- form.data('ujs:submit-button', data);
530
-
531
- // Save attributes from button
532
- form.data('ujs:formnovalidate-button', button.attr('formnovalidate'));
533
- form.data('ujs:submit-button-formaction', button.attr('formaction'));
534
- form.data('ujs:submit-button-formmethod', button.attr('formmethod'));
535
- });
536
-
537
- $document.delegate(rails.formSubmitSelector, 'ajax:send.rails', function(event) {
538
- if (this === event.target) rails.disableFormElements($(this));
539
- });
540
-
541
- $document.delegate(rails.formSubmitSelector, 'ajax:complete.rails', function(event) {
542
- if (this === event.target) rails.enableFormElements($(this));
543
- });
544
-
545
- $(function(){
546
- rails.refreshCSRFTokens();
547
- });
548
- }
549
-
550
- })( jQuery );