Skip to content

Commit

Permalink
Updated docs/
Browse files Browse the repository at this point in the history
  • Loading branch information
Valentin Knabel committed Aug 23, 2016
1 parent 5f4b53c commit 16e9a05
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 25 deletions.
8 changes: 3 additions & 5 deletions EasyInject.xcodeproj/project.pbxproj
Expand Up @@ -67,7 +67,7 @@
__PBXFileRef_build /* build */ = {isa = PBXFileReference; lastKnownFileType = folder; path = build; sourceTree = "<group>"; };
__PBXFileRef_docs /* docs */ = {isa = PBXFileReference; lastKnownFileType = folder; path = docs; sourceTree = "<group>"; };
"_____Product_EasyInject" /* EasyInject.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; path = EasyInject.framework; sourceTree = BUILT_PRODUCTS_DIR; };
"_____Product_EasyInjectTests" /* EasyInjectTests.xctest */ = {isa = PBXFileReference; lastKnownFileType = file; path = EasyInjectTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
"_____Product_EasyInjectTests" /* EasyInjectTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; path = EasyInjectTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
Expand Down Expand Up @@ -300,7 +300,6 @@
PRODUCT_BUNDLE_IDENTIFIER = EasyInject;
PRODUCT_MODULE_NAME = "$(TARGET_NAME:c99extidentifier)";
PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
SWIFT_VERSION = 3.0;
};
name = Release;
};
Expand All @@ -313,7 +312,6 @@
LD_RUNPATH_SEARCH_PATHS = "@loader_path/../Frameworks";
OTHER_LDFLAGS = "$(inherited)";
OTHER_SWIFT_FLAGS = "$(inherited)";
SWIFT_VERSION = 3.0;
};
name = Release;
};
Expand All @@ -330,7 +328,6 @@
PRODUCT_MODULE_NAME = "$(TARGET_NAME:c99extidentifier)";
PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_VERSION = 3.0;
};
name = Debug;
};
Expand All @@ -344,21 +341,22 @@
OTHER_LDFLAGS = "$(inherited)";
OTHER_SWIFT_FLAGS = "$(inherited)";
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_VERSION = 3.0;
};
name = Debug;
};
"_____Release_" /* Release */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = __PBXFileRef_EasyInject.xcodeproj/Configs/Project.xcconfig /* EasyInject.xcodeproj/Configs/Project.xcconfig */;
buildSettings = {
SWIFT_VERSION = 2.3;
};
name = Release;
};
"_______Debug_" /* Debug */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = __PBXFileRef_EasyInject.xcodeproj/Configs/Project.xcconfig /* EasyInject.xcodeproj/Configs/Project.xcconfig */;
buildSettings = {
SWIFT_VERSION = 2.3;
};
name = Debug;
};
Expand Down
4 changes: 1 addition & 3 deletions Sources/LazyInjector.swift
Expand Up @@ -20,9 +20,7 @@ public struct LazyInjector<K: ProvidableKey>: InjectorDerivingFromMutableInjecto
public mutating func resolve(key key: Key) throws -> Providable {
guard let untyped = lazyProviders[key]
else { throw InjectionError<Key>.keyNotProvided(key) }
guard let typed = untyped as? LazilyInjectedProvider<LazyInjector>
else { throw InjectionError<Key>
.invalidInjection(key: key, injected: untyped, expected: LazilyInjectedProvider<LazyInjector>.self) }
let typed = untyped as! LazilyInjectedProvider<LazyInjector>
return try typed.resolve(withInjector: &self)
}
#endif
Expand Down
4 changes: 1 addition & 3 deletions Sources/StrictInjector.swift
Expand Up @@ -19,9 +19,7 @@ public struct StrictInjector<K: ProvidableKey>: InjectorDerivingFromMutableInjec
public mutating func resolve(key key: Key) throws -> Providable {
guard let untyped = strictProviders[key]
else { throw InjectionError<Key>.keyNotProvided(key) }
guard let typed = untyped as? StrictlyInjectedProvider<StrictInjector>
else { throw InjectionError<Key>
.invalidInjection(key: key, injected: untyped, expected: StrictlyInjectedProvider<StrictInjector>.self) }
let typed = untyped as! StrictlyInjectedProvider<StrictInjector>
return try typed.resolve(withInjector: &self)
}
#endif
Expand Down
Expand Up @@ -129,10 +129,10 @@
<section class="section">
<div class="section-content">

