Padrino 0.14.1 release

Changes

  • FIX syntax error in ActiveRecord tasks (@sue445)
  • NEW use hamlit if available in Gemfile

2017/06/21 00:00:00


Padrino 0.14.0.2 - small bug fixes

Bug Fixes

  • FIX #2132 use Sinatra2 IndifferentHash if available

2017/05/25 00:00:00


Padrino 0.14.0.1 - small bug fixes

Bug Fixes

  • FIX #2118 allow Logger without Extensions
  • FIX #2128 do not render default layout in partials

2017/05/17 00:00:00


Padrino 0.14.0 - cascading option for Rack applications, no ruby default encodings, erubi support, bug fixes

Enable cascading with Rack application

In prior versions of Padrino, the core router would cascade from one application to the next on a 404 response even when the application explicitly specified cascade: false. With this release, this has been corrected and Padrino will not cascade even if the specified Rack application returns 404.

Padrino.mount('RackApp', cascade: false).to('/api') # this will not be cascaded even if returning 404.
Padrino.mount('PadrinoApp::App', app_file: Padrino.root('app/app.rb')).to('/')

Stop managing Ruby default encodings

Default Encoding.default_internal is now nil (Ruby default) instead of UTF-8 (Padrino < 0.14 default)

Erubi support

Padrino has now Erubi support. Erubi is a ERB template engine for Ruby. The most significant changes are:

  • Handles postfix conditionals when using escaping (e.g. <%= foo if bar %>)
  • Supports frozenstringliteral: true in templates via :freeze option
  • Automatically freezes strings for template text when ruby optimizes it (on ruby 2.1+)
  • Has 6x faster escaping on ruby 2.3+ by using cgi/escape
  • Has 86% smaller memory footprint

More details can be found under erubi.

All the credit for the implementation goes to @adam12 - thank you so much for your hard work.

Bug Fixes and Miscellaneous Things

There are several bug fixes and other updates:

  • Removal of requiring activesupport - see details
  • Removal of lib from $LOAD_PATH - see details
  • FIX #2105 run bundle with --binstubs on -b switch (@adam12)
  • FIX #2097 use exe folder for application executables (@adam12)
  • FIX #2109 change the format of session_id for Padrino Admin AccessControl (thanks @fnordfish for reporting this problem)
  • FIX #2111 disallow conflicting project names (thanks @leemour for reporting this problem)
  • FIX #2113 properly override default values in route definitions if parameter is present (@fidalgo)
  • FIX #2116 fix plugin list padrino g plugin -l (@fnordfish)
  • FIX #2119 add rake gem tasks to gem project Rakefile (@grasp)
  • FIX #2125 do not load in cycle files excluded from reloading (thanks @fnordfish for reporting this problem)
  • FIX handle nil database passwords for create_db and drop_db (@phallstrom)
  • FIX lock rake < 11.0 to avoid last_comment error (@namusyaka)

2017/03/20 00:00:00


Padrino 0.13.3.2 - small fixes, documentation cleanup, enable sqlite's file to deep tree of subdirectories, caching the content_type mime type

Padrino 0.13.3.2 was shipped in September 2016. This version contains small fixes, documentation cleanup, enable sqlite's file to deep tree of subdirectories, as well as fixing an issue with not caching the content_type mime type.

Be able to create sqlite's file to deep tree of subdirectories.

@karakava was so nice to make the following possible when working with SQLite:

ActiveRecord::Base.configuration[:development] = {
  :adapter => 'sqlite3',
  :database => Padrino.root('db', 'development/1/sample.db')
}

Bug Fixes and Miscellaneous Things

There are several bug fixes and other updates:

2016/11/02 00:00:00


Padrino 0.13.3 - Generator changes, mailer rendering, proper URL escaping for link_to and form_tag helpers, new helper method, bug fixes

Padrino 0.13.3 was shipped in August 2016. This version contains generator changes, mailer rendering, proper URL escaping for link_to and form_tag helpers, new helper method, bug fixes.

Generator changes

No generator support for:

  • riot (last change is from October 2013)
  • steak (last change is from January 2012)
  • rightjs (last project update from March 2012)

For more details see this commit.

Mailer rendering

Implemented new way to call render in mailers. It allows to omit mailer name or mailer name and message name.

Example:

mailer :sample do
  message :message2
    render 'congrats' #=> renders from 'sample/congrats'
  end
  message :message1
    render #=> renders from 'sample/message1'
  end
end

For more details check #1907 allow clipped render calls in mailer (@ujifgc). Thanks to @jf for posting this idea.

There has been an inconsistency between image_tag and link_to/form_tag in escaping URIs:

puts(image_tag 'image name.jpeg')
# => <img src="/images/image%20name.jpeg?1459513767" />

# previous behavior
link_to 'image title', 'image name.jpeg')
# => <a href="image name.jpeg">image title</a>

# actual behavior
link_to 'image title', 'image name.jpeg')
# => <img src="/images/image%20name.jpeg?1459513767" />

For more details check #2016 escape urls in link_to and form_tag (@ujifgc). Thanks to @jf for posting this idea.

Example:

escape_link('http://example.com/spaced link')
# => 'http://example.com/spaced%20link'

escape_link('already%20partially escaped')
# => 'already%20partially%20escaped'

More details under tag_helpers.rb.

Bug Fixes and Miscellaneous

There are several bug fixes and other updates:

  • FIX #1662 make Reloader remove module constants (this occurred when source code is changed under a running padrino application)
  • FIX #2036 do not mutate route name String (@ujifgc)
  • FIX #2024 Do not override access control object when registered in multiple apps (nx6)
  • FIX #2045 Prevent overwriting params by given query (@namusyaka)
  • NEW #1872 implement using partials without Sinatra, closes (@ujifgc)
  • FIX #2052 String#humanize compatibility with AS ~3.2 (@ujifgc)
  • NEW #2050 Update Moneta to 0.8.0 (@basex)
  • NEW #2056 Allow Pry as Padrino console shell (@ujifgc)
  • NEW github issue template (@ujifgc)
  • FIX #2066 Fix reloader with native jruby classes (@ujifgc)

2016/08/18 00:00:00


Back to top

TOP