Skip to content

Commit 5551347

Browse files
committed
Merge branch 'stable' into set_content_type_to_response
2 parents bbcefb8 + 67d7c16 commit 5551347

File tree

69 files changed

+57
-52
lines changed

Some content is hidden

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

69 files changed

+57
-52
lines changed

.github/workflows/danger.yml

Lines changed: 14 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,25 @@
11
name: Danger
2+
23
on:
34
pull_request:
5+
types: [opened, synchronize, edited]
46
branches:
5-
- stable
7+
- stable
68

79
jobs:
810
Danger:
9-
runs-on: macos-latest
11+
runs-on: ubuntu-18.04
1012
steps:
11-
- uses: actions/checkout@v2
12-
- name: Cache Bundle Dependencies
13-
uses: actions/cache@v1
14-
with:
15-
path: vendor/bundle
16-
key: 1-gems-{{ checksum "Gemfile.lock" }}
17-
restore-keys: 1-gems-
18-
- name: Set Ruby Version
19-
uses: actions/setup-ruby@v1
13+
- uses: actions/checkout@v1
14+
15+
- uses: ruby/setup-ruby@v1
2016
with:
21-
ruby-version: 2.6
22-
- name: Install Ruby Dependencies
17+
ruby-version: 2.6 # Not needed with a .ruby-version file
18+
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
19+
20+
- name: Danger
2321
run: |
24-
bundle config path vendor/bundle
25-
bundle check || bundle install
26-
env:
27-
BUNDLE_JOBS: 4
28-
BUNDLE_RETRY: 3
29-
- name: Running Danger
30-
run: bundle exec danger
22+
bundle exec danger --fail-on-errors=true
23+
shell: bash
3124
env:
32-
DANGER_GITHUB_API_TOKEN: ${{ secrets.DANGER_GITHUB_API_TOKEN }}
25+
DANGER_GITHUB_API_TOKEN: ${{ secrets.BOT_ACCESS_TOKEN }}

.github/workflows/macos-tests.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,19 +21,19 @@ jobs:
2121
mkdir -p tmp/test-results/
2222
- name: Run Unit Test - macOS
2323
run: |
24-
cd XCode
24+
cd Xcode
2525
set -o pipefail && xcodebuild test -scheme SwifterMac -sdk macosx -destination "arch=x86_64" | xcpretty -c -r html --output $TEST_REPORTS/macOS.html
2626
- name: Run Unit Test - iOS
2727
run: |
28-
cd XCode
28+
cd Xcode
2929
set -o pipefail && xcodebuild test -scheme SwifteriOS -sdk iphonesimulator -destination "name=iPhone 8" | xcpretty -c -r html --output $TEST_REPORTS/iOS.html
3030
- name: Run Unit Test - tvOS
3131
run: |
32-
cd XCode
32+
cd Xcode
3333
set -o pipefail && xcodebuild test -scheme SwiftertvOS -sdk appletvsimulator -destination "name=Apple TV 4K (at 1080p)" | xcpretty -c -r html --output $TEST_REPORTS/tvOS.html
3434
- name: Run Unit Test - Swift Package Manager
3535
run: |
36-
cd XCode
36+
cd Xcode
3737
swift build && swift test
3838
- name: Archive Test results
3939
uses: actions/upload-artifact@v1

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,4 @@ DerivedData
2727

2828
.build/
2929
Packages/
30-
/XCode/.DS_Store
30+
/Xcode/.DS_Store

.swiftlint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ disabled_rules:
1616

1717
excluded: # paths to ignore during linting. Takes precedence over `included`.
1818
- LinuxMain.swift
19-
- XCode/Tests/XCTestManifests.swift
19+
- Xcode/Tests/XCTestManifests.swift
2020
- Tests/XCTestManifests.swift
2121
- Package.swift

CHANGELOG.md

Lines changed: 5 additions & 0 deletions

Dangerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ swiftlint.config_file = '.swiftlint.yml'
2626
swiftlint.lint_files
2727

2828
# Warn when new tests are added but the XCTestManifests wasn't updated to run on Linux
29-
tests_added_or_modified = !git.modified_files.grep(/XCode\/Tests/).empty? || !git.added_files.grep(/XCode\/Tests/).empty?
30-
xc_manifest_updated = !git.modified_files.grep(/XCode\/Tests\/XCTestManifests.swift/).empty?
29+
tests_added_or_modified = !git.modified_files.grep(/Xcode\/Tests/).empty? || !git.added_files.grep(/Xcode\/Tests/).empty?
30+
xc_manifest_updated = !git.modified_files.grep(/Xcode\/Tests\/XCTestManifests.swift/).empty?
3131
if tests_added_or_modified && !xc_manifest_updated
32-
warn("It seems like you've added new tests to the library. If that's the case, please update the [XCTestManifests.swift](https://github.com/httpswift/swifter/blob/stable/XCode/Tests/XCTestManifests.swift) file running in your terminal the command `swift test --generate-linuxmain`.")
32+
warn("It seems like you've added new tests to the library. If that's the case, please update the [XCTestManifests.swift](https://github.com/httpswift/swifter/blob/stable/Xcode/Tests/XCTestManifests.swift) file running in your terminal the command `swift test --generate-linuxmain`.")
3333

