diff --git a/.gitignore b/.gitignore index 04217b7..eeab18e 100644 --- a/.gitignore +++ b/.gitignore @@ -36,3 +36,4 @@ Carthage/Build # # Pods/ IDEWorkspaceChecks.plist +.swiftpm diff --git a/ArrayPlusTuple.podspec b/ArrayPlusTuple.podspec index 1580493..b55ad77 100644 --- a/ArrayPlusTuple.podspec +++ b/ArrayPlusTuple.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'ArrayPlusTuple' - s.version = '1.0.0' + s.version = '2.1.0' s.swift_version = '5.0' s.summary = 'Simple extension that makes creating tuples from arrays a breeze.' diff --git a/ArrayPlusTuple/Classes/Array+tuple.swift b/ArrayPlusTuple/Classes/Array+tuple.swift index f1f9245..0c2f9d9 100644 --- a/ArrayPlusTuple/Classes/Array+tuple.swift +++ b/ArrayPlusTuple/Classes/Array+tuple.swift @@ -1,3 +1,7 @@ +// +// Copyright © 2020 Curato Research BV. All rights reserved. +// + public extension Array { var tuple: Any { diff --git a/ArrayPlusTuple/Classes/logger.swift b/ArrayPlusTuple/Classes/logger.swift index 12e0e7c..ed6b35c 100644 --- a/ArrayPlusTuple/Classes/logger.swift +++ b/ArrayPlusTuple/Classes/logger.swift @@ -1,3 +1,7 @@ +// +// Copyright © 2020 Curato Research BV. All rights reserved. +// + import InjectableLoggers /// Changes to these settings will have effect up until the point that the first loggings have been made diff --git a/Example/ArrayPlusTuple/AppDelegate.swift b/Example/ArrayPlusTuple/AppDelegate.swift index d43378b..802e18e 100644 --- a/Example/ArrayPlusTuple/AppDelegate.swift +++ b/Example/ArrayPlusTuple/AppDelegate.swift @@ -1,9 +1,5 @@ // -// AppDelegate.swift -// ArrayPlusTuple -// -// Created by mennolovink on 06/02/2018. -// Copyright (c) 2018 mennolovink. All rights reserved. +// Copyright © 2020 Curato Research BV. All rights reserved. // import UIKit diff --git a/Example/Podfile.lock b/Example/Podfile.lock index d50553c..04fa7cb 100644 --- a/Example/Podfile.lock +++ b/Example/Podfile.lock @@ -21,7 +21,7 @@ EXTERNAL SOURCES: :path: "../" SPEC CHECKSUMS: - ArrayPlusTuple: a4fb024c7d8b1c743bb515cad5683ad3778d6809 + ArrayPlusTuple: e9808fb3ff18435de5b8731f14f30c64c8f4279c InjectableLoggers: a21d5df992e5c85533a9a5026152e1c8edef7bbe Nimble: 622629381bda1dd5678162f21f1368cec7cbba60 Quick: 4be43f6634acfa727dd106bdf3929ce125ffa79d diff --git a/Example/Pods/Local Podspecs/ArrayPlusTuple.podspec.json b/Example/Pods/Local Podspecs/ArrayPlusTuple.podspec.json index 4686992..f14592e 100644 --- a/Example/Pods/Local Podspecs/ArrayPlusTuple.podspec.json +++ b/Example/Pods/Local Podspecs/ArrayPlusTuple.podspec.json @@ -4,7 +4,7 @@ "swift_versions": "5.0", "summary": "Simple extension that makes creating tuples from arrays a breeze.", "description": "Simple extension that makes creating tuples from arrays a breeze.\nOriginally created for MockNStub.", - "homepage": "https://github.com/mennolovink/ArrayPlusTuple", + "homepage": "https://github.com/lvnkmn/ArrayPlusTuple", "license": { "type": "MIT", "file": "LICENSE" @@ -13,7 +13,7 @@ "mennolovink": "mclovink@me.com" }, "source": { - "git": "https://github.com/mennolovink/ArrayPlusTuple.git", + "git": "https://github.com/lvnkmn/ArrayPlusTuple.git", "tag": "1.0.0" }, "platforms": { diff --git a/Example/Pods/Manifest.lock b/Example/Pods/Manifest.lock index d50553c..04fa7cb 100644 --- a/Example/Pods/Manifest.lock +++ b/Example/Pods/Manifest.lock @@ -21,7 +21,7 @@ EXTERNAL SOURCES: :path: "../" SPEC CHECKSUMS: - ArrayPlusTuple: a4fb024c7d8b1c743bb515cad5683ad3778d6809 + ArrayPlusTuple: e9808fb3ff18435de5b8731f14f30c64c8f4279c InjectableLoggers: a21d5df992e5c85533a9a5026152e1c8edef7bbe Nimble: 622629381bda1dd5678162f21f1368cec7cbba60 Quick: 4be43f6634acfa727dd106bdf3929ce125ffa79d diff --git a/Example/Tests/ArraySpec.swift b/Example/Tests/ArraySpec.swift index 2212cc5..9fa2bb6 100644 --- a/Example/Tests/ArraySpec.swift +++ b/Example/Tests/ArraySpec.swift @@ -1,3 +1,7 @@ +// +// Copyright © 2020 Curato Research BV. All rights reserved. +// + import XCTest import Quick import Nimble diff --git a/LICENSE b/LICENSE index bef6571..46c4643 100644 --- a/LICENSE +++ b/LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2018 mennolovink +Copyright © 2020 Curato Research BV. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/Package.resolved b/Package.resolved new file mode 100644 index 0000000..f9cb8d1 --- /dev/null +++ b/Package.resolved @@ -0,0 +1,16 @@ +{ + "object": { + "pins": [ + { + "package": "InjectableLoggers", + "repositoryURL": "https://github.com/lvnkmn/InjectableLoggers", + "state": { + "branch": null, + "revision": "0092a51940b00bb09ffb0593e7ed53140b3b4806", + "version": "2.1.1" + } + } + ] + }, + "version": 1 +} diff --git a/Package.swift b/Package.swift new file mode 100644 index 0000000..a5c2237 --- /dev/null +++ b/Package.swift @@ -0,0 +1,23 @@ +// swift-tools-version:5.0 +import PackageDescription + +let package = Package( + name: "ArrayPlusTuple", + platforms: [ + .iOS(.v8) + ], + products: [ + .library(name: "ArrayPlusTuple", targets: ["ArrayPlusTuple"]) + ], + dependencies: [ + .package(url: "https://github.com/CuratoOpenSource/InjectableLoggers", from: "2.1.1"), + ], + targets: [ + .target( + name: "ArrayPlusTuple", + dependencies: [.byName(name: "InjectableLoggers")], + path: "ArrayPlusTuple" + ), + ], + swiftLanguageVersions: [.v5] +) diff --git a/README.md b/README.md index d84854d..4654bf0 100644 --- a/README.md +++ b/README.md @@ -46,11 +46,7 @@ Or [add it yourself](https://github.com/lvnkmn/ArrayPlusTuple/blob/develop/Array ## Installation -ArrayPlusTuple is available through [CocoaPods](https://cocoapods.org). To install it, simply add the following line to your Podfile: - -```ruby -pod 'ArrayPlusTuple' -``` +ArrayPlusTuple is available through [Swift Package Manager](https://swift.org/package-manager/). To install it, simply add it to your project using this repository's URL as explained [here](https://developer.apple.com/documentation/xcode/adding_package_dependencies_to_your_app). ## License diff --git a/fastlane/report.xml b/fastlane/report.xml index 60f1ea4..f6781b4 100644 --- a/fastlane/report.xml +++ b/fastlane/report.xml @@ -5,17 +5,7 @@ - - - - - - - - - - - + diff --git a/fastlane/test_output/report.html b/fastlane/test_output/report.html index e285396..f52d53e 100644 --- a/fastlane/test_output/report.html +++ b/fastlane/test_output/report.html @@ -132,7 +132,7 @@

