Skip to content
Merged
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: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

## [0.5.0]

### Changes
- Updated `#source_location` to `#identifier` to support VC 3.21 and later.

## [0.4.1]

### Changes
- Cap version to last compatible ViewComponent version using `#source_location`
- Cap version to last compatible ViewComponent version using `#source_location`
6 changes: 3 additions & 3 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
PATH
remote: .
specs:
view_component-fragment_caching (0.4.1)
view_component-fragment_caching (0.5.0)
rails (~> 7.0)
view_component (< 3.21)
view_component (< 4.0)

GEM
remote: https://rubygems.org/
Expand Down Expand Up @@ -207,7 +207,7 @@ GEM
tzinfo (2.0.4)
concurrent-ruby (~> 1.0)
unicode-display_width (2.1.0)
view_component (3.20.0)
view_component (3.21.0)
activesupport (>= 5.2.0, < 8.1)
concurrent-ruby (~> 1.0)
method_source (~> 1.0)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def ruby_nodes(name, template, klass)
end

view_component_ancestors(component_class).map do |ancestor|
anc_identifier = ancestor.source_location
anc_identifier = ancestor.identifier
anc_logical_name = ancestor.name.underscore
view_component_ruby_node anc_identifier, anc_logical_name, template, klass
end
Expand Down
2 changes: 1 addition & 1 deletion lib/view_component/fragment_caching/version.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module ViewComponent
module FragmentCaching
VERSION = '0.4.1'.freeze
VERSION = '0.5.0'.freeze
public_constant :VERSION
end
end
2 changes: 1 addition & 1 deletion view_component-fragment_caching.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ require_relative 'lib/view_component/fragment_caching/version'
end

spec.add_dependency 'rails', '~> 7.0'
spec.add_dependency 'view_component', '< 3.21'
spec.add_dependency 'view_component', '< 4.0'

spec.add_development_dependency 'capybara', '~> 3.36'
spec.add_development_dependency 'pry-rails', '~> 0.3'
Expand Down
Loading