Commit Graph

643 Commits

Author SHA1 Message Date
Norio Nomura b82300bb83
Merge pull request #176 from jpsim/support-32bit
Support 32-bit target
2019-03-05 08:30:17 +09:00
Norio Nomura fab2ec9a69
[Azure Pipelines] Add "tests on iOS (32-bit)" step to macOS job 2019-02-23 14:09:26 +09:00
Norio Nomura e547aa7fd5
Fix `testValuesInSingleValueContainer`, `testValuesInKeyedContainer` and `testValuesInUnkeyedContainer` failed on 32bit target
It failed when scalar could not be expressed with 32 bits integer.
2019-02-23 14:09:26 +09:00
Norio Nomura 3870759a88
Fix `ConstructorTests.testInt()` failed on 32bit target 2019-02-23 14:09:25 +09:00
Norio Nomura 273adffc0f
Fix compilation error on 32bit target
> Tests/YamsTests/ConstructorTests.swift:127:29: error: integer literal '9223372036854775807' overflows when stored into 'Int'
>            "canonicalMax": 9223372036854775807
>                            ^
> Tests/YamsTests/ConstructorTests.swift:126:29: error: integer literal '-9223372036854775808' overflows when stored into 'Int'
>            "canonicalMin": -9223372036854775808,
>                            ^
2019-02-23 14:09:25 +09:00
Norio Nomura df4fc6fd1a
Use `MemoryLayout<Int>.size` instead of `arch()` compiler condition 2019-02-22 19:13:33 +09:00
Norio Nomura 7fb320022f
Merge pull request #172 from jpsim/xcode-10.2b2
Update to Xcode 10.2 beta 2
2019-02-06 08:15:50 +09:00
Norio Nomura c2727acd10
Update to Xcode 10.2 beta 2
`withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` has been implemented to `Data`.
2019-02-05 20:05:07 +09:00
Norio Nomura 29992e71ac
Merge pull request #171 from jpsim/fixed-sr-9454
Remove codes detecting SR-9454
2019-02-04 08:28:23 +09:00
Norio Nomura edf07b91a4
Revert "Skip tests affected by https://bugs.swift.org/browse/SR-9454"
This reverts commit 584a2bc2ff.

# Conflicts:
#	Tests/YamsTests/TestHelper.swift

