Skip to content

Commit

Permalink
Add spec, update CHANGELOG
Browse files Browse the repository at this point in the history
  • Loading branch information
amorde committed Dec 24, 2023
1 parent 3aebe8c commit f13b963
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@
[fnxpt](https://github.com/fnxpt)
[#748](https://github.com/CocoaPods/Core/issues/748)

* Fix a crash when calling Specification#subspec_by_name on a deprecated specification with no name
[sagiwei](https://github.com/sagiwei)
[#742](https://github.com/CocoaPods/Core/pull/742)


## 1.14.3 (2023-11-19)

Expand Down
9 changes: 9 additions & 0 deletions spec/specification_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -418,6 +418,15 @@ module Pod
@spec.subspec_by_name('Pod/Subspec/Subsubspec/Missing', false).should.be.nil?
end

describe 'deprecated podspec' do
it 'returns nil for an empty deprecated spec' do
@spec = Spec.new do |s|
s.deprecated_in_favor_of = 'SomeOtherSpec'
end
@spec.subspec_by_name('subspec', false).should.be.nil?
end
end

it 'returns the default subspecs' do
spec = @spec.dup
spec.default_subspecs = 'Subspec1', 'Subspec2'
Expand Down

0 comments on commit f13b963

Please sign in to comment.