Skip to content

Releases: Quick/Nimble

Nimble v1.0.0 Final

29 Jun 07:39
v1.0.0
Compare
Choose a tag to compare

Final version release! From now on, Nimble will follow semantic versioning rules.

Remember that version 1.0.0 of Nimble tracks with the stable Swift (1.2) / Xcode (6).
If you're using Swift 2.0 / Xcode 7, please use 2.0.0-rc.1 instead.

Diff from Release Candidate 1 to Final

Changes:

  • beAKindOf and beAnInstanceOf raise errors when used with swift native types instead of producing obscure compiler errors.
  • Publicize NMBObjCMatcher constructors
  • Updated README to use @import Nimble; instead of #import <Nimble/Nimble.h> for Objective-C.

Diff in Release Candidate 1

Repeated from 1.0.0-RC1 release notes.

Changes:

  • FailureMessage.stringValue is now a property. It can be assigned to override other values.
  • beTruthy() and beFalsy() matchers now work for nil types and Swift
  • raiseException() no longer accepts matchers. Use the closure form instead.
  • AssertionHandler protocol recieves FailureMessage instead of a String.
  • Expectation.verify() now uses FailureMessage instead of String.
  • Renamed NMB_wait* builder functions to be more consistent with rest of Nimble.
  • fail() with no args passes through line number and file information
  • NMBObjCMatcher closure no long accepts source location directly. Use actualExpression.location instead.
  • FullMatcherFunc no longer negates doesNotMatch() when invoking its given closure.

Removed:

  • NMBWait class is now private.
  • Removed BasicMatcherWrapper
  • Removed NonNilBasicMatcherWrapper
  • Removed NonNilMatcherWrapper, use NonNilMatcherFunc for the same behavior.
  • Removed FullMatcherWrapper

Nimble v2.0.0 Release Candidate 1

10 Jun 03:03
Compare
Choose a tag to compare

Release Candidate for 2.0.0, which supports Xcode 7 and Swift 2.0. Please try it out and report any issues. If all is well, then this version may migrate to final 2.0.0.

Note to Carthage Users: You must explicitly give this version for Carthage to install.
github "Quick/Nimble" "v2.0.0-rc.1"

Changes:

  • Backwards incompatible changes for Swift 2.0.
  • beEmpty() matcher is now defined specifically for String--in Swift 1.2 a
    definition for NSString was sufficient.

Nimble v1.0.0 Release Candidate 1

16 May 20:10
v1.0.0-rc.1
Compare
Choose a tag to compare

Release Candidate for 1.0.0. Please try it out and report any issues. If all is well, then this version may migrate to final 1.0.0.

Note to Carthage Users: You must explicitly give this version for Carthage to install.
github "Quick/Nimble" "v1.0.0-rc.1"

Changes:

  • FailureMessage.stringValue is now a property. It can be assigned to override other values.
  • beTruthy() and beFalsy() matchers now work for nil types and Swift
  • raiseException() no longer accepts matchers. Use the closure form instead.
  • AssertionHandler protocol receives FailureMessage instead of a String.
  • Expectation.verify() now uses FailureMessage instead of String.
  • Renamed NMB_wait* builder functions to be more consistent with rest of Nimble.
  • fail() with no args passes through line number and file information
  • NMBObjCMatcher closure no long accepts source location directly. Use actualExpression.location instead.
  • FullMatcherFunc no longer negates doesNotMatch() when invoking its given closure.

Removed:

  • NMBWait class is now private.
  • Removed BasicMatcherWrapper
  • Removed NonNilBasicMatcherWrapper
  • Removed NonNilMatcherWrapper, use NonNilMatcherFunc for the same behavior.
  • Removed FullMatcherWrapper

Nimble v0.4.2

06 Apr 05:50
v0.4.2
Compare
Choose a tag to compare

Changes:

  • Set the minimum deployment target to iOS 7.

Nimble v0.4.1

23 Mar 18:22
Compare
Choose a tag to compare

This is a minor bump to v0.4.0, which includes the following improvements:

  • equal() can now be used to compare two sets.
  • Added the allPass() matcher.
  • expect() uses an autoclosure, as it did in v0.3.0 and prior.
  • Fixed build error on Xcode 6.3β related to asynchronous matchers (fixes #105).

Nimble v0.4.0

11 Feb 05:21
v0.4.0
Compare
Choose a tag to compare

This version includes backwards-incompatible changes to support Swift 1.2. The
previous behavior of lazy evaluation of the argument in expect(...) has been
removed since Swift 1.2 no longer supports this. Use expect { ... } if you want
the lazy closure behavior.

Using toEventually() will check that this explicit closure is used and will
explicitly fail if the closure is not provided to expect.

Along with fixes for Swift 1.2, there are a few new features:

  • Added beEmpty matcher for Objective-C.
  • raiseException matcher can compare an exception's userInfo

Nimble v0.3.0

25 Jan 08:54
Compare
Choose a tag to compare

Changes in this release:

  • Added waitUntil for Objective-C. Also waitUntilWithTimeout can be used with a custom timeout value. They work similarly to the swift versions:

    waitUntil(^(void (^done)(void) {
        // do a lot of work...
        done();
    });
  • Added approximate equality (beCloseTo matcher) can use the operator. The operator can be easily typed with (option+x):

    expect(1.2)  1.2001
  • Added approximate equality can also be given a delta with the ± operator (option + shift + =). This also works with the == operator, but still behaves like beCloseTo:

    // equivalent expectations
    expect(1.2) == 1.3 ± 0.5
    expect(1.2)  1.3 ± 0.5
  • Added Nimble to Cocoapods Trunk. You no longer need to specify the :git keyword argument in your podfile. The prereleased version of cocoapods is still required.

Nimble 0.2.0

26 Nov 20:43
Compare
Choose a tag to compare

Changes in this release:

  • Change: Objective-C matchers will now all properly reject nil values. Use beNil() to match against nils.
  • Change: beEmpty() matcher no longer matches against nil
  • Change: equal() uses Swift's built-in equality comparison.
  • Change: Make objective-c matchers explicit about not accepting any arguments.
  • Removed: Undocumented beOneOf() matcher that was Swift-only.
  • New: expect().withTimeout() in objective-c for custom timeouts of async matchers.
  • New: Added Podspec for Cocoapods' Swift Branch
  • New: Documentation comments for Swift matchers
  • New: NonNilMatcherFunc which supports emitting a consistent nil error message. Matchers that use this still need to safely process nils.