Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

minor refactoring #223

Open
wants to merge 728 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
728 commits
Select commit Hold shift + click to select a range
b8ae8ca
Replaced prefix string funcs with end and begins
kjessup May 17, 2016
d1181d9
Linux compilation fixup
kjessup May 17, 2016
df6b97b
Fixed 2.2 compilation
kjessup May 17, 2016
26af928
Linux compilation
kjessup May 17, 2016
2c84921
Merge branch 'master' of https://github.com/PerfectlySoft/Perfect
kjessup May 17, 2016
e2bbbb7
Replaced string.substring with subscript. For Linux
kjessup May 17, 2016
dabeae0
Ubuntu 15 building again
kjessup May 17, 2016
f4dbc1e
Took care of compilation differences between U14 and 15
kjessup May 17, 2016
56ee991
SPM support improvement. Now uses hoembrew ssl and tests build and run.
kjessup May 22, 2016
b56ab53
Updated for Linux build
kjessup May 22, 2016
447a29c
Tweaks to get tests running on Linux. Included Foundation for path co…
kjessup May 24, 2016
6a316de
Re-enabled path components for OSX because @#$%^
kjessup May 24, 2016
bd2bcd9
Fixed regression in FastCGI connection handling
kjessup May 24, 2016
6a5f0cd
Swapped out ntohl et al in favor of Swift local swapping
kjessup May 24, 2016
951ce4a
Improved performance when using NetTCP.readSomeBytes
kjessup May 24, 2016
d52855b
Performance improvements in MIMEReader + 2/3 compat in Mustache
kjessup May 24, 2016
d3a9e39
Performance improvements for HTTP header parsing. Added header parse …
kjessup May 25, 2016
580c54b
Fixed attributes file for linguist-vendored
kjessup May 25, 2016
78417bd
Fixed attributes file for linguist-vendored
kjessup May 25, 2016
8cac817
Added mustache template caching with r/w lock. Tidied up a little code.
kjessup May 25, 2016
e63e609
gitattributes tweak
kjessup May 25, 2016
4ad1795
Further performance tweaks
kjessup May 26, 2016
cc7a274
Added header tests to allTests array
kjessup May 26, 2016
8532a45
Header tests all passing again
kjessup May 26, 2016
0923eee
NetEvent timeouts working on Linux
kjessup May 26, 2016
aaf2f56
Added file function and line number to Throw funcs
kjessup May 26, 2016
0a3e015
All tests passing on Linux
kjessup May 26, 2016
b55e670
Removed obsolete LinuxBridge. Corrected comments in Routing
kjessup May 27, 2016
ac36969
Ubuntu 14 compat with OpenSSL
kjessup May 27, 2016
8997191
corrected a couple inconsistencies in ThreadQueue
kjessup May 27, 2016
c008672
Switch to WebRequest.Method
kjessup May 27, 2016
f9f47fd
Reporting for invalid routes
kjessup May 27, 2016
dc036f2
Added routing trailing wildcard to match any path. Added routing tests.
kjessup May 30, 2016
421924d
Slight tweak to PerfectServer to enable simpler initialization
kjessup May 30, 2016
ecace6a
Updated readme to include PerfectTemplate, etc
kjessup May 30, 2016
e735688
Removed comment
kjessup May 31, 2016
b4121e0
Updated README.md
kjessup May 31, 2016
637e475
Took care of 3.0 preview 1 warnings and an error
kjessup May 31, 2016
c7d3ef6
Added a comment WRT UInt8.hexString to note how it differs from Strin…
kjessup May 31, 2016
dd05a46
Added user/group id switching with PerfectServer.switchTo. Exposed to…
kjessup May 31, 2016
c04adfd
ETag support for StaticFileHandler
kjessup May 31, 2016
a60559f
Refactor StaticFileHandler a little
kjessup Jun 1, 2016
5169a11
Minor formatting and code cleanup
kjessup Jun 1, 2016
b9bb26d
Fixed compilation issue with SPM
kjessup Jun 1, 2016
1865774
update Routes usage description
taplin Jun 1, 2016
9b0aaef
Merge remote-tracking branch 'origin/master'
taplin Jun 1, 2016
ed2b0c6
merge updates to routes description
taplin Jun 1, 2016
4a9040b
Update README.md
kjessup Jun 1, 2016
eea3643
Change mustache API to support async value generation
kjessup Jun 2, 2016
bb37c03
Merge branch 'master' of https://github.com/PerfectlySoft/Perfect
kjessup Jun 2, 2016
f10cdc0
Corrected typo in doc comment
kjessup Jun 2, 2016
2ff0334
Fixed bad deallocation in File. Updated mustache test for API change.
kjessup Jun 2, 2016
84d3252
Removed new compiler warnings in test code. Added additional CURL test
kjessup Jun 2, 2016
bfeb557
Changed to compile with swift-DEVELOPMENT-SNAPSHOT-2016-05-31-a
kjessup Jun 2, 2016
7d64165
Package version range
kjessup Jun 2, 2016
4284e3d
added .swift-version
kjessup Jun 3, 2016
10364c1
the new way of swift 3.0 to generate xcodeproj
kingiol Jun 3, 2016
0d11621
Merge pull request #182 from kingiol/master
kjessup Jun 3, 2016
5688736
Updated README to note proper toolchain
kjessup Jun 3, 2016
4d90ae5
Deleted unused image files
kjessup Jun 3, 2016
09f9cca
Removed Net/Thread code in favor of external modules. Removed Xcode p…
kjessup Jun 6, 2016
85d7e17
Split curl off into its own module. Removed Closable as it just wasn'…
kjessup Jun 6, 2016
82e1a76
Removed curl tests. Unified a file.
kjessup Jun 7, 2016
00154de
Refactored pathExtension extensions to remove duplicate code (thanks …
kjessup Jun 7, 2016
098435e
Removed some obsolete Swift compat code
kjessup Jun 7, 2016
01564c9
Refactored uuid from pointer creation
kjessup Jun 7, 2016
fd65297
File refactoring
kjessup Jun 7, 2016
2776c1e
Some WebRequest refactoring
kjessup Jun 7, 2016
6c13a46
Added a test. Some WebRequest refactoring
kjessup Jun 7, 2016
79af8f4
Fixed regression in File
kjessup Jun 7, 2016
9f2fe91
WebRequest refactoring
kjessup Jun 7, 2016
ee4e88b
Mustache partials now use template cache
kjessup Jun 7, 2016
ca01483
A bit of WebRequest cleanup
kjessup Jun 7, 2016
c3d10d5
A little cleanup and try to get jazzy working better
kjessup Jun 7, 2016
b3fea2d
Updated to newest Swift snapshot
kjessup Jun 7, 2016
0a8479d
Removed warnings for Linux compilation
kjessup Jun 7, 2016
167a401
Removed warnings for Linux compilation
kjessup Jun 7, 2016
cbf290b
Corrected multiple definition Linux compilation problem
kjessup Jun 8, 2016
37d2341
Updated README
kjessup Jun 8, 2016
7c8a97b
Updated README for dep changes.
kjessup Jun 8, 2016
9074fc1
Updated README
kjessup Jun 9, 2016
2b82b8b
Lower cased all enums to match lang guidelines
kjessup Jun 10, 2016
b0bc105
Fixed an error where mustache partials would fail due to relative and…
rymcol Jun 10, 2016
1c52e24
Merge pull request #186 from rymcol/mustache-partial-filepath
kjessup Jun 10, 2016
7372692
Updated README with new banner
kjessup Jun 13, 2016
faa8ac8
Some code cleanup and performance improvements
kjessup Jun 14, 2016
56d4d78
Updated tests
kjessup Jun 16, 2016
ff423df
Updated test for Linux
kjessup Jun 16, 2016
502e7c2
Updated README
kjessup Jun 16, 2016
37e143e
Updated README
kjessup Jun 16, 2016
3ac448f
Updated README
kjessup Jun 16, 2016
cf51807
Updated README
kjessup Jun 16, 2016
17fe188
Updated README
kjessup Jun 16, 2016
df97862
Made MimeType public
kjessup Jun 16, 2016
5f222fe
Cleaned up cookie expiration specification
kjessup Jun 16, 2016
133f3db
Updated README with Next Steps
kjessup Jun 16, 2016
81a57a1
Updated comments
kjessup Jun 16, 2016
3cef75d
Added and cleaned up some comments
kjessup Jun 17, 2016
3ff39e1
Added and cleaned up some comments
kjessup Jun 17, 2016
7b79bf0
Readme Main Banner Link
rymcol Jun 17, 2016
9ca9049
Merge pull request #193 from rymcol/readme-banner-link
kjessup Jun 19, 2016
3c31b5b
added @discardableResult to a few funcs
kjessup Jun 19, 2016
c3ee0d1
Update README.md
kjessup Jun 21, 2016
57b2007
update Routes usage description
JoeFerrucci Jun 22, 2016
21dfa3a
Merge pull request #197 from JoeFerrucci/master
kjessup Jun 22, 2016
5687e46
HTTP refactoring
kjessup Jun 23, 2016
946a8bd
HTTP refactoring
kjessup Jun 23, 2016
683e876
Reapplying headers as enum
kjessup Jun 23, 2016
a25ee9d
Performance tweaks
kjessup Jun 24, 2016
4ddf044
Added slow client test. Fixed a bug the slow client test found.
kjessup Jun 24, 2016
ce93daa
Using 'where' and 'guard' to remove pyramid of doom created by if els…
CoderXpert Jun 24, 2016
eae3ba0
using defer inside for loop for statements which need to execute in e…
CoderXpert Jun 24, 2016
23c9c45
Merge pull request #199 from CoderXpert/dir_refactor
kjessup Jun 25, 2016
f27ac6b
Updated for 6-20 snapshot
kjessup Jun 25, 2016
d8e38f7
Updated for 6-20 snapshot
kjessup Jun 25, 2016
0dff0c7
Updated for 6-20 snapshot
kjessup Jun 25, 2016
41f44ce
Merge branch 'http_refactor'
kjessup Jun 25, 2016
8f5c50b
Access tweaks
kjessup Jun 26, 2016
5e75906
Tweaked access
kjessup Jun 26, 2016
d7b5bcf
Badges stuff
kjessup Jun 26, 2016
22b8b87
A little code cleanup. Added some tests.
kjessup Jun 26, 2016
b7208ba
A little code cleanup.
kjessup Jun 26, 2016
0e7aa45
refactor dynamic loader class to look more like Swifty, by replacing …
CoderXpert Jun 26, 2016
7123fbd
Refactoring few methods in File.swift to use guard syntax to avoid py…
CoderXpert Jun 26, 2016
3c44c68
Updated README
kjessup Jun 27, 2016
7add841
Merge pull request #200 from CoderXpert/refactor_dynamicloader
kjessup Jun 27, 2016
46776c6
Merge pull request #201 from CoderXpert/file_refactor
kjessup Jun 27, 2016
4fd8ffd
Add reference to libssl-dev
iamjono Jun 27, 2016
733d563
HTTPResponseStatus.code
kjessup Jun 27, 2016
fd5ad2e
Renamed HTTPMethod.from. Made it public
kjessup Jun 28, 2016
b457d53
Fixed bad header name check in addHeader
kjessup Jun 28, 2016
8a2c7dd
Updated README
kjessup Jun 29, 2016
09423b6
Updated README with more detailed instructions
kjessup Jun 29, 2016
c7724d4
Fixed regression in httpresponse relating to content-length header
kjessup Jul 1, 2016
275db6b
Corrected problem with not setting content-length on keep-alive. Impr…
kjessup Jul 1, 2016
af2885b
Fix regression in StaticFileHandler when serving byte ranges
kjessup Jul 2, 2016
0075c42
HTTP request filters
kjessup Jul 4, 2016
9c98caa
HTTP response filters. Tests. Routing.reset()
kjessup Jul 5, 2016
45c02bf
Additional test: streaming response filters
kjessup Jul 5, 2016
bd0e14e
Doc comments for new code
kjessup Jul 5, 2016
38dbe45
Updated README
kjessup Jul 5, 2016
1dc517d
Updated README
kjessup Jul 5, 2016
0b7ef6d
Filtering api tweak
kjessup Jul 5, 2016
fc377b5
Minor code refactoring
kjessup Jul 5, 2016
7b06775
Minor code refactoring
kjessup Jul 5, 2016
d291ae2
Added syslog facility
kjessup Jul 5, 2016
a1e182e
Added syslog facility
kjessup Jul 5, 2016
5eccf86
Added syslog facility
kjessup Jul 5, 2016
8acbdf1
Log related facilities
kjessup Jul 6, 2016
cf2cc0e
Added support for tilde expansion in file and direcotry paths
kjessup Jul 6, 2016
886da1d
Additional tweak for tilde expansion in paths
kjessup Jul 6, 2016
142d5cb
Factored out HTTP things.
kjessup Jul 7, 2016
b5d3f72
Updated README
kjessup Jul 7, 2016
1e79cde
Fixed README problem
kjessup Jul 7, 2016
2acb42a
Fixed README problem
kjessup Jul 7, 2016
3c6136a
Updated README
kjessup Jul 8, 2016
4d885b7
Added a few more snippets to README
kjessup Jul 8, 2016
aac40b7
Updated README example
kjessup Jul 9, 2016
64b202c
Cleaned up UUID related meterials
kjessup Jul 10, 2016
2bcfe9d
Little code clean
kjessup Jul 10, 2016
2433033
Updated README
kjessup Jul 12, 2016
c3f92f7
Fixed test which was crashing Linux + a bad test
kjessup Jul 12, 2016
969253a
Made a few Dir funcs be vars instead. Cleaned up UUID related @availa…
kjessup Jul 13, 2016
53123ca
Added higher level file/dir permissions. Added test.
kjessup Jul 13, 2016
4a4f828
Linux compilation issues
kjessup Jul 13, 2016
719e605
Update README.md
kjessup Jul 14, 2016
f064099
Added throws on Dir.forEachEntry
kjessup Jul 15, 2016
fcb547b
Added retry for SysProcess EINTR. Added Dir.workingDir
kjessup Jul 15, 2016
b261b01
Fixed SysProcess closing before error info can be read
kjessup Jul 15, 2016
5221191
Adjusted stringByEncodingHTML to output BR for line breaks
kjessup Jul 18, 2016
5b45384
Added a Bytes test
kjessup Jul 25, 2016
d73f0d3
Updated for 07-25 chain
kjessup Jul 26, 2016
c8d4732
Updated for 07-25 chain
kjessup Jul 26, 2016
27ba77b
UPdated for 07-25 chain
kjessup Jul 26, 2016
65b39c1
Some Linux fixes
kjessup Jul 26, 2016
b1324dc
Abstracted over some lingering Linux/macOS Foundation differences
kjessup Jul 26, 2016
8676e4f
Linux ping pong
kjessup Jul 26, 2016
55f9860
Update README.md
kjessup Jul 27, 2016
c511664
current the freudian slip
iamjono Jul 27, 2016
6d2c95d
Merge branch 'master' of https://github.com/PerfectlySoft/Perfect
iamjono Jul 27, 2016
914beed
add issues location
iamjono Jul 27, 2016
9a46b92
Added Int32 & Int64 Extensions
rymcol Aug 1, 2016
e4329b4
Merge pull request #214 from rymcol/JSON-Int32-Int64
kjessup Aug 2, 2016
c0257d4
Updated for 8-04
kjessup Aug 5, 2016
44c8185
Updated for 8-04
kjessup Aug 8, 2016
e242d32
Update README.md
kjessup Aug 8, 2016
53876f4
Permit direct access to File fd
kjessup Aug 10, 2016
50fcf21
Removed dependency on Net. Re-added custom file path extensions
kjessup Aug 17, 2016
198d95b
Re-added initializeServices for compat
kjessup Aug 17, 2016
3798b3f
Corrected compat func
kjessup Aug 17, 2016
9bffaae
Update README.md
kjessup Aug 17, 2016
658208e
Fixed Linux testing
kjessup Aug 17, 2016
7611253
Update README.md
kjessup Aug 19, 2016
9142666
Opened class JSONConvertible
kjessup Aug 19, 2016
a6e9bf8
Merge branch 'master' of https://github.com/PerfectlySoft/PerfectLib
kjessup Aug 19, 2016
bd51c3b
Incoming edits from Liam
iamjono Aug 19, 2016
80ab238
Update to correct toolchain version
iamjono Aug 19, 2016
42f25ac
Updated for 8-18 toolchain
kjessup Aug 19, 2016
31202e1
Updated readme
kjessup Aug 19, 2016
0e1076b
update with new banners
iamjono Aug 22, 2016
55e7c27
hardcoding size
iamjono Aug 22, 2016
2def842
adding slack
iamjono Aug 22, 2016
f5753fb
formatting
iamjono Aug 22, 2016
7b93ffb
Create CODE_OF_CONDUCT.md
iamjono Aug 22, 2016
0c5debe
Adding code of conduct link, organizing repo mentions
iamjono Aug 22, 2016
eea880b
Slight change to current version presentation
iamjono Aug 22, 2016
e9d5ff7
Center Readme Badges
rymcol Aug 22, 2016
b536bbd
Center Top Images
rymcol Aug 22, 2016
0e795cc
STAY ON THE REPO
rymcol Aug 22, 2016
25ffb31
modifiable interface for child object
scorovit Aug 23, 2016
e04050e
Small grammar update to make the API docs more readable
iamjono Aug 23, 2016
f3d10de
Merge remote-tracking branch 'origin/master'
iamjono Aug 23, 2016
ceed6ce
Merge pull request #215 from rymcol/badges
iamjono Aug 23, 2016
87a54d5
Updating swift snapshot version to 08-23
iamjono Aug 24, 2016
634b7d8
Updated JSON methods in JSONConvertibleObject to
Kumuluzz Aug 24, 2016
cc0d291
Merge pull request #216 from scorovit/patch-1
iamjono Aug 25, 2016
51cc4b3
JSONConvertibleObject properly sub-classable
kjessup Aug 25, 2016
30323ad
Merge pull request #217 from Kumuluzz/master
iamjono Aug 30, 2016
12bfa17
Update README.md
kjessup Sep 1, 2016
dbc361a
Pinned dep versions
kjessup Sep 6, 2016
e79a2ee
Update README.md
kjessup Sep 6, 2016
a713f80
add new banner
iamjono Sep 12, 2016
f76adb1
correct size
iamjono Sep 12, 2016
371a4f8
update toolchain
iamjono Sep 12, 2016
41e1594
Update README.md
kjessup Sep 22, 2016
c83eab0
Update README.md
kjessup Sep 22, 2016
f68a50d
Update README.md
kjessup Sep 22, 2016
7dff05f
Essential Translation with README & CODE_OF_CONDUCT
RockfordWei Sep 27, 2016
16bd271
LICENSE file translated into simplified Chinese
RockfordWei Sep 28, 2016
9249798
Merge pull request #220 from RockfordWei/master
kjessup Oct 3, 2016
dd2e981
Added utf8 decoder variant
kjessup Oct 6, 2016
bc24b90
Added a few missing doc comments
kjessup Oct 13, 2016
ef2ed58
replace gitter with SO
iamjono Oct 19, 2016
a669ec5
deprecating gitter
iamjono Oct 19, 2016
984d4ba
again
iamjono Oct 19, 2016
2862b84
Fixed compilation warning
kjessup Oct 24, 2016
7d2fa55
Perfect Examples references
iamjono Oct 24, 2016
d6a2e28
Updated the Chinese translation.
RockfordWei Oct 25, 2016
792df7e
Merge pull request #221 from RockfordWei/master
iamjono Oct 25, 2016
e0cb262
Update README.md
kjessup Nov 2, 2016
5ad3873
Update README.md
kjessup Nov 2, 2016
2a55361
Corrected waitpid status code handling
kjessup Nov 8, 2016
4e3e288
Update README.zh_CN.md
Nov 9, 2016
e99e427
Made a better title translation
Nov 20, 2016
2552d79
Better safeguards in File.resolveTilde
kjessup Nov 28, 2016
7aea6c5
File.linkTo
kjessup Dec 16, 2016
26a330e
minor refactoring
adamnemecek Dec 17, 2016
a255601
* refactorings
adamnemecek Dec 17, 2016
6901566
* refactorings
adamnemecek Dec 17, 2016
5e717ac
* refactoring json convertible
adamnemecek Dec 17, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Sources/LinuxBridge/* linguist-vendored
Sources/OpenSSL/* linguist-vendored
Sources/cURL/* linguist-vendored
Xcode/PerfectLib/* linguist-vendored
25 changes: 25 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ DerivedData
*.hmap
*.ipa
*.xcuserstate
*.xcscmblueprint

# CocoaPods
#
Expand All @@ -31,3 +32,27 @@ DerivedData
# Carthage/Checkouts

Carthage/Build

*.d

*.o

*.swiftdeps

*.swiftdoc

*.swiftmodule

*.so

*.DS_Store

# Perfect binaries
PerfectServer/perfectserverfcgi
PerfectServer/perfectserverhttp

# SwiftPM
.build/
Packages/
PerfectLib.xcodeproj/
docs/
8 changes: 8 additions & 0 deletions .jazzy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
module: PerfectLib
author: PerfectlySoft
author_url: https://perfect.org
github_url: https://github.com/PerfectlySoft/Perfect
copyright: '© 2016 PerfectlySoft Inc. and the Perfect project authors'
theme: fullwidth
xcodebuild_arguments: [-target, PerfectLib, -toolchain, org.swift.3020160620a]
clean: true
74 changes: 74 additions & 0 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
# Contributor Covenant Code of Conduct

## Our Pledge

In the interest of fostering an open and welcoming environment, we as
contributors and maintainers pledge to making participation in our project and
our community a harassment-free experience for everyone, regardless of age, body
size, disability, ethnicity, gender identity and expression, level of experience,
nationality, personal appearance, race, religion, or sexual identity and
orientation.

## Our Standards

Examples of behavior that contributes to creating a positive environment
include:

* Using welcoming and inclusive language
* Being respectful of differing viewpoints and experiences
* Gracefully accepting constructive criticism
* Focusing on what is best for the community
* Showing empathy towards other community members

Examples of unacceptable behavior by participants include:

* The use of sexualized language or imagery and unwelcome sexual attention or
advances
* Trolling, insulting/derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or electronic
address, without explicit permission
* Other conduct which could reasonably be considered inappropriate in a
professional setting

## Our Responsibilities

Project maintainers are responsible for clarifying the standards of acceptable
behavior and are expected to take appropriate and fair corrective action in
response to any instances of unacceptable behavior.

Project maintainers have the right and responsibility to remove, edit, or
reject comments, commits, code, wiki edits, issues, and other contributions
that are not aligned to this Code of Conduct, or to ban temporarily or
permanently any contributor for other behaviors that they deem inappropriate,
threatening, offensive, or harmful.

## Scope

This Code of Conduct applies both within project spaces and in public spaces
when an individual is representing the project or its community. Examples of
representing a project or community include using an official project e-mail
address, posting via an official social media account, or acting as an appointed
representative at an online or offline event. Representation of a project may be
further defined and clarified by project maintainers.

## Enforcement

Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported by contacting the project team at [mailto:[email protected]]. All
complaints will be reviewed and investigated and will result in a response that
is deemed necessary and appropriate to the circumstances. The project team is
obligated to maintain confidentiality with regard to the reporter of an incident.
Further details of specific enforcement policies may be posted separately.

Project maintainers who do not follow or enforce the Code of Conduct in good
faith may face temporary or permanent repercussions as determined by other
members of the project's leadership.

## Attribution

This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
available at [http://contributor-covenant.org/version/1/4][version]

[homepage]: http://contributor-covenant.org
[version]: http://contributor-covenant.org/version/1/4/
53 changes: 53 additions & 0 deletions CODE_OF_CONDUCT.zh_CN.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# 贡献者行为规范

## 我们的承诺

为了实现一个开放、和谐的软件开发环境,作为该软件的贡献者和版本维护者,我们保证在社区参与项目的过
程中,对所有人一视同仁。在社区中,任何人,无论年龄、身材、长相,或者身体是否有缺陷;无论种族、
性别和学历出身;无论国籍、血统、宗教信仰和任何性取向,我们都承诺避免任何骚扰和歧视。

## 我们的标准

为创造良好的开发环境,我们鼓励:

* 采用友好的语言,秉持包容的态度
* 充分尊重不同的观点和对问题的不同看法
* 耐心接纳建设性批评
* 关注于为社区未来提高产品价值
* 对其他社区成员保持同情心

无法接受的行为包括:

* 淫秽言语或低级下流的措辞
* 恶意评论,针对人身和政治观点的言语攻击
* 公开或私下的言语骚扰
* 未经许可公布他人隐私,包括实际住址或电子地址
* 从专业角度考虑的其他不正当行为

## 我们的责任

项目管理维护人员有义务澄清本行为规范,并针对任何不当行为采取必要措施进行纠正。

项目管理维护人员有权并有义务删除、修改、抵制任何不符合本行为规范的评论、代码内容、文字提交和各类
报告P,也有权因其各种如恐吓、侵犯或者伤害的不当行为暂时或永久屏蔽违规账号。

## 适用范围

本行为规范适用于任何本项目或本项目所在社区空间内的公众行为,如公众邮件账号、公众社交媒体账号,
或者用于在线和离线活动中的委托代表。项目管理维护人员可以根据需要澄清或委派项目代表。

## 加强措施

任何不当言论、骚扰和其他不可接受的不当行为都可以通过[mailto:[email protected]]进行举报。所有
投诉均会被审理并根据需要进行调查。项目团队有义务为举报者身份保密。更多加强措施会在其他文件中单独
公开。

对于不遵守本行为规范的项目管理人员,本项目其他领导成员可能会临时或永久取消其管理权。

## 文件归属

本文节选自 [Contributor Covenant][homepage], version 1.4,
可从以下网址查看: [http://contributor-covenant.org/version/1/4][version]

[homepage]: http://contributor-covenant.org
[version]: http://contributor-covenant.org/version/1/4/
1 change: 0 additions & 1 deletion Connectors/MongoDB/README.md

This file was deleted.

1 change: 0 additions & 1 deletion Connectors/MySQL/README.md

This file was deleted.

1 change: 0 additions & 1 deletion Connectors/PostgreSQL/README.md

This file was deleted.

1 change: 0 additions & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -199,4 +199,3 @@
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

59 changes: 59 additions & 0 deletions LICENSE.zh_CN
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
Apache许可证
2.0版 2004年1月
http://www.apache.org/licenses/

关于使用、复制和分发的条款

定义
"许可证"是指根据本文件第1到第9部分关于使用、复制和分发的条款。

"许可证颁发者"是指版权所有者或者由版权所有者授权许可证的实体。

"法律实体"是指实施实体和进行控制的所有其它实体受该实体控制,或者受该实体集中控制。根据此定义,"控制"是指(i)让无论是否签订协议的上述实体,进行指导或管理的直接权利或间接权利,或者(ii)拥有百分之五十(50%)或以上已发行股票的所有者,或者(iii)上述实体的实权所有者。

"用户"(或"用户的")是指行使本许可证所授予权限的个人或法律实体。

"源程序"形式是指对包括但不限于软件源代码、文件源程序和配置文件进行修改的首选形式。

"目标"形式是指对源程序形式进行机械转换或翻译的任何形式,包括但不限于对编译的目标代码,生成的文件以及转换为其它媒体类型。

"作品"是指根据本许可证所制作的源程序形式或目标形式的著作,在著作中包含的或附加的版权通知(在下面附录中提供了一个示例)。

"衍生作品"是指基于作品(或从作品衍生而来)的源程序形式或目标形式的任何作品,以及编辑修订、注释、详细描述或其它修订等构成原创著作作品的整体。根据本许可证,衍生作品不得包括与作品及其衍生作品分离之作品,或仅与作品及其衍生作品的接口相链接(或按名称结合)之作品。

"贡献"是指任何著作作品,包括作品的原始版本和对该作品或衍生作品所做的任何修订或补充,意在提交给许可证颁发者以让版权所有者或代表版权所有者的授权个人或法律实体包含在其作品中。根据此定义,"提交"一词表示发送给许可证颁发者或其代表人,任何电子的、口头的或书面的交流信息形式,包括但不限于在由许可证颁发者或者代表其管理的电子邮件清单、源代码控制系统、以及发布跟踪系统上为讨论和提高作品的交流,但不包括由版权所有者以书面形式明显标注或指定为"非贡献"的交流活动。

"贡献者"是指许可证颁发者和代表从许可证颁发者接受之贡献的并随后包含在作品之贡献中的任何个人或法律实体。

版权许可证的授予。根据本许可证的条款,每个贡献者授予用户永久性的、全球性的、非专有性的、免费的、无版权费的、不可撤销的版权许可证以源程序形式或目标形式复制、准备衍生作品、公开显示、公开执行、授予分许可证、以及分发作品和这样的衍生作品。
专利许可证的授予。根据本许可证的条款,每个贡献者授予用户永久性的、全球性的、非专有性的、免费的、无版权费的、不可撤销的(除在本部分进行说明)专利许可证对作品进行制作、让人制作、使用、提供销售、销售、进口和其它转让,且这样的许可证仅适用于在所递交作品的贡献中因可由单一的或多个这样的贡献者授予而必须侵犯的申请专利。如果用户对任何实体针对作品或作品中所涉及贡献提出因直接性或贡献性专利侵权而提起专利法律诉讼(包括交互诉讼请求或反索赔),那么根据本许可证,授予用户针对作品的任何专利许可证将在提起上述诉讼之日起终止。
重新分发。用户可在任何媒介中复制和分发作品或衍生作品之副本,无论是否修订,还是以源程序形式或目标形式,条件是用户需满足下列条款:
用户必须为作品或衍生作品的任何其他接收者提供本许可证的副本;并且
用户必须让任何修改过的文件附带明显的通知,声明用户已更改文件;并且
用户必须从作品的源程序形式中保留衍生作品源程序形式的用户所分发的所有版权、专利、商标和属性通知,但不包括不属于衍生作品任何部分的类似通知;并且
如果作品将"通知"文本文件包括为其分发作品的一部分,那么用户分发的任何衍生作品中须至少在下列地方之一包括,在这样的通知文件中所包含的属性通知的可读副本,但不包括那些不属于衍生作品任何部分的通知:在作为衍生作品一部分而分发的通知文本文件中;如果与衍生作品一起提供则在源程序形式或文件中;或者通常作为第三方通知出现的时候和地方,在衍生作品中产生的画面中。通知文件的内容仅供信息提供,并未对许可证进行修改。用户可在其分发的衍生作品中在作品的通知文本后或作为附录添加自己的属性通知,条件是附加的属性通知不得构成修改本许可证。
用户可以为自身所做出的修订添加自己的版权声明并可对自身所做出修订内容或为这样的衍生作品作为整体的使用、复制或分发提供附加或不同的条款,条件是用户对作品的使用、复制和分发必须符合本许可证中声明的条款。

贡献的提交。除非用户明确声明,在作品中由用户向许可证颁发者的提交若要包含在贡献中,必须在无任何附加条款下符合本许可证的条款。尽管上面如此规定,执行许可证颁发者有关贡献的条款时,任何情况下均不得替代或修改任何单独许可证协议的条款。
商标。本许可证并未授予用户使用许可证颁发者的商号、商标、服务标记或产品名称,除非将这些名称用于合理性和惯例性描述作品起源和复制通知文件的内容时。
保证否认条款。除非因适用法律需要或书面同意,许可证颁发者以"按原样"基础提供作品(并且每个贡献者提供其贡献),无任何明示的或暗示的保证或条件,包括但不限于关于所有权、不侵权、商品适销性、或适用性的保证或条件。用户仅对使用或重新分发作品的正确性负责,并需承担根据本许可证行使权限时的任何风险。
责任限制条款。在任何情况下并根据任何法律,无论是因侵权(包括过失)或根据合同,还是其它原因,除非根据适用法律需要(例如故意行为和重大过失行为)或经书面同意,即使贡献者事先已被告知发生损害的可能性,任何贡献者不就用户因使用本许可证或不能使用或无法使用作品(包括但不限于商誉损失、停工、计算机失效或故障,或任何商业损坏或损失)而造成的损失,包括直接的、非直接的、特殊的、意外的或间接的字符损坏而负责。
接受保证或附加责任。重新分发作品或及其衍生作品时,用户可选择提供或为符合本许可证承担之支持、担保、赔偿或其它职责义务和/或权利而收取费用。但是,在承担上述义务时,用户只可代表用户本身和用户本身责任来执行,无需代表任何其它贡献者,并且用户仅可保证、防护并保持每个贡献者不受任何因此而产生的责任或对因用户自身承担这样的保证或附加责任而对这样的贡献者所提出的索赔。
条款结束

附录:如何向用户作品中应用Apache许可证。

若要向用户作品应用Apache许可证,请附加下列样本通知,将括号"[]"中的字段以用户自身的区分信息来替换(但不包括括号)。文本必须以文件格式适当的注释句法包含在其中。另外建议将文件名或类别名以及目的说明包含在相同的"打印页"上作为版权通知,以更加容易的区分出第三方档案。

版权所有[yyyy][版权所有者的名称]

根据2.0版本Apache许可证("许可证")授权;
根据本许可证,用户可以不使用此文件。
用户可从下列网址获得许可证副本:

http://www.apache.org/licenses/LICENSE-2.0

除非因适用法律需要或书面同意,
根据许可证分发的软件是基于"按原样"基础提供,
无任何明示的或暗示的保证或条件。
详见根据许可证许可下,特定语言的管辖权限和限制。
35 changes: 35 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
//
// Package.swift
// PerfectLib
//
// Created by Kyle Jessup on 3/22/16.
// Copyright (C) 2016 PerfectlySoft, Inc.
//
//===----------------------------------------------------------------------===//
//
// This source file is part of the Perfect.org open source project
//
// Copyright (c) 2015 - 2016 PerfectlySoft Inc. and the Perfect project authors
// Licensed under Apache License v2.0
//
// See http://perfect.org/licensing.html for license information
//
//===----------------------------------------------------------------------===//
//

import PackageDescription

var urls = [String]()

#if os(Linux)
urls += ["https://github.com/PerfectlySoft/Perfect-LinuxBridge.git"]
#else

#endif

let package = Package(
name: "PerfectLib",
targets: [],
dependencies: urls.map { .Package(url: $0, majorVersion: 2, minor: 0) },
exclude: []
)
1 change: 0 additions & 1 deletion PerfectLib/README.md

This file was deleted.

1 change: 0 additions & 1 deletion PerfectServer/README.md

This file was deleted.

Loading