Skip to content

Commit 5471757

Browse files
committed
Releasing version 5.0.0-beta.2.
1 parent 60914e6 commit 5471757

File tree

103 files changed

+323
-399
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

103 files changed

+323
-399
lines changed

Diff for: CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ All notable changes to this project will be documented in this file.
33

44
# Next
55

6+
## [5.0.0-beta.2](https://github.com/MLSDev/TRON/releases/tag/5.0.0-beta.2)
7+
68
### Changed
79

810
* `ErrorSerializable` protocol changed to have non-optional initializer and to not accept `serializedObject`. It no longer can be used for additional object validation, but behavior should be more predictable and straightforward - `ErrorSerializable` should only be created if somebody (URL loading system, Alamofire or Model serialization) actually reported error.

Diff for: Supporting files/Framework.plist

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<key>CFBundlePackageType</key>
1616
<string>FMWK</string>
1717
<key>CFBundleShortVersionString</key>
18-
<string>5.0.0-beta.1</string>
18+
<string>5.0.0-beta.2</string>
1919
<key>CFBundleSignature</key>
2020
<string>????</string>
2121
<key>CFBundleVersion</key>

Diff for: TRON.podspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = 'TRON'
3-
s.version = "5.0.0-beta.1"
3+
s.version = "5.0.0-beta.2"
44
s.license = 'MIT'
55
s.summary = 'Lightweight network abstraction layer, written on top of Alamofire'
66
s.homepage = 'https://github.com/MLSDev/TRON'

Diff for: docs/Classes.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -663,7 +663,7 @@ <h4>Declaration</h4>
663663
</article>
664664
</div>
665665
<section class="footer">
666-
<p>&copy; 2019 <a class="link" href="https://github.com/DenTelezhkin" target="_blank" rel="external">Denys Telezhkin</a>. All rights reserved. (Last updated: 2019-03-12)</p>
666+
<p>&copy; 2019 <a class="link" href="https://github.com/DenTelezhkin" target="_blank" rel="external">Denys Telezhkin</a>. All rights reserved. (Last updated: 2019-04-06)</p>
667667
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.9.4</a>, a <a class="link" href="https://realm.io" target="_blank" rel="external">Realm</a> project.</p>
668668
</section>
669669
</body>

Diff for: docs/Classes/APIError.html

