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

Support comparing versions of packages. #315

Merged
merged 1 commit into from Dec 17, 2013

Conversation

Projects
None yet
3 participants
@ryotarai
Contributor

ryotarai commented Dec 17, 2013

You can write a spec like the following:

describe package('httpd') do
  its(:version) { should > '2.2.14' }
end
@mizzy

This comment has been minimized.

Show comment
Hide comment
@mizzy

mizzy Dec 17, 2013

Owner

Very useful!

Owner

mizzy commented Dec 17, 2013

Very useful!

mizzy added a commit that referenced this pull request Dec 17, 2013

@mizzy mizzy merged commit 787359f into mizzy:master Dec 17, 2013

1 check passed

default The Travis CI build passed
Details
@vincentbernat

This comment has been minimized.

Show comment
Hide comment
@vincentbernat

vincentbernat Dec 17, 2013

Contributor

Unfortunately, Gem::Version is rather limited to what it accepts. Most distributions will use versions like 1.2.3-10 which won't be accepted by Gem::Version.

Contributor

vincentbernat commented Dec 17, 2013

Unfortunately, Gem::Version is rather limited to what it accepts. Most distributions will use versions like 1.2.3-10 which won't be accepted by Gem::Version.

@mizzy

This comment has been minimized.

Show comment
Hide comment
@mizzy

mizzy Dec 17, 2013

Owner

I see.

I will revert this merge. How do you think, @ryotarai ?

Owner

mizzy commented Dec 17, 2013

I see.

I will revert this merge. How do you think, @ryotarai ?

@vincentbernat

This comment has been minimized.

Show comment
Hide comment
@vincentbernat

vincentbernat Dec 17, 2013

Contributor

Please wait a few minutes, I will propose an alternative.

Contributor

vincentbernat commented Dec 17, 2013

Please wait a few minutes, I will propose an alternative.

@vincentbernat

This comment has been minimized.

Show comment
Hide comment
@vincentbernat

vincentbernat Dec 17, 2013

Contributor

See pull request #316. Bear in mind that I am an absolute beginner with Ruby. Maybe there is a more elegant way to do the same thing!

Contributor

vincentbernat commented Dec 17, 2013

See pull request #316. Bear in mind that I am an absolute beginner with Ruby. Maybe there is a more elegant way to do the same thing!

@ryotarai

This comment has been minimized.

Show comment
Hide comment
@ryotarai

ryotarai Dec 18, 2013

Contributor

@mizzy @vincentbernat
Pull request #316 looks good to me!
But it seems to contain a typo. I commented on #316 .

Contributor

ryotarai commented Dec 18, 2013

@mizzy @vincentbernat
Pull request #316 looks good to me!
But it seems to contain a typo. I commented on #316 .

@mizzy

This comment has been minimized.

Show comment
Hide comment
@mizzy

mizzy Mar 27, 2014

Owner

Released as v1.0.0.

Owner

mizzy commented Mar 27, 2014

Released as v1.0.0.

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