3434
# This is a temporary warning to remove the entry for the failed test until we solve the issue in Linux
3535
warn("If you ran the command `swift test --generate-linuxmain` in your terminal, please remove the line `testCase(IOSafetyTests.__allTests__IOSafetyTests),` from `public func __allTests() -> [XCTestCaseEntry]` in the bottom of the file. For more reference see [#366](https://github.com/httpswift/swifter/issues/366).")

Gemfile.lock

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ GEM
1111
colored2 (3.1.2)
1212
cork (0.3.0)
1313
colored2 (~> 3.1)
14-
danger (8.0.5)
14+
danger (8.2.3)
1515
claide (~> 1.0)
1616
claide-plugins (>= 0.9.2)
1717
colored2 (~> 3.1)
@@ -23,36 +23,44 @@ GEM
2323
kramdown-parser-gfm (~> 1.0)
2424
no_proxy_fix
2525
octokit (~> 4.7)
26-
terminal-table (~> 1)
27-
danger-swiftlint (0.24.4)
26+
terminal-table (>= 1, < 4)
27+
danger-swiftlint (0.26.0)
2828
danger
2929
rake (> 10)
3030
thor (~> 0.19)
31-
faraday (1.0.1)
31+
faraday (1.4.1)
32+
faraday-excon (~> 1.1)
33+
faraday-net_http (~> 1.0)
34+
faraday-net_http_persistent (~> 1.1)
3235
multipart-post (>= 1.2, < 3)
36+
ruby2_keywords (>= 0.0.4)
37+
faraday-excon (1.1.0)
3338
faraday-http-cache (2.2.0)
3439
faraday (>= 0.8)
35-
git (1.7.0)
40+
faraday-net_http (1.0.1)
41+
faraday-net_http_persistent (1.1.0)
42+
git (1.8.1)
3643
rchardet (~> 1.8)
37-
kramdown (2.3.0)
44+
kramdown (2.3.1)
3845
rexml
3946
kramdown-parser-gfm (1.1.0)
4047
kramdown (~> 2.0)
4148
multipart-post (2.1.1)
4249
nap (1.1.0)
4350
no_proxy_fix (0.1.2)
44-
octokit (4.18.0)
51+
octokit (4.21.0)
4552
faraday (>= 0.9)
4653
sawyer (~> 0.8.0, >= 0.5.3)
4754
open4 (1.3.4)
4855
public_suffix (4.0.6)
49-
rake (13.0.1)
56+
rake (13.0.3)
5057
rchardet (1.8.0)
51-
rexml (3.2.4)
58+
rexml (3.2.5)
59+
ruby2_keywords (0.0.4)
5260
sawyer (0.8.2)
5361
addressable (>= 2.3.5)
5462
faraday (> 0.8, < 2.0)
55-
terminal-table (1.8.0)
63+
terminal-table (3.0.0)
5664
unicode-display_width (~> 1.1, >= 1.1.1)
5765
thor (0.20.3)
5866
unicode-display_width (1.7.0)

Package.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ let package = Package(
1616
.target(
1717
name: "Swifter",
1818
dependencies: [],
19-
path: "XCode/Sources"
19+
path: "Xcode/Sources"
2020
),
2121

2222
.target(
@@ -31,7 +31,7 @@ let package = Package(
3131
dependencies: [
3232
"Swifter"
3333
],
34-
path: "XCode/Tests"
34+
path: "Xcode/Tests"
3535
)
3636
]
3737
)

README.md

Lines changed: 1 addition & 1 deletion

Swifter.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Pod::Spec.new do |s|
1010
s.osx.deployment_target = "10.10"
1111
s.tvos.deployment_target = "9.0"
1212
s.source = { :git => "https://github.com/httpswift/swifter.git", :tag => "1.5.0" }
13-
s.source_files = 'XCode/Sources/*.{swift}'
13+
s.source_files = 'Xcode/Sources/*.{swift}'
1414
s.swift_version = '4.2'
1515

1616
end

0 commit comments

Comments
 (0)