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

Improved asset.pipeline.utils.net.Urls + code & config cleanup #44

Merged
merged 6 commits into from Oct 4, 2015

Conversation

rgoldberg
Copy link
Contributor

This pull request contains the changes listed below:

  1. replaced Groovy asset.pipeline.utils.net.Urls with Java version that includes more methods & constants (that are used by my corresponding new version of AP)
  2. added some missing copyright & license notifications
  3. parentheses standardization
  4. double quotes to single quotes where String literal instead of GString
  5. whitespace cleanup
    1. leading spaces to tabs
    2. trim trailing whitespace
    3. removed extra empty lines
    4. added appropriate empty lines
    5. space standardization

spacing
tabs
parentheses
quotes
changed from groovy to java

improved javadocs

added static methods:
concatenateUrl(...)
getDefaultPort(String)
getUrlSansScheme(String)
hasAuthority(String)
withScheme(*)

added constant Patterns:
HAS_AUTHORITY_URL_PATTERN
URL_COMPONENT_PATTERN

reuse URL_SCHEME_SANS_COLON_REGEX for Patterns, which uses possessive regex for performance

use tabs
@davydotcom
Copy link
Contributor

may fix some standardization of formatting in this but ill def merge it. doing new lines a bit excessively on if statements. just a style preference and trying to keep things consistent

davydotcom added a commit that referenced this pull request Oct 4, 2015
Improved asset.pipeline.utils.net.Urls + code & config cleanup
@davydotcom davydotcom merged commit 51096a0 into bertramdev:master Oct 4, 2015
@rgoldberg rgoldberg deleted the XForwardedServerUrl branch October 4, 2015 16:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants