Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
broadwaylamb committed Jun 25, 2017
2 parents a54d6d5 + eef20fe commit 7f457c9
Show file tree
Hide file tree
Showing 214 changed files with 29,567 additions and 4,598 deletions.
2 changes: 2 additions & 0 deletions .codebeatignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
docs/*
Demo/*
7 changes: 5 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,11 @@ timeline.xctimeline
playground.xcworkspace

# Swift Package Manager
#
# Add this line if you want to avoid checking in source code from Swift Package Manager dependencies.
Packages/
.build/
Package.pins
Package.resolved
*.xcodeproj

# CocoaPods
#
Expand Down Expand Up @@ -64,3 +65,5 @@ fastlane/report.xml
fastlane/Preview.html
fastlane/screenshots
fastlane/test_output

**/.DS_Store
21 changes: 3 additions & 18 deletions Scripts/ci.sh → .scripts/ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,7 @@ echo "📅 Version: `swift --version`";

echo "🚀 Building";

if [[ $OS == "macOS" ]];
then
swift build -Xlinker -lz;
else
swift build -Xlinker -rpath=.build/debug/ -Xlinker -lz;
fi
make debug;

if [[ $? != 0 ]];
then
Expand All @@ -65,12 +60,7 @@ fi

echo "💼 Building Release";

if [[ $OS == "macOS" ]];
then
swift build -c release -Xlinker -lz;
else
swift build -c release -Xlinker -rpath=.build/release/ -Xlinker -lz;
fi
make release;

if [[ $? != 0 ]];
then
Expand All @@ -80,12 +70,7 @@ fi

echo "🔎 Testing";

if [[ $OS == "macOS" ]];
then
swift test -Xlinker -lz
else
swift test -Xlinker -rpath=.build/debug/ -Xlinker -lz
fi
make test;

if [[ $? != 0 ]];
then
Expand Down
1 change: 1 addition & 0 deletions Scripts/coverage.sh → .scripts/coverage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ echo "🚀 Testing: $SCHEME_NAME";

rvm install 2.2.3
gem install xcpretty
make generate-xcodeproj
WORKING_DIRECTORY=$(PWD) xcodebuild -project $PROJ_NAME.xcodeproj -scheme $SCHEME_NAME -sdk macosx10.12 -destination arch=x86_64 -configuration Debug -enableCodeCoverage YES test | xcpretty
bash <(curl -s https://codecov.io/bash)

Expand Down
1 change: 0 additions & 1 deletion .swift-version

This file was deleted.

18 changes: 10 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,27 @@ language: generic
matrix:
include:
- os: osx
osx_image: xcode8
env: RUN_TESTS="NO" POD_LINT="YES"
osx_image: xcode8.3
env: SWIFT_VERSION="3.1" RUN_TESTS="NO" POD_LINT="YES"
- os: osx
osx_image: xcode8
env: RUN_TESTS="YES" POD_LINT="NO"
osx_image: xcode8.3
env: SWIFT_VERSION="3.1" RUN_TESTS="YES" POD_LINT="NO"
- os: linux
sudo: required
dist: trusty
env: RUN_TESTS="YES" POD_LINT="NO"
env: SWIFT_VERSION="3.1" RUN_TESTS="YES" POD_LINT="NO"

script:
- if [[ $POD_LINT == "YES" ]]; then
gem install cocoapods && pod lib lint --allow-warnings;
gem install cocoapods;
pod repo update --silent;
pod lib lint --swift-version=$SWIFT_VERSION --allow-warnings;
fi
- if [[ $RUN_TESTS == "YES" ]]; then
eval Scripts/ci.sh;
eval .scripts/ci.sh;
fi

after_success:
- if [[ $RUN_TESTS == "YES" ]]; then
eval Scripts/coverage.sh;
eval .scripts/coverage.sh;
fi
33 changes: 33 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,38 @@
# Change Log

## [0.2.0](https://github.com/WeirdMath/SwiftyHaru/tree/0.2.0) (2017-06-25)

Please note that this version requires Swift 3.1.

**Breaking changes:**

- Changed the signature of the `DrawingContext.fill(_:evenOddRule:stroke:)` and `DrawingContext.clip(to:evenOddRule:_:)` methods. Instead of `Bool` value for fill rule they now require the `Path.FillRule` enum value.

**Closed issues:**

- Implement high-level grid drawing [\#6](https://github.com/WeirdMath/SwiftyHaru/issues/6)
- Package has unsupported layout for linux [\#7](https://github.com/WeirdMath/SwiftyHaru/issues/7)

**Implemented features:**

- Loading TrueType fonts from a .ttc collection
- Getting a bounding box of a specified text put at a specified position
- Getting the ascent of a font
- Getting the descent of a font
- Getting the x-height of a font
- Getting the cap height of a font
- Setting metadata (author, creator, title, subject, keywords, creation date, modification date)
- Setting a password, encryption mode and permissions
- Setting a compression mode
- Getting the depth of the graphics state stack
- Closure-based syntax for saving and restoring the graphics state
- Showing a text in a provided rectangle
- **High-level customizable interface for drawing grids!**

**Fixes:**

- Setting `miterLimit`, `font` and `fontSize` of `DrawingContext`, `width` and `height` of `PDFPage` to an invalid value now causes precondition failure.

## [0.1.0](https://github.com/WeirdMath/SwiftyHaru/tree/0.1.0) (2016-11-02)
**Closed issues:**

Expand Down
42 changes: 0 additions & 42 deletions CLibHaru.podspec

This file was deleted.

150 changes: 0 additions & 150 deletions CLibPNG.podspec

This file was deleted.

Loading

0 comments on commit 7f457c9

Please sign in to comment.