+11-38
Original file line numberDiff line numberDiff line change
@@ -364,36 +364,9 @@ <h4>Declaration</h4>
364364
<li class="item">
365365
<div>
366366
<code>
367-
<a name="/s:4TRON8APIErrorC16serializedObjectypSgvp"></a>
368-
<a name="//apple_ref/swift/Property/serializedObject" class="dashAnchor"></a>
369-
<a class="token" href="#/s:4TRON8APIErrorC16serializedObjectypSgvp">serializedObject</a>
370-
</code>
371-
</div>
372-
<div class="height-container">
373-
<div class="pointer-container"></div>
374-
<section class="section">
375-
<div class="pointer"></div>
376-
<div class="abstract">
377-
<p>Serialized object, created by parsing response from API/Download/UploadRequest.</p>
378-
379-
</div>
380-
<div class="declaration">
381-
<h4>Declaration</h4>
382-
<div class="language">
383-
<p class="aside-title">Swift</p>
384-
<pre class="highlight swift"><code><span class="kd">public</span> <span class="k">let</span> <span class="nv">serializedObject</span><span class="p">:</span> <span class="kt">Any</span><span class="p">?</span></code></pre>
385-
386-
</div>
387-
</div>
388-
</section>
389-
</div>
390-
</li>
391-
<li class="item">
392-
<div>
393-
<code>
394-
<a name="/s:4TRON8APIErrorC16serializedObject7request8response4data5errorACSgypSg_10Foundation10URLRequestVSgSo17NSHTTPURLResponseCSgAK4DataVSgs5Error_pSgtcfc"></a>
395-
<a name="//apple_ref/swift/Method/init(serializedObject:request:response:data:error:)" class="dashAnchor"></a>
396-
<a class="token" href="#/s:4TRON8APIErrorC16serializedObject7request8response4data5errorACSgypSg_10Foundation10URLRequestVSgSo17NSHTTPURLResponseCSgAK4DataVSgs5Error_pSgtcfc">init(serializedObject:request:response:data:error:)</a>
367+
<a name="/s:4TRON8APIErrorC7request8response4data5errorAC10Foundation10URLRequestVSg_So17NSHTTPURLResponseCSgAH4DataVSgs5Error_pSgtcfc"></a>
368+
<a name="//apple_ref/swift/Method/init(request:response:data:error:)" class="dashAnchor"></a>
369+
<a class="token" href="#/s:4TRON8APIErrorC7request8response4data5errorAC10Foundation10URLRequestVSg_So17NSHTTPURLResponseCSgAH4DataVSgs5Error_pSgtcfc">init(request:response:data:error:)</a>
397370
</code>
398371
</div>
399372
<div class="height-container">
@@ -408,7 +381,7 @@ <h4>Declaration</h4>
408381
<h4>Declaration</h4>
409382
<div class="language">
410383
<p class="aside-title">Swift</p>
411-
<pre class="highlight swift"><code><span class="kd">required</span> <span class="kd">public</span> <span class="nf">init</span><span class="p">?(</span><span class="nv">serializedObject</span><span class="p">:</span> <span class="kt">Any</span><span class="p">?,</span> <span class="nv">request</span><span class="p">:</span> <span class="kt">URLRequest</span><span class="p">?,</span> <span class="nv">response</span><span class="p">:</span> <span class="kt">HTTPURLResponse</span><span class="p">?,</span> <span class="nv">data</span><span class="p">:</span> <span class="kt">Data</span><span class="p">?,</span> <span class="nv">error</span><span class="p">:</span> <span class="kt">Error</span><span class="p">?)</span></code></pre>
384+
<pre class="highlight swift"><code><span class="kd">required</span> <span class="kd">public</span> <span class="nf">init</span><span class="p">(</span><span class="nv">request</span><span class="p">:</span> <span class="kt">URLRequest</span><span class="p">?,</span> <span class="nv">response</span><span class="p">:</span> <span class="kt">HTTPURLResponse</span><span class="p">?,</span> <span class="nv">data</span><span class="p">:</span> <span class="kt">Data</span><span class="p">?,</span> <span class="nv">error</span><span class="p">:</span> <span class="kt">Error</span><span class="p">?)</span></code></pre>
412385

413386
</div>
414387
</div>
@@ -418,9 +391,9 @@ <h4>Declaration</h4>
418391
<li class="item">
419392
<div>
420393
<code>
421-
<a name="/s:4TRON8APIErrorC16serializedObject7request8response7fileURL5errorACSgypSg_10Foundation10URLRequestVSgSo17NSHTTPURLResponseCSgAK0H0VSgs5Error_pSgtcfc"></a>
422-
<a name="//apple_ref/swift/Method/init(serializedObject:request:response:fileURL:error:)" class="dashAnchor"></a>
423-
<a class="token" href="#/s:4TRON8APIErrorC16serializedObject7request8response7fileURL5errorACSgypSg_10Foundation10URLRequestVSgSo17NSHTTPURLResponseCSgAK0H0VSgs5Error_pSgtcfc">init(serializedObject:request:response:fileURL:error:)</a>
394+
<a name="/s:4TRON8APIErrorC7request8response7fileURL5errorAC10Foundation10URLRequestVSg_So17NSHTTPURLResponseCSgAH0F0VSgs5Error_pSgtcfc"></a>
395+
<a name="//apple_ref/swift/Method/init(request:response:fileURL:error:)" class="dashAnchor"></a>
396+
<a class="token" href="#/s:4TRON8APIErrorC7request8response7fileURL5errorAC10Foundation10URLRequestVSg_So17NSHTTPURLResponseCSgAH0F0VSgs5Error_pSgtcfc">init(request:response:fileURL:error:)</a>
424397
</code>
425398
</div>
426399
<div class="height-container">
@@ -435,7 +408,7 @@ <h4>Declaration</h4>
435408
<h4>Declaration</h4>
436409
<div class="language">
437410
<p class="aside-title">Swift</p>
438-
<pre class="highlight swift"><code><span class="kd">required</span> <span class="kd">public</span> <span class="nf">init</span><span class="p">?(</span><span class="nv">serializedObject</span><span class="p">:</span> <span class="kt">Any</span><span class="p">?,</span> <span class="nv">request</span><span class="p">:</span> <span class="kt">URLRequest</span><span class="p">?,</span> <span class="nv">response</span><span class="p">:</span> <span class="kt">HTTPURLResponse</span><span class="p">?,</span> <span class="nv">fileURL</span><span class="p">:</span> <span class="kt">URL</span><span class="p">?,</span> <span class="nv">error</span><span class="p">:</span> <span class="kt">Error</span><span class="p">?)</span></code></pre>
411+
<pre class="highlight swift"><code><span class="kd">required</span> <span class="kd">public</span> <span class="nf">init</span><span class="p">(</span><span class="nv">request</span><span class="p">:</span> <span class="kt">URLRequest</span><span class="p">?,</span> <span class="nv">response</span><span class="p">:</span> <span class="kt">HTTPURLResponse</span><span class="p">?,</span> <span class="nv">fileURL</span><span class="p">:</span> <span class="kt">URL</span><span class="p">?,</span> <span class="nv">error</span><span class="p">:</span> <span class="kt">Error</span><span class="p">?)</span></code></pre>
439412

440413
</div>
441414
</div>
@@ -462,7 +435,7 @@ <h4>Declaration</h4>
462435
<h4>Declaration</h4>
463436
<div class="language">
464437
<p class="aside-title">Swift</p>
465-
<pre class="highlight swift"><code><span class="kd">public</span> <span class="k">var</span> <span class="nv">errorDescription</span><span class="p">:</span> <span class="kt">String</span><span class="p">?</span> <span class="p">{</span> <span class="k">get</span> <span class="p">}</span></code></pre>
438+
<pre class="highlight swift"><code><span class="kd">open</span> <span class="k">var</span> <span class="nv">errorDescription</span><span class="p">:</span> <span class="kt">String</span><span class="p">?</span> <span class="p">{</span> <span class="k">get</span> <span class="p">}</span></code></pre>
466439

467440
</div>
468441
</div>
@@ -489,7 +462,7 @@ <h4>Declaration</h4>
489462
<h4>Declaration</h4>
490463
<div class="language">
491464
<p class="aside-title">Swift</p>
492-
<pre class="highlight swift"><code><span class="kd">public</span> <span class="k">var</span> <span class="nv">description</span><span class="p">:</span> <span class="kt">String</span> <span class="p">{</span> <span class="k">get</span> <span class="p">}</span></code></pre>
465+
<pre class="highlight swift"><code><span class="kd">open</span> <span class="k">var</span> <span class="nv">description</span><span class="p">:</span> <span class="kt">String</span> <span class="p">{</span> <span class="k">get</span> <span class="p">}</span></code></pre>
493466

494467
</div>
495468
</div>
@@ -504,7 +477,7 @@ <h4>Declaration</h4>
504477
</article>
505478
</div>
506479
<section class="footer">
507-
<p>&copy; 2019 <a class="link" href="https://github.com/DenTelezhkin" target="_blank" rel="external">Denys Telezhkin</a>. All rights reserved. (Last updated: 2019-03-12)</p>
480+
<p>&copy; 2019 <a class="link" href="https://github.com/DenTelezhkin" target="_blank" rel="external">Denys Telezhkin</a>. All rights reserved. (Last updated: 2019-04-06)</p>
508481
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.9.4</a>, a <a class="link" href="https://realm.io" target="_blank" rel="external">Realm</a> project.</p>
509482
</section>
510483
</body>

