Commit Graph
16 Commits
Author SHA1 Message Date
Natik GadzhiandCory Benfield f5773c171c feat: NIO.TimeAmount(string:) and TimeAmount.description (#3046)
Adds `TimeAmount.init(string:)` and `TimeAmount.description` for parsing
time amounts from strings and pretty printing them.

Closes #2504.

### Motivation:

Had a minute, wanted to work on Swift-NIO a bit more, and saw @weissi
still wanted this.

### Modifications:

It's largely based on the snippet @weissi made in #2504 with a few
changes:
- Added unit tests.
- Added support for more unit aliases for convenience based on
@glbrntt's suggestion.
- Changed `.gitignore` to ignore `.build` everywhere, I've got a few of
them when testing locally.


### Open questions:

- I originally thought perhaps I should add support for multiple number
and unit pairs, i.e. `1h 31m`, but decided against it. Feels like an
edge case. Happy to add this if you think it's needed.

---------

Co-authored-by: Cory Benfield <lukasa@apple.com>
2025-01-16 16:05:51 +00:00
Max Desiatov c669500d78 Add .index-build to .gitignore (#2819)
This directory is created when background indexing is enabled in SourceKit-LSP.
2024-07-30 09:53:11 -07:00
Adam Fowler 1c20573514 Add autogenerated files from VSCode to .gitignore (#2567) 2023-10-23 13:13:41 +01:00
Saleem Abdulrasool e5f32c0b6e gitignore: ignore vim swap files (#1398) 2020-02-18 07:46:42 +00:00
Johannes WeissandCory Benfield 6bd0a9e61a document debugging with allocation tests (#1277)
Motivation:

The tooling around the allocation counter tests is pretty opaque and
also not easy to use.

Modifications:

Document what interested folks should know.

Result:

More people will be able to debug allocations in SwiftNIO.

Co-Authored-By: Cory Benfield <lukasa@apple.com>
2019-12-02 11:05:04 +00:00
tomer doron b9293596bc assert EventLoopGroup::syncShutdownGracefully is not called on the event loop (#1151)
motivation: calling syncShutdownGracefully on the event loop can lead to deadlock

changes: assert before calling syncShutdownGracefully that no eventloop context exists
2019-10-01 10:08:35 -07:00
Tanner 0154604408 rename HTTPProtocolUpgrader to HTTPServerProtocolUpgrader (#750)
* rename HTTPProtocolUpgrader to HTTPServerProtocolUpgrader
2019-01-31 11:36:55 +00:00
Cory Benfield 284409625c Add Cocoapods podspec generation. (#568)
Motivation:

A number of users have asked for the ability to install SwiftNIO
via Cocoapods. This is an entirely reasonable request, so let's
do it.

Modifications:

- Added a script that can generate, and optionally upload,
  podspecs.
- Made a slight modification to the dependency script to provide
  target-specific dependencies.

Result:

Users can use cocoapods if they prefer.
2018-08-14 18:37:42 +01:00
Ian Partridge cb62f14df3 Add Package.resolved to .gitignore (#73) 2018-03-02 22:21:20 +09:00
Tom Doron cf790be04f doc generation
motivation: publish api docs via gh-pages

changes:
* update generate_docs script to install required dependencies, perform sourcekitten index and commit the docs when running in CI
* create a rio pipeline to run docs generation script
2018-01-18 19:21:54 +00:00
Johannes Weiss 8549f4229e add Jazzy documentation generation script 2017-11-30 14:36:42 +00:00
Max (Swift) Moiseev 8d4eb477ed Xenial and compose
* Docker work

- New image based on xenial.
- Simplified workflow with docker-compose
- Update the readme with docker-compose section
- Move docker related stuff to a dedicated folder

* Add a gen-cert.sh to the container image

* Document certificate generation and how to test all sample servers
2017-11-09 21:34:51 -08:00
Kevin Clark 32fbec0b25 Fix Package.swift
* Export swift-nio library to package

* Add Package.resolved now that we're on swift 4
2017-06-16 03:06:52 -07:00
Norman Maurer b2491dae93 Add Package.resolved to gitignore 2017-06-14 15:57:13 +02:00
Norman Maurer 2003126a04 Add Package.pins to gitignore for now 2017-05-31 20:36:59 +02:00
Norman Maurer eafd27bbc5 lay the groundwork 2017-04-26 20:41:33 +02:00