Skip to content

Commit cd9566d

Browse files
committed
Initial commit
0 parents  commit cd9566d

15 files changed

+566
-0
lines changed

.gitignore

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# OS X
2+
.DS_Store
3+
.AppleDouble
4+
.LSOverride
5+
Icon
6+
._*
7+
.Spotlight-V100
8+
.Trashes
9+
10+
# Xcode
11+
#
12+
build/
13+
*.pbxuser
14+
!default.pbxuser
15+
*.mode1v3
16+
!default.mode1v3
17+
*.mode2v3
18+
!default.mode2v3
19+
*.perspectivev3
20+
!default.perspectivev3
21+
xcuserdata
22+
*.xccheckout
23+
*.moved-aside
24+
DerivedData
25+
*.hmap
26+
*.ipa
27+
*.xcuserstate
28+
29+
# CocoaPods
30+
Pods

.slather.yml

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
ci_service: travis_ci
2+
coverage_service: coveralls
3+
xcodeproj: Tests/Tests.xcodeproj
4+
source_directory: Source

.travis.yml

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
language: objective-c
2+
cache: cocoapods
3+
before_install: gem install cocoapods obcd slather -N
4+
5+
# Use when you don't have third party dependencies
6+
script: xctool -project Pod/Pod.xcodeproj -scheme Tests -sdk iphonesimulator build test GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=YES GCC_GENERATE_TEST_COVERAGE_FILES=YES clean test
7+
8+
# Use when you have third party dependencies (CocoaPods generates a workspace)
9+
# podfile: Pod/Podfile
10+
# script: xctool -workspace Pod/Pod.xcworkspace -scheme Tests -sdk iphonesimulator build test GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=YES GCC_GENERATE_TEST_COVERAGE_FILES=YES clean test
11+
12+
after_success: slather

