Skip to content

Commit af46ba8

Browse files
committed
Squashed commit of the following:
commit 3add431 Author: Satyam Ghodasara <[email protected]> Date: Sat Mar 31 15:13:01 2018 -0400 Updated CHANGELOG.md commit c5b3e7a Author: Satyam Ghodasara <[email protected]> Date: Sat Mar 31 15:12:53 2018 -0400 Bumped version number to 5.0.0 commit 7564990 Author: Satyam Ghodasara <[email protected]> Date: Sat Mar 31 15:00:22 2018 -0400 Updated CONTRIBUTING.md formatting commit f1d7120 Author: Satyam Ghodasara <[email protected]> Date: Sat Mar 31 13:57:25 2018 -0400 Added CONTRIBUTING.md commit efd3f33 Author: Satyam Ghodasara <[email protected]> Date: Sat Mar 31 13:04:05 2018 -0400 Added Language.swift to targets missing the file commit e804d8d Author: Satyam Ghodasara <[email protected]> Date: Sat Mar 31 12:53:37 2018 -0400 Fixed Float/Double casting commit fd490d8 Author: Satyam Ghodasara <[email protected]> Date: Sat Mar 31 12:53:17 2018 -0400 Renamed APIClientTests to DarkSkyClientTests commit f858d9a Author: Satyam Ghodasara <[email protected]> Date: Sat Mar 31 12:43:22 2018 -0400 Updated Travis CI configuration commit 3e7693f Author: Satyam Ghodasara <[email protected]> Date: Sat Mar 31 12:43:14 2018 -0400 Removed reference to recovered Language.swift commit 7faadc3 Author: Satyam Ghodasara <[email protected]> Date: Sat Mar 31 12:33:24 2018 -0400 Fixed project settings commit 59d41af Author: Satyam Ghodasara <[email protected]> Date: Sat Mar 31 00:37:01 2018 -0400 Updated change log for 5.0.0 commit 534b451 Author: Satyam Ghodasara <[email protected]> Date: Sat Mar 31 00:35:56 2018 -0400 Added more languages commit 324126c Author: Satyam Ghodasara <[email protected]> Date: Sat Mar 31 00:26:31 2018 -0400 Updated units and documentation commit e760883 Author: Satyam Ghodasara <[email protected]> Date: Fri Mar 30 23:50:16 2018 -0400 Added UV index and time commit 6e327f0 Author: Satyam Ghodasara <[email protected]> Date: Fri Mar 30 23:29:50 2018 -0400 Max/min temperatures are now high/low commit fb86b89 Author: Satyam Ghodasara <[email protected]> Date: Fri Mar 30 23:08:26 2018 -0400 Updated project settings commit ef538bb Author: Satyam Ghodasara <[email protected]> Date: Fri Mar 30 22:50:09 2018 -0400 Updated CocoaPod dependencies commit 6be8b6f Author: Satyam Ghodasara <[email protected]> Date: Fri Mar 30 22:27:09 2018 -0400 Updated project settings commit 9d519bb Author: Satyam Ghodasara <[email protected]> Date: Fri Mar 30 17:23:44 2018 -0400 Added alert changes to the change log commit 7499bd3 Author: Satyam Ghodasara <[email protected]> Date: Fri Mar 30 17:13:28 2018 -0400 Updated project commit e71f5b0 Author: Satyam Ghodasara <[email protected]> Date: Fri Mar 30 17:13:14 2018 -0400 Bumped version to 4.1.0 commit 4f4a01a Author: Satyam Ghodasara <[email protected]> Date: Fri Mar 30 17:08:09 2018 -0400 Updated change log commit 28a433e Author: Satyam Ghodasara <[email protected]> Date: Sun Feb 12 14:48:58 2017 -0500 Added unit tests for new Alert properties commit 3cb5fc7 Author: Satyam Ghodasara <[email protected]> Date: Sun Feb 12 14:31:06 2017 -0500 Added time, regions, and severity properties and Severity enum to the Alert struct commit b20f414 Author: Satyam Ghodasara <[email protected]> Date: Sun Feb 12 13:51:12 2017 -0500 Added unit tests for Bulgarian language
1 parent dcb5660 commit af46ba8

File tree