ArrayPlusTuple_Tests.ArraySpec

-

0.003s

+

0.004s

Given_an_array__with_0_elements__When_tuple_is_called__Then_provided_tuple_is_empty_tuple

@@ -143,7 +143,7 @@

0.003s

-

0.002s

+

0.001s

Given_a_string_array__with_1_element__When_tuple_is_called__Then_tuple_contains_correct_elements

@@ -154,7 +154,7 @@

0.002s

-

0.002s

+

0.001s

Given_a_string_array__with_2_elements__When_tuple_is_called__Then_tuple_contains_correct_elements

@@ -165,7 +165,7 @@

0.002s

-

0.000s

+

0.001s

Given_a_string_array__with_2_elements__When_tuple_is_called__Then_tuple_has_2_elements

@@ -176,7 +176,7 @@

0.000s

-

0.000s

+

0.001s

Given_a_string_array__with_3_elements__When_tuple_is_called__Then_tuple_contains_correct_elements

@@ -187,7 +187,7 @@

0.000s

-

0.004s

+

0.001s

Given_a_string_array__with_3_elements__When_tuple_is_called__Then_tuple_has_3_elements

@@ -220,7 +220,7 @@

0.001s

-

0.117s

+

0.001s

Given_a_string_array__with_5_elements__When_tuple_is_called__Then_tuple_contains_correct_elements

@@ -231,7 +231,7 @@

0.117s

-

0.000s

+

0.002s

Given_a_string_array__with_5_elements__When_tuple_is_called__Then_tuple_has_5_elements

@@ -253,7 +253,7 @@

0.001s

-

0.002s

+

0.001s

Given_a_string_array__with_6_elements__When_tuple_is_called__Then_tuple_has_6_elements

@@ -286,7 +286,7 @@

0.001s

-

0.028s

+

0.001s

Given_a_string_array__with_8_elements__When_tuple_is_called__Then_tuple_contains_correct_elements

@@ -297,7 +297,7 @@

0.028s

-

0.000s

+

0.001s

Given_a_string_array__with_8_elements__When_tuple_is_called__Then_tuple_has_8_elements

@@ -385,7 +385,7 @@

0.001s

-

0.002s

+

0.001s

Given_a_string_array__with_12_elements__When_tuple_is_called__Then_tuple_has_12_elements

@@ -407,7 +407,7 @@

0.001s

-

0.001s

+

0.000s

Given_a_string_array__with_13_elements__When_tuple_is_called__Then_tuple_has_13_elements

@@ -418,7 +418,7 @@

0.001s

-

0.029s

+

0.001s

Given_a_string_array__with_14_elements__When_tuple_is_called__Then_tuple_contains_correct_elements

@@ -451,7 +451,7 @@

0.001s

-

0.000s

+

0.001s

Given_a_string_array__with_15_elements__When_tuple_is_called__Then_tuple_has_15_elements

@@ -473,7 +473,7 @@

0.001s

-

0.000s

+

0.001s

Given_a_string_array__with_16_elements__When_tuple_is_called__Then_tuple_has_16_elements

@@ -517,7 +517,7 @@

0.001s

-

0.001s

+

0.000s

Given_a_string_array__with_18_elements__When_tuple_is_called__Then_tuple_has_18_elements

@@ -561,7 +561,7 @@

0.001s

-

0.002s

+

0.001s

Given_a_string_array__with_20_elements__When_tuple_is_called__Then_tuple_has_20_elements

@@ -583,7 +583,7 @@

0.001s

-

0.032s

+

0.001s

Given_a_string_array__with_21_elements__When_tuple_is_called__Then_tuple_has_21_elements

@@ -660,7 +660,7 @@

0.001s

-

0.011s

+

0.002s

Given_a_string_array__with_unsupported__25___amount_of_elements__When_tuple_is_called__Then_tuple_contains_correct_elements

@@ -682,7 +682,7 @@

0.001s

-

0.050s

+

0.001s

Given_a_string_array__with_unsupported__25___amount_of_elements__When_tuple_is_called__Then_it_logs_warning_to_logger

@@ -726,7 +726,7 @@

0.000s

-

0.001s

+

0.000s

Given_an_int_array__with_3_elements__When_tuple_is_called__Then_tuple_contains_correct_elements

@@ -748,7 +748,7 @@

0.000s

-

0.000s

+

0.001s

Given_an_int_array__with_4_elements__When_tuple_is_called__Then_tuple_contains_correct_elements

@@ -759,7 +759,7 @@

0.000s

-

0.000s

+

0.001s

Given_an_int_array__with_4_elements__When_tuple_is_called__Then_tuple_has_4_elements

@@ -770,7 +770,7 @@

0.000s

-

0.000s

+

0.001s

Given_an_int_array__with_5_elements__When_tuple_is_called__Then_tuple_contains_correct_elements

@@ -814,7 +814,7 @@

0.001s

-

0.130s

+

0.001s

Given_an_int_array__with_7_elements__When_tuple_is_called__Then_tuple_contains_correct_elements

@@ -825,7 +825,7 @@

0.130s

-

0.000s

+

0.001s

Given_an_int_array__with_7_elements__When_tuple_is_called__Then_tuple_has_7_elements

@@ -836,7 +836,7 @@

0.000s

-

0.000s

+

0.001s

Given_an_int_array__with_8_elements__When_tuple_is_called__Then_tuple_contains_correct_elements

@@ -847,7 +847,7 @@

0.000s

-

0.006s

+

0.001s

Given_an_int_array__with_8_elements__When_tuple_is_called__Then_tuple_has_8_elements

