Skip to content

Commit

Permalink
Merge branch 'main' into add-ostruct-to-gemspec
Browse files Browse the repository at this point in the history
  • Loading branch information
joelhawksley authored Sep 30, 2024
2 parents ac8d905 + a528f1c commit a267d74
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
view_component (3.15.0)
view_component (3.15.1)
activesupport (>= 5.2.0, < 8.0)
concurrent-ruby (~> 1.0)
method_source (~> 1.0)
Expand Down
6 changes: 6 additions & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ nav_order: 5

*Jonathan Underwood*

## 3.15.1

* Re-add `@private`, undocumented `.identifier` method that was only meant for internal framework use but was used by some downstream consumers. This method will be removed in a coming minor release.

*Joel Hawksley*

## 3.15.0

* Add basic internal testing for memory allocations.
Expand Down
2 changes: 1 addition & 1 deletion docs/_data/library.yml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version: 3.15.0
version: 3.15.1
9 changes: 9 additions & 0 deletions lib/view_component/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -574,6 +574,15 @@ def compiler
@__vc_compiler ||= Compiler.new(self)
end

# @private
def identifier
# :nocov:
Kernel.warn("WARNING: The #{self.class}.identifier is undocumented and was meant for internal framework usage only. As it is no longer used by the framework it will be removed in a coming non-breaking ViewComponent release.")

source_location
# :nocov:
end

# Set the parameter name used when rendering elements of a collection ([documentation](/guide/collections)):
#
# ```ruby
Expand Down
2 changes: 1 addition & 1 deletion lib/view_component/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ module ViewComponent
module VERSION
MAJOR = 3
MINOR = 15
PATCH = 0
PATCH = 1
PRE = nil

STRING = [MAJOR, MINOR, PATCH, PRE].compact.join(".")
Expand Down

0 comments on commit a267d74

Please sign in to comment.