Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# CHANGELOG

## 0.18.0 (unreleased)

* Allow BSON >= 2.0 (@tagliala)
* Support Frozen String Literals (@tagliala)
* Fix extract_options! not being available (@A1bi)
* Improve caching lookup performance (@pharris2411)

## 0.17.0 (Nov 26, 2024)

* Support for Rails 8 (@basex)
Expand Down
2 changes: 2 additions & 0 deletions lib/rabl.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'active_support'
require 'active_support/core_ext/array/extract_options'
require 'active_support/core_ext/string/inflections'
Expand Down
2 changes: 2 additions & 0 deletions lib/rabl/builder.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'active_support/inflector' # for the sake of camelcasing keys

module Rabl
Expand Down
2 changes: 2 additions & 0 deletions lib/rabl/cache_engine.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

# Defines the default cache engine for RABL when caching is invoked for a template.
# You can define your own caching engines by creating an object that responds to fetch and
# setting the configuration option:
Expand Down
2 changes: 2 additions & 0 deletions lib/rabl/configuration.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

# We load the msgpack library if it is available.
begin
require 'msgpack'
Expand Down
2 changes: 2 additions & 0 deletions lib/rabl/digestor.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'action_view'

module Rabl
Expand Down
2 changes: 2 additions & 0 deletions lib/rabl/digestor/rails3.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'action_view'

module Rabl
Expand Down
2 changes: 2 additions & 0 deletions lib/rabl/digestor/rails41.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'action_view'

module Rabl
Expand Down
2 changes: 2 additions & 0 deletions lib/rabl/digestor/rails5.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'action_view'

module Rabl
Expand Down
2 changes: 2 additions & 0 deletions lib/rabl/engine.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Rabl
class Engine
include Helpers
Expand Down
4 changes: 3 additions & 1 deletion lib/rabl/helpers.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'active_support/inflector' # for the sake of pluralizing

module Rabl
Expand Down Expand Up @@ -128,7 +130,7 @@ def object_to_engine(object, options = {}, &block)
return if object.nil?

options.reverse_merge!({
:format => "hash".freeze,
:format => "hash",
:view_path => view_path,
:root => (options[:root] || false)
})
Expand Down
2 changes: 2 additions & 0 deletions lib/rabl/multi_builder.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Rabl
class MultiBuilder
include Helpers
Expand Down
2 changes: 2 additions & 0 deletions lib/rabl/partials.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Rabl
module Partials
include Helpers
Expand Down
2 changes: 2 additions & 0 deletions lib/rabl/railtie.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Rabl
class Railtie < Rails::Railtie
initializer "rabl.initialize" do |app|
Expand Down
2 changes: 2 additions & 0 deletions lib/rabl/renderer.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Rabl
class Renderer
# Defines class method rendering in supported formats
Expand Down
2 changes: 2 additions & 0 deletions lib/rabl/sources.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Rabl
module Sources
include Helpers
Expand Down
2 changes: 2 additions & 0 deletions lib/rabl/template.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

# TILT Template
if defined?(Tilt)
class RablTemplate < Tilt::Template
Expand Down
2 changes: 2 additions & 0 deletions lib/rabl/tracker.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Rabl
# DependencyTracker for ActionView to support cache digest
class Tracker
Expand Down
4 changes: 3 additions & 1 deletion lib/rabl/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Rabl
VERSION = "0.17.0"
VERSION = "0.18.0"
end