All Versions
69
Latest Version
Avg Release Cycle
156 days
Latest Release
320 days ago

Changelog History
Page 6

  • v2.3.1 Changes

    • ๐Ÿ›  Fixed bug with OHHTTPStubsResponse+JSON when nil headers dictionary
  • v2.3.0 Changes

    • โž• Added the ability to give a name to a stub, for debugging purposes (property name of id<OHHTTPStubsDescriptor>)
    • โž• Added allStubs method to list all installed stubs (with their name if they have one, see previous point)
    • โž• Added +[OHHTTPStubs onStubActivation:] method to execute arbitrary code each time a stub is activated. Useful to log which stub is used for each request for example.
  • v2.2.1 Changes

    • โ™ป๏ธ Complete refactoring to use NSInputStream instead of direct use of NSData (Thanks to @kcharwood - #28)
    • โ™ป๏ธ Some other code refactoring to split the code in categories and make it clearer
    • Some API changes to make OHHTTPStubs to fit the new possibility of setting both requestTime and responseTime.
      • Old API is still there but deprecated, and will be removed in next major version
      • To convert to the new API, you will mainly simply:
        • extract the responseTime: parameter to a method call of its own (return [OHHTTPStubsResponse responseWithData:data statusCode:code responseTime:time headers:header]; will become return [[OHHTTPStubsResponse responseWithData:data statusCode:code headers:headers] responseTime:time]; etc.)
        • convert responseWithFile:filename to responseWithFileAtPath:OHPathForFileInBundle(filename,nil)

    ๐Ÿ›  > Note: version 2.1.0-RC, 2.1.0-rc.1, 2.2.0-RC and 2.2.1-RC were intermediate Release Candidate versions during the big refactoring and migration to 2.2.1, with the same new features as listed above basicaly, but without the last-minute bugfixes before official release.

  • v2.0.0 Changes

    • Simplified API
      • removed instance methods, no more public sharedInstance: directly call class methods on the OHHTTPStubs class
      • The old and problematic addRequestHandler: method has been deprecated and should not be used anymore. Use stubRequestsPassingTest:withStubResponse: instead, which is more efficient
    • โž• Added API documentation in the headers
    • โœ‚ Remove all internal uses of Apple's private APIs

    ๐Ÿšš > Be careful: if you forgot to remove your use of OHHTTPStubs and your stubs from the binary you sent to the AppStore, your app would have been rejected by Apple before 2.0.0, as it was using private API (which was a way to make sure not to forget to remove them), but now it would be accepted silently. So don't forget to remove your stubs and OHHTTPStubs from your final binary!

  • v1.2.2 Changes

    • ๐Ÿ›  Fixed Deadlock introduced by 1.2.1
  • v1.2.1 Changes

    • ๐Ÿ‘Œ Improved thread-safety (#21)
    • Stop sending messages to NSURLProtoclClient after stopLoading

    ๐Ÿ›  > This version is buggy as it introduced a deadlock when performing a request on the main thread. 1.2.2 fixes that issue.

  • v1.2.0 Changes

    • โž• Added support for "HTTP Message Data" stubs generated with curl -is <someurl> to replay them easily (#27). See the README.md for more info
    • โž• Added redirect support for 3xx response codes (#23)
    • Dropped non-ARC support. Now OHHTTPStubs is to be compiled using ARC. (This should not change anything as it is intended to be integrated using CocoaPods or compiled in a separate xcodeproj anyway)
  • v1.1.2 Changes

    Easier integration process:

    • ๐Ÿ‘‰ Use #import <OHHTTPStubs/OHHTTPStubs.h> again
    • But adding the path to the library headers in your application project's HEADER_SEARCH_PATH is no longer needed!
  • v1.1.1 Changes

    • ๐Ÿ›  Fixed crash when calling "setEnabled:" / "registerClass:" multiple times
    • New integration process: we don't use the PortableLibrary.xcconfig anymore (as it generated problems for people using configuration with names other than "Debug" and "Release"). (1)

    You will now have to indicate the folder containing headers for OHHTTPStubs in your HEADER_SEARCH_PATH Build Settings, and we are back to #import "OHHTTPStubs.h" until a better solution is found

    โช > (1) This modification for the integration process did only last for version 1.1.1. Version 1.1.2 restored #import <OHHTTPStubs/OHHTTPStubs.h> (but using a much better solution than the previous xcconfig used) and filling HEADER_SEARCH_PATH is no longer needed in further versions. See changelog for 1.1.2 above.

  • v1.1.0 Changes

    • โž• Added new API shouldStubRequest:withRequestHandler: to avoid useless building of stubbed response like addRequestHandler: does