[nodejs] meaning of the semver ~

2013-06-01 Thread Christian Tellnes
A. semver.satisfies('~1.2.3', '1.2.4') true B. semver.satisfies('~1.2', '1.3.0') true C. semver.satisfies('~1.2', '1.2.6') true D. semver.satisfies('1.2', '1.3.0') false E. semver.satisfies('1.2', '1.2.4') true -- Sincerely, Christian Vaagland Tellnes Phone: +4791861617

Re: [nodejs] meaning of the semver ~

2013-05-31 Thread dhruvbird
On Thursday, May 30, 2013 12:52:47 PM UTC-7, Dominic wrote: without looking in the documentation or trying it in the repl what do you expect to be the results of these tests on semver ranges? A. semver.satisfies('~1.2.3', '1.2.4') True, because 1.2.3 seems to be approximately 1.2.4

Re: [nodejs] meaning of the semver ~

2013-05-31 Thread Dominic Tarr
10 points for alex kocharin (assuming he didn't cheat) for the purposes of this survey it's semver.sasisfies(semverRange, semverValue) On Fri, May 31, 2013 at 8:05 AM, dhruvbird dhruvb...@gmail.com wrote: On Thursday, May 30, 2013 12:52:47 PM UTC-7, Dominic wrote: without looking in the

[nodejs] meaning of the semver ~

2013-05-30 Thread Dominic Tarr
without looking in the documentation or trying it in the repl what do you expect to be the results of these tests on semver ranges? A. semver.satisfies('~1.2.3', '1.2.4') B. semver.satisfies('~1.2', '1.3.0') C. semver.satisfies('~1.2', '1.2.6') D. semver.satisfies('1.2', '1.3.0') E.

Re: [nodejs] meaning of the semver ~

2013-05-30 Thread Forrest L Norvell
On Thu, May 30, 2013 at 12:52 PM, Dominic Tarr dominic.t...@gmail.comwrote: without looking in the documentation or trying it in the repl what do you expect to be the results of these tests on semver ranges? A. semver.satisfies('~1.2.3', '1.2.4') true-y B. semver.satisfies('~1.2',

Re: [nodejs] meaning of the semver ~

2013-05-30 Thread Kevin Swiber
On May 30, 2013, at 3:52 PM, Dominic Tarr dominic.t...@gmail.com wrote: without looking in the documentation or trying it in the repl what do you expect to be the results of these tests on semver ranges? A. semver.satisfies('~1.2.3', '1.2.4') B. semver.satisfies('~1.2', '1.3.0') C.

Re: [nodejs] meaning of the semver ~

2013-05-30 Thread Jake Verbaten
A. semver.satisfies('~1.2.3', '1.2.4') yes B. semver.satisfies('~1.2', '1.3.0') yes C. semver.satisfies('~1.2', '1.2.6') yes D. semver.satisfies('1.2', '1.3.0') no E. semver.satisfies('1.2', '1.2.4') no On Thu, May 30, 2013 at 1:45 PM, Kevin Swiber kswi...@gmail.com wrote: On May 30,

Re: [nodejs] meaning of the semver ~

2013-05-30 Thread Michael Schoonmaker
A. semver.satisfies('~1.2.3', '1.2.4') = true B. semver.satisfies('~1.2', '1.3.0') = false C. semver.satisfies('~1.2', '1.2.6') = true D. semver.satisfies('1.2', '1.3.0') = false E. semver.satisfies('1.2', '1.2.4') = true My understanding is similar to Forrest's. ~1.2.3 means 1.2.3 = version

Re: [nodejs] meaning of the semver ~

2013-05-30 Thread Tim Smart
A - true B - true C - true D - false E - true Time to look at the documentation :) On Thu, May 30, 2013 at 09:52:47PM +0200, Dominic Tarr wrote: without looking in the documentation or trying it in the repl what do you expect to be the results of these tests on semver ranges? A.

Re: [nodejs] meaning of the semver ~

2013-05-30 Thread Isaac Schlueter
Also: No looking at the code or running the semver command line util ;) On Thu, May 30, 2013 at 2:48 PM, Tim Smart t...@fostle.com wrote: A - true B - true C - true D - false E - true Time to look at the documentation :) On Thu, May 30, 2013 at 09:52:47PM +0200, Dominic Tarr wrote:

Re: [nodejs] meaning of the semver ~

2013-05-30 Thread Alan Gutierrez
On 5/30/13 3:52 PM, Dominic Tarr wrote: without looking in the documentation or trying it in the repl what do you expect to be the results of these tests on semver ranges? A. semver.satisfies('~1.2.3', '1.2.4') B. semver.satisfies('~1.2', '1.3.0') C. semver.satisfies('~1.2', '1.2.6') D.

Re: [nodejs] meaning of the semver ~

2013-05-30 Thread Alex Kocharin
A. false B. false C. false D. false E. false 'cause you submitted the arguments in a wrong order. ;) On Thursday, May 30, 2013 11:52:47 PM UTC+4, Dominic wrote: without looking in the documentation or trying it in the repl what do you expect to be the results of these tests on semver

Re: [nodejs] meaning of the semver ~

2013-05-30 Thread chakrit
A. YES B. NO C. YES D. NO E. YES On Friday, May 31, 2013 2:52:47 AM UTC+7, Dominic wrote: without looking in the documentation or trying it in the repl what do you expect to be the results of these tests on semver ranges? A. semver.satisfies('~1.2.3', '1.2.4') B.

Re: [nodejs] meaning of the semver ~

2013-05-30 Thread chakrit
Meaning: A: Around this version, so get the most recent version that's still not too far from 1.2 B: 1.3 might have API changes, don't want it. I have programmed against 1.2 so let's stick to that for the moment C: Around this version, like A D: 1.2 with whatever patch version's available but