# Conflicts:
#	Tests/YamsTests/StringTests.swift
2019-02-03 14:25:03 +09:00
Norio Nomura 58a0203547
Merge pull request #168 from jpsim/update-data-with-unsafe-bytes
Update `Data.withUnsafeBytes(_:)` taking `(UnsafeRawBufferPointer) throws -> Result`
2019-01-30 09:47:22 +09:00
Norio Nomura 83f2ae99a4
Update `Data.withUnsafeBytes(_:)` taking `(UnsafeRawBufferPointer) throws -> Result`
- Implemented on swift-5.0-DEVELOPMENT-SNAPSHOT-2018-12-16-a for macOS
- implemented on swift-5.0-DEVELOPMENT-SNAPSHOT-2019-01-28-a with swift-corelibs-foundation
- Not implemented on Xcode 10.2 beta 1 (canImport(Darwin) && !canImport(SwiftLang))
2019-01-29 21:45:40 +09:00
Norio Nomura e8dd69f2ad
Merge pull request #158 from jpsim/fix-157
_KeyedDecodingContainer and _UnkeyedDecodingContainer did not properly decode null
2019-01-29 12:50:11 +09:00
Norio Nomura 3416074240
Add a bug fix entry to CHANGELOG.md 2019-01-29 12:13:19 +09:00
Norio Nomura a64cee1ac5
Delegate `decodeNil()` to `_Decoder` in `(_Keyed|_Unkeyed)DecodingContainer` 2019-01-29 12:09:49 +09:00
Norio Nomura 4556cfb81b
Add `test_null_yml()` to `EncoderTests` from #157 2019-01-29 12:03:53 +09:00
Norio Nomura 9ac276ffb7
Merge pull request #155 from jpsim/fix-data-init-bytes-is-deprecated
`Data.init(bytes:)` is deprecated on Swift 5
2019-01-23 08:21:41 +09:00
Norio Nomura 98b0174684
Fix warning: 'init(bytes:)' is deprecated: use `init(_:)` instead on Swift 5 2019-01-22 21:45:38 +09:00
Norio Nomura 3f0a878c17
Merge pull request #153 from jpsim/update-azure-pipelines-configuration
Update Azure Pipelines configuration
2019-01-18 15:22:45 +09:00
Norio Nomura 3044bb8dbb
Revert "Use SwiftLint HEAD to avoid false positives in unused_private_declaration"
This reverts commit d1aa40536d.
2019-01-18 15:08:55 +09:00
Norio Nomura 07993a0ba2
[Azure Pipelines] Use `DEVELOPER_DIR` environment variable instead of executing `xcode-select`
That reduces some steps.
2019-01-18 14:47:28 +09:00
Norio Nomura cbc4fe7778
[Azure Pipelines] Use container shorthand and inline container
https://docs.microsoft.com/en-us/azure/devops/release-notes/2018/sprint-143-update#declare-container-resources-inline
2019-01-18 11:30:37 +09:00
Norio Nomura 92daf94597
Merge pull request #152 from jpsim/add-more-tests-represnting-floatingpoint
Add more tests representing floating point
2019-01-09 13:05:01 +09:00
Norio Nomura d4feb15140
Add more tests representing floating point 2019-01-09 09:50:04 +09:00
JP Simard 5d0bb5ec15
Update LibYAML (#150)
* Update .swift-version to latest stable Swift version

* Update LibYAML to latest upstream head

* Fix tests

* Add changelog entry

* Fix includes in yaml_private.h

* Fix uninitialized warning
2019-01-06 13:19:48 -08:00
JP Simard a856ca6c4b
Lint for unused private declarations (#149)
* Lint for unused private declarations

Remove two unused declarations and silence an intentional violation.

* Rename Unused_Imports CI job to Analyze

* Use SwiftLint HEAD to avoid false positives in unused_private_declaration
2019-01-06 10:18:32 -08:00
JP Simard 73632ef7fe Fix identifier_name violations and re-enable rule 2019-01-05 20:54:43 -08:00
JP Simard 61c7dbb8fd Remove unused imports 2019-01-05 18:17:30 -08:00
JP Simard 2c86bdbf1c Pass '--strict' to SwiftLint to fail with warnings 2019-01-05 18:17:30 -08:00
JP Simard b5a8c599e4 Fix CI job name 2019-01-05 18:17:30 -08:00
JP Simard 2b54ae0a4a Add unused imports CI job 2019-01-05 18:17:30 -08:00
Norio Nomura 08a1a26b82
Merge pull request #146 from jpsim/update-issues-on-using-nanosecond-in-date
[Swift 5.0] Update issues related `nanosecond` in `Date` from swift-corelibs-foundation
2019-01-06 10:52:06 +09:00
Norio Nomura 0174a8517a
Add an entry to CHANGELOG 2019-01-06 10:41:18 +09:00
Norio Nomura 80b53b3bed
Change remaining `os(Linux)` to `_runtime(_ObjC)` 2019-01-05 20:31:02 +09:00
Norio Nomura 1e449c29dc
Fix warning: initialization of immutable value 'nanosecond' was never used 2019-01-05 20:11:54 +09:00
Norio Nomura 083cc50523
https://bugs.swift.org/browse/SR-3158 seems to be fixed on Swift 5.0 2019-01-05 20:06:15 +09:00
Norio Nomura 376c62c3b1
https://bugs.swift.org/browse/SR-6223 seems to be fixed on Swift 5.0 2019-01-05 20:02:06 +09:00
Norio Nomura ded1eccd5b
Add assertions detecting fixes for SR-6223 2019-01-05 20:01:28 +09:00
Norio Nomura c25a74ab52
Change `os(Linux)` compilation condition to `_runtime(_ObjC)` 2019-01-05 18:09:22 +09:00
Norio Nomura 67274b8f47
Merge pull request #145 from jpsim/enhance-encoding-support
Enhance encoding support
2019-01-05 17:10:48 +09:00
Norio Nomura 30e20fb9a0
Fix warning: 'IndexDistance' is deprecated: all index distances are now of type Int 2019-01-05 15:25:30 +09:00
Norio Nomura a3e6eae45c
Apply suggested changes in CHANGELOG.md 2019-01-05 15:00:36 +09:00
Norio Nomura 54fd371d4f
Remove redundant `private` modifiers in private extension 2019-01-05 14:57:05 +09:00
Norio Nomura 1ba7253fc5
Clarify that the `offset` of `YamlError.reader` is `String.IndexDistance?`. 2019-01-05 14:56:25 +09:00
Norio Nomura 196081d8e2
Avoid creating another String in binary 2019-01-05 14:34:08 +09:00
Norio Nomura 7e672ce1ad
Use `flatMap` instead of `guard let … else {…}` 2019-01-05 14:31:54 +09:00
Norio Nomura a05e77ecaa
Use all-caps capitalization in environment variables 2019-01-05 12:42:55 +09:00
Norio Nomura a62f990902
Make inline the module name parameters in the functions 2019-01-05 12:38:37 +09:00
Norio Nomura ee9bc0e878
Mark test functions as `throws` in `PerformanceTests` 2019-01-05 12:34:22 +09:00
Norio Nomura 4110bc9819
Fix indentation on guard else body 2019-01-05 12:33:20 +09:00