<p><a href=""><img src="https://img.shields.io/cocoapods/v/EasyInject.svg?maxAge=2592000?style=flat-square" alt="CocoaPods"></a>
<a href=""><img src="https://img.shields.io/cocoapods/p/EasyInject.svg?maxAge=2592000?style=flat-square" alt="CocoaPods"></a>
<p><a href=""><img src="https://img.shields.io/cocoapods/v/EasyInject.svg?maxAge=2592000&amp;style=flat-square" alt="CocoaPods"></a>
<a href=""><img src="https://img.shields.io/cocoapods/p/EasyInject.svg?maxAge=2592000&amp;style=flat-square" alt="CocoaPods"></a>
<a href=""><img src="https://img.shields.io/badge/install-SwiftPM%20%7C%20Carthage%20%7C%20Cocoapods-lightgrey.svg?style=flat-square" alt="Install"></a>
<a href=""><img src="https://img.shields.io/cocoapods/l/EasyInject.svg?maxAge=2592000?style=flat-square" alt="License"></a></p>
<a href=""><img src="https://img.shields.io/cocoapods/l/EasyInject.svg?maxAge=2592000&amp;style=flat-square" alt="License"></a></p>
<a href='#easyinject' class='anchor' aria-hidden=true><span class="header-anchor"></span></a><h1 id='easyinject'>EasyInject</h1>

<p>EasyInject is designed to be an easy to use, lightweight composition and dependency injection library.
Expand All @@ -141,25 +141,26 @@
<p>Check out the generated docs at <a href="https://vknabel.github.io/EasyInject/">vknabel.github.io/EasyInject</a>.</p>
<a href='#installation' class='anchor' aria-hidden=true><span class="header-anchor"></span></a><h2 id='installation'>Installation</h2>

<p>EasyInject is a Swift only project and supports <a href="https://github.com/apple/swift-package-manager">Swift Package Manager</a>, <a href="https://github.com/Carthage/Carthage">Carthage</a> and <a href="https://github.com/CocoaPods/CocoaPods">CocoaPods</a>.</p>
<p>EasyInject is a Swift only project and supports <a href="https://github.com/apple/swift-package-manager">Swift Package Manager</a>, <a href="https://github.com/Carthage/Carthage">Carthage</a> and <a href="https://github.com/CocoaPods/CocoaPods">CocoaPods</a>.
As long as EasyInject hasn&rsquo;t reached version 1.0.0, each minor release will be a breaking release, whereas patch level releases will only include bugfixes and API additions.</p>
<a href='#swift-package-manager' class='anchor' aria-hidden=true><span class="header-anchor"></span></a><h3 id='swift-package-manager'>Swift Package Manager</h3>
<pre class="highlight swift"><code><span class="kd">import</span> <span class="kt">PackageDescription</span>

