Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge glob pattern using braces #2072

Merged
merged 1 commit into from Nov 17, 2017
Merged

Conversation

znz
Copy link
Contributor

@znz znz commented Nov 9, 2017

Remove duplicated directory path.

  • Describe the problem / feature
  • Write tests
  • Write code to solve the problem
  • Get code review from coworkers / friends

I will abide by the code of conduct.

@@ -442,15 +442,15 @@ def rb_files_in dir
# for installation of bundler as default gems
def template_files
Copy link
Member

Choose a reason for hiding this comment

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

Awesome! While we're at it, can you change this method to just call template_files_in "bundler/lib" so we're not duplicating the logic? Thanks!

Copy link
Member

Choose a reason for hiding this comment

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

template_files_in "bundler/lib" is not working this method. Because installation phase needs to template files with prefix of bundler like bundler/templates/newgem/... . But uninstallation phase doesn't need it prefix.

Copy link
Member

Choose a reason for hiding this comment

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

sorry, in that case template_files_in "bundler/lib/bundler" should be equivalent?

Copy link
Member

Choose a reason for hiding this comment

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

It's good to equivalent template_files_in for template_files method.

@hsbt
Copy link
Member

hsbt commented Nov 17, 2017

I merge this. we need to simplify this installer logic.

@hsbt
Copy link
Member

hsbt commented Nov 17, 2017

@bundlerbot r+

@bundlerbot
Copy link
Collaborator

📌 Commit bb33027 has been approved by hsbt

@bundlerbot
Copy link
Collaborator

⌛ Testing commit bb33027 with merge c06efbc...

bundlerbot added a commit that referenced this pull request Nov 17, 2017
Merge glob pattern using braces

Remove duplicated directory path.

- [X] Describe the problem / feature
- [ ] Write tests
- [X] Write code to solve the problem
- [ ] Get code review from coworkers / friends

I will abide by the [code of conduct](https://github.com/rubygems/rubygems/blob/master/CODE_OF_CONDUCT.md).
@bundlerbot
Copy link
Collaborator

☀️ Test successful - status-travis
Approved by: hsbt
Pushing c06efbc to master...

@bundlerbot bundlerbot merged commit bb33027 into rubygems:master Nov 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants