Commit Graph

868 Commits

Author SHA1 Message Date
Norio Nomura b4585d96d6
Drop conditional compilation blocks for Swift 4.0.x 2019-06-21 08:32:06 +09:00
Norio Nomura 5d861bbc7c
Update LastSwiftMigration 2019-06-21 08:32:06 +09:00
Norio Nomura dc10d7b505
Update to recommended settings by Xcode 11 2019-06-21 08:32:05 +09:00
JP Simard 66946171bb
Fixup again 2019-06-20 15:31:49 -07:00
JP Simard 9146a1238d
Fixup 2019-06-20 15:29:07 -07:00
JP Simard a360c400fd
Use Dictionary(uniqueKeysWithValues) with Swift 5.0+ 2019-06-20 15:26:27 -07:00
JP Simard d4da853db6
Get DateComponents.date instead of creating a new calendar (#186)
This was used to work around a Swift 3.x bug which has since been
resolved.
2019-06-20 15:03:00 -07:00
JP Simard b3e1c4af9d
Fix indentation in Package.swift 2019-06-16 14:32:54 -07:00
JP Simard b01d262331
Update podspec to support multiple swift versions (#185)
* Update podspec to support multiple swift versions

now that CocoaPods 1.7.0 is out: https://github.com/CocoaPods/CocoaPods/releases/tag/1.7.0

* Use CocoaPods from bundler

* Update Bundler version in Gemfile.lock

* Remove .swift-version file
2019-05-24 10:01:27 -07:00
JP Simard d0e4b5d040
Update README and code comment to reflect that Swift 4.x/5.x is required 2019-05-12 14:49:46 -07:00
Norio Nomura 0998a4862e
Merge pull request #183 from jpsim/swift-5.1
Add Swift 5.1 for Linux job to CI
2019-04-19 08:17:31 +09:00
Norio Nomura 9b9e32cf79
[Azure Pipelines] Add "linux swift51" job 2019-04-18 12:40:33 +09:00
Norio Nomura 1db904c701
[Azure Pipelines] Test only on latest minor versions on Linux 2019-04-18 12:39:41 +09:00
JP Simard f1e8c5cffb
Run on Xcode 10.2 on CI (#182)
* Run on Xcode 10.2 on CI

* Run Xcode 9 jobs on macOS 10.13

* Combine all Xcode jobs

* Skip 32 bit tests on Xcode 10.2
2019-04-12 07:15:42 -07:00
Norio Nomura 120fbba958
Add empty changelog section 2019-04-07 08:50:26 +09:00
Norio Nomura c947a306d2
Merge pull request #181 from jpsim/release-2.0
Release 2.0
2019-04-07 08:43:54 +09:00
JP Simard a769410ceb
Revert bundler version in Gemfile.lock 2019-04-06 13:53:33 -07:00
JP Simard bacb443a4e
Gem install bundler should update it 2019-04-06 13:38:03 -07:00
JP Simard 91c2c007b5
sudo 2019-04-06 13:13:33 -07:00
JP Simard f0e66658e6
Ubuntu 16.04 2019-04-06 13:08:23 -07:00
JP Simard 1ea9cb4a72
Update bundler 2019-04-06 13:04:26 -07:00
JP Simard 9f4a5acde2
Update CI image versions 2019-04-06 13:01:06 -07:00
JP Simard 4ce5c80027
Update gems 2019-04-06 12:53:22 -07:00
JP Simard 7d83a178c6
Release 2.0.0 2019-04-06 12:50:44 -07:00
JP Simard 0452fff103
Release 1.0.2 2019-04-01 11:00:45 -07:00
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