Browse Source

Use HTTPS links in documentation where possible.

Closes: https://github.com/square/retrofit/issues/2425
Jesse Wilson 1 year ago
parent
commit
c793de34b3
6 changed files with 15 additions and 15 deletions
  1. 1
    1
      .buildscript/deploy_snapshot.sh
  2. 2
    2
      CHANGELOG.md
  3. 1
    1
      README.md
  4. 5
    5
      pom.xml
  5. 5
    5
      website/index.html
  6. 1
    1
      website/static/jquery-maven-artifact.min.js

+ 1
- 1
.buildscript/deploy_snapshot.sh View File

@@ -3,7 +3,7 @@
3 3
 # Deploy a jar, source jar, and javadoc jar to Sonatype's snapshot repo.
4 4
 #
5 5
 # Adapted from https://coderwall.com/p/9b_lfq and
6
-# http://benlimmer.com/2013/12/26/automatically-publish-javadoc-to-gh-pages-with-travis-ci/
6
+# https://benlimmer.com/2013/12/26/automatically-publish-javadoc-to-gh-pages-with-travis-ci/
7 7
 
8 8
 SLUG="square/retrofit"
9 9
 JDK="oraclejdk8"

+ 2
- 2
CHANGELOG.md View File

@@ -367,7 +367,7 @@ Version 1.5.0 *(2014-03-20)*
367 367
  * Fix: Support empty HTTP response status reason.
368 368
  * If an `ErrorHandler` is supplied it will be invoked for `Callback` and `Observable` methods.
369 369
  * HTTP `PATCH` method using `HttpUrlConnection` is no longer supported. Add the
370
-   [OkHttp](http://square.github.io/okhttp) jar to your project if you need this behavior.
370
+   [OkHttp](https://square.github.io/okhttp) jar to your project if you need this behavior.
371 371
  * Custom `Client` implementations should no longer set `Content-Type` or `Content-Length` headers
372 372
    based on the `TypedInput` body of the `Request`. These headers will now be added automatically
373 373
    as part of the standard `Request` header list.
@@ -420,7 +420,7 @@ Version 1.2.2 *(2013-09-12)*
420 420
 Version 1.2.1 *(2013-08-30)*
421 421
 ----------------------------
422 422
 
423
- * New: Converter for [Wire protocol buffers](http://github.com/square/wire)!
423
+ * New: Converter for [Wire protocol buffers](https://github.com/square/wire)!
424 424
 
425 425
 
426 426
 Version 1.2.0 *(2013-08-23)*

+ 1
- 1
README.md View File

@@ -61,6 +61,6 @@ License
61 61
     limitations under the License.
62 62
 
63 63
 
64
- [1]: http://square.github.io/retrofit/
64
+ [1]: https://square.github.io/retrofit/
65 65
  [2]: https://search.maven.org/remote_content?g=com.squareup.retrofit2&a=retrofit&v=LATEST
66 66
  [snap]: https://oss.sonatype.org/content/repositories/snapshots/

+ 5
- 5
pom.xml View File

@@ -30,7 +30,7 @@
30 30
 
31 31
   <name>Retrofit (Parent)</name>
32 32
   <description>Type-safe HTTP client for Android and Java by Square, Inc.</description>
33
-  <url>http://github.com/square/retrofit/</url>
33
+  <url>https://github.com/square/retrofit/</url>
34 34
 
35 35
   <modules>
36 36
     <module>retrofit</module>
@@ -78,7 +78,7 @@
78 78
   </properties>
79 79
 
80 80
   <scm>
81
-    <url>http://github.com/square/retrofit</url>
81
+    <url>https://github.com/square/retrofit</url>
82 82
     <connection>scm:git:git://github.com/square/retrofit.git</connection>
83 83
     <developerConnection>scm:git:ssh://git@github.com/square/retrofit.git</developerConnection>
84 84
     <tag>HEAD</tag>
@@ -86,19 +86,19 @@
86 86
 
87 87
   <issueManagement>
88 88
     <system>GitHub Issues</system>
89
-    <url>http://github.com/square/retrofit/issues</url>
89
+    <url>https://github.com/square/retrofit/issues</url>
90 90
   </issueManagement>
91 91
 
92 92
   <licenses>
93 93
     <license>
94 94
       <name>Apache 2.0</name>
95
-      <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
95
+      <url>https://www.apache.org/licenses/LICENSE-2.0.txt</url>
96 96
     </license>
97 97
   </licenses>
98 98
 
99 99
   <organization>
100 100
     <name>Square, Inc.</name>
101
-    <url>http://squareup.com</url>
101
+    <url>https://squareup.com</url>
102 102
   </organization>
103 103
 
104 104
   <dependencyManagement>

+ 5
- 5
website/index.html View File

@@ -22,8 +22,8 @@
22 22
             <menu>
23 23
               <ul>
24 24
                 <li><a href="#download" class="menu download">Download <span class="version-tag">Latest</span></a></li>
25
-                <li><a href="http://github.com/square/retrofit" data-title="View GitHub Project" class="menu github"><img src="static/icon-github.png" alt="GitHub"/></a></li>
26
-                <li><a href="http://square.github.io/" data-title="Square Open Source Portal" class="menu square"><img src="static/icon-square.png" alt="Square"/></a></li>
25
+                <li><a href="https://github.com/square/retrofit" data-title="View GitHub Project" class="menu github"><img src="static/icon-github.png" alt="GitHub"/></a></li>
26
+                <li><a href="https://square.github.io/" data-title="Square Open Source Portal" class="menu square"><img src="static/icon-square.png" alt="Square"/></a></li>
27 27
               </ul>
28 28
             </menu>
29 29
           </div>
@@ -160,7 +160,7 @@ GitHubService service = retrofit.create(GitHubService.class);</pre>
160 160
             <section id="download">
161 161
               <h3>Download</h3>
162 162
               <p><a href="https://search.maven.org/remote_content?g=com.squareup.retrofit2&a=retrofit&v=LATEST" class="dl version-href">&darr; <span class="version-tag">Latest</span> JAR</a></p>
163
-              <p>The source code to the Retrofit, its samples, and this website is <a href="http://github.com/square/retrofit">available on GitHub</a>.</p>
163
+              <p>The source code to the Retrofit, its samples, and this website is <a href="https://github.com/square/retrofit">available on GitHub</a>.</p>
164 164
               <h4>Maven</h4>
165 165
               <pre class="prettyprint">&lt;dependency>
166 166
   &lt;groupId>com.squareup.retrofit2&lt;/groupId>
@@ -192,7 +192,7 @@ compile 'com.squareup.retrofit2:retrofit:<span class="version pln"><em>(insert l
192 192
               <h3>Contributing</h3>
193 193
               <p>If you would like to contribute code you can do so through GitHub by forking the repository and sending a pull request.</p>
194 194
               <p>When submitting code, please make every effort to follow existing conventions and style in order to keep the code as readable as possible. Please also make sure your code compiles by running <code>mvn clean verify</code>.</p>
195
-              <p>Before your code can be accepted into the project you must also sign the <a href="http://squ.re/sign-the-cla">Individual Contributor License Agreement (CLA)</a>.</p>
195
+              <p>Before your code can be accepted into the project you must also sign the <a href="https://squ.re/sign-the-cla">Individual Contributor License Agreement (CLA)</a>.</p>
196 196
             </section>
197 197
 
198 198
             <section id="license">
@@ -224,7 +224,7 @@ limitations under the License.</pre>
224 224
               </ul>
225 225
               <ul class="nav nav-pills nav-stacked secondary">
226 226
                 <li><a href="2.x/retrofit/">Javadoc</a></li>
227
-                <li><a href="http://stackoverflow.com/questions/tagged/retrofit?sort=active">StackOverflow</a></li>
227
+                <li><a href="https://stackoverflow.com/questions/tagged/retrofit?sort=active">StackOverflow</a></li>
228 228
               </ul>
229 229
             </div>
230 230
           </div>

+ 1
- 1
website/static/jquery-maven-artifact.min.js View File

@@ -5,4 +5,4 @@
5 5
  * Author: Jake Wharton
6 6
  * License: Apache 2.0
7 7
  */
8
-(function($){function downloadUrl(groupId,artifactId,version,type){var groupPath=groupId.replace(/\./g,"/");return"http://repo1.maven.org/maven2/"+groupPath+"/"+artifactId+"/"+version+"/"+artifactId+"-"+version+type}$.fn.artifactVersion=function(groupId,artifactId,callback){if(typeof groupId!=="string"||typeof artifactId!=="string"){console.log("Error: groupId and artifactId are required.");return}if(typeof callback==="undefined"){console.log("Error: callback function required.");return}var url='http://search.maven.org/solrsearch/select/?q=g:"'+groupId+'"+AND+a:"'+artifactId+'"&wt=json&json.wrf=?';$.getJSON(url,function(response){var versions=response.response.docs;if(versions.length==0){return}var version=versions[0].latestVersion;var versionUrl=downloadUrl(groupId,artifactId,version,".jar");callback(version,versionUrl)})};$.fn.artifactVersions=function(groupId,artifactId,callback){if(typeof groupId!=="string"||typeof artifactId!=="string"){console.log("Error: groupId and artifactId are required.");return}if(typeof callback==="undefined"){console.log("Error: callback function required.");return}var url='http://search.maven.org/solrsearch/select/?q=g:"'+groupId+'"+AND+a:"'+artifactId+'"&wt=json&rows=10&core=gav&json.wrf=?';$.getJSON(url,function(response){var versions=response.response.docs;if(versions.length==0){return}versions.sort(function(o1,o2){return o1.v>o2.v?-1:1});var newVersions=[];for(var i=0;i<versions.length;i++){var version=versions[i].v;newVersions.push({name:version,url:downloadUrl(groupId,artifactId,version,".jar")})}callback(newVersions)})}})(jQuery);
8
+(function($){function downloadUrl(groupId,artifactId,version,type){var groupPath=groupId.replace(/\./g,"/");return"https://repo1.maven.org/maven2/"+groupPath+"/"+artifactId+"/"+version+"/"+artifactId+"-"+version+type}$.fn.artifactVersion=function(groupId,artifactId,callback){if(typeof groupId!=="string"||typeof artifactId!=="string"){console.log("Error: groupId and artifactId are required.");return}if(typeof callback==="undefined"){console.log("Error: callback function required.");return}var url='https://search.maven.org/solrsearch/select/?q=g:"'+groupId+'"+AND+a:"'+artifactId+'"&wt=json&json.wrf=?';$.getJSON(url,function(response){var versions=response.response.docs;if(versions.length==0){return}var version=versions[0].latestVersion;var versionUrl=downloadUrl(groupId,artifactId,version,".jar");callback(version,versionUrl)})};$.fn.artifactVersions=function(groupId,artifactId,callback){if(typeof groupId!=="string"||typeof artifactId!=="string"){console.log("Error: groupId and artifactId are required.");return}if(typeof callback==="undefined"){console.log("Error: callback function required.");return}var url='https://search.maven.org/solrsearch/select/?q=g:"'+groupId+'"+AND+a:"'+artifactId+'"&wt=json&rows=10&core=gav&json.wrf=?';$.getJSON(url,function(response){var versions=response.response.docs;if(versions.length==0){return}versions.sort(function(o1,o2){return o1.v>o2.v?-1:1});var newVersions=[];for(var i=0;i<versions.length;i++){var version=versions[i].v;newVersions.push({name:version,url:downloadUrl(groupId,artifactId,version,".jar")})}callback(newVersions)})}})(jQuery);

Loading…
Cancel
Save