Skip to content

Commit f7165ec

Browse files
committed
first commit
0 parents  commit f7165ec

29 files changed

+13742
-0
lines changed

.gitignore

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
# Xcode
2+
#
3+
# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore
4+
5+
## Build generated
6+
build/
7+
DerivedData
8+
9+
## Various settings
10+
*.pbxuser
11+
!default.pbxuser
12+
*.mode1v3
13+
!default.mode1v3
14+
*.mode2v3
15+
!default.mode2v3
16+
*.perspectivev3
17+
!default.perspectivev3
18+
xcuserdata
19+
20+
## Other
21+
*.xccheckout
22+
*.moved-aside
23+
*.xcuserstate
24+
*.xcscmblueprint
25+
26+
## Obj-C/Swift specific
27+
*.hmap
28+
*.ipa
29+
30+
## Playgrounds
31+
timeline.xctimeline
32+
playground.xcworkspace
33+
34+
# Swift Package Manager
35+
#
36+
# Add this line if you want to avoid checking in source code from Swift Package Manager dependencies.
37+
Packages/
38+
.build/
39+
40+
# CocoaPods
41+
#
42+
# We recommend against adding the Pods directory to your .gitignore. However
43+
# you should judge for yourself, the pros and cons are mentioned at:
44+
# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
45+
#
46+
# Pods/
47+
48+
# Carthage
49+
#
50+
# Add this line if you want to avoid checking in source code from Carthage dependencies.
51+
# Carthage/Checkouts
52+
53+
Carthage/Build
54+
55+
# fastlane
56+
#
57+
# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
58+
# screenshots whenever they are needed.
59+
# For more information about the recommended setup visit:
60+
# https://github.com/fastlane/fastlane/blob/master/docs/Gitignore.md
61+
62+
fastlane/report.xml
63+
fastlane/screenshots

.swift-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.0

.swiftlint.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
line_length: 120

.travis.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
language: generic
2+
matrix:
3+
include:
4+
- script:
5+
- xcodebuild -scheme Yams test
6+
- pod lib lint
7+
env: JOB=Xcode
8+
os: osx
9+
osx_image: xcode8.1
10+
before_install:
11+
- gem install cocoapods -v '1.1.1'
12+
- pod repo update
13+
- script: swift test
14+
env: JOB=SPM
15+
os: osx
16+
osx_image: xcode8.1
17+
- script: docker run -v `pwd`:/Yams swiftdocker/swift bash -c "cd /Yams && swift test"
18+
env: JOB=Linux
19+
sudo: required
20+
services: docker

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2016 JP Simard.
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

Package.swift

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import PackageDescription
2+
3+
let package = Package(
4+
name: "Yams",
5+
targets: [
6+
Target(name: "Yams", dependencies: ["CYaml"])
7+
]
8+
)

README.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# Yams
2+
3+
A sweet and swifty [Yaml](http://yaml.org/) parser built on
4+
[libYAML](http://pyyaml.org/wiki/LibYAML).
5+
6+
![Test Status](https://travis-ci.org/jpsim/Yams.svg?branch=master)
7+
8+
## Installation
9+
10+
Building Yams on macOS requires Xcode 8.x or a Swift 3.x toolchain with the
11+
Swift Package Manager.
12+
13+
Building Yams on Linux requires the Swift 3.0 compiler and Swift Package Manager
14+
to be installed.
15+
16+
### Swift Package Manager
17+
18+
Add `.Package(url: "https://github.com/jpsim/Yams.git", majorVersion: 0)` to
19+
your `Package.swift` file's `dependencies`.
20+
21+
### CocoaPods
22+
23+
Add `pod 'Yams'` to your `Podfile`.
24+
25+
### Carthage
26+
27+
Add `github "jpsim/Yams"` to your `Cartfile`.
28+
29+
## Credit
30+
31+
This library was initially based on
32+
[Chris Eidhof's gist](https://gist.github.com/chriseidhof/4c5a49d4b81a0c2a37a1).
33+
34+
## License
35+
36+
Both Yams and libYAML are MIT licensed.

0 commit comments

Comments
 (0)