Skip to content
This repository has been archived by the owner on Jul 2, 2018. It is now read-only.

Commit

Permalink
Merge branch 'release/1.0.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
danthorpe committed Nov 5, 2015
2 parents 01b67e8 + 1b0f22f commit 3a3b7a3
Show file tree
Hide file tree
Showing 108 changed files with 13,251 additions and 10 deletions.
23 changes: 23 additions & 0 deletions .ci/buildkite/pipeline.template.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
steps:
-
name: ":bundler: Update Bundler"
command: .ci/scripts/update-bundler
agents:
name: "$BUILDKITE_AGENT_META_DATA_NAME"
-
name: ":fastlane: Test Mac OS X"
command: .ci/scripts/test-osx
agents:
name: "$BUILDKITE_AGENT_META_DATA_NAME"
-
name: ":fastlane: Test iOS"
command: .ci/scripts/test-ios
agents:
name: "$BUILDKITE_AGENT_META_DATA_NAME"
-
type: "waiter"
-
name: ":codecov: Send Coverage"
command: .ci/scripts/send-coverage
agents:
name: "$BUILDKITE_AGENT_META_DATA_NAME"
6 changes: 6 additions & 0 deletions .ci/buildkite/upload
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash

set -eu

# Makes sure all the steps run on this same agent
sed "s/\$BUILDKITE_AGENT_META_DATA_NAME/$BUILDKITE_AGENT_META_DATA_NAME/" .ci/buildkite/pipeline.template.yml
2 changes: 2 additions & 0 deletions .ci/scripts/send-coverage
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/usr/bin/env bash
bash <(curl -s https://codecov.io/bash) -D .ci/xcodebuild-data
5 changes: 5 additions & 0 deletions .ci/scripts/test-ios
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env bash
source /usr/local/opt/chruby/share/chruby/chruby.sh
chruby ruby
bundle exec fastlane ios test

4 changes: 4 additions & 0 deletions .ci/scripts/test-osx
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env bash
source /usr/local/opt/chruby/share/chruby/chruby.sh
chruby ruby
bundle exec fastlane mac test
4 changes: 4 additions & 0 deletions .ci/scripts/update-bundler
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env bash
source /usr/local/opt/chruby/share/chruby/chruby.sh
chruby ruby
bundle update && bundle exec fastlane enable_crash_reporting
Empty file added .ci/xcodebuild-data/.gitkeep
Empty file.
2 changes: 2 additions & 0 deletions .fastlane/Appfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
app_identifier "me.danthorpe.Money"
apple_id "[email protected]"
28 changes: 28 additions & 0 deletions .fastlane/Fastfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
before_all do |lane|
carthage(platform: "all")
end

platform :ios do

desc "Runs all the tests"
lane :test do
xctest scheme: 'Money-iOS',
sdk: 'iphonesimulator',
destination: 'platform=iOS Simulator,name=iPhone 6,OS=9.1',
destination_timeout: 120,
derivedDataPath: '.ci/xcodebuild-data'
end

end

platform :mac do

desc "Runs all the tests"
lane :test do
xctest scheme: 'Money-OSX',
sdk: 'macosx',
destination: 'platform=OS X',
derivedDataPath: '.ci/xcodebuild-data'
end

end
13 changes: 4 additions & 9 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,12 @@ DerivedData
*.ipa
*.xcuserstate

# CocoaPods
#
# We recommend against adding the Pods directory to your .gitignore. However
# you should judge for yourself, the pros and cons are mentioned at:
# http://guides.cocoapods.org/using/using-cocoapods.html#should-i-ignore-the-pods-directory-in-source-control
#
# Pods/

# Carthage
#
# Add this line if you want to avoid checking in source code from Carthage dependencies.
# Carthage/Checkouts
Carthage/Checkouts

Carthage/Build
.fastlane/report.xml
.ci/xcodebuild-data/*
*.coverage.txt
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@

# 1.0.0
🎉🐝 Initial release of Money.

- [x] DecimalNumberType with full support for mathematics operators
- [x] Strongly typed ISO currencies
- [x] Strongly typed ISO money type which conforms to DecimalNumberType
- [x] Generic Foreign Exchange APIs
- [x] Yahoo FX provider
- [x] OpenExchangeRates.org FX provider
- [x] 100% of code covered by tests
4 changes: 4 additions & 0 deletions Cartfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
github "danthorpe/ValueCoding"
github "antitypical/Result" >= 0.6
github "SwiftyJSON/SwiftyJSON"
github "danthorpe/DVR" "DVR_27_restore_print_and_abort"
4 changes: 4 additions & 0 deletions Cartfile.resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
github "danthorpe/DVR" "f0195d81d27a7d7633bd8c89ac7baa986fe8a21f"
github "antitypical/Result" "0.6.0-beta.6"
github "SwiftyJSON/SwiftyJSON" "2.3.1"
github "danthorpe/ValueCoding" "1.1.0"
Loading

0 comments on commit 3a3b7a3

Please sign in to comment.