Skip to content

Commit cad9a84

Browse files
authored
Develop (#2)
* renamed capitalizedFirst() in capitalizedFirstCharacter() * fixed floor function 🐛 * fixed mutating floor function 🐛 * added flooring tests * further details about color space conversion * removed empty comments 🤗 * KeyboardObserver renaming * renaming selectors for KeyboardObserver * ranaming *Mappable -> *KeyCodable * reanaming StoryboardMappable into StoryboardKeyCodable * added storyboard tests (iOS, tvOS, macOS) * wip storyboard tests * cleaning * MARK * comments * cleaning whitespaces * added UpdateTimestampable * fix PBXBuildFile section * added int*string operator + tests * added FileManager utils + tests (wip) * added applicationSupportDirectory * disabled same tests * wip Application Support Directory for non sandboxed macOS app * added String.ends(with:caseSensitive:) function + tests * added String+NSString extensions * String+NSString.swift in Sources * wip FileManager Utils * renaming * added ProcessInfo+Info * added executableFileName * wip * added final keyword * added App struct ⚙️ * added comments * added comments * renaming * cleaning whitespaces * edited header text * renaming * added tests * documentation * documentation * added more tests * fixed isRunningUnitTests * gardening * added titles * added KeyboardObserver Tests * added ??? operator * whitespaces cleaning * added URL + operator * added Bool utils * added documentation * cleanup whitespaces * added a new cooment note * UINib utils + tests * added xib * gardening * added NSNib support + tests * refactoring * added tvOS UINib support + tests * gardening * added storyboardIdentifier default value * cleaning & renaming * added NibIdentifiable protocol * fix comment * removed white spaces * added more Nib and Storyboard tests * added title * fixed macOS tests * comments * added Sequence groupedBy * added performChangesAndWait * added Int Utils * wip performChangesAndWait * added string random function * args renaming * added Int Utils tests * refactor * indentation * cleanup whitespaces * refactor schemes * macOS 10.12 * added HSBA Color Utils * added toggle utils * added Bool toggle tests * © 2016-2017 * added String random tests * added public key * wip NSAttributedString operators * better operator definitions * refactoring * NSAttributedString and NSMutableAttributedString operators tests * typo * added HTML NSAttributed convenience initializer test * reordered files by name * fix macOS tests * added Dictionary hasKey method * added Dictionary+Validation.swift * better markdown documentation * gardening * NSPredicate+Operators (wip) * added some (commented) ideas * wip * revert + added @discardableResult * commented some ideas * gardening * better error message * added NSPredicate operators tests * 2017 * added XCTest+Utils * added a private saveChanges() method * functions renaming * added a Font typealias * lowercase constants * core data utils heavy lifting * added deleteAllObjects(inManagedObjectContext:,matchingPredicate:) * cleaning * core data wip * refactoring * wip core data * added AssociatedObject and Swizzling methods * added title * changed file path * comments and alias typos * gardening * added tests * added Note * comment * wip Array+Utils * added find method (wip) * work in progress * cleaning (wip) * added RangeReplaceableCollection Utils instead of Array Utils * commented out performance test * removed performance tests baselines * bugfixing and refactoring * descriptions * indent * added Collection Utils * fixed method arguments * added more tests * added Collection Utils tests * more tests * gardening * gardening * more tests * more tests * public! * renaming * added descriptions * typo * core data refactoring * renaming * added String Utils removingCharacters * gardening * renaming * wip CoreData * internal variable rename * typo * cleaning * refactoring * refactoring * cleaning * cleaning * conflicts resolved * better comment * refactor SignedInteger * swizzling test without useing initialize() method (deprecated from Swift 3.1) * added more String Utils and Tests * cleaning CharacterSet * added travis CI (wip) * cleaning * Xcode 8.2 * IB madness * update sdk * updated destination * IB madness * IB madness * iOS 10.1 * changed system version * macOS 10.12.1 * macosx10.12 * added swift version * xcode8.2.1 * xcode8.2 * comments * revert * added JSON utils * added support for #RRGGBBAA * refactor Dictionary utils * added more tests * new test * added new test * better documentation * macOS: removed default identifier when using applicationSupportDirectory. Use applicationSupportSubDirectory instead. * wip tests * wip FileManager tests * refactoring FileManager Utils * rename local variable * Added Dictionary Utils Tests * added more tests * cleaning * fix test * RGBA components refactor * chores * refactoring Color Utils ⚙️ * added color converters mixer fn, lighter fn, darker fn * added final whenever possible * chores * cleaning * final * AppKit and UIKit * refactor extensions * rgba8Bit is no longer optional * wip * UInt32 fix * added more tests * todo (ideas) * more tests * refactor protocol Integer * change default percentage to 0.25 * added jazzy documentation 📓 * macOS tests * testing codecov * cleaning * disabled BUILD_EXAMPLE * codecov test * wip * wip * wip * wip * wip * ONLY_ACTIVE_ARCH yes * added travis build status * fixed typo * added code coverage status * cleaning * added codecov config file * updated docs * added allowLossyConversion as defaulted param * refactor test * added more tests * added license and title
1 parent ec971d8 commit cad9a84

File tree

253 files changed

+72050
-2
lines changed

Some content is hidden

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

253 files changed

+72050
-2
lines changed

.jazzy.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
module: Mechanica
2+
author: Alessandro Marzoli
3+
author_url: http://www.tinrobots.org
4+
github_url: https://github.com/tinrobots/mechanica
5+
copyright: "© 2016-2017 [Tin Robots](http://www.tinrobots.org)"
6+
clean: true
7+
#podspec: ../Mechanica.podspec

.travis.yml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
language: objective-c
2+
osx_image: xcode8.2
3+
env:
4+
global:
5+
- LC_CTYPE=en_US.UTF-8
6+
- LANG=en_US.UTF-8
7+
#- WORKSPACE=Mechanica.xcworkspace
8+
- IOS_FRAMEWORK_SCHEME="Mechanica iOS"
9+
- MACOS_FRAMEWORK_SCHEME="Mechanica macOS"
10+
- TVOS_FRAMEWORK_SCHEME="Mechanica tvOS"
11+
- WATCHOS_FRAMEWORK_SCHEME="Mechanica watchOS"
12+
- IOS_SDK=iphonesimulator10.2
13+
- MACOS_SDK=macosx10.12
14+
- TVOS_SDK=appletvsimulator10.1
15+
- WATCHOS_SDK=watchsimulator3.1
16+
#- EXAMPLE_SCHEME="Mechanica Example"
17+
matrix:
18+
- DESTINATION="OS=3.1,name=Apple Watch - 42mm" SCHEME="$WATCHOS_FRAMEWORK_SCHEME" SDK="$WATCHOS_SDK" RUN_TESTS="NO" BUILD_EXAMPLE="NO" POD_LINT="NO" CODECOV_FLAG="watchos"
19+
20+
- DESTINATION="OS=10.1,name=iPhone 7 Plus" SCHEME="$IOS_FRAMEWORK_SCHEME" SDK="$IOS_SDK" RUN_TESTS="YES" BUILD_EXAMPLE="NO" POD_LINT="NO" CODECOV_FLAG="ios"
21+
#- DESTINATION="OS=10.2,name=iPhone 6" SCHEME="$IOS_FRAMEWORK_SCHEME" SDK="$IOS_SDK" RUN_TESTS="YES" BUILD_EXAMPLE="YES" POD_LINT="NO"
22+
23+
- DESTINATION="OS=10.1,name=Apple TV 1080p" SCHEME="$TVOS_FRAMEWORK_SCHEME" SDK="$TVOS_SDK" RUN_TESTS="YES" BUILD_EXAMPLE="NO" POD_LINT="NO" CODECOV_FLAG="tvos"
24+
#- DESTINATION="OS=10.0,name=Apple TV 1080p" SCHEME="$TVOS_FRAMEWORK_SCHEME" SDK="$TVOS_SDK" RUN_TESTS="YES" BUILD_EXAMPLE="NO" POD_LINT="NO"
25+
26+
#- DESTINATION="arch=x86_64" SCHEME="$MACOS_FRAMEWORK_SCHEME" SDK="$MACOS_SDK" RUN_TESTS="YES" BUILD_EXAMPLE="NO" POD_LINT="NO" CODECOV_FLAG="macos"
27+
before_install:
28+
- gem install cocoapods --pre --no-rdoc --no-ri --no-document --quiet
29+
script:
30+
- set -o pipefail
31+
- xcodebuild -version
32+
- xcodebuild -showsdks
33+
- swift --version
34+
35+
# Build Framework in Debug and Run Tests if specified
36+
- if [ $RUN_TESTS == "YES" ]; then
37+
xcodebuild -scheme "$SCHEME" -sdk "$SDK" -destination "$DESTINATION" -configuration Debug ONLY_ACTIVE_ARCH=YES ENABLE_TESTABILITY=YES test | xcpretty;
38+
bash <(curl -s https://codecov.io/bash) -J 'Mechanica' -cF "$CODECOV_FLAG"
39+
else
40+
xcodebuild -scheme "$SCHEME" -sdk "$SDK" -destination "$DESTINATION" -configuration Debug ONLY_ACTIVE_ARCH=NO build | xcpretty;
41+
fi
42+
43+
# Build Framework in Release and Run Tests if specified
44+
- if [ $RUN_TESTS == "YES" ]; then
45+
xcodebuild -scheme "$SCHEME" -sdk "$SDK" -destination "$DESTINATION" -configuration Release ONLY_ACTIVE_ARCH=NO ENABLE_TESTABILITY=YES test | xcpretty;
46+
else
47+
xcodebuild -scheme "$SCHEME" -sdk "$SDK" -destination "$DESTINATION" -configuration Release ONLY_ACTIVE_ARCH=NO build | xcpretty;
48+
fi
49+
50+
# Run `pod lib lint` if specified
51+
- if [ $POD_LINT == "YES" ]; then
52+
pod lib lint;
53+
fi
54+
55+
after_success:
56+
- sleep 5

Gemfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
source "https://rubygems.org"
2+
3+
gem "jazzy"

Gemfile.lock

Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
GEM
2+
remote: https://rubygems.org/
3+
specs:
4+
CFPropertyList (2.3.5)
5+
activesupport (4.2.8)
6+
i18n (~> 0.7)
7+
minitest (~> 5.1)
8+
thread_safe (~> 0.3, >= 0.3.4)
9+
tzinfo (~> 1.1)
10+
claide (1.0.1)
11+
cocoapods (1.2.0)
12+
activesupport (>= 4.0.2, < 5)
13+
claide (>= 1.0.1, < 2.0)
14+
cocoapods-core (= 1.2.0)
15+
cocoapods-deintegrate (>= 1.0.1, < 2.0)
16+
cocoapods-downloader (>= 1.1.3, < 2.0)
17+
cocoapods-plugins (>= 1.0.0, < 2.0)
18+
cocoapods-search (>= 1.0.0, < 2.0)
19+
cocoapods-stats (>= 1.0.0, < 2.0)
20+
cocoapods-trunk (>= 1.1.2, < 2.0)
21+
cocoapods-try (>= 1.1.0, < 2.0)
22+
colored (~> 1.2)
23+
escape (~> 0.0.4)
24+
fourflusher (~> 2.0.1)
25+
gh_inspector (~> 1.0)
26+
molinillo (~> 0.5.5)
27+
nap (~> 1.0)
28+
ruby-macho (~> 0.2.5)
29+
xcodeproj (>= 1.4.1, < 2.0)
30+
cocoapods-core (1.2.0)
31+
activesupport (>= 4.0.2, < 5)
32+
fuzzy_match (~> 2.0.4)
33+
nap (~> 1.0)
34+
cocoapods-deintegrate (1.0.1)
35+
cocoapods-downloader (1.1.3)
36+
cocoapods-plugins (1.0.0)
37+
nap
38+
cocoapods-search (1.0.0)
39+
cocoapods-stats (1.0.0)
40+
cocoapods-trunk (1.1.2)
41+
nap (>= 0.8, < 2.0)
42+
netrc (= 0.7.8)
43+
cocoapods-try (1.1.0)
44+
colored (1.2)
45+
escape (0.0.4)
46+
fourflusher (2.0.1)
47+
fuzzy_match (2.0.4)
48+
gh_inspector (1.0.3)
49+
i18n (0.8.1)
50+
jazzy (0.7.4)
51+
cocoapods (~> 1.0)
52+
mustache (~> 0.99)
53+
open4
54+
redcarpet (~> 3.2)
55+
rouge (~> 1.5)
56+
sass (~> 3.4)
57+
sqlite3 (~> 1.3)
58+
xcinvoke (~> 0.3.0)
59+
liferaft (0.0.6)
60+
minitest (5.10.1)
61+
molinillo (0.5.7)
62+
mustache (0.99.8)
63+
nanaimo (0.2.3)
64+
nap (1.1.0)
65+
netrc (0.7.8)
66+
open4 (1.3.4)
67+
redcarpet (3.4.0)
68+
rouge (1.11.1)
69+
ruby-macho (0.2.6)
70+
sass (3.4.23)
71+
sqlite3 (1.3.13)
72+
thread_safe (0.3.6)
73+
tzinfo (1.2.2)
74+
thread_safe (~> 0.1)
75+
xcinvoke (0.3.0)
76+
liferaft (~> 0.0.6)
77+
xcodeproj (1.4.2)
78+
CFPropertyList (~> 2.3.3)
79+
activesupport (>= 3)
80+
claide (>= 1.0.1, < 2.0)
81+
colored (~> 1.2)
82+
nanaimo (~> 0.2.3)
83+
84+
PLATFORMS
85+
ruby
86+
87+
DEPENDENCIES
88+
jazzy
89+
90+
BUNDLED WITH
91+
1.14.6

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2016 Tin Robots
3+
Copyright (c) 2016-2017 Tin Robots
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

0 commit comments

Comments
 (0)