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
Will update gems #144
Merged
Merged
Will update gems #144
Changes from 2 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
96d4fdc
Update dependecy to match other files.
1524bc8
Bump version here, as it has been bumped in the gemspec.
06329a2
Read version from file, rather than hard coding.
44b26bd
Read Version from file for collins-shell
2969489
Read version from file for collins_notify.
db0e678
Read version from file for collins_state.
3281c1a
Instead of just reading the VERISON file, read the first line, and st…
a5fdc76
Don't worry about whitespace, since gemspec seems to handle it correc…
dd568ba
Removing rvmrc files. Let people manage their own ruby envs
File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
0.2.11 | ||
0.2.12 | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we remove this file? No need for it anymore, we dont read from it after jeweler was ripped out. (dont forget to remove from gemspec files list as well.)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All of the gems have it - are you comfortable with us removing it from all
of them?
-William Richard
On Wed, Apr 9, 2014 at 10:11 AM, Gabe Conradi notifications@github.comwrote:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If the gemspec doesnt read that file in, then yea. I dont know what purpose it serves. @dallasmarlow
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@byxorna @Primer42 agreed, as much as i like blake this is an artifact of his that should be removed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The version file does not appear to be totally unused in all cases. For collins_shell, and collins_notify, blake appears to have used them
https://github.com/tumblr/collins/blob/master/support/collins-shell/lib/collins_shell/cli.rb#L149
https://github.com/tumblr/collins/blob/master/support/ruby/collins-notify/lib/collins_notify/version.rb#L8
I don't know much ruby, but it seems like there are better ways to do this. Maybe something like this.
http://stackoverflow.com/questions/3046233/get-version-of-gem-within-ruby
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Primer42 i'm a bit confused here, the page you linked to has an example of programmatically retrieving the version from the gemspec of a loaded gem. @byxorna and myself are just suggesting to keep the library version only in the gemspec to avoid these different files from conflicting. the VERSION file is currently not used in that project, if you really wanted to keep the VERSION files around for some reason then you would just want to have the gemspec read it
gem.version = File.read 'VERSION'
.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dallasmarlow @Primer42 is saying that the collins-shell and collins-notify libraries read the
VERSION
file from disk, so removing theVERSION
file will require changes to how those libraries report their versions.@Primer42 that suggestion is specific to rubygems. We dont want to force users of these gems to have rubygems installed, rather than another method (i.e. managing
$:
manually). For theCollinsNotify::Version
, I would say just rip that whole class out, and remove https://github.com/tumblr/collins/blob/master/support/ruby/collins-notify/lib/collins_notify/options.rb#L108. Not super necessary.For collins_shell, its more integrated, and it looks like he is already using Gem to figure out what the latest gem is for comparison. Unsure what to do there.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@byxorna yep, you summarized what I was trying to say better than I was saying it :)
Do you really think its a good idea to remove the --version option? That seems pretty standard to me, either to have that option and/or display the version information in the usage message. Either way, we need a way to access that information in some way.
I know this is sort of the opposite of what you suggested @dallasmarlow, but what if instead of having the version number hard coded in several places, we have all of these files load the version number dynamically from the VERSION file?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dallasmarlow @byxorna how does this PR look now? Reading the version from the file, rather than having it hard coded in a few places?