Diff for: docs/Classes/APIRequest.html

+4-4
Original file line numberDiff line numberDiff line change
@@ -256,9 +256,9 @@ <h4>Declaration</h4>
256256
<li class="item">
257257
<div>
258258
<code>
259-
<a name="/s:4TRON10APIRequestC11errorParseryq_SgxSg_10Foundation10URLRequestVSgSo17NSHTTPURLResponseCSgAG4DataVSgs5Error_pSgtcvp"></a>
259+
<a name="/s:4TRON10APIRequestC11errorParseryq_10Foundation10URLRequestVSg_So17NSHTTPURLResponseCSgAE4DataVSgs5Error_pSgtcvp"></a>
260260
<a name="//apple_ref/swift/Property/errorParser" class="dashAnchor"></a>
261-
<a class="token" href="#/s:4TRON10APIRequestC11errorParseryq_SgxSg_10Foundation10URLRequestVSgSo17NSHTTPURLResponseCSgAG4DataVSgs5Error_pSgtcvp">errorParser</a>
261+
<a class="token" href="#/s:4TRON10APIRequestC11errorParseryq_10Foundation10URLRequestVSg_So17NSHTTPURLResponseCSgAE4DataVSgs5Error_pSgtcvp">errorParser</a>
262262
</code>
263263
</div>
264264
<div class="height-container">
@@ -320,7 +320,7 @@ <h4>Declaration</h4>
320320
<section class="section">
321321
<div class="pointer"></div>
322322
<div class="abstract">
323-
<p>Creates <code>APIRequest</code>, filling <code><a href="../Classes/APIRequest.html#/s:4TRON10APIRequestC14responseParseryx10Foundation10URLRequestVSg_So17NSHTTPURLResponseCSgAE4DataVSgs5Error_pSgtKcvp">responseParser</a></code> and <code><a href="../Classes/APIRequest.html#/s:4TRON10APIRequestC11errorParseryq_SgxSg_10Foundation10URLRequestVSgSo17NSHTTPURLResponseCSgAG4DataVSgs5Error_pSgtcvp">errorParser</a></code> properties</p>
323+
<p>Creates <code>APIRequest</code>, filling <code><a href="../Classes/APIRequest.html#/s:4TRON10APIRequestC14responseParseryx10Foundation10URLRequestVSg_So17NSHTTPURLResponseCSgAE4DataVSgs5Error_pSgtKcvp">responseParser</a></code> and <code><a href="../Classes/APIRequest.html#/s:4TRON10APIRequestC11errorParseryq_10Foundation10URLRequestVSg_So17NSHTTPURLResponseCSgAE4DataVSgs5Error_pSgtcvp">errorParser</a></code> properties</p>
324324

325325
</div>
326326
<div class="declaration">
@@ -434,7 +434,7 @@ <h4>Return Value</h4>
434434
</article>
435435
</div>
436436
<section class="footer">
437-
<p>&copy; 2019 <a class="link" href="https://github.com/DenTelezhkin" target="_blank" rel="external">Denys Telezhkin</a>. All rights reserved. (Last updated: 2019-03-12)</p>
437+
<p>&copy; 2019 <a class="link" href="https://github.com/DenTelezhkin" target="_blank" rel="external">Denys Telezhkin</a>. All rights reserved. (Last updated: 2019-04-06)</p>
438438
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.9.4</a>, a <a class="link" href="https://realm.io" target="_blank" rel="external">Realm</a> project.</p>
439439
</section>
440440
</body>