CONTRIBUTING.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
GitHub Issues is for reporting bugs, discussing features and general feedback in **Cache**. Be sure to check our [documentation](http://cocoadocs.org/docsets/Cache), [FAQ](https://github.com/hyperoslo/Cache/wiki/FAQ) and [past issues](https://github.com/hyperoslo/Cache/issues?state=closed) before opening any new issues.
2+
3+
If you are posting about a crash in your application, a stack trace is helpful, but additional context, in the form of code and explanation, is necessary to be of any use.

Cache.podspec

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
Pod::Spec.new do |s|
2+
s.name = "Cache"
3+
s.summary = "A short description of Cache."
4+
s.version = "0.1.0"
5+
s.homepage = "https://github.com/hyperoslo/Cache"
6+
s.license = 'MIT'
7+
s.author = { "Hyper Interaktiv AS" => "[email protected]" }
8+
s.source = { :git => "https://github.com/hyperoslo/Cache.git", :tag => s.version.to_s }
9+
s.social_media_url = 'https://twitter.com/hyperoslo'
10+
s.platform = :ios, '8.0'
11+
s.requires_arc = true
12+
s.source_files = 'Source/**/*'
13+
# s.frameworks = 'UIKit', 'MapKit'
14+
# s.dependency 'AFNetworking', '~> 2.3'
15+
end

LICENSE.md

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

Pod/Pod.xcodeproj/project.pbxproj

+303
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,303 @@
1+
// !$*UTF8*$!
2+
{
3+
archiveVersion = 1;
4+
classes = {
5+
};
6+
objectVersion = 46;
7+
objects = {
8+
9+
/* Begin PBXBuildFile section */
10+
14A139B41AEFC72B00AD732F /* Tests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 14A139B31AEFC72B00AD732F /* Tests.swift */; };
11+
/* End PBXBuildFile section */
12+
13+
/* Begin PBXFileReference section */
14+
146D72AC1AB782920058798C /* Tests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = Tests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
15+
146D72B11AB782920058798C /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
16+
14A139B21AEFC72B00AD732F /* Tests-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Tests-Bridging-Header.h"; sourceTree = "<group>"; };
17+
14A139B31AEFC72B00AD732F /* Tests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Tests.swift; sourceTree = "<group>"; };
18+
14C136511AB784B200B7B07A /* .travis.yml */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = .travis.yml; path = ../.travis.yml; sourceTree = "<group>"; };
19+
14C136521AB784B200B7B07A /* CONTRIBUTING.md */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = net.daringfireball.markdown; name = CONTRIBUTING.md; path = ../CONTRIBUTING.md; sourceTree = "<group>"; };
20+
14C136541AB784B200B7B07A /* LICENSE.md */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = net.daringfireball.markdown; name = LICENSE.md; path = ../LICENSE.md; sourceTree = "<group>"; };
21+
14C136551AB784B200B7B07A /* README.md */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = net.daringfireball.markdown; name = README.md; path = ../README.md; sourceTree = "<group>"; };
22+
14C1365C1AB784BC00B7B07A /* .gitkeep */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = .gitkeep; sourceTree = "<group>"; };
23+
/* End PBXFileReference section */
24+
25+
/* Begin PBXFrameworksBuildPhase section */
26+
146D72A91AB782920058798C /* Frameworks */ = {
27+
isa = PBXFrameworksBuildPhase;
28+
buildActionMask = 2147483647;
29+
files = (
30+
);
31+
runOnlyForDeploymentPostprocessing = 0;
32+
};
33+
/* End PBXFrameworksBuildPhase section */
34+
35+
/* Begin PBXGroup section */
36+
146D728A1AB782920058798C = {
37+
isa = PBXGroup;
38+
children = (
39+
14C1365B1AB784BC00B7B07A /* Source */,
40+
14C136501AB7849300B7B07A /* Metadata */,
41+
146D72AF1AB782920058798C /* Tests */,
42+
146D72941AB782920058798C /* Products */,
43+
);
44+
indentWidth = 2;
45+
sourceTree = "<group>";
46+
tabWidth = 2;
47+
};
48+
146D72941AB782920058798C /* Products */ = {
49+
isa = PBXGroup;
50+
children = (
51+
146D72AC1AB782920058798C /* Tests.xctest */,
52+
);
53+
name = Products;
54+
sourceTree = "<group>";
55+
};
56+
146D72AF1AB782920058798C /* Tests */ = {
57+
isa = PBXGroup;
58+
children = (
59+
146D72B01AB782920058798C /* Supporting Files */,
60+
14A139B31AEFC72B00AD732F /* Tests.swift */,
61+
14A139B21AEFC72B00AD732F /* Tests-Bridging-Header.h */,
62+
);
63+
path = Tests;
64+
sourceTree = "<group>";
65+
};
66+
146D72B01AB782920058798C /* Supporting Files */ = {
67+
isa = PBXGroup;
68+
children = (
69+
146D72B11AB782920058798C /* Info.plist */,
70+
);
71+
name = "Supporting Files";
72+
sourceTree = "<group>";
73+
};
74+
14C136501AB7849300B7B07A /* Metadata */ = {
75+
isa = PBXGroup;
76+
children = (
77+
14C136511AB784B200B7B07A /* .travis.yml */,
78+
14C136521AB784B200B7B07A /* CONTRIBUTING.md */,
79+
14C136541AB784B200B7B07A /* LICENSE.md */,
80+
14C136551AB784B200B7B07A /* README.md */,
81+
);
82+
name = Metadata;
83+
sourceTree = "<group>";
84+
};
85+
14C1365B1AB784BC00B7B07A /* Source */ = {
86+
isa = PBXGroup;
87+
children = (
88+
14C1365C1AB784BC00B7B07A /* .gitkeep */,
89+
);
90+
name = Source;
91+
path = ../Source;
92+
sourceTree = "<group>";
93+
};
94+
/* End PBXGroup section */
95+
96+
/* Begin PBXNativeTarget section */
97+
146D72AB1AB782920058798C /* Tests */ = {
98+
isa = PBXNativeTarget;
99+
buildConfigurationList = 146D72B91AB782920058798C /* Build configuration list for PBXNativeTarget "Tests" */;
100+
buildPhases = (
101+
146D72A81AB782920058798C /* Sources */,
102+
146D72A91AB782920058798C /* Frameworks */,
103+
146D72AA1AB782920058798C /* Resources */,
104+
);
105+
buildRules = (
106+
);
107+
dependencies = (
108+
);
109+
name = Tests;
110+
productName = PodTests;
111+
productReference = 146D72AC1AB782920058798C /* Tests.xctest */;
112+
productType = "com.apple.product-type.bundle.unit-test";
113+
};
114+
/* End PBXNativeTarget section */
115+
116+
/* Begin PBXProject section */
117+
146D728B1AB782920058798C /* Project object */ = {
118+
isa = PBXProject;
119+
attributes = {
120+
LastUpgradeCheck = 0620;
121+
ORGANIZATIONNAME = Example;
122+
TargetAttributes = {
123+
146D72AB1AB782920058798C = {
124+
CreatedOnToolsVersion = 6.2;
125+
};
126+
};
127+
};
128+
buildConfigurationList = 146D728E1AB782920058798C /* Build configuration list for PBXProject "Pod" */;
129+
compatibilityVersion = "Xcode 3.2";
130+
developmentRegion = English;
131+
hasScannedForEncodings = 0;
132+
knownRegions = (
133+
en,
134+
Base,
135+
);
136+
mainGroup = 146D728A1AB782920058798C;
137+
productRefGroup = 146D72941AB782920058798C /* Products */;
138+
projectDirPath = "";
139+
projectRoot = "";
140+
targets = (
141+
146D72AB1AB782920058798C /* Tests */,
142+
);
143+
};
144+
/* End PBXProject section */
145+
146+
/* Begin PBXResourcesBuildPhase section */
147+
146D72AA1AB782920058798C /* Resources */ = {
148+
isa = PBXResourcesBuildPhase;
149+
buildActionMask = 2147483647;
150+
files = (
151+
);
152+
runOnlyForDeploymentPostprocessing = 0;
153+
};
154+
/* End PBXResourcesBuildPhase section */
155+
156+
/* Begin PBXSourcesBuildPhase section */
157+
146D72A81AB782920058798C /* Sources */ = {
158+
isa = PBXSourcesBuildPhase;
159+
buildActionMask = 2147483647;
160+
files = (
161+
14A139B41AEFC72B00AD732F /* Tests.swift in Sources */,
162+
);
163+
runOnlyForDeploymentPostprocessing = 0;
164+
};
165+
/* End PBXSourcesBuildPhase section */
166+
167+
/* Begin XCBuildConfiguration section */
168+
146D72B41AB782920058798C /* Debug */ = {
169+
isa = XCBuildConfiguration;
170+
buildSettings = {
171+
ALWAYS_SEARCH_USER_PATHS = NO;
172+
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
173+
CLANG_CXX_LIBRARY = "libc++";
174+
CLANG_ENABLE_MODULES = YES;
175+
CLANG_ENABLE_OBJC_ARC = YES;
176+
CLANG_WARN_BOOL_CONVERSION = YES;
177+
CLANG_WARN_CONSTANT_CONVERSION = YES;
178+
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
179+
CLANG_WARN_EMPTY_BODY = YES;
180+
CLANG_WARN_ENUM_CONVERSION = YES;
181+
CLANG_WARN_INT_CONVERSION = YES;
182+
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
183+
CLANG_WARN_UNREACHABLE_CODE = YES;
184+
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
185+
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
186+
COPY_PHASE_STRIP = NO;
187+
ENABLE_STRICT_OBJC_MSGSEND = YES;
188+
GCC_C_LANGUAGE_STANDARD = gnu99;
189+
GCC_DYNAMIC_NO_PIC = NO;
190+
GCC_OPTIMIZATION_LEVEL = 0;
191+
GCC_PREPROCESSOR_DEFINITIONS = (
192+
"DEBUG=1",
193+
"$(inherited)",
194+
);
195+
GCC_SYMBOLS_PRIVATE_EXTERN = NO;
196+
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
197+
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
198+
GCC_WARN_UNDECLARED_SELECTOR = YES;
199+
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
200+
GCC_WARN_UNUSED_FUNCTION = YES;
201+
GCC_WARN_UNUSED_VARIABLE = YES;
202+
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
203+
MTL_ENABLE_DEBUG_INFO = YES;
204+
ONLY_ACTIVE_ARCH = YES;
205+
SDKROOT = iphoneos;
206+
};
207+
name = Debug;
208+
};
209+
146D72B51AB782920058798C /* Release */ = {
210+
isa = XCBuildConfiguration;
211+
buildSettings = {
212+
ALWAYS_SEARCH_USER_PATHS = NO;
213+
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
214+
CLANG_CXX_LIBRARY = "libc++";
215+
CLANG_ENABLE_MODULES = YES;
216+
CLANG_ENABLE_OBJC_ARC = YES;
217+
CLANG_WARN_BOOL_CONVERSION = YES;
218+
CLANG_WARN_CONSTANT_CONVERSION = YES;
219+
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
220+
CLANG_WARN_EMPTY_BODY = YES;
221+
CLANG_WARN_ENUM_CONVERSION = YES;
222+
CLANG_WARN_INT_CONVERSION = YES;
223+
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
224+
CLANG_WARN_UNREACHABLE_CODE = YES;
225+
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
226+
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
227+
COPY_PHASE_STRIP = NO;
228+
ENABLE_NS_ASSERTIONS = NO;
229+
ENABLE_STRICT_OBJC_MSGSEND = YES;
230+
GCC_C_LANGUAGE_STANDARD = gnu99;
231+
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
232+
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
233+
GCC_WARN_UNDECLARED_SELECTOR = YES;
234+
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
235+
GCC_WARN_UNUSED_FUNCTION = YES;
236+
GCC_WARN_UNUSED_VARIABLE = YES;
237+
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
238+
MTL_ENABLE_DEBUG_INFO = NO;
239+
SDKROOT = iphoneos;
240+
VALIDATE_PRODUCT = YES;
241+
};
242+
name = Release;
243+
};
244+
146D72BA1AB782920058798C /* Debug */ = {
245+
isa = XCBuildConfiguration;
246+
buildSettings = {
247+
CLANG_ENABLE_MODULES = YES;
248+
FRAMEWORK_SEARCH_PATHS = (
249+
"$(SDKROOT)/Developer/Library/Frameworks",
250+
"$(inherited)",
251+
);
252+
GCC_PREPROCESSOR_DEFINITIONS = (
253+
"DEBUG=1",
254+
"$(inherited)",
255+
);
256+
INFOPLIST_FILE = Tests/Info.plist;
257+
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
258+
PRODUCT_NAME = "$(TARGET_NAME)";
259+
SWIFT_OBJC_BRIDGING_HEADER = "Tests/Tests-Bridging-Header.h";
260+
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
261+
};
262+
name = Debug;
263+
};
264+
146D72BB1AB782920058798C /* Release */ = {
265+
isa = XCBuildConfiguration;
266+
buildSettings = {
267+
CLANG_ENABLE_MODULES = YES;
268+
FRAMEWORK_SEARCH_PATHS = (
269+
"$(SDKROOT)/Developer/Library/Frameworks",
270+
"$(inherited)",
271+
);
272+
INFOPLIST_FILE = Tests/Info.plist;
273+
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
274+
PRODUCT_NAME = "$(TARGET_NAME)";
275+
SWIFT_OBJC_BRIDGING_HEADER = "Tests/Tests-Bridging-Header.h";
276+
};
277+
name = Release;
278+
};
279+
/* End XCBuildConfiguration section */
280+
281+
/* Begin XCConfigurationList section */
282+
146D728E1AB782920058798C /* Build configuration list for PBXProject "Pod" */ = {
283+
isa = XCConfigurationList;
284+
buildConfigurations = (
285+
146D72B41AB782920058798C /* Debug */,
286+
146D72B51AB782920058798C /* Release */,
287+
);
288+
defaultConfigurationIsVisible = 0;
289+
defaultConfigurationName = Release;
290+
};
291+
146D72B91AB782920058798C /* Build configuration list for PBXNativeTarget "Tests" */ = {
292+
isa = XCConfigurationList;
293+
buildConfigurations = (
294+
146D72BA1AB782920058798C /* Debug */,
295+
146D72BB1AB782920058798C /* Release */,
296+
);
297+
defaultConfigurationIsVisible = 0;
298+
defaultConfigurationName = Release;
299+
};
300+
/* End XCConfigurationList section */
301+
};
302+
rootObject = 146D728B1AB782920058798C /* Project object */;
303+
}

0 commit comments

Comments
 (0)