74 files changed

+2185
-2818
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

74 files changed

+2185
-2818
lines changed

.travis.yml

+23-6
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# * https://github.com/supermarin/xcpretty#usage
44

55
language: objective-c
6-
osx_image: xcode8
6+
osx_image: xcode9.3beta
77
env:
88
global:
99
- LC_CTYPE=en_US.UTF-8
@@ -13,26 +13,43 @@ env:
1313
- MACOS_FRAMEWORK_SCHEME="ForecastIO macOS"
1414
- TVOS_FRAMEWORK_SCHEME="ForecastIO tvOS"
1515
- WATCHOS_FRAMEWORK_SCHEME="ForecastIO watchOS"
16-
- IOS_SDK=iphonesimulator10.0
17-
- MACOS_SDK=macosx10.12
18-
- TVOS_SDK=appletvsimulator10.0
19-
- WATCHOS_SDK=watchsimulator3.0
16+
- IOS_SDK=iphonesimulator11.3
17+
- MACOS_SDK=macosx10.13
18+
- TVOS_SDK=appletvsimulator11.3
19+
- WATCHOS_SDK=watchsimulator4.3
2020
- EXAMPLE_SCHEME="iOS Example"
2121
matrix:
2222
- DESTINATION="OS=9.0,name=iPhone 6 Plus" SCHEME="$IOS_FRAMEWORK_SCHEME" SDK="$IOS_SDK" RUN_TESTS="YES" BUILD_EXAMPLE="YES" POD_LINT="NO"
2323
- DESTINATION="OS=9.1,name=iPhone 6s Plus" SCHEME="$IOS_FRAMEWORK_SCHEME" SDK="$IOS_SDK" RUN_TESTS="YES" BUILD_EXAMPLE="YES" POD_LINT="NO"
2424
- DESTINATION="OS=9.2,name=iPhone 6s Plus" SCHEME="$IOS_FRAMEWORK_SCHEME" SDK="$IOS_SDK" RUN_TESTS="YES" BUILD_EXAMPLE="YES" POD_LINT="NO"
2525
- DESTINATION="OS=9.3,name=iPhone 6s Plus" SCHEME="$IOS_FRAMEWORK_SCHEME" SDK="$IOS_SDK" RUN_TESTS="YES" BUILD_EXAMPLE="YES" POD_LINT="NO"
2626
- DESTINATION="OS=10.0,name=iPhone 7 Plus" SCHEME="$IOS_FRAMEWORK_SCHEME" SDK="$IOS_SDK" RUN_TESTS="YES" BUILD_EXAMPLE="YES" POD_LINT="NO"
27+
- DESTINATION="OS=10.1,name=iPhone 7 Plus" SCHEME="$IOS_FRAMEWORK_SCHEME" SDK="$IOS_SDK" RUN_TESTS="YES" BUILD_EXAMPLE="YES" POD_LINT="NO"
28+
- DESTINATION="OS=10.2,name=iPhone 7 Plus" SCHEME="$IOS_FRAMEWORK_SCHEME" SDK="$IOS_SDK" RUN_TESTS="YES" BUILD_EXAMPLE="YES" POD_LINT="NO"
29+
- DESTINATION="OS=10.3,name=iPhone 7 Plus" SCHEME="$IOS_FRAMEWORK_SCHEME" SDK="$IOS_SDK" RUN_TESTS="YES" BUILD_EXAMPLE="YES" POD_LINT="NO"
30+
- DESTINATION="OS=11.0,name=iPhone 8 Plus" SCHEME="$IOS_FRAMEWORK_SCHEME" SDK="$IOS_SDK" RUN_TESTS="YES" BUILD_EXAMPLE="YES" POD_LINT="NO"
31+
- DESTINATION="OS=11.1,name=iPhone 8 Plus" SCHEME="$IOS_FRAMEWORK_SCHEME" SDK="$IOS_SDK" RUN_TESTS="YES" BUILD_EXAMPLE="YES" POD_LINT="NO"
32+
- DESTINATION="OS=11.2,name=iPhone 8 Plus" SCHEME="$IOS_FRAMEWORK_SCHEME" SDK="$IOS_SDK" RUN_TESTS="YES" BUILD_EXAMPLE="YES" POD_LINT="NO"
33+
- DESTINATION="OS=11.3,name=iPhone 8 Plus" SCHEME="$IOS_FRAMEWORK_SCHEME" SDK="$IOS_SDK" RUN_TESTS="YES" BUILD_EXAMPLE="YES" POD_LINT="NO"
2734
- DESTINATION="arch=x86_64" SCHEME="$MACOS_FRAMEWORK_SCHEME" SDK="$MACOS_SDK" RUN_TESTS="YES" BUILD_EXAMPLE="NO" POD_LINT="NO"
2835
- DESTINATION="OS=9.0,name=Apple TV 1080p" SCHEME="$TVOS_FRAMEWORK_SCHEME" SDK="$TVOS_SDK" RUN_TESTS="YES" BUILD_EXAMPLE="NO" POD_LINT="NO"
2936
- DESTINATION="OS=9.1,name=Apple TV 1080p" SCHEME="$TVOS_FRAMEWORK_SCHEME" SDK="$TVOS_SDK" RUN_TESTS="YES" BUILD_EXAMPLE="NO" POD_LINT="NO"
3037
- DESTINATION="OS=9.2,name=Apple TV 1080p" SCHEME="$TVOS_FRAMEWORK_SCHEME" SDK="$TVOS_SDK" RUN_TESTS="YES" BUILD_EXAMPLE="NO" POD_LINT="NO"
3138
- DESTINATION="OS=10.0,name=Apple TV 1080p" SCHEME="$TVOS_FRAMEWORK_SCHEME" SDK="$TVOS_SDK" RUN_TESTS="YES" BUILD_EXAMPLE="NO" POD_LINT="NO"
39+
- DESTINATION="OS=10.1,name=Apple TV 1080p" SCHEME="$TVOS_FRAMEWORK_SCHEME" SDK="$TVOS_SDK" RUN_TESTS="YES" BUILD_EXAMPLE="NO" POD_LINT="NO"
40+
- DESTINATION="OS=10.2,name=Apple TV 1080p" SCHEME="$TVOS_FRAMEWORK_SCHEME" SDK="$TVOS_SDK" RUN_TESTS="YES" BUILD_EXAMPLE="NO" POD_LINT="NO"
41+
- DESTINATION="OS=11.0,name=Apple TV 1080p" SCHEME="$TVOS_FRAMEWORK_SCHEME" SDK="$TVOS_SDK" RUN_TESTS="YES" BUILD_EXAMPLE="NO" POD_LINT="NO"
42+
- DESTINATION="OS=11.1,name=Apple TV 1080p" SCHEME="$TVOS_FRAMEWORK_SCHEME" SDK="$TVOS_SDK" RUN_TESTS="YES" BUILD_EXAMPLE="NO" POD_LINT="NO"
43+
- DESTINATION="OS=11.2,name=Apple TV 1080p" SCHEME="$TVOS_FRAMEWORK_SCHEME" SDK="$TVOS_SDK" RUN_TESTS="YES" BUILD_EXAMPLE="NO" POD_LINT="NO"
44+
- DESTINATION="OS=11.3,name=Apple TV 1080p" SCHEME="$TVOS_FRAMEWORK_SCHEME" SDK="$TVOS_SDK" RUN_TESTS="YES" BUILD_EXAMPLE="NO" POD_LINT="NO"
3245
- DESTINATION="OS=2.0,name=Apple Watch - 38mm" SCHEME="$WATCHOS_FRAMEWORK_SCHEME" SDK="$WATCHOS_SDK" RUN_TESTS="NO" BUILD_EXAMPLE="NO" POD_LINT="NO"
3346
- DESTINATION="OS=2.1,name=Apple Watch - 38mm" SCHEME="$WATCHOS_FRAMEWORK_SCHEME" SDK="$WATCHOS_SDK" RUN_TESTS="NO" BUILD_EXAMPLE="NO" POD_LINT="NO"
3447
- DESTINATION="OS=2.2,name=Apple Watch - 38mm" SCHEME="$WATCHOS_FRAMEWORK_SCHEME" SDK="$WATCHOS_SDK" RUN_TESTS="NO" BUILD_EXAMPLE="NO" POD_LINT="NO"
35-
- DESTINATION="OS=3.0,name=Apple Watch - 38mm" SCHEME="$WATCHOS_FRAMEWORK_SCHEME" SDK="$WATCHOS_SDK" RUN_TESTS="NO" BUILD_EXAMPLE="NO" POD_LINT="NO"
48+
- DESTINATION="OS=3.2,name=Apple Watch - 38mm" SCHEME="$WATCHOS_FRAMEWORK_SCHEME" SDK="$WATCHOS_SDK" RUN_TESTS="NO" BUILD_EXAMPLE="NO" POD_LINT="NO"
49+
- DESTINATION="OS=4.0,name=Apple Watch - 38mm" SCHEME="$WATCHOS_FRAMEWORK_SCHEME" SDK="$WATCHOS_SDK" RUN_TESTS="NO" BUILD_EXAMPLE="NO" POD_LINT="NO"
50+
- DESTINATION="OS=4.1,name=Apple Watch - 38mm" SCHEME="$WATCHOS_FRAMEWORK_SCHEME" SDK="$WATCHOS_SDK" RUN_TESTS="NO" BUILD_EXAMPLE="NO" POD_LINT="NO"
51+
- DESTINATION="OS=4.2,name=Apple Watch - 38mm" SCHEME="$WATCHOS_FRAMEWORK_SCHEME" SDK="$WATCHOS_SDK" RUN_TESTS="NO" BUILD_EXAMPLE="NO" POD_LINT="NO"
52+
- DESTINATION="OS=4.3,name=Apple Watch - 38mm" SCHEME="$WATCHOS_FRAMEWORK_SCHEME" SDK="$WATCHOS_SDK" RUN_TESTS="NO" BUILD_EXAMPLE="NO" POD_LINT="NO"
3653
before_install:
3754
- gem install cocoapods --pre --no-rdoc --no-ri --no-document --quiet
3855
script:

