Permalink
Browse files

Merge pull request #189 from AlexeyKupershtokh/semver

Fix semver usage
  • Loading branch information...
2 parents 66b8116 + f7b7b3f commit aa5de36d24b4e2ce35dba6fb728025b7e0edbdfb @ronkorving ronkorving committed Mar 12, 2013
Showing with 3 additions and 3 deletions.
  1. +3 −3 test/test.exports.js
View
@@ -53,8 +53,8 @@ if (semver.satisfies(zmq.version, '2.x')) {
]);
}
-// 3.x only.
-if (semver.satisfies(zmq.version, '3.x')) {
+// 3.0 and above.
+if (semver.gte(zmq.version, '3.0.0')) {
constants.concat([
'XPUB',
'XSUB',
@@ -64,7 +64,7 @@ if (semver.satisfies(zmq.version, '3.x')) {
}
// 3.2 and above.
-if (semver.gte('3.2')) {
+if (semver.gte(zmq.version, '3.2.0')) {
constants.concat([
'LAST_ENDPOINT'
]);

0 comments on commit aa5de36

Please sign in to comment.