roda 3.52.0 → 3.55.0
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 +4 -4
- data/CHANGELOG +32 -588
- data/doc/release_notes/3.53.0.txt +14 -0
- data/doc/release_notes/3.54.0.txt +48 -0
- data/doc/release_notes/3.55.0.txt +12 -0
- data/lib/roda/plugins/additional_view_directories.rb +66 -0
- data/lib/roda/plugins/assets.rb +6 -3
- data/lib/roda/plugins/chunked.rb +48 -22
- data/lib/roda/plugins/drop_body.rb +5 -4
- data/lib/roda/plugins/heartbeat.rb +6 -1
- data/lib/roda/plugins/indifferent_params.rb +17 -5
- data/lib/roda/plugins/json_parser.rb +18 -3
- data/lib/roda/plugins/middleware.rb +17 -2
- data/lib/roda/plugins/multi_public.rb +5 -1
- data/lib/roda/plugins/public.rb +14 -7
- data/lib/roda/plugins/render.rb +5 -3
- data/lib/roda/plugins/route_csrf.rb +3 -1
- data/lib/roda/plugins/run_handler.rb +7 -1
- data/lib/roda/plugins/sinatra_helpers.rb +5 -1
- data/lib/roda/response.rb +34 -7
- data/lib/roda/version.rb +1 -1
- metadata +11 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1b862c4eb1dcca9fbbf0ccacc130779fdecf610a5a064ef94c17384d073e29dd
|
4
|
+
data.tar.gz: 1e9a991190a6572283350bf1941fca8b83f8496bc519156d5ec3cc5d613d2407
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 55fdc91ab21dbb1cf6884ee6b0384ef15db41f830d704ec6c445435ec76e302cb166f18c6f032390193c6d43d6922c7762d03768fd5c22188c3c7f937dc21d4a
|
7
|
+
data.tar.gz: d1272f1fc0e2707d2daf590ea71a4970ae2b133f0b4ba669e60296d6900422d3746bff8722d44eb636df5aefab0bd6b51382b88de1265924c4243322646335e7
|
data/CHANGELOG
CHANGED
@@ -1,3 +1,33 @@
|
|
1
|
+
= 3.55.0 (2022-04-12)
|
2
|
+
|
3
|
+
* Allow passing blocks to the view method in the render plugin (jeremyevans) (#262)
|
4
|
+
|
5
|
+
* Add :forward_response_headers middleware plugin option to use app headers as default for response (janko) (#259)
|
6
|
+
|
7
|
+
= 3.54.0 (2022-03-14)
|
8
|
+
|
9
|
+
* Make chunked plugin not use Transfer-Encoding: chunked by default (jeremyevans)
|
10
|
+
|
11
|
+
* Make run_handler plugin close bodies for upstream 404 responses when using not_found: :pass (jeremyevans)
|
12
|
+
|
13
|
+
* Drop all 1xx bodies in the drop body plugin (jeremyevans)
|
14
|
+
|
15
|
+
* Do not set a Content-Length header for 205 responses on Rack <2.0.2 (jeremyevans)
|
16
|
+
|
17
|
+
* Use Rack::Files instead of Rack::File if available, to avoid deprecation warnings (jeremyevans)
|
18
|
+
|
19
|
+
* Work with Rack 3 SPEC, using Rack::Headers to handle lowercasing header keys on Rack 3 (jeremyevans)
|
20
|
+
|
21
|
+
* Allow overriding script tag type attribute returned by assets method in assets plugin (pusewicz) (#250)
|
22
|
+
|
23
|
+
* Make reloading render plugin after additional_view_directories plugin retain :allowed_paths (jeremyevans)
|
24
|
+
|
25
|
+
= 3.53.0 (2022-02-14)
|
26
|
+
|
27
|
+
* Make indifferent_params plugin support rack main branch (jeremyevans)
|
28
|
+
|
29
|
+
* Add additional_view_directories plugin, for checking multiple view directories for templates (jeremyevans) (#229)
|
30
|
+
|
1
31
|
= 3.52.0 (2022-01-14)
|
2
32
|
|
3
33
|
* Fix return value of Roda.freeze when multi_route plugin is used (jeremyevans) (#240)
|
@@ -474,592 +504,6 @@
|
|
474
504
|
|
475
505
|
* Remove deprecated constants and plugins (jeremyevans)
|
476
506
|
|
477
|
-
|
478
|
-
|
479
|
-
* Deprecate accessing multi_route namespace when there are no routes (jeremyevans)
|
480
|
-
|
481
|
-
* Deprecate additional internal constants (jeremyevans)
|
482
|
-
|
483
|
-
* Respect :root app option when using :layout_opts=>:views render plugin option (jeremyevans)
|
484
|
-
|
485
|
-
* Deprecate rendering templates outside of render plugin :allowed_paths option by default (jeremyevans)
|
486
|
-
|
487
|
-
* Deprecate :cache=>nil/false render plugin option overriding :cache render/view method option (jeremyevans)
|
488
|
-
|
489
|
-
* Deprecate using :header matcher in header_matchers plugin without :header_matcher_prefix app option (jeremyevans)
|
490
|
-
|
491
|
-
* Deprecate using content_for multiple times with the same key in the content_for plugin unless :append plugin option is used (jeremyevans)
|
492
|
-
|
493
|
-
* Deprecate use of :host matcher with regexp value in header_matchers plugin without :host_matcher_captures app option (jeremyevans)
|
494
|
-
|
495
|
-
* Deprecate view_options plugin locals handling, move to the new branch_locals plugin (jeremyevans)
|
496
|
-
|
497
|
-
* Deprecate render plugin locals handling, move to the new render_locals plugin (jeremyevans)
|
498
|
-
|
499
|
-
* Deprecate the :ext render method and plugin option (jeremyevans)
|
500
|
-
|
501
|
-
* Deprecate the view_subdirs plugin alias for the view_options plugin (jeremyevans)
|
502
|
-
|
503
|
-
* Deprecate Stream#callback in the streaming plugin (jeremyevans)
|
504
|
-
|
505
|
-
* Deprecate the automatic support for EventMachine in the streaming plugin (jeremyevans)
|
506
|
-
|
507
|
-
* Deprecate static_path_info plugin, which has been a no-op in Roda 2 (jeremyevans)
|
508
|
-
|
509
|
-
* Deprecate render plugin :escape option loading Erubis escaping support (jeremyevans)
|
510
|
-
|
511
|
-
* Deprecate the per_thread_caching plugin (jeremyevans)
|
512
|
-
|
513
|
-
* Deprecate the websockets plugin (jeremyevans)
|
514
|
-
|
515
|
-
* Deprecate treating unsupported matchers as always matching (jeremyevans)
|
516
|
-
|
517
|
-
* Deprecate ignoring unsupported match block return values (jeremyevans)
|
518
|
-
|
519
|
-
* Deprecate the :format, :opt, and :optd default symbol matchers in the symbol_matchers plugin (jeremyevans)
|
520
|
-
|
521
|
-
* Deprecate use of placeholders in string matchers by default, add placeholder_string_matchers plugin for it (jeremyevans)
|
522
|
-
|
523
|
-
= 2.28.0 (2017-07-14)
|
524
|
-
|
525
|
-
* Deprecate unneeded internal constants (jeremyevans)
|
526
|
-
|
527
|
-
* Optimize for ruby 2.3+ using frozen string literals instead of constants (jeremyevans)
|
528
|
-
|
529
|
-
* Move 303 default redirect status from sinatra_helpers to status_303 plugin, so it can be loaded separately (plujon) (#122)
|
530
|
-
|
531
|
-
= 2.27.0 (2017-06-14)
|
532
|
-
|
533
|
-
* Add class_matchers plugin for matching other classes (in addition to String/Integer), with user specified regexps and type conversion (jeremyevans)
|
534
|
-
|
535
|
-
* Support String class matcher for non-empty segments, same behavior as symbol matchers but more intuitive and DRY (jeremyevans)
|
536
|
-
|
537
|
-
* Support Integer class matcher for \d+ segments, yielding matched values as integers (jeremyevans)
|
538
|
-
|
539
|
-
= 2.26.0 (2017-05-16)
|
540
|
-
|
541
|
-
* Support :skip_middleware option to csrf plugin to add only the methods and not add the middleware (luciusgone) (#118)
|
542
|
-
|
543
|
-
* Handle multiple types with matching suffixes in the type_routing plugin (e.g. tar.gz and gz) (tomdalling) (#117)
|
544
|
-
|
545
|
-
= 2.25.0 (2017-04-18)
|
546
|
-
|
547
|
-
* Add error_mail plugin, similar to error_email but using mail instead of net/smtp directly (jeremyevans)
|
548
|
-
|
549
|
-
= 2.24.0 (2017-03-15)
|
550
|
-
|
551
|
-
* Have h plugin use cgi/escape if available for faster escaping (jeremyevans)
|
552
|
-
|
553
|
-
* Add disallow_file_uploads plugin for raising an exception if a multipart file upload is attempted (jeremyevans)
|
554
|
-
|
555
|
-
* Add strip_path_prefix plugin for stripping prefixes off of internal absolute paths, making them relative paths (jeremyevans)
|
556
|
-
|
557
|
-
* Add Roda.expand_path method to DRY up path expansion (jeremyevans)
|
558
|
-
|
559
|
-
* Support :freeze_middleware option, which freezes all middleware instances when building the rack app (jeremyevans)
|
560
|
-
|
561
|
-
* Allow middleware plugin to accept a block that will be used to configure the application when used as middleware (jeremyevans)
|
562
|
-
|
563
|
-
* Support an options hash when loading the cookies plugin, that will be used as the defaults for setting and deleting cookies (mwpastore, jeremyevans) (#112)
|
564
|
-
|
565
|
-
* Make the static_routing plugin work with the hooks plugin if the hooks plugin is loaded first (jeremyevans) (#110)
|
566
|
-
|
567
|
-
* Do not modify the render plugin's cache if loading the plugin multiple times (jeremyevans)
|
568
|
-
|
569
|
-
= 2.23.0 (2017-02-24)
|
570
|
-
|
571
|
-
* Add :inherit_cache render plugin option, to create a copy of the cache for subclasses, instead of using an empty cache (jeremyevans)
|
572
|
-
|
573
|
-
* In development mode, default to :explicit_cache=>true, :cache=>true instead of :cache=>false (jeremyevans)
|
574
|
-
|
575
|
-
* Add :explicit_cache render plugin option, to only cache templates if the :cache option is given to render/view (jeremyevans)
|
576
|
-
|
577
|
-
* Add error_email_content method to error_email plugin (jeremyevans)
|
578
|
-
|
579
|
-
* Make error_email method in error_email plugin support non-exception arguments (jeremyevans)
|
580
|
-
|
581
|
-
* Make Roda.freeze in the static_routing plugin return self (jeremyevans)
|
582
|
-
|
583
|
-
= 2.22.0 (2017-01-20)
|
584
|
-
|
585
|
-
* Add support for :verbatim_string_matcher option, for making all string matchers match verbatim (jeremyevans)
|
586
|
-
|
587
|
-
* Add support for :unsupported_matcher => :raise option, for raising on unsupported matcher values (jeremyevans)
|
588
|
-
|
589
|
-
* Add support for :unsupported_block_result => :raise option, for raising on unsupported route/match block return values (jeremyevans)
|
590
|
-
|
591
|
-
= 2.21.0 (2016-12-16)
|
592
|
-
|
593
|
-
* Add handle_stream_error method to streaming plugin, for handling errors when using stream(:loop=>true) (jeremyevans)
|
594
|
-
|
595
|
-
= 2.20.0 (2016-11-13)
|
596
|
-
|
597
|
-
* Support :escape=>:erubi option in the render plugin to use the erubi template engine (jeremyevans)
|
598
|
-
|
599
|
-
= 2.19.0 (2016-10-14)
|
600
|
-
|
601
|
-
* Don't add Content-Type/Content-Length headers for 1xx, 204, 205, 304 statuses (celsworth, jeremyevans) (#101, #102)
|
602
|
-
|
603
|
-
* Optimize indifferent_params plugin when using Rack 2 (jeremyevans)
|
604
|
-
|
605
|
-
* Fix assets_paths method in assets plugin when subresource integrity is used (jeremyevans, celsworth)
|
606
|
-
|
607
|
-
* Make assets plugin depend on h plugin, instead of using Rack::Utils.escape_html (jeremyevans)
|
608
|
-
|
609
|
-
* Make h plugin not escape / (celsworth, jeremyevans) (#100)
|
610
|
-
|
611
|
-
= 2.18.0 (2016-09-13)
|
612
|
-
|
613
|
-
* Add assets_preloading plugin, for creating link tags or Link header for preloading assets (celsworth, jeremyevans) (#98)
|
614
|
-
|
615
|
-
* Add assets_paths method to assets plugin, for just the paths to the assets, instead of the full tags (celsworth) (#96)
|
616
|
-
|
617
|
-
* Make type_routing plugin work correctly with public plugin (celsworth, jeremyevans) (#95)
|
618
|
-
|
619
|
-
* Add static_routing plugin for 3-4x increase in performance for large numbers of static routes (jeremyevans)
|
620
|
-
|
621
|
-
* Make head plugin work with not_allowed plugin if loaded after (jeremyevans) (#92)
|
622
|
-
|
623
|
-
= 2.17.0 (2016-08-13)
|
624
|
-
|
625
|
-
* Add :postprocessor option to assets plugin, for postprocessing assets (e.g. autoprefixing CSS) (celsworth) (#86)
|
626
|
-
|
627
|
-
* Fix path passed to rack apps when using r.run and the type_routing plugin (jeremyevans) (#82)
|
628
|
-
|
629
|
-
* Support :classes option to error_handler plugin for overriding which exception classes to rescue (jeremyevans)
|
630
|
-
|
631
|
-
* Support :layout_opts=>:merge_locals option in render plugin for merging view template locals into layout template locals (jeremyevans) (#80)
|
632
|
-
|
633
|
-
* Support :sri option to assets plugin to enable subresource integrity (jeremyevans)
|
634
|
-
|
635
|
-
* Add run_append_slash plugin, so r.run uses "/" instead of "" for app's PATH_INFO (kenaniah) (#77)
|
636
|
-
|
637
|
-
= 2.16.0 (2016-07-13)
|
638
|
-
|
639
|
-
* Add type_routing plugin, for routing based on path extensions and Accept headers (Papierkorb, jeremyevans) (#75)
|
640
|
-
|
641
|
-
* Add unescape_path plugin, for decoding URL-encoded PATH_INFO before routing (jeremyevans) (#74)
|
642
|
-
|
643
|
-
* Add request_headers plugin, for simpler access to request headers (celsworth) (#72)
|
644
|
-
|
645
|
-
= 2.15.0 (2016-06-13)
|
646
|
-
|
647
|
-
* Add public plugin for r.public method for serving all files in the public directory (jeremyevans)
|
648
|
-
|
649
|
-
* Make send_file in sinatra_helpers plugin work with Rack 2 (jeremyevans)
|
650
|
-
|
651
|
-
* Make :header matcher prefixes the env key with HTTP_ if application :header_matcher_prefix option is set (timothypage, jeremyevans) (#69)
|
652
|
-
|
653
|
-
* Add content_for plugin :append option to support appending to the existing content (evanleck, jeremyevans) (#66)
|
654
|
-
|
655
|
-
= 2.14.0 (2016-05-13)
|
656
|
-
|
657
|
-
* Add symbol_status plugin for using symbols as status codes (Papierkorb) (#65)
|
658
|
-
|
659
|
-
* Make middleware plugin also run the application's middleware (jeremyevans)
|
660
|
-
|
661
|
-
= 2.13.0 (2016-04-14)
|
662
|
-
|
663
|
-
* Add :check_paths and :allowed_paths to render plugin options to avoid security issues with template rendering (jeremyevans)
|
664
|
-
|
665
|
-
= 2.12.0 (2016-03-15)
|
666
|
-
|
667
|
-
* Allow error handler access to the request's remaining_path (jeremyevans)
|
668
|
-
|
669
|
-
* Add optimized_string_matchers plugin, containing optimized matchers for single string arguments (jeremyevans)
|
670
|
-
|
671
|
-
* Optimize string matching code for strings without placeholders for up to a 60% performance increase (jeremyevans)
|
672
|
-
|
673
|
-
* Optimize symbol matching code for up to a 60% performance increase (jeremyevans)
|
674
|
-
|
675
|
-
= 2.11.0 (2016-02-16)
|
676
|
-
|
677
|
-
* Support :scope option in render plugin, for specifying object in which to evaluate the template (jeremyevans)
|
678
|
-
|
679
|
-
* Make minjs compressor support in assets plugin support latest version of Minjs (jeremyevans)
|
680
|
-
|
681
|
-
* Add params_capturing plugin, for storing matcher captures in the request params (jeremyevans)
|
682
|
-
|
683
|
-
= 2.10.0 (2016-01-15)
|
684
|
-
|
685
|
-
* Do not override existing Content-Type header in json plugin (jeremyevans)
|
686
|
-
|
687
|
-
* Add :content_type option to json plugin to override Content-Type header used (Kyrremann) (#58)
|
688
|
-
|
689
|
-
* Add support for running with --enable-frozen-string-literal on ruby 2.3 (jeremyevans)
|
690
|
-
|
691
|
-
* Add Streaming::Stream#write method so that IO.copy_stream will work (janko-m) (#56)
|
692
|
-
|
693
|
-
= 2.9.0 (2015-12-15)
|
694
|
-
|
695
|
-
* Support passing the content as a string argument instead of a block in the content_for plugin (badosu) (#52)
|
696
|
-
|
697
|
-
= 2.8.0 (2015-11-16)
|
698
|
-
|
699
|
-
* Add multi_view plugin for easily setting up routing for rendering multiple views (jeremyevans)
|
700
|
-
|
701
|
-
* Make content_for plugin work with haml and potentially other non-erb template engines (plukevdh) (#50)
|
702
|
-
|
703
|
-
= 2.7.0 (2015-10-13)
|
704
|
-
|
705
|
-
* Add run_handler plugin for modifying rack response arrays when using r.run, and continuing routing for 404 responses (jeremyevans)
|
706
|
-
|
707
|
-
* Add response_request plugin allowing response object access to request object (jeremyevans)
|
708
|
-
|
709
|
-
* Add default_status plugin for overriding the default response status (celsworth) (#47)
|
710
|
-
|
711
|
-
* Make RodaCache synchronize access on MRI (jeremyevans)
|
712
|
-
|
713
|
-
* Support opts[:host_matcher_captures] = true to make :host=>/regexp/ matcher yield captures in the header_matchers plugin (jeremyevans)
|
714
|
-
|
715
|
-
* Allow Roda.rewrite_path to take a block in the path_rewriter plugin (Freaky) (#45)
|
716
|
-
|
717
|
-
= 2.6.0 (2015-09-14)
|
718
|
-
|
719
|
-
* Add :params and :params! matchers to param_matchers plugin (jeremyevans)
|
720
|
-
|
721
|
-
* Merge options when loading csrf plugin multiple times (jeremyevans)
|
722
|
-
|
723
|
-
* Allow request.halt to work in before hooks in the hooks plugin (celsworth) (#38)
|
724
|
-
|
725
|
-
= 2.5.1 (2015-08-13)
|
726
|
-
|
727
|
-
* Allow multi_route and middleware plugins to work together (janko-m) (#36)
|
728
|
-
|
729
|
-
= 2.5.0 (2015-07-14)
|
730
|
-
|
731
|
-
* Make :by_name option to path plugin default to true in development (jeremyevans)
|
732
|
-
|
733
|
-
* Add :cache_class option to render plugin, for customized template cache behavior (celsworth) (#34)
|
734
|
-
|
735
|
-
* Add :compiled_asset_host option to assets plugin, to use a host for compiled assets (jeremyevans)
|
736
|
-
|
737
|
-
* Allow r.multi_run to take a block that is called with the prefix before dispatching to the rack app (mikz) (#32)
|
738
|
-
|
739
|
-
= 2.4.0 (2015-06-15)
|
740
|
-
|
741
|
-
* Add websockets plugin, for integration with faye-websocket (jeremyevans)
|
742
|
-
|
743
|
-
* Add status_handler plugin, similar to not_found but for any status code (celsworth) (#29)
|
744
|
-
|
745
|
-
* Support Closure Compiler, Uglifier, and MinJS for compressing javascript in the assets plugin (jeremyevans)
|
746
|
-
|
747
|
-
* Make Roda.plugin always return nil (jeremyevans)
|
748
|
-
|
749
|
-
* Add :gzip option to assets plugin (jeremyevans)
|
750
|
-
|
751
|
-
= 2.3.0 (2015-05-13)
|
752
|
-
|
753
|
-
* Make assets plugin work better with json plugin when r.assets is the last method called in a route block (jeremyevans) (#27)
|
754
|
-
|
755
|
-
* Support no_mail! method in the mailer plugin, for skipping an email (jeremyevans)
|
756
|
-
|
757
|
-
* Add precompile_templates plugin, for saving memory when using a forking webserver (jeremyevans)
|
758
|
-
|
759
|
-
* Document how to allow per-branch HTML escaping of <%= %> in the view_options plugin (jeremyevans)
|
760
|
-
|
761
|
-
* Add :include_request option to json and json_parser plugins to include request in :serializer/:parser call (janko-m) (#26)
|
762
|
-
|
763
|
-
* Optimize template cache lookup in render plugin when :cache_key is given (jeremyevans)
|
764
|
-
|
765
|
-
* Add :engine_opts option to render plugin, for specifying per-template engine options (jeremyevans)
|
766
|
-
|
767
|
-
* The render plugin and render/view :ext option is now replaced by the :engine option (jeremyevans)
|
768
|
-
|
769
|
-
* Add path_rewriter plugin, for rewriting paths before routing (jeremyevans)
|
770
|
-
|
771
|
-
* Add :cache_key option to render/view to explicitly set the template cache key (jeremyevans)
|
772
|
-
|
773
|
-
* Don't cache templates if :template_block is given to render/view, unless :cache=>true is used (jeremyevans)
|
774
|
-
|
775
|
-
* Add :cache option to render/view to force caching or not caching the template (jeremyevans)
|
776
|
-
|
777
|
-
* Avoid rehashing hashes at runtime in plugins (jeremyevans)
|
778
|
-
|
779
|
-
* Add heartbeat plugin for heartbeat support (jeremyevans)
|
780
|
-
|
781
|
-
* Support :serializer option in json plugin (janko-m) (#21)
|
782
|
-
|
783
|
-
* Add json_parser plugin, for parsing request bodies in JSON format (jeremyevans)
|
784
|
-
|
785
|
-
= 2.2.0 (2015-04-13)
|
786
|
-
|
787
|
-
* Add :escaper render plugin option to support custom escaping of <%= %> tags when :escape is used (jeremyevans)
|
788
|
-
|
789
|
-
* Add :escape_safe_classes render plugin option, to not escape certain string subclasses when :escape is used (jeremyevans)
|
790
|
-
|
791
|
-
* Split partials method from padrino_render plugin into partials plugin (kematzy) (#19)
|
792
|
-
|
793
|
-
* Add shared_vars plugin, for sharing variables between multiple Roda apps (jeremyevans)
|
794
|
-
|
795
|
-
* Add delay method to chunked plugin, for delaying a block execution until right before content template rendering (jeremyevans)
|
796
|
-
|
797
|
-
* Have default Content-Type header when using the default_headers plugin (jeremyevans)
|
798
|
-
|
799
|
-
* Add :by_name option to the path plugin, for registering classes by name, useful when reloading code (jeremyevans)
|
800
|
-
|
801
|
-
* Add Roda.path_block to get the block related to the given class used for Road#path (jeremyevans)
|
802
|
-
|
803
|
-
* Make Roda#path work correctly in subclasses (jeremyevans)
|
804
|
-
|
805
|
-
= 2.1.0 (2015-03-13)
|
806
|
-
|
807
|
-
* Have add_file in the mailer plugin support blocks, which are called after the file has been added (jeremyevans)
|
808
|
-
|
809
|
-
* Add append_view_subdir to view_options, for appending to an existing view subdirectory (jeremyevans)
|
810
|
-
|
811
|
-
* Rename view_subdirs plugin to view_options, add support for branch/route specific view/layout options/locals (jeremyevans)
|
812
|
-
|
813
|
-
* Merge :locals set in the render plugin options into :locals provided in call to view/render (jeremyevans)
|
814
|
-
|
815
|
-
* Add support for registering classes in the path plugin for use with Roda#path (jeremyevans)
|
816
|
-
|
817
|
-
* Use :add_script_name app option as default for path method :add_script_name option in path plugin (jeremyevans)
|
818
|
-
|
819
|
-
* Support :add_script_name app option in assets plugin, to prefix URLs with SCRIPT_NAME (jeremyevans)
|
820
|
-
|
821
|
-
* Make r.multi_route in multi_route plugin work without any named routes defined (jeremyevans)
|
822
|
-
|
823
|
-
* Add :static plugin, for more easily serving static files (jeremyevans)
|
824
|
-
|
825
|
-
* Recognize Roda :root option in render and assets plugins (jeremyevans)
|
826
|
-
|
827
|
-
* Make :layout=>false option in render plugin override previous layout template (jeremyevans)
|
828
|
-
|
829
|
-
* Make add_file in the mailer plugin add the files after the email body instead of before (jeremyevans)
|
830
|
-
|
831
|
-
= 2.0.0 (2015-02-13)
|
832
|
-
|
833
|
-
* Allow Roda app to be used as a regular rack app even when using the middleware plugin (jeremyevans)
|
834
|
-
|
835
|
-
* Make render plugin :layout option always be true or false (jeremyevans)
|
836
|
-
|
837
|
-
* Make :layout=>true view option use the default layout (jeremyevans)
|
838
|
-
|
839
|
-
* Make error_handler plugin rescue ScriptError in addition to StandardError (jeremyevans)
|
840
|
-
|
841
|
-
* Make halt plugin integrate with symbol_views, json, and similar plugins (jeremyevans)
|
842
|
-
|
843
|
-
* Add padrino_render plugin, adding render/partial methods that work similar to Padrino (jeremyevans)
|
844
|
-
|
845
|
-
* Add Roda#render_template private method for template rendering, for use by plugins (jeremyevans)
|
846
|
-
|
847
|
-
* Make Roda#initialize take env hash, #call take route_block, remove private #_route (jeremyevans)
|
848
|
-
|
849
|
-
* Remove keep_remaining_path/update_remaining_path private request methods (jeremyevans)
|
850
|
-
|
851
|
-
* Don't modify SCRIPT_NAME/PATH_INFO during routing, merging static_path_info plugin into core (jeremyevans)
|
852
|
-
|
853
|
-
* Remove code deprecated in Roda 1.3.0 (jeremyevans)
|
854
|
-
|
855
|
-
= 1.3.0 (2015-01-13)
|
856
|
-
|
857
|
-
* Make static_path_info plugin restore original SCRIPT_NAME/PATH_INFO before returning from r.run (jeremyevans)
|
858
|
-
|
859
|
-
* Add RodaMajorVersion, RodaMinorVersion, and RodaPatchVersion (jeremyevans)
|
860
|
-
|
861
|
-
* Add delete_empty_headers plugin for deleting response headers that are empty before return response (jeremyevans)
|
862
|
-
|
863
|
-
* Make freeze class method freeze internal data structures to avoid thread safety issues (jeremyevans)
|
864
|
-
|
865
|
-
* Deprecate mutating plugin option hashes for chunked, default_headers, error_email, json, and render plugins (jeremyevans)
|
866
|
-
|
867
|
-
* Fix subclassing app and using r.multi_run in subclass in multi_run plugin (jeremyevans)
|
868
|
-
|
869
|
-
* Support :classes option in json plugin to set the classes to use (jeremyevans)
|
870
|
-
|
871
|
-
* Improve performance in default_headers plugin by not duping the headers (jeremyevans)
|
872
|
-
|
873
|
-
* Use :template_opts instead of :opts for providing options to the template in the render plugin (jeremyevans)
|
874
|
-
|
875
|
-
* Support :match_header_yield Roda option in the header_matchers plugin, causing the :header match to yield the value (jeremyevans)
|
876
|
-
|
877
|
-
* Move :param and :param! hash matchers to the param_matchers plugin (jeremyevans)
|
878
|
-
|
879
|
-
* Add path_matchers plugin, for :extension, :prefix, and :suffix hash matchers (jeremyevans)
|
880
|
-
|
881
|
-
* Move Roda.hash_matcher to hash_matcher plugin (jeremyevans)
|
882
|
-
|
883
|
-
* Move Roda.request_module and .response_module to module_include plugin (jeremyevans)
|
884
|
-
|
885
|
-
* Move RodaResponse#set_cookie and #delete_cookie to cookies plugin (jeremyevans)
|
886
|
-
|
887
|
-
* Deprecate RodaRequest#full_path_info, use #path instead (jeremyevans)
|
888
|
-
|
889
|
-
* Add class_delegate to the delegate plugin (jeremyevans)
|
890
|
-
|
891
|
-
* Make not_found plugin clear headers for response if it is not found (jeremyevans)
|
892
|
-
|
893
|
-
* Make error_handler plugin use a new response instead of reusing existing response (jeremyevans)
|
894
|
-
|
895
|
-
* Make RodaResponse a subclass of Object instead of Rack::Response (jeremyevans)
|
896
|
-
|
897
|
-
= 1.2.0 (2014-12-17)
|
898
|
-
|
899
|
-
* Don't override explicit nil :default_encoding template option in the render plugin (jeremyevans)
|
900
|
-
|
901
|
-
* Add remaining_path and matched_path request methods (jeremyevans)
|
902
|
-
|
903
|
-
* Add slash_path_emty plugin, for considering a path of "/" as empty when doing a terminal match (jeremyevans)
|
904
|
-
|
905
|
-
* Remove def_verb_method request class method (jeremyevans)
|
906
|
-
|
907
|
-
* Support :add_script_name, :name, :url, and :url_only options when creating named paths in the path plugin (jeremyevans)
|
908
|
-
|
909
|
-
* Add match_affix plugin, for overriding default prefix/suffix used in match patterns (jeremyevans)
|
910
|
-
|
911
|
-
* Add empty_root plugin, for making root matcher also match empty string (jeremyevans)
|
912
|
-
|
913
|
-
* Add roda_class instance methods to RodaRequest and RodaResponse, to DRY up plugin code (jeremyevans)
|
914
|
-
|
915
|
-
* Add sinatra_helpers plugin, porting Sinatra::Helpers methods not covered by other plugins (jeremyevans)
|
916
|
-
|
917
|
-
* Don't set the default headers until the response is finished (jeremyevans)
|
918
|
-
|
919
|
-
* Add RodaRequest#default_redirect_status, so plugins can override the default status used for redirects (jeremyevans)
|
920
|
-
|
921
|
-
* Add drop_body plugin, for automatically dropping body and Content-{Length,Type} headers based on response status (jeremyevans)
|
922
|
-
|
923
|
-
* Add clear_middleware! class method, for clearing the current middleware (jeremyevans)
|
924
|
-
|
925
|
-
* Add inherit_middleware class accessor, allowing users to turn off middleware inheritance (jeremyevans)
|
926
|
-
|
927
|
-
* Add multi_run plugin, for dispatching to multiple rack applications based on the request path prefix (jeremyevans)
|
928
|
-
|
929
|
-
* Add environments plugin, for handling development/test/production environments (jeremyevans)
|
930
|
-
|
931
|
-
* Do not cache templates by default if RACK_ENV is development (jeremyevans)
|
932
|
-
|
933
|
-
* Add delay_build plugin, to delay building the rack app until Roda.app is called (jeremyevans)
|
934
|
-
|
935
|
-
* Add :user_agent hash matcher to the header_matchers plugin (jeremyevans)
|
936
|
-
|
937
|
-
* Fix caching of templates in the render plugin when :opts or :template_class is used (jeremyevans)
|
938
|
-
|
939
|
-
* Require loading the render plugin again if you want to change the default layout (jeremyevans)
|
940
|
-
|
941
|
-
* Pass :css_opts and :js_opts as template options (via :opts) instead of render options when rendering (jeremyevans)
|
942
|
-
|
943
|
-
* Only pass :opts hash to template class during rendering, instead of all render/view options (jeremyevans)
|
944
|
-
|
945
|
-
* Support :template_class option in the render plugin for overriding template class to use (jeremyevans)
|
946
|
-
|
947
|
-
* Automatically dup unfrozen Array/Hash opts values when subclassing (jeremyevans)
|
948
|
-
|
949
|
-
* Add named_templates plugin, for creating inline templates by name, instead of storing them in the file system (jeremyevans)
|
950
|
-
|
951
|
-
* Support :template option in for render/view to specify template to use, instead of requiring separate argument (jeremyevans)
|
952
|
-
|
953
|
-
* Add class_level_routing plugin, for a DSL similar to Sinatra (jeremyevans)
|
954
|
-
|
955
|
-
* Make RodaRequest.consume_pattern not capture pattern by default (jeremyevans)
|
956
|
-
|
957
|
-
* Add static_path_info plugin, making Roda not modify PATH_INFO or SCRIPT_NAME during routing (jeremyevans)
|
958
|
-
|
959
|
-
* Use local/instance variable lookups instead of method calls to improve performance (jeremyevans)
|
960
|
-
|
961
|
-
* Add RodaRequest#session, and have #session delegate to that (jeremyevans)
|
962
|
-
|
963
|
-
* Add delegate plugin, for easily creating methods that delegate to request or response (jeremyevans)
|
964
|
-
|
965
|
-
* Add mailer plugin, allowing use of a routing tree for email instead of web responses (jeremyevans)
|
966
|
-
|
967
|
-
= 1.1.0 (2014-11-11)
|
968
|
-
|
969
|
-
* Add assets plugin, for rendering assets on the fly, or compiling them to a single compressed file (cj, jeremyevans) (#5)
|
970
|
-
|
971
|
-
* Make InstanceMethods in plugins not include constants, as they would pollute the constant namespace (jeremyevans)
|
972
|
-
|
973
|
-
* Make response.finish add the Content-Length header, not response.write (jeremyevans)
|
974
|
-
|
975
|
-
* Add response.finish_with_body to override response body used (jeremyevans)
|
976
|
-
|
977
|
-
* Use allocate instead of new in rack app (jeremyevans)
|
978
|
-
|
979
|
-
* Add chunked plugin, for easy streaming of template responses using Transfer-Encoding: chunked (jeremyevans)
|
980
|
-
|
981
|
-
* Add namespace support to the multi_route plugin, to support more complex applications (jeremyevans)
|
982
|
-
|
983
|
-
* Make r.multi_route use named route return value if not passed a block (jeremyevans)
|
984
|
-
|
985
|
-
* Make r.multi_route prefer longer route if multiple routes have the same prefix (jeremyevans)
|
986
|
-
|
987
|
-
* Add caching plugin, for handling http caching (jeremyevans)
|
988
|
-
|
989
|
-
* Support adding middleware after the route block has been added (jeremyevans)
|
990
|
-
|
991
|
-
* Allow Roda subclasses to use route block from superclass (jeremyevans)
|
992
|
-
|
993
|
-
* Have r.multi_route ignore non-String named routes (jeremyevans)
|
994
|
-
|
995
|
-
* Pick up newly added named routes while running in the multi_route plugin, useful for development (jeremyevans)
|
996
|
-
|
997
|
-
* Add path plugin, for named path support (jeremyevans) (#4)
|
998
|
-
|
999
|
-
* Add error_email plugin, for easily emailing an error notification for an exception (jeremyevans)
|
1000
|
-
|
1001
|
-
= 1.0.0 (2014-08-19)
|
1002
|
-
|
1003
|
-
* Don't have :extension hash matcher force a terminal match (jeremyevans)
|
1004
|
-
|
1005
|
-
* Add :content option to view method in render plugin to use given content instead of rendering a template (jeremyevans)
|
1006
|
-
|
1007
|
-
* Add :escape option to render plugin for using erb templates where <%= %> escapes and <%== %> does not (jeremyevans)
|
1008
|
-
|
1009
|
-
* Make multi_route plugin route("route_name") method a request method instead of an instance method (jeremyevans)
|
1010
|
-
|
1011
|
-
* Add r.multi_route method to multi_route plugin, for dispatching to named route based on first segment in path (jeremyevans)
|
1012
|
-
|
1013
|
-
* Allow non-GET requests to use r.redirect with no argument, redirecting to current path (jeremyevans)
|
1014
|
-
|
1015
|
-
* Add head plugin, for handling HEAD requests like GET requests with an empty body (jeremyevans)
|
1016
|
-
|
1017
|
-
* Optimize consuming patterns by using a positive lookahead assertion (jeremyevans)
|
1018
|
-
|
1019
|
-
* Add not_allowed plugin, for automatically returning 405 Method Not Allowed responses (jeremyevans)
|
1020
|
-
|
1021
|
-
* Optimize match blocks with no arguments (jeremyevans)
|
1022
|
-
|
1023
|
-
* Add content_for plugin, for storing content in one template and retrieving it in another (jeremyevans)
|
1024
|
-
|
1025
|
-
* Add render_each plugin, for rendering a template for each value in an enumerable (jeremyevans)
|
1026
|
-
|
1027
|
-
* Add backtracking_array plugin, allowing array matchers to backtrack if later matchers do not match (jeremyevans)
|
1028
|
-
|
1029
|
-
* Add :all hash matcher, allowing array matchers to include conditions where you want to match multiple conditions (jeremyevans)
|
1030
|
-
|
1031
|
-
* Add json plugin, allowing match blocks to return arrays/hashes, returning JSON (jeremyevans)
|
1032
|
-
|
1033
|
-
* Add view_subdirs plugin, for setting a subdirectory for views on a per-request basis (jeremyevans)
|
1034
|
-
|
1035
|
-
* Allow default halt method to take no arguments, and use the current response (jeremyevans)
|
1036
|
-
|
1037
|
-
* Add symbol_views plugin, allowing match blocks to return a template name symbol (jeremyevans)
|
1038
|
-
|
1039
|
-
* Add per_thread_caching plugin, for using separate caches per thread instead of shared thread-safe caches (jeremyevans)
|
1040
|
-
|
1041
|
-
* Add hash_matcher class method, for easily creating hash match methods (jeremyevans)
|
1042
|
-
|
1043
|
-
* Add symbol_matchers plugin, for using symbol-specific matching regexps (jeremyevans)
|
1044
|
-
|
1045
|
-
* Add csrf plugin for csrf protection using rack_csrf (jeremyevans)
|
1046
|
-
|
1047
|
-
* Optimize r.is, r.get, r.post and similar methods by reducing the number of Array objects created (jeremyevans)
|
1048
|
-
|
1049
|
-
* Support RequestClassMethods and ResponseClassMethods in plugins (jeremyevans)
|
1050
|
-
|
1051
|
-
* Add Roda::RodaCache for a thread safe cache, currently used for match patterns, templates, and plugins (jeremyevans)
|
1052
|
-
|
1053
|
-
* Optimize matching by caching consume regexp for strings, regexp, symbol, and :extension matchers (jeremyevans)
|
1054
|
-
|
1055
|
-
* Add r.root for GET / requests, for easier to read version of r.get "" (jeremyevans)
|
1056
|
-
|
1057
|
-
* Optimize r.is terminal matcher, remove :term hash matcher (jeremyevans)
|
1058
|
-
|
1059
|
-
* Make flash plugin no longer depend on sinatra-flash (jeremyevans)
|
1060
|
-
|
1061
|
-
* Move version file to roda/version so it can be required separately without loading dependencies (jeremyevans)
|
1062
|
-
|
1063
|
-
= 0.9.0 (2014-07-30)
|
507
|
+
=== Older
|
1064
508
|
|
1065
|
-
|
509
|
+
See doc/CHANGELOG.old
|
@@ -0,0 +1,14 @@
|
|
1
|
+
= New Features
|
2
|
+
|
3
|
+
* An additional_view_directories plugin has been added, which allows
|
4
|
+
you to specify additional directories to look in for templates.
|
5
|
+
If the template path does not exist when using the default view
|
6
|
+
directory, then each additional view directory will be checked,
|
7
|
+
returning the first path that exists:
|
8
|
+
|
9
|
+
plugin :additional_view_directories, ['admin_views', 'public_views']
|
10
|
+
|
11
|
+
= Other Improvements
|
12
|
+
|
13
|
+
* The indifferent_params plugin now avoids a deprecation warning when
|
14
|
+
using the rack main branch, which will become Rack 3.
|