CHANGELOG.md

+13
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,19 @@
22

33
ForecastIO adheres to [Semantic Versioning](http://semver.org/).
44

5+
## 5.0.0
6+
7+
Released on March 31, 2018.
8+
9+
### Added
10+
- `uvIndex`, `uvIndexTime`, and `windGust` properties on `DataPoint`
11+
- Support for Danish, Finnish, Japanese, Georgian, Korean, and Romanian
12+
- `CONTRIBUTING.md`, which describes basic guidelines for contributing to this project
13+
14+
### Updated
15+
- Swift 4.1 compatibility
16+
- Max/min temperatures on `DataPoint` are now high/low
17+
518
## 4.1.0
619

720
Released on March 30, 2018.

CONTRIBUTING.md

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# How to Contribute
2+
Thanks for taking the time to read this! As this is a hobby project for me, I don't always have the time to keep ForecastIO up to date. I try my best, but any additional help from anyone willing to contribute is very much appreciated!
3+
4+
## Coding Style
5+
Take a look at the code that's already been written as a definitive guide. Comments are highly encouraged, and appledoc style is used to autogenerate documentation.
6+
7+
## Source Control & Pull Requests
8+
The commit history for ForecastIO isn't the cleanest or even close to perfect, but I try to stick to a few general rules. The `master` branch is used for public releases, and each release commit is tagged with the version. Active development occurs on the `dev` branch. Once a set of commits for a feature are complete on the `dev` branch, I'll squash and merge them onto the `master` branch to keep it clean. Please send all pull requests directly to the `dev` branch. I'll review them there and make any changes that may be needed. After that, I'll merge them into `master` for a new release.
9+
10+
## Unit Tests
11+
I'm proud to say that ForecastIO has 100% code coverage with unit tests! I'd like to keep it this way, and the library is pretty small so I don't think it'll be difficult to do. I highly encourage you to include unit tests with any code that you submit if applicable. Take a look at the unit tests that have already been written for a guide to write your own.
12+
13+
Thanks!
14+
Satyam
15+

Example/iOS Example.xcodeproj/project.pbxproj

+22-4
Original file line numberDiff line numberDiff line change
@@ -191,13 +191,13 @@
191191
isa = PBXProject;
192192
attributes = {
193193
LastSwiftUpdateCheck = 0720;
194-
LastUpgradeCheck = 0800;
194+
LastUpgradeCheck = 0930;
195195
ORGANIZATIONNAME = CocoaPods;
196196
TargetAttributes = {
197197
D4B85D7D1C53324600BD2FCD = {
198198
CreatedOnToolsVersion = 7.2;
199199
DevelopmentTeam = 76333YNXLE;
200-
LastSwiftMigration = 0800;
200+
LastSwiftMigration = 0930;
201201
ProvisioningStyle = Automatic;
202202
};
203203
};
@@ -354,14 +354,22 @@
354354
CLANG_CXX_LIBRARY = "libc++";
355355
CLANG_ENABLE_MODULES = YES;
356356
CLANG_ENABLE_OBJC_ARC = YES;
357+
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
357358
CLANG_WARN_BOOL_CONVERSION = YES;
359+
CLANG_WARN_COMMA = YES;
358360
CLANG_WARN_CONSTANT_CONVERSION = YES;
361+
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
359362
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
360363
CLANG_WARN_EMPTY_BODY = YES;
361364
CLANG_WARN_ENUM_CONVERSION = YES;
362365
CLANG_WARN_INFINITE_RECURSION = YES;
363366
CLANG_WARN_INT_CONVERSION = YES;
367+
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
368+
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
369+
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
364370
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
371+
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
372+
CLANG_WARN_STRICT_PROTOTYPES = YES;
365373
CLANG_WARN_SUSPICIOUS_MOVE = YES;
366374
CLANG_WARN_UNREACHABLE_CODE = YES;
367375
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
@@ -401,14 +409,22 @@
401409
CLANG_CXX_LIBRARY = "libc++";
402410
CLANG_ENABLE_MODULES = YES;
403411
CLANG_ENABLE_OBJC_ARC = YES;
412+
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
404413
CLANG_WARN_BOOL_CONVERSION = YES;
414+
CLANG_WARN_COMMA = YES;
405415
CLANG_WARN_CONSTANT_CONVERSION = YES;
416+
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
406417
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
407418
CLANG_WARN_EMPTY_BODY = YES;
408419
CLANG_WARN_ENUM_CONVERSION = YES;
409420
CLANG_WARN_INFINITE_RECURSION = YES;
410421
CLANG_WARN_INT_CONVERSION = YES;
422+
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
423+
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
424+
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
411425
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
426+
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
427+
CLANG_WARN_STRICT_PROTOTYPES = YES;
412428
CLANG_WARN_SUSPICIOUS_MOVE = YES;
413429
CLANG_WARN_UNREACHABLE_CODE = YES;
414430
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
@@ -445,7 +461,8 @@
445461
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
446462
PRODUCT_BUNDLE_IDENTIFIER = "io.Satyam.iOS-Example";
447463
PRODUCT_NAME = "$(TARGET_NAME)";
448-
SWIFT_VERSION = 3.0;
464+
SWIFT_SWIFT3_OBJC_INFERENCE = Default;
465+
SWIFT_VERSION = 4.0;
449466
TARGETED_DEVICE_FAMILY = "1,2";
450467
};
451468
name = Debug;
@@ -463,7 +480,8 @@
463480
PRODUCT_BUNDLE_IDENTIFIER = "io.Satyam.iOS-Example";
464481
PRODUCT_NAME = "$(TARGET_NAME)";
465482
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
466-
SWIFT_VERSION = 3.0;
483+
SWIFT_SWIFT3_OBJC_INFERENCE = Default;
484+
SWIFT_VERSION = 4.0;
467485
TARGETED_DEVICE_FAMILY = "1,2";
468486
};
469487
name = Release;

Example/iOS Example.xcodeproj/xcshareddata/xcschemes/iOS Example.xcscheme

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "0820"
3+
LastUpgradeVersion = "0930"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"

ForecastIO.podspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
Pod::Spec.new do |s|
1111
s.name = "ForecastIO"
12-
s.version = "4.1.0"
12+
s.version = "5.0.0"
1313
s.summary = "ForecastIO is a Swift library for interfacing with the Dark Sky forecast API."
1414
s.homepage = "https://github.com/sxg/ForecastIO"
1515
s.license = 'MIT'

0 commit comments

Comments
 (0)