<span class="k">let</span> <span class="nv">package</span> <span class="o">=</span> <span class="kt">Package</span><span class="p">(</span>
<span class="nv">name</span><span class="p">:</span> <span class="s">"YourPackage"</span><span class="p">,</span>
<span class="nv">dependencies</span><span class="p">:</span> <span class="p">[</span>
<span class="o">.</span><span class="kt">Package</span><span class="p">(</span><span class="nv">url</span><span class="p">:</span> <span class="s">"https://github.com/vknabel/EasyInject.git"</span><span class="p">,</span> <span class="nv">majorVersion</span><span class="p">:</span> <span class="mi">0</span><span class="p">,</span> <span class="nv">minor</span><span class="p">:</span> <span class="mi">6</span><span class="p">)</span>
<span class="o">.</span><span class="kt">Package</span><span class="p">(</span><span class="nv">url</span><span class="p">:</span> <span class="s">"https://github.com/vknabel/EasyInject.git"</span><span class="p">,</span> <span class="nv">majorVersion</span><span class="p">:</span> <span class="mi">0</span><span class="p">,</span> <span class="nv">minor</span><span class="p">:</span> <span class="mi">7</span><span class="p">)</span>
<span class="p">]</span>
<span class="p">)</span>
</code></pre>
<a href='#carthage' class='anchor' aria-hidden=true><span class="header-anchor"></span></a><h3 id='carthage'>Carthage</h3>
<pre class="highlight ruby"><code><span class="n">github</span> <span class="s2">"vknabel/EasyInject"</span> <span class="o">~&gt;</span> <span class="mi">0</span><span class="o">.</span><span class="mi">6</span>
<pre class="highlight ruby"><code><span class="n">github</span> <span class="s2">"vknabel/EasyInject"</span> <span class="o">~&gt;</span> <span class="mi">0</span><span class="o">.</span><span class="mi">7</span>
</code></pre>
<a href='#cocoapods' class='anchor' aria-hidden=true><span class="header-anchor"></span></a><h3 id='cocoapods'>CocoaPods</h3>
<pre class="highlight ruby"><code><span class="n">source</span> <span class="s1">'https://github.com/CocoaPods/Specs.git'</span>
<span class="n">use_frameworks!</span>

<span class="n">pod</span> <span class="s1">'EasyInject'</span><span class="p">,</span> <span class="s1">'~&gt; 0.6'</span>
<span class="n">pod</span> <span class="s1">'EasyInject'</span><span class="p">,</span> <span class="s1">'~&gt; 0.7'</span>
</code></pre>
<a href='#introduction' class='anchor' aria-hidden=true><span class="header-anchor"></span></a><h2 id='introduction'>Introduction</h2>

Expand Down
Binary file modified docs/docsets/EasyInject.tgz
Binary file not shown.
15 changes: 8 additions & 7 deletions docs/index.html
Expand Up @@ -129,10 +129,10 @@
<section class="section">
<div class="section-content">

<p><a href=""><img src="https://img.shields.io/cocoapods/v/EasyInject.svg?maxAge=2592000?style=flat-square" alt="CocoaPods"></a>
<a href=""><img src="https://img.shields.io/cocoapods/p/EasyInject.svg?maxAge=2592000?style=flat-square" alt="CocoaPods"></a>
<p><a href=""><img src="https://img.shields.io/cocoapods/v/EasyInject.svg?maxAge=2592000&amp;style=flat-square" alt="CocoaPods"></a>
<a href=""><img src="https://img.shields.io/cocoapods/p/EasyInject.svg?maxAge=2592000&amp;style=flat-square" alt="CocoaPods"></a>
<a href=""><img src="https://img.shields.io/badge/install-SwiftPM%20%7C%20Carthage%20%7C%20Cocoapods-lightgrey.svg?style=flat-square" alt="Install"></a>
<a href=""><img src="https://img.shields.io/cocoapods/l/EasyInject.svg?maxAge=2592000?style=flat-square" alt="License"></a></p>
<a href=""><img src="https://img.shields.io/cocoapods/l/EasyInject.svg?maxAge=2592000&amp;style=flat-square" alt="License"></a></p>
<a href='#easyinject' class='anchor' aria-hidden=true><span class="header-anchor"></span></a><h1 id='easyinject'>EasyInject</h1>

<p>EasyInject is designed to be an easy to use, lightweight composition and dependency injection library.
Expand All @@ -141,25 +141,26 @@
<p>Check out the generated docs at <a href="https://vknabel.github.io/EasyInject/">vknabel.github.io/EasyInject</a>.</p>
<a href='#installation' class='anchor' aria-hidden=true><span class="header-anchor"></span></a><h2 id='installation'>Installation</h2>

<p>EasyInject is a Swift only project and supports <a href="https://github.com/apple/swift-package-manager">Swift Package Manager</a>, <a href="https://github.com/Carthage/Carthage">Carthage</a> and <a href="https://github.com/CocoaPods/CocoaPods">CocoaPods</a>.</p>
<p>EasyInject is a Swift only project and supports <a href="https://github.com/apple/swift-package-manager">Swift Package Manager</a>, <a href="https://github.com/Carthage/Carthage">Carthage</a> and <a href="https://github.com/CocoaPods/CocoaPods">CocoaPods</a>.
As long as EasyInject hasn&rsquo;t reached version 1.0.0, each minor release will be a breaking release, whereas patch level releases will only include bugfixes and API additions.</p>
<a href='#swift-package-manager' class='anchor' aria-hidden=true><span class="header-anchor"></span></a><h3 id='swift-package-manager'>Swift Package Manager</h3>
<pre class="highlight swift"><code><span class="kd">import</span> <span class="kt">PackageDescription</span>

<span class="k">let</span> <span class="nv">package</span> <span class="o">=</span> <span class="kt">Package</span><span class="p">(</span>
<span class="nv">name</span><span class="p">:</span> <span class="s">"YourPackage"</span><span class="p">,</span>
<span class="nv">dependencies</span><span class="p">:</span> <span class="p">[</span>
<span class="o">.</span><span class="kt">Package</span><span class="p">(</span><span class="nv">url</span><span class="p">:</span> <span class="s">"https://github.com/vknabel/EasyInject.git"</span><span class="p">,</span> <span class="nv">majorVersion</span><span class="p">:</span> <span class="mi">0</span><span class="p">,</span> <span class="nv">minor</span><span class="p">:</span> <span class="mi">6</span><span class="p">)</span>
<span class="o">.</span><span class="kt">Package</span><span class="p">(</span><span class="nv">url</span><span class="p">:</span> <span class="s">"https://github.com/vknabel/EasyInject.git"</span><span class="p">,</span> <span class="nv">majorVersion</span><span class="p">:</span> <span class="mi">0</span><span class="p">,</span> <span class="nv">minor</span><span class="p">:</span> <span class="mi">7</span><span class="p">)</span>
<span class="p">]</span>
<span class="p">)</span>
</code></pre>
<a href='#carthage' class='anchor' aria-hidden=true><span class="header-anchor"></span></a><h3 id='carthage'>Carthage</h3>
<pre class="highlight ruby"><code><span class="n">github</span> <span class="s2">"vknabel/EasyInject"</span> <span class="o">~&gt;</span> <span class="mi">0</span><span class="o">.</span><span class="mi">6</span>
<pre class="highlight ruby"><code><span class="n">github</span> <span class="s2">"vknabel/EasyInject"</span> <span class="o">~&gt;</span> <span class="mi">0</span><span class="o">.</span><span class="mi">7</span>
</code></pre>
<a href='#cocoapods' class='anchor' aria-hidden=true><span class="header-anchor"></span></a><h3 id='cocoapods'>CocoaPods</h3>
<pre class="highlight ruby"><code><span class="n">source</span> <span class="s1">'https://github.com/CocoaPods/Specs.git'</span>
<span class="n">use_frameworks!</span>

<span class="n">pod</span> <span class="s1">'EasyInject'</span><span class="p">,</span> <span class="s1">'~&gt; 0.6'</span>
<span class="n">pod</span> <span class="s1">'EasyInject'</span><span class="p">,</span> <span class="s1">'~&gt; 0.7'</span>
</code></pre>
<a href='#introduction' class='anchor' aria-hidden=true><span class="header-anchor"></span></a><h2 id='introduction'>Introduction</h2>

Expand Down

0 comments on commit 16e9a05

Please sign in to comment.