Browse Source

Merge pull request #328 from ahus1/contributor_friendlyness

Contributor friendlyness
pull/336/head
Adrian Cole 9 years ago
parent
commit
c34516876c
  1. 1
      .travis.yml
  2. 2
      CONTRIBUTING.md
  3. 3
      buildViaTravis.sh
  4. 2
      core/src/test/java/feign/client/TrustingSSLSocketFactory.java

1
.travis.yml

@ -14,6 +14,7 @@ script: ./buildViaTravis.sh @@ -14,6 +14,7 @@ script: ./buildViaTravis.sh
cache:
directories:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
env:
global:
- secure: Ps7+oTi5FfjwJ7tQ8G51wk30ZHqB1P4ZNXsGisn+r/8IJRxPs6VNIF/dPSkWLERs1tBvMG2sRz9nxaIwxXJwHXOkoBL/SXZHzOYwKTlsNcu72B6czxepIb0OAGWKAv6aCk9vAJkRzGX2Ogy+Hnn8AuQlPAPOplRjZm1AXj6smGM=

2
CONTRIBUTING.md

@ -2,7 +2,7 @@ @@ -2,7 +2,7 @@
If you would like to contribute code you can do so through GitHub by forking the repository and sending a pull request (on a branch other than `master` or `gh-pages`).
When submitting code, please ensure you follow the [Google Style Guide](http://google-styleguide.googlecode.com/svn/trunk/javaguide.html). For example, you can format code with Intellij using [this file](https://google-styleguide.googlecode.com/svn/trunk/intellij-java-google-style.xml).
When submitting code, please ensure you follow the [Google Style Guide](http://google-styleguide.googlecode.com/svn/trunk/javaguide.html). For example, you can format code with IntelliJ 13 using [this file](https://google.github.io/styleguide/intellij-java-google-style.xml) and with IntelliJ 15 using [this file](https://raw.githubusercontent.com/garukun/styleguide/add-intellij-15-java/intellij-15-java-google-style.xml).
## License

3
buildViaTravis.sh

@ -4,6 +4,9 @@ @@ -4,6 +4,9 @@
if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then
echo -e "Build Pull Request #$TRAVIS_PULL_REQUEST => Branch [$TRAVIS_BRANCH]"
./gradlew build
elif [ "${bintrayUser}" == "" ]; then
echo -e "Building with no environment variables set => Forked repository"
./gradlew build
elif [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_TAG" == "" ]; then
echo -e 'Build Branch with Snapshot => Branch ['$TRAVIS_BRANCH']'
./gradlew -Prelease.travisci=true -PbintrayUser="${bintrayUser}" -PbintrayKey="${bintrayKey}" -PsonatypeUsername="${sonatypeUsername}" -PsonatypePassword="${sonatypePassword}" build snapshot

2
core/src/test/java/feign/client/TrustingSSLSocketFactory.java

@ -47,7 +47,7 @@ public final class TrustingSSLSocketFactory extends SSLSocketFactory @@ -47,7 +47,7 @@ public final class TrustingSSLSocketFactory extends SSLSocketFactory
sslSocketFactories =
new LinkedHashMap<String, SSLSocketFactory>();
private static final char[] KEYSTORE_PASSWORD = "password".toCharArray();
private final static String[] ENABLED_CIPHER_SUITES = {"SSL_RSA_WITH_RC4_128_MD5"};
private final static String[] ENABLED_CIPHER_SUITES = {"SSL_RSA_WITH_3DES_EDE_CBC_SHA"};
private final SSLSocketFactory delegate;
private final String serverAlias;
private final PrivateKey privateKey;

Loading…
Cancel
Save