OHHTTPStubs

Stub your network requests easily! Test your apps with fake network data and custom response time, response code and headers!

MIT License

Stars
5K
Committers
71

Bot releases are hidden (Show)

OHHTTPStubs - New Swift Helper methods

Published by AliSoftware almost 9 years ago

  • Added isMethodGET(), isMethodPUT(), isMethodPOST() and isMethodDELETE() to the Swift helpers.
    (#137)
OHHTTPStubs -

Published by AliSoftware almost 9 years ago

  • Added missing tvOS and watchOS platforms to the Swift subspec.
    @pantuspavel, #136
OHHTTPStubs - tvOS Support

Published by AliSoftware almost 9 years ago

OHHTTPStubs - Fixing Umbrella headers + NSURL methods

Published by AliSoftware almost 9 years ago

  • Fixed issue with Umbrella Headers (#127, #131)
  • Added methods for creating OHHTTPStubsResponses from NSURLs that represent file system resources (@MaxGabriel, #129)
  • Bumped Swift subspec compatibility to OSX 10.9 instead of 10.7.
OHHTTPStubs - Xcode project typos + new speed constant

Published by AliSoftware about 9 years ago

  • Fix the Examples Xcode project + lib Podfile that were referencing old target names (mikelupo, #117)
  • Added two new constants for download speed: OHHTTPStubsDownloadSpeed1KBPS = 1kbps and OHHTTPStubsDownloadSpeedSLOW = 1.5 kpbs. (mikelupo, #114)
OHHTTPStubs - Swift Helpers & Xcode 7

Published by AliSoftware about 9 years ago

  • Xcode projects updated to Xcode 7.0 Final
  • Added a Swift subspec that adds helper global functions to ease & make more compact the use of OHHTTPStubs from Swift 2.0 (#111)

If you're using OHHTTPStubs in a Swift 2.0 project, it's recommended to add pod 'OHHTTPStubs/Swift to your Podfile so you can use those handy helpers.

OHHTTPStubs - Mocktail support (+ Subspec split)

Published by AliSoftware about 9 years ago

  • Added support for stubs written in the Mocktail format (@JinlianWang, #108)
  • The OHHTTPStubs spec has been splitted into multiple subspecs:
    • The default subspec (used when you simply use pod 'OHHTTPStubs' in your Podfile) contains the subspecs Core, NSURLSession, JSON & OHPathHelpers (so that it matches the features that most people use).
    • Other optional subspecs are HTTPMessage and Mocktail (which are opt-in because used by much less people). If you want to use them, you'll need to request them explicitly in your Podfile using pod 'OHHTTPStubs/Mocktail for example.
  • The iOS Unit Tests are now also run for the framework as well as for the static library, to ensure the tests pass in both contexts (because frameworks sometimes introduce subtleties like when using NSBundle, so it's worth testing in that context too)
OHHTTPStubs -

Published by AliSoftware about 9 years ago

  • Added support for using OHHTTPStubs in watchOS 2.0 targets.
  • Improved compatibility macros (nullability annotations) — and tested against Xcode 7 beta 4.
OHHTTPStubs - Fix OHResourceBundle declaration

Published by AliSoftware over 9 years ago

  • Fix OHResourceBundle name mismatch between header and implementation (@tibr, #103)
OHHTTPStubs - Fixed threading issue

Published by AliSoftware over 9 years ago

  • Fix threading in NSURLProtocol subclass calling NSURLProtocolClient callbacks from wrong thread. (@nsprogrammer, #96)
OHHTTPStubs - Improvements in Swift API

Published by AliSoftware over 9 years ago

  • Annotated the library with nullability attributes to generate a better API when used in Swift
  • Migrated the path utility macros to functions in OHPathHelpers.h, for Swift compatibility (#100).
  • Added a complete Swift Demo Project (#88)
  • Removed the XCTestExpectation subspec that was added for Xcode 5 support — Now that Xcode 6 is widely adopted, you shouldn't need this anymore.
OHHTTPStubs - Fix for HTTP status 300

Published by AliSoftware over 9 years ago

  • Fixed issue with HTTP 300 return code (multiple-choice) that is not supposed to redirect. (@tarbrain, #92)
OHHTTPStubs - Carthage support, better use of CocoaPods, better Travis-CI

Published by AliSoftware over 9 years ago

  • Added Carthage support
  • Splitted the Xcode projects for more clarity (one dedicated to build the lib and run Unit Tests, and one for the Demo)
  • Got rid of the git submodule used for Unit Tests against AFNetworking — it is now imported using CocoaPods and only for the lib's Unit Tests targets (@corinnekrych, #90)
  • Improved Travis-CI integration. We now use a build matrix to have paralellized and independant builds for each scheme (iOS Static Lib, iOS Dynamic Framework, OSX Framework)
  • Fixed #80 again (there was still an issue for people using Xcode 5 & SDK 7.1… if those people still exists)
OHHTTPStubs - Fix for Xcode5 users

Published by AliSoftware over 9 years ago

  • Fix headers for people still building with Xcode 5 & SDK 7 (#80)
OHHTTPStubs - NS_DESIGNATED_INITIALIZER

Published by AliSoftware over 9 years ago

  • Use NS_DESIGNATED_INITIALIZER macro on designated initializer methods (#79)
OHHTTPStubs - Fix empty files

Published by AliSoftware over 9 years ago

  • Use application/json instead of text/json in README's example (#75)
  • Fixed an issue with empty files (when using responseWithFileAtPath:statusCode:headers: but the file at the specified path is empty)
OHHTTPStubs - DEFINES_MODULE

Published by AliSoftware over 9 years ago

  • Added DEFINES_MODULE Flag to be easily imported in Swift (#74)

(I also moved Travis-CI build system so it now uses xcpretty instead of xctool to run Unit Tests)

OHHTTPStubs - Fixed stalling

Published by AliSoftware over 9 years ago

  • Fixed issue with the main thread stalling when an NSException was raised in the response block
  • Fixed an issue with OHHTTPStubs/XCTestExpectation conditional compilation in Xcode 6.0 & OSX SDK.
    (the condition was previously testing available SDKs instead of Xcode version, which led to errors with Xcode 6.0 not having the latest 10.10 SDK yet, but still having the XCTextExpectation already anyway)
OHHTTPStubs - XCTest

Published by AliSoftware over 9 years ago

  • Migrated Unit Tests to XCTest.
  • Added XCTestExpectation subspec containing my own implementation for Xcode 5 support
OHHTTPStubs - Fix iOS8 issue

Published by AliSoftware about 10 years ago

  • Fix issue that made stubs never being called on iOS8 (#65)