Diff for: docs/Classes/APIStub.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -593,7 +593,7 @@ <h4>Parameters</h4>
593593
</article>
594594
</div>
595595
<section class="footer">
596-
<p>&copy; 2019 <a class="link" href="https://github.com/DenTelezhkin" target="_blank" rel="external">Denys Telezhkin</a>. All rights reserved. (Last updated: 2019-03-12)</p>
596+
<p>&copy; 2019 <a class="link" href="https://github.com/DenTelezhkin" target="_blank" rel="external">Denys Telezhkin</a>. All rights reserved. (Last updated: 2019-04-06)</p>
597597
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.9.4</a>, a <a class="link" href="https://realm.io" target="_blank" rel="external">Realm</a> project.</p>
598598
</section>
599599
</body>

Diff for: docs/Classes/BaseRequest.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ <h4>Declaration</h4>
273273
<h4>Declaration</h4>
274274
<div class="language">
275275
<p class="aside-title">Swift</p>
276-
<pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">typealias</span> <span class="kt">ErrorParser</span> <span class="o">=</span> <span class="p">(</span><span class="kt">Model</span><span class="p">?,</span> <span class="n">_</span> <span class="nv">request</span><span class="p">:</span> <span class="kt">URLRequest</span><span class="p">?,</span> <span class="n">_</span> <span class="nv">response</span><span class="p">:</span> <span class="kt">HTTPURLResponse</span><span class="p">?,</span> <span class="n">_</span> <span class="nv">data</span><span class="p">:</span> <span class="kt">Data</span><span class="p">?,</span> <span class="n">_</span> <span class="nv">error</span><span class="p">:</span> <span class="kt">Error</span><span class="p">?)</span> <span class="o">-&gt;</span> <span class="kt">ErrorModel</span><span class="p">?</span></code></pre>
276+
<pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">typealias</span> <span class="kt">ErrorParser</span> <span class="o">=</span> <span class="p">(</span><span class="n">_</span> <span class="nv">request</span><span class="p">:</span> <span class="kt">URLRequest</span><span class="p">?,</span> <span class="n">_</span> <span class="nv">response</span><span class="p">:</span> <span class="kt">HTTPURLResponse</span><span class="p">?,</span> <span class="n">_</span> <span class="nv">data</span><span class="p">:</span> <span class="kt">Data</span><span class="p">?,</span> <span class="n">_</span> <span class="nv">error</span><span class="p">:</span> <span class="kt">Error</span><span class="p">?)</span> <span class="o">-&gt;</span> <span class="kt">ErrorModel</span></code></pre>
277277

278278
</div>
279279
</div>
@@ -563,7 +563,7 @@ <h4>Declaration</h4>
563563
</article>
564564
</div>
565565
<section class="footer">
566-
<p>&copy; 2019 <a class="link" href="https://github.com/DenTelezhkin" target="_blank" rel="external">Denys Telezhkin</a>. All rights reserved. (Last updated: 2019-03-12)</p>
566+
<p>&copy; 2019 <a class="link" href="https://github.com/DenTelezhkin" target="_blank" rel="external">Denys Telezhkin</a>. All rights reserved. (Last updated: 2019-04-06)</p>
567567
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.9.4</a>, a <a class="link" href="https://realm.io" target="_blank" rel="external">Realm</a> project.</p>
568568
</section>
569569
</body>

Diff for: docs/Classes/CodableParser.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ <h4>Declaration</h4>
315315
</article>
316316
</div>
317317
<section class="footer">
318-
<p>&copy; 2019 <a class="link" href="https://github.com/DenTelezhkin" target="_blank" rel="external">Denys Telezhkin</a>. All rights reserved. (Last updated: 2019-03-12)</p>
318+
<p>&copy; 2019 <a class="link" href="https://github.com/DenTelezhkin" target="_blank" rel="external">Denys Telezhkin</a>. All rights reserved. (Last updated: 2019-04-06)</p>
319319
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.9.4</a>, a <a class="link" href="https://realm.io" target="_blank" rel="external">Realm</a> project.</p>
320320
</section>
321321
</body>

0 commit comments

Comments
 (0)