Skip to content

Sort files and test_files in specifications#2524

Merged
1 commit merged into
ruby:masterfrom
cbaines:sort-file-lists-in-specifications
Jan 4, 2019
Merged

Sort files and test_files in specifications#2524
1 commit merged into
ruby:masterfrom
cbaines:sort-file-lists-in-specifications

Conversation

@cbaines
Copy link
Copy Markdown

@cbaines cbaines commented Dec 12, 2018

Description:

Currently, when writing out specifications, the order of the elements
in files and test_files can differ. Even if the set of files (in the
mathematical sense) is the same, the different order causes the files
or test_files to look different.

This causes problems with the reproducibility of working with
specifications. You can install a gem on different machines, and get
gemspecs that differ.

This change sorts the files and test_files, to protect against the
specifications differing unnecessarily.


Tasks:

  • 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.

Currently, when writing out specifications, the order of the elements
in files and test_files can differ. Even if the set of files (in the
mathematical sense) is the same, the different order causes the files
or test_files to look different.

This causes problems with the reproducibility of working with
specifications. You can install a gem on different machines, and get
gemspecs that differ.

This change sorts the files and test_files, to protect against the
specifications differing unnecessarily.
@welcome
Copy link
Copy Markdown

welcome Bot commented Dec 12, 2018

Thanks for opening a pull request and helping make RubyGems better! Someone from the RubyGems team will take a look at your pull request shortly and leave any feedback. Please make sure that your pull request has tests for any changes or added functionality.

We use Travis CI to test and make sure your change works functionally and uses acceptable conventions, you can review the current progress of Travis CI in the PR status window below.

If you have any questions or concerns that you wish to ask, feel free to leave a comment in this PR or join our #rubygems channel on Slack.

For more information about contributing to the RubyGems project feel free to review our CONTRIBUTING guide

@colby-swandale
Copy link
Copy Markdown
Member

Thanks for the PR! This will need a test before we consider merging this.

@hsbt
Copy link
Copy Markdown
Member

hsbt commented Jan 4, 2019

@bundlerbot r+

ghost pushed a commit that referenced this pull request Jan 4, 2019
2524: Sort files and test_files in specifications r=hsbt a=cbaines

# Description:

Currently, when writing out specifications, the order of the elements
in files and test_files can differ. Even if the set of files (in the
mathematical sense) is the same, the different order causes the files
or test_files to look different.

This causes problems with the reproducibility of working with
specifications. You can install a gem on different machines, and get
gemspecs that differ.

This change sorts the files and test_files, to protect against the
specifications differing unnecessarily.

______________

# Tasks:

- [x] Describe the problem / feature
- [ ] Write tests
- [x] Write code to solve the problem
- [x] 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).


2574: Removed needless condition for old versions of Ruby. r=hsbt a=hsbt

# Description:

Fixed #2569

______________

# Tasks:

- [ ] 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](https://github.com/rubygems/rubygems/blob/master/CODE_OF_CONDUCT.md).


Co-authored-by: Christopher Baines <mail@cbaines.net>
Co-authored-by: SHIBATA Hiroshi <hsbt@ruby-lang.org>
@ghost
Copy link
Copy Markdown

ghost commented Jan 4, 2019

Build succeeded

@ghost ghost merged commit a905870 into ruby:master Jan 4, 2019
@segiddins
Copy link
Copy Markdown
Contributor

It looks like a test was never added?

This pull request was closed.
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.

5 participants