@@ -858,7 +858,7 @@

0.006s

-

0.002s

+

0.001s

Given_an_int_array__with_9_elements__When_tuple_is_called__Then_tuple_contains_correct_elements

@@ -880,7 +880,7 @@

0.001s

-

0.003s

+

0.001s

Given_an_int_array__with_10_elements__When_tuple_is_called__Then_tuple_contains_correct_elements

@@ -913,7 +913,7 @@

0.001s

-

0.002s

+

0.000s

Given_an_int_array__with_11_elements__When_tuple_is_called__Then_tuple_has_11_elements

@@ -924,7 +924,7 @@

0.002s

-

0.000s

+

0.001s

Given_an_int_array__with_12_elements__When_tuple_is_called__Then_tuple_contains_correct_elements

@@ -946,7 +946,7 @@

0.000s

-

0.006s

+

0.001s

Given_an_int_array__with_13_elements__When_tuple_is_called__Then_tuple_contains_correct_elements

@@ -957,7 +957,7 @@

0.006s

-

0.000s

+

0.001s

Given_an_int_array__with_13_elements__When_tuple_is_called__Then_tuple_has_13_elements

@@ -979,7 +979,7 @@

0.001s

-

0.002s

+

0.001s

Given_an_int_array__with_14_elements__When_tuple_is_called__Then_tuple_has_14_elements

@@ -990,7 +990,7 @@

0.002s

-

0.000s

+

0.001s

Given_an_int_array__with_15_elements__When_tuple_is_called__Then_tuple_contains_correct_elements

@@ -1001,7 +1001,7 @@

0.000s

-

0.000s

+

0.001s

Given_an_int_array__with_15_elements__When_tuple_is_called__Then_tuple_has_15_elements

@@ -1012,7 +1012,7 @@

0.000s

-

0.004s

+

0.001s

Given_an_int_array__with_16_elements__When_tuple_is_called__Then_tuple_contains_correct_elements

@@ -1023,7 +1023,7 @@

0.004s

-

0.000s

+

0.001s

Given_an_int_array__with_16_elements__When_tuple_is_called__Then_tuple_has_16_elements

@@ -1067,7 +1067,7 @@

0.001s

-

0.000s

+

0.001s

Given_an_int_array__with_18_elements__When_tuple_is_called__Then_tuple_has_18_elements

@@ -1078,7 +1078,7 @@

0.000s

-

0.005s

+

0.001s

Given_an_int_array__with_19_elements__When_tuple_is_called__Then_tuple_contains_correct_elements

@@ -1111,7 +1111,7 @@

0.001s

-

0.005s

+

0.001s

Given_an_int_array__with_20_elements__When_tuple_is_called__Then_tuple_has_20_elements

@@ -1133,7 +1133,7 @@

0.001s

-

0.000s

+

0.001s

Given_an_int_array__with_21_elements__When_tuple_is_called__Then_tuple_has_21_elements

@@ -1144,7 +1144,7 @@

0.000s

-

0.004s

+

0.001s

Given_an_int_array__with_22_elements__When_tuple_is_called__Then_tuple_contains_correct_elements

@@ -1177,7 +1177,7 @@

0.001s

-

0.004s

+

0.001s

Given_an_int_array__with_23_elements__When_tuple_is_called__Then_tuple_has_23_elements

@@ -1210,7 +1210,7 @@

0.001s

-

0.002s

+

0.001s

Given_an_int_array__with_unsupported__25___amount_of_elements__When_tuple_is_called__Then_tuple_contains_correct_elements

@@ -1232,7 +1232,7 @@

0.001s

-

0.003s

+

0.001s

Given_an_int_array__with_unsupported__25___amount_of_elements__When_tuple_is_called__Then_it_logs_warning_to_logger

@@ -1243,7 +1243,7 @@

0.003s

-

0.002s

+

0.000s

Given_an_array_with_ints_and_strings__When_tuple_is_called__Then_tuple_contains_correct_elements

diff --git a/fastlane/test_output/report.junit b/fastlane/test_output/report.junit index e324297..80af806 100644 --- a/fastlane/test_output/report.junit +++ b/fastlane/test_output/report.junit @@ -1,22 +1,22 @@ - - - - - - + + + + + + - - + + - + - - + + @@ -24,84 +24,84 @@ - + - - + + - + - + - + - + - + - + - + - + - - - + + + - - - - - + + + + + - + - - + + - - + + - - - - - + + + + + - - + + - + - - + + - + - + - - + + \ No newline at end of file