Package - mdiep/Tentacle

Tentacle MIT license

A Swift framework for the GitHub API

let client  = Client(.dotCom, token: "…")
let repo    = Repository(owner: "ReactiveCocoa", name: "ReactiveCocoa")
let request = repo.release(forTag: "tag-name")
client
    .execute(request)
    .startWithResult { result in
        switch result {
        case let .success(response, release):
            print("Downloaded release: \(release)")
        case let .failure(error):
            print("An error occurred: \(error)")
        }
    }

Tentacle is built with ReactiveSwift.

License

Tentacle is available under the MIT License

Github

link
Stars: 187

Advertisement

Releases

0.10.0 - Oct 24, 2017

Breaking

  • Tentacle now requires Xcode 9 and Swift 4 (#85, #86, #88). Thanks @ikesyo!
  • Migrated to Swift's Decodable API (#84). Thanks @Palleas, @ikesyo and @dcaunt!

Fixed

  • Identifiable conformance in RepositoryInfo (#89). Thanks @ikesyo!

0.9.0 - Sep 26, 2017

Breaking

  • Implement Identifiable type in model with ids (#87). Thanks @Palleas!

Fixed

  • Some decoding problems (#87). Thanks @mdiep!

0.8.0 - Jul 25, 2017

This release updates to ReactiveSwift 2.0 (#86). Thanks @ikesyo!

0.7.1 - Jul 15, 2017

Added

  • Support for Swift 3.2 (#83, #85). Thank you @dcaunt and @ikesyo!

Special thank you to @dcaunt for improvements to the test suite (#82). ✨

0.7.0 - May 23, 2017

This release has a significant reworking of the API. Instead of calling methods directly on Client, methods and properties are exposed on the different types to return a Request<Value>. These are then used with one of the Client.execute methods to actual perform the request.

Added

  • Ability to get a tree from a repo (#70). Thanks @dcaunt!
  • Ability to create a tree in a repo (#71). Thanks @dcaunt!

Fixed

  • UserProfile.websiteURL is now a String because it can contain any string