Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

kCFNumberFloat32Type error Linux#1106

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
dimabiserov wants to merge85 commits intoSwiftyJSON:master
base:master
Choose a base branch
Loading
fromIBM-Swift:master
Open
Show file tree
Hide file tree
Changes from1 commit
Commits
Show all changes
85 commits
Select commitHold shift + click to select a range
029f359
Added local implementation of parts of NSJSONSerialization for use on…
shmuelkFeb 10, 2016
79fdddb
Changes to get the code to run on Linux with the current Development …
shmuelkFeb 10, 2016
582736b
IBM-Swift/Kitura#328 swiftyJson changes to work on Linux with 3/24 Sw…
tfrank64Mar 30, 2016
772ce02
created OS X branch with swift 3_24 changes
tfrank64Mar 31, 2016
c571c7f
updated branch with latest from SwiftyJson/SwiftyJson
tfrank64Mar 31, 2016
c4d27a7
IBM-Swift/Kitura#328 merging linux and OS X source code
tfrank64Apr 1, 2016
e57295e
Merge pull request #1 from IBM-Swift/3_24_migration
tfrank64Apr 4, 2016
6aa99bb
IBM-Swift/Kitura#361 upgraded to compile with 4/12 binaries
dfirshtApr 13, 2016
4beecfa
IBM-Swift/Kitura#418 upgraded to compile with 4/25 binaries
dfirshtApr 27, 2016
cd3a31e
IBM-Swift/Kitura#432 updated to compile with 5/3 binaries
dfirshtMay 5, 2016
f140eb2
IBM-Swift/Kitura#432 compiles on Linux with 5/3 binaries
dfirshtMay 5, 2016
cd8b108
IBM-Swift/Kitura#432 Additional changes for Linux
dfirshtMay 5, 2016
255f9c5
IBM-Swift/Kitura#469 migrated to 05-09 snapshot
NikitaSullivanMay 12, 2016
e4f8595
0509 migration (#4)
NikitaSullivanJun 3, 2016
3dc35da
IBM-Swift/Kitura#504 updates to work on linux os for 31-05 migration …
NikitaSullivanJun 10, 2016
606caea
IBM-Swift/Kitura#590 Migrate to 06/20 binaries (#8)
irar2Jul 15, 2016
54165c7
IBM-Swift/Kitura#616 Changed == to != (#9)
irar2Jul 17, 2016
d046668
IBM-Swift/Kitura#529 updated and fixed SwiftyJSON tests (#7)
NikitaSullivanJul 25, 2016
42aef1a
IBM-Swift/Kitura#580 Fix subscript set with empty path (#11)
irar2Jul 26, 2016
e8772b5
Merge PR https://github.com/IBM-Swift/SwiftyJSON/pull/6
irar2Jul 27, 2016
9b27920
inital setup of CI
dfirshtJul 27, 2016
1eec775
Added Package info
dfirshtJul 27, 2016
57621b4
Migration 0725 (#12)
shmuelkAug 8, 2016
260cea9
Renamed the Kitura-Build repo to Package-Builder
BDHernandAug 10, 2016
1163fac
Merge pull request #14 from BDHernand/master
ianpartridgeAug 11, 2016
ef8582b
Updated travis file to point to new code
BDHernandAug 23, 2016
3f2a638
Merge pull request #15 from BDHernand/master
ianpartridgeAug 24, 2016
60588a0
Migration 0807 (#16)
shmuelkAug 26, 2016
37b4f20
Migration 0823 (#17)
shmuelkAug 28, 2016
9f1f612
DEVELOPMENT-SNAPSHOT-2016-08-29-a
vadimeisenbergibmAug 31, 2016
46324eb
DEVELOPMENT-SNAPSHOT-2016-09-07-a (#18)
shmuelkSep 8, 2016
ef67e24
Renaming KITURA_CI_BUILD_SCRIPTS_DIR to BUILDER_SCRIPTS_DIR (#20)
BDHernandSep 13, 2016
21e2e6b
DEVELOPMENT-SNAPSHOT-2016-09-12-a
shmuelkSep 13, 2016
4209be7
3.0-RELEASE
shmuelkSep 14, 2016
895fe9f
DEVELOPMENT-SNAPSHOT-2016-09-12-a
shmuelkSep 14, 2016
a5e2691
3.0-RELEASE
shmuelkSep 14, 2016
73b523a
3.0
shmuelkSep 14, 2016
6c79d5b
IBM-Swift/Kitura#788 Copied code from JSONSerialization master branch
shmuelkOct 6, 2016
f002dcc
IBM-Swift/Kitura#788 Remove use of mirror on Linux when creating a JS…
shmuelkOct 9, 2016
f87c272
IBM-Swift/Kitura#788 Convert JSON from string to Data in one call, ra…
shmuelkOct 9, 2016
032ceae
Add .sandbox-sample file
ianpartridgeOct 10, 2016
7fbd384
Merge pull request #21 from IBM-Swift/sandbox
ianpartridgeOct 10, 2016
4ec75fd
Avoid memory leak in String.cString() (#22)
djones6Oct 13, 2016
d8de7c8
Merge pull request #23 from IBM-Swift/issue_788
ianpartridgeOct 13, 2016
28ba41b
Remove travis branch from travis file
BDHernandOct 28, 2016
e332d9c
Merge pull request #24 from BDHernand/master
ianpartridgeOct 28, 2016
f5e165e
Added back the ignore = all for the gitmodule file
BDHernandNov 2, 2016
7fd1b19
IBM-Swift/Kitura#832 Swift version 3.0.1
shmuelkNov 3, 2016
099c666
IBM-Swift/Kitura#832 Eliminated warning in build
shmuelkNov 3, 2016
48523f0
IBM-Swift/Kitura#832 Eliminated warning
shmuelkNov 3, 2016
ba99cbf
Merge pull request #26 from IBM-Swift/issue_832
ianpartridgeNov 3, 2016
9b339c1
Merge pull request #25 from BDHernand/master
ianpartridgeNov 4, 2016
f3fb856
IBM-Swift/Kitura#846 Have Bool serialized as true/false
shmuelkNov 16, 2016
64b0910
Merge pull request #27 from IBM-Swift/issue_846
kweinmeisterNov 16, 2016
c5c4084
Remove submodule
BDHernandNov 30, 2016
9c8a8a0
Merge pull request #28 from BDHernand/master
ianpartridgeDec 1, 2016
2a0bcad
Parameterize parameters to Package-Builder
BDHernandDec 7, 2016
60930b4
Merge pull request #29 from BDHernand/master
irar2Dec 8, 2016
0a2357e
Support Swift 3.0.2
shmuelkDec 16, 2016
551fe92
Migrated to XCode 8.2
shmuelkDec 16, 2016
90fcabf
Disabled code coverage
shmuelkDec 16, 2016
865683c
IBM-Swift/Kitura#939 Read files in relative to source file in tests
shmuelkDec 19, 2016
da73139
IBM-Swift/Kitura#939 Re-enabl code coverage
shmuelkDec 19, 2016
7abdfe3
IBM-Swift/Kitura#939 Simplify code after review
shmuelkDec 19, 2016
5ca3f00
Merge pull request #30 from IBM-Swift/issue_939
youming-linDec 19, 2016
7d78e6a
Conditional Swift 3.1 support
Mar 16, 2017
d5f2741
IBM-Swift/Kitura#1047 Swift 3.1 changes
Mar 28, 2017
4c57d46
Swift 4 support (#33)
quanvo87Jun 19, 2017
cc47ffc
Fix spacing in README
Jun 29, 2017
0ccbc9b
Merge pull request #34 from jkingoliver/master
kweinmeisterJul 11, 2017
ded2700
Update to Swift 3.1.1; add 6/29 snapshot builds to Travis; IBM-Swift/…
quanvo87Jul 11, 2017
2bdc9d1
Update copyright year
quanvo87Jul 11, 2017
b0b655e
Cleanup repo; restructure for Swift 4
youming-linAug 30, 2017
b41f430
Fix warnings and failures on Swift 4
youming-linAug 30, 2017
b50ddc6
Fix warnings and errors on Linux
youming-linSep 7, 2017
5b9f21d
Update README
youming-linSep 7, 2017
1190845
Merge pull request #36 from IBM-Swift/swift-4
quanvo87Sep 8, 2017
6e718ef
Updates travis to use swift 4.0 release (#38)
Oct 2, 2017
ed09345
Removed _incremental protocol from JSONIndex struct
KyeMaloy97Feb 4, 2018
7eb6c83
Merge pull request #39 from KyeMaloy97/issue.removeIncremental
Feb 7, 2018
54b8eb6
Rename package for Swift 4.1, add 4.1 to Travis (#40)
djones6Mar 20, 2018
693d2d2
Rename Package@swift-4.swift to Package@Swift-4.swift (#41)
KyeMaloy97Aug 8, 2018
c687182
Tolerate Swift 5 (#42)
djones6Dec 14, 2018
f2612ea
Fixes for Swift 4.2 on Linux (#43)
sportlabsMikeDec 20, 2018
f9b4754
Tolerate Swift 5.1 (#44)
djones6Jul 16, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
PrevPrevious commit
NextNext commit
Swift 4 support (#33)
  • Loading branch information
@quanvo87@na-gupta
quanvo87 authored andna-gupta committedJun 19, 2017
commit4c57d4680e2b3d7be0e7c36737f99b6b36f09aac
1 change: 1 addition & 0 deletions.gitignore
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
# Xcode
.DS_Store
SwiftyJSON.xcodeproj
*/build/*
*.pbxuser
!default.pbxuser
Expand Down
8 changes: 3 additions & 5 deletions.travis.yml
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
# Travis CI build file for Kitura sample app.
# Kitura runs on OS X and Linux (Ubuntu).
# See the following URLs for further details on Travis CI
# https://docs.travis-ci.com/user/customizing-the-build/
# https://docs.travis-ci.com/user/docker/
Expand All@@ -24,14 +22,14 @@ matrix:
- os: linux
dist: trusty
sudo: required
env:SWIFT_VERSION=3.0.2
env:SWIFT_SNAPSHOT=4.0-DEVELOPMENT-SNAPSHOT-2017-06-11-a
- os: osx
osx_image: xcode8.3
sudo: required
env: SWIFT_SNAPSHOT=4.0-DEVELOPMENT-SNAPSHOT-2017-06-11-a

before_install:
- git clone https://github.com/IBM-Swift/Package-Builder.git
- test -n "$SWIFT_VERSION" && echo "$SWIFT_VERSION" > .swift-version || echo "SWIFT_VERSION not set, using $(cat .swift-version)"

script:
- ./Package-Builder/build-package.sh -projectDir $TRAVIS_BUILD_DIR
- ./Package-Builder/build-package.sh -projectDir $TRAVIS_BUILD_DIR
2 changes: 1 addition & 1 deletionSource/SwiftyJSON.swift
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -192,7 +192,7 @@ public struct JSON {
print("==> error=\(String(describing: _error)). type=\(type(of: newValue))")
}
#else
if type(of: newValue) == Bool.self {
ifSwift.type(of: newValue) == Bool.self {
_type = .bool
self.rawBool = newValue as! Bool
}
Expand Down
4 changes: 2 additions & 2 deletionsTests/SwiftyJSONTests/NumberTests.swift
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -148,12 +148,12 @@ class NumberTests: XCTestCase {
json.float = 23231.65
XCTAssertTrue(json.float! == 23231.65)
XCTAssertTrue(json.floatValue == 23231.65)
XCTAssertEqualWithAccuracy(Double(json.numberValue), 23231.65, accuracy: 0.001)
XCTAssertEqualWithAccuracy(json.numberValue.doubleValue, 23231.65, accuracy: 0.001)

json.floatValue = -98766.23
XCTAssertEqual(json.float!, -98766.23)
XCTAssertEqual(json.floatValue, -98766.23)
XCTAssertEqualWithAccuracy(Double(json.numberValue), -98766.23, accuracy: 0.05)
XCTAssertEqualWithAccuracy(json.numberValue.doubleValue, -98766.23, accuracy: 0.05)
}

func testInt() {
Expand Down
24 changes: 12 additions & 12 deletionsTests/SwiftyJSONTests/RawRepresentableTests.swift
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -27,7 +27,7 @@ import Foundation

class RawRepresentableTests: XCTestCase {

// GENERATED: allTests required for Swift 3.0
// GENERATED: allTests required for Swift 3.0
static var allTests : [(String, (RawRepresentableTests) -> () throws -> Void)] {
return [
("testNumber", testNumber),
Expand All@@ -36,7 +36,7 @@ class RawRepresentableTests: XCTestCase {
("testNil", testNil),
]
}
// END OF GENERATED CODE
// END OF GENERATED CODE

func testNumber() {
var json:JSON = JSON(rawValue: 948394394.347384 as NSNumber)!
Expand All@@ -51,9 +51,9 @@ class RawRepresentableTests: XCTestCase {

#if !os(Linux)
// NSNumber to Int, Double and Float conversion doesn't work on Linux
XCTAssertEqual(object as? Int, 948394394)
XCTAssertEqual((object as! NSNumber).intValue, 948394394)
XCTAssertEqual(object as? Double, 948394394.347384)
XCTAssertTrue(object as!Float == 948394394.347384)
XCTAssertEqual((object as!NSNumber).floatValue, 948394394.347384)
#endif
XCTAssertEqual(object as? NSNumber, 948394394.347384)
}
Expand All@@ -72,16 +72,16 @@ class RawRepresentableTests: XCTestCase {
XCTAssertEqual(objectTrue as? Bool, true)

#if !os(Linux)
// Bool to NSNumber conversion doesn't work on Linux
XCTAssertEqual(objectTrue as? NSNumber, NSNumber(value: true))
// Bool to NSNumber conversion doesn't work on Linux
XCTAssertEqual(objectTrue as? NSNumber, NSNumber(value: true))
#endif

let objectFalse = jsonFalse.rawValue
XCTAssertEqual(objectFalse as? Bool, false)

#if !os(Linux)
// Bool to NSNumber conversion doesn't work on Linux
XCTAssertEqual(objectFalse as? NSNumber, NSNumber(value: false))
// Bool to NSNumber conversion doesn't work on Linux
XCTAssertEqual(objectFalse as? NSNumber, NSNumber(value: false))
#endif
}

Expand DownExpand Up@@ -111,8 +111,8 @@ class RawRepresentableTests: XCTestCase {
}

#if !os(Linux)
// the following tests are not relevant to Linux
// you cannot convert array/dictionary of value types to NSArray/NSDictionary
// the following tests are not relevant to Linux
// you cannot convert array/dictionary of value types to NSArray/NSDictionary
func testArray() {
let array = [1,2,"3",4102,"5632", "abocde", "!@# $%^&*()"] as NSArray
if let json:JSON = JSON(rawValue: array) {
Expand All@@ -128,7 +128,7 @@ class RawRepresentableTests: XCTestCase {
if let json:JSON = JSON(rawValue: dictionary) {
XCTAssertEqual(json, JSON(dictionary))
}

let object = JSON(rawValue: dictionary)!.rawValue
XCTAssertTrue(dictionary == object as! NSDictionary)
}
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp