added functionality to permit get the latest version of a gem #29

Merged
merged 1 commit into from Oct 11, 2013

Conversation

Projects
None yet
2 participants
@tiagolnobre
Contributor

tiagolnobre commented May 24, 2013

I had an issue when using stickler with puppet trying to get puppet to install the latest version of a gem, with this feature i can get the latest version of a gem a get it to be installed by puppet.

I think is a useful functionality to use with puppet.

@copiousfreetime

This comment has been minimized.

Show comment Hide comment
@copiousfreetime

copiousfreetime Jul 14, 2013

Owner

This sounds reasonable, and i'm trying to understand your use case. You are using stickler last-version <gemname> as test in puppet to see what the latest version is so you can see if puppet should install a new version of the gem? Could you get the same effect if you just used gem list -r <gemname> and parsed the output?

Owner

copiousfreetime commented Jul 14, 2013

This sounds reasonable, and i'm trying to understand your use case. You are using stickler last-version <gemname> as test in puppet to see what the latest version is so you can see if puppet should install a new version of the gem? Could you get the same effect if you just used gem list -r <gemname> and parsed the output?

@tiagolnobre

This comment has been minimized.

Show comment Hide comment
@tiagolnobre

tiagolnobre Jul 22, 2013

Contributor

Yeah the gem list -r <gemname> gives the same result but not like the stickler last-version <gemname> it will need some parsing. The problem is that puppet doesn't know how to get the latest version if you don't specify it manually like 0.0.12, if you use ensure => latest in puppet it something get you versions like '0.0.60.0.7' .

Contributor

tiagolnobre commented Jul 22, 2013

Yeah the gem list -r <gemname> gives the same result but not like the stickler last-version <gemname> it will need some parsing. The problem is that puppet doesn't know how to get the latest version if you don't specify it manually like 0.0.12, if you use ensure => latest in puppet it something get you versions like '0.0.60.0.7' .

@ghost ghost assigned copiousfreetime Jul 22, 2013

@copiousfreetime

This comment has been minimized.

Show comment Hide comment
@copiousfreetime

copiousfreetime Jul 22, 2013

Owner

Alright, sounds reasonable, I'll merge this in soon.

Owner

copiousfreetime commented Jul 22, 2013

Alright, sounds reasonable, I'll merge this in soon.

@tiagolnobre

This comment has been minimized.

Show comment Hide comment
@tiagolnobre

tiagolnobre Jul 29, 2013

Contributor

Great, thanks :)

Contributor

tiagolnobre commented Jul 29, 2013

Great, thanks :)

@copiousfreetime

This comment has been minimized.

Show comment Hide comment
@copiousfreetime

copiousfreetime Sep 19, 2013

Owner

this will go into the next version

Owner

copiousfreetime commented Sep 19, 2013

this will go into the next version

copiousfreetime added a commit that referenced this pull request Oct 11, 2013

Merge pull request #29 from macwadu/master
added functionality to permit get the latest version of a gem

@copiousfreetime copiousfreetime merged commit fee2a53 into copiousfreetime:master Oct 11, 2013

@copiousfreetime

This comment has been minimized.

Show comment Hide comment
@copiousfreetime

copiousfreetime Oct 11, 2013

Owner

I did some mucking around with this to bring it in line the other commands and normalized it to 'latest-version'

Owner

copiousfreetime commented Oct 11, 2013

I did some mucking around with this to bring it in line the other commands and normalized it to 'latest-version'

@copiousfreetime

This comment has been minimized.

Show comment Hide comment
@copiousfreetime

copiousfreetime Nov 12, 2013

Owner

this is now included with the released 2.4 version

Owner

copiousfreetime commented Nov 12, 2013

this is now included with the released 2.4 version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment