Skip to content
This repository has been archived by the owner on Jun 13, 2024. It is now read-only.

Making configure static #27

Merged
merged 71 commits into from
Jun 30, 2017
Merged

Making configure static #27

merged 71 commits into from
Jun 30, 2017

Conversation

mikelikespie
Copy link
Contributor

Also makes Components constructed via ComponentFactory now

WIP separating validation logic from Graph. Sub-components are now easily validatable

cc @holmes @sebastianv1

@coveralls
Copy link

Coverage Status

Coverage increased (+5.3%) to 90.934% when pulling 980cc45 on static-configure into f8fd844 on components.

@@ -1,5 +1,5 @@
//
// Subcomponent.swift
// Component.swift
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rename this file to Component.swift

@coveralls
Copy link

Coverage Status

Coverage increased (+2.8%) to 88.43% when pulling 6b510d8 on static-configure into f8fd844 on components.

_ = try ComponentFactory.of(BadComponent)
XCTFail("Should not succeed")
} catch let e {

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there an easy way to assert error messages?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I need to copy what we're doing in ErrorTest... which is what's going to happen before merging

@holmes
Copy link
Collaborator

holmes commented Jul 20, 2016

:shipit:

@coveralls
Copy link

Coverage Status

Coverage increased (+5.3%) to 90.97% when pulling b90657a on static-configure into f8fd844 on components.

@coveralls
Copy link

Coverage Status

Coverage increased (+5.8%) to 91.408% when pulling 47ab86d on static-configure into f8fd844 on components.

mikelikespie and others added 27 commits January 6, 2017 15:34
 * Simplified DSL (configure function)
 * Binders now have scopes. One can only scope things for the binder
   that is scoping it
 * Scope has to be passed along to modules from component
 * Language can enforce scoping now! this means validations can be
   removed
 * Removed "Scoped" protocol. This created ambiguity
change some access levels to public to prevent optimization out
Combines the 2 files into a main.swift and runs swift on it. The file
overwrites the existing files.
Updates the code to Swift 3.1, and the bindings to the latest in Cleanse.
Leave a note that docs are out of date
Swift 3 Support: code & examples

Docs coming soon...
@holmes holmes changed the base branch from components to master June 30, 2017 18:01
@holmes holmes merged commit 926ab4e into master Jun 30, 2017
@holmes holmes deleted the static-configure branch June 30, 2017 18:02
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants