Skip to content
This repository has been archived by the owner on Apr 14, 2021. It is now read-only.

Handle recursive bundle package loop when multiple gemspecs present #4439

Merged
merged 1 commit into from
Apr 14, 2016
Merged

Handle recursive bundle package loop when multiple gemspecs present #4439

merged 1 commit into from
Apr 14, 2016

Conversation

RochesterinNYC
Copy link
Contributor

root_gem_names should contain the names of the gems that the gemspecs in the directory are correlated with. Gems are packaged unless they're called bundler or their names match with the gems specified in the gemspecs.

gemspec = gemspec_cache_hash.values.first
root_gem_name = gemspec.name unless gemspec.nil?
gemspecs = gemspec_cache_hash.values
root_gem_names = gemspecs.map(&:name) unless gemspecs.empty?
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the unless seems unnecessary to me?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh, gemspec_cache_hash.values will return an empty array if the hash is empty. Good call.

@segiddins
Copy link
Member

👍 other than the one comment

@RochesterinNYC
Copy link
Contributor Author

Thanks for the catch. Removed the extraneous unless.

gemspec :name => 'mygem'
gemspec :name => 'mygem_client'
D
sleep 10
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔥🔥🔥🔥

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hm, not sure how that got in since I don't think it was there on the previous iterations of this PR. Major thanks for the catch though. Think it's worth adding a spec quality check for this?

@indirect
Copy link
Member

A quality spec that checks for focused tests, binding.pry, debugger, and sleep sounds awesome to me. :)

@segiddins
Copy link
Member

segiddins commented Apr 14, 2016

Awesome but separate :P
@homu r+

@segiddins
Copy link
Member

@homu r+

@homu
Copy link
Contributor

homu commented Apr 14, 2016

📌 Commit 762ddfa has been approved by segiddins

@homu
Copy link
Contributor

homu commented Apr 14, 2016

⚡ Test exempted - status

@homu homu merged commit 762ddfa into rubygems:master Apr 14, 2016
homu added a commit that referenced this pull request Apr 14, 2016
…p-with-multiple-gemspecs, r=segiddins

Handle recursive bundle package loop when multiple gemspecs present

`root_gem_names` should contain the names of the gems that the gemspecs in the directory are correlated with. Gems are packaged unless they're called `bundler` or their names match with the gems specified in the gemspecs.

- Handles multiple gemspecs in directory
- Handles case where gemspec file name does not match with the gem name specified in the gemspec
- Fixes #4430
homu added a commit that referenced this pull request May 9, 2016
…echanisms, r=segiddins

Create quality check spec for leftover debugging/development mechanisms

Example mechanisms that are screened for:
- `sleep`
- `binding.pry`
- `debugger`
- focused `rspec` tests via `fit`

- Related to discussion at #4439 (comment)
homu added a commit that referenced this pull request May 10, 2016
…echanisms, r=segiddins

Create quality check spec for leftover debugging/development mechanisms

Example mechanisms that are screened for:
- `sleep`
- `binding.pry`
- `debugger`
- focused `rspec` tests via `fit`

- Related to discussion at #4439 (comment)
@coilysiren coilysiren modified the milestone: Release Archive Sep 22, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants