Commit 9eaafe5f

mo khan <mo@mokhan.ca>
2013-12-28 17:56:05
replace http with https.
1 parent 28521c7
app/assets/javascripts/users_edit.js
@@ -6,7 +6,7 @@ DeviseUsers.Edit = {
     $('#user_city').autocomplete({
       source: function(request, response){
         $.ajax({
-          url: 'http://ws.geonames.org/searchJSON',
+          url: 'https://ws.geonames.org/searchJSON',
           dataType: "jsonp",
           data: {
             featureClass: "P",
app/controllers/sitemap_controller.rb
@@ -4,7 +4,7 @@ class SitemapController < ApplicationController
   def index
     @creations = Creation.all
     @tutorials = Tutorial.all
-    @base_url = "http://#{request.host_with_port}"
+    @base_url = "https://#{request.host_with_port}"
     headers['Content-Type'] = 'application/xml'
     respond_to do |format|
       format.xml
app/views/creations/_form.html.erb
@@ -7,7 +7,6 @@
     });
   </script>
 <% end %>
-<link rel="stylesheet" type="text/css" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1/themes/flick/jquery-ui.css">
 <%= form_for(@creation, :html => {:multipart => true, :class => "form-horizontal"}) do |f| %>
   <fieldset>
     <div class="control-group">
app/views/devise/mailer/reset_password_instructions.html.erb
@@ -9,5 +9,5 @@
 <br/>
 <p>Regards,</p>
 <p>The CakeSide Team</p>
-<p>Your security and privacy is important to us so please <a href="http://www.cakeside.com/">visit us</a> if you have any questions?</p>
+<p>Your security and privacy is important to us so please <%= link_to "visit us", root_path %> if you have any questions?</p>
 
app/views/devise/registrations/new.html.erb
@@ -12,7 +12,7 @@
     $('#user_city').autocomplete({
       source: function(request, response){
         $.ajax({
-          url: 'http://ws.geonames.org/searchJSON',
+          url: 'https://ws.geonames.org/searchJSON',
           dataType: "jsonp",
           data: {
             featureClass: "P",
@@ -53,7 +53,7 @@
               <h3>Why CakeSide?</h3>
               <p>CakeSide is a community dedicated to giving cake artists, bakers, creators, hobbyists, and of course cake lovers a place to share ideas and creations. Explore your creativity and find your inspiration. Resources shared here are all user driven.</p>
               <h3>About Us</h3>
-              <p>We are a passionate team dedicated to improving the cake sharing experience. Frustrated with the lack of community that provides more than just photo sharing, CakeSide was born. All features of this site will be user inspired. We love to listen so feel free to give us <a href="http://cakeside.uservoice.com/" target="_blank">feedback</a>. Check back often to see what's new in the CakeSide community!</p>
+              <p>We are a passionate team dedicated to improving the cake sharing experience. Frustrated with the lack of community that provides more than just photo sharing, CakeSide was born. All features of this site will be user inspired. We love to listen so feel free to give us <a href="https://cakeside.uservoice.com/" target="_blank">feedback</a>. Check back often to see what's new in the CakeSide community!</p>
             </div>
           </div>
           <div class="span6">
app/views/devise/sessions/new.html.erb
@@ -12,7 +12,7 @@
     $('#user_city').autocomplete({
       source: function(request, response){
         $.ajax({
-          url: 'http://ws.geonames.org/searchJSON',
+          url: 'https://ws.geonames.org/searchJSON',
           dataType: "jsonp",
           data: {
             featureClass: "P",
@@ -51,7 +51,7 @@
           <h3>Why CakeSide?</h3>
           <p>CakeSide is a community dedicated to giving cake artists, bakers, creators, hobbyists, and of course cake lovers a place to share ideas and creations. Explore your creativity and find your inspiration. Resources shared here are all user driven.</p>
           <h3>About Us</h3>
-          <p>We are a passionate team dedicated to improving the cake sharing experience. Frustrated with the lack of community that provides more than just photo sharing, CakeSide was born. All features of this site will be user inspired. We love to listen so feel free to give us <a href="http://cakeside.uservoice.com/" target="_blank">feedback</a>. Check back often to see what's new in the CakeSide community!</p>
+          <p>We are a passionate team dedicated to improving the cake sharing experience. Frustrated with the lack of community that provides more than just photo sharing, CakeSide was born. All features of this site will be user inspired. We love to listen so feel free to give us <a href="https://cakeside.uservoice.com/" target="_blank">feedback</a>. Check back often to see what's new in the CakeSide community!</p>
         </div>
       </div>
       <div class="span6">
app/views/home/why_cakeside.html.erb
@@ -1,5 +1,5 @@
 <% provide(:title, "About Us") -%>
 
 <h2>Why Cakeside</h2>
-<p>We are a passionate team dedicated to improving the cake sharing experience. Frustrated with the lack of community that provides more than just photo sharing, CakeSide was born. All features of this site will be user inspired. We love to listen so feel free to give us <a target="_blank" href="http://cakeside.uservoice.com/">feedback</a>. Check back often to see what's new in the CakeSide community!</p>
+<p>We are a passionate team dedicated to improving the cake sharing experience. Frustrated with the lack of community that provides more than just photo sharing, CakeSide was born. All features of this site will be user inspired. We love to listen so feel free to give us <a target="_blank" href="https://cakeside.uservoice.com/">feedback</a>. Check back often to see what's new in the CakeSide community!</p>
 
app/views/layouts/_chrome_frame.html.erb
@@ -1,5 +1,5 @@
 <!--[if IE]>
-<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/chrome-frame/1/CFInstall.min.js"></script>
+<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/chrome-frame/1/CFInstall.min.js"></script>
 <script>
   CFInstall.check({ mode: "overlay" });
 </script>
app/views/layouts/_disqus_comments_count.html.erb
@@ -3,7 +3,7 @@ var disqus_shortname = '<%= ENV['DISQUS_SHORTNAME'] %>';
 (function () {
   var s = document.createElement('script'); s.async = true;
   s.type = 'text/javascript';
-  s.src = 'http://' + disqus_shortname + '.disqus.com/count.js';
+  s.src = 'https://' + disqus_shortname + '.disqus.com/count.js';
   (document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);
 }());
 </script>
app/views/layouts/_footer.html.erb
@@ -13,8 +13,8 @@
     <div class="span4">
       <h3>Contact Us</h3>
       <ul class="unstyled">
-        <li> <a href="http://cakeside.uservoice.com/" target="_blank">Send Feedback</a> </li>
-        <li> <a href="http://twitter.com/cakeside">Twitter</a> </li>
+        <li> <a href="https://cakeside.uservoice.com/" target="_blank">Send Feedback</a> </li>
+        <li> <a href="https://twitter.com/cakeside">Twitter</a> </li>
         <li> <a href="https://www.facebook.com/pages/CakeSide/214607468615074">Facebook</a> </li>
       </ul>
     </div>
@@ -28,7 +28,7 @@
         <p>
         Copyright &copy; 2013 CakeSide Inc. | 
         <a href="/terms.html">Terms</a> &amp; <a href="/privacy.html">Privacy</a> | 
-        Contact Us <a href="http://twitter.com/cakeside">@cakeside</a> | 
+        Contact Us <a href="https://twitter.com/cakeside">@cakeside</a> | 
         <a href="https://www.facebook.com/pages/CakeSide/214607468615074">facebook</a>
         </p>
       </div>
app/views/layouts/application.html.erb
@@ -29,7 +29,7 @@
 <%= render "layouts/chrome_frame"%>
 <%= javascript_include_tag "application", "data-turbolinks-track" => true %>
 <!--[if lt IE 9]>
-  <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
+  <script src="https://html5shim.googlecode.com/svn/trunk/html5.js"></script>
 <![endif]-->
 <%= render "layouts/mixpanel"%>
 <%= render "layouts/embedly"%>
app/views/registrations/edit.html.erb
@@ -27,7 +27,7 @@ $(function(){
         </div>
         <div class="control-group">
           <%= f.label :website, :class => "control-label" %> 
-          <div class="controls"> <%= f.url_field :website, :class => "input-xlarge, url", :placeholder => "http://cakeside.com" %> </div>
+          <div class="controls"> <%= f.url_field :website, :class => "input-xlarge, url", :placeholder => "https://cakeside.com" %> </div>
         </div>
         <div class="control-group">
           <%= f.label :twitter, "Twitter username @", :class => "control-label" %> 
app/views/shared/_disqus.html.erb
@@ -14,5 +14,5 @@ var disqus_identifier = '<%= id %>';
   (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
 })();
 </script>
-<noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
-<a href="http://disqus.com" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>
+<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
+<a href="https://disqus.com" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>
app/views/tutorials/_form.html.erb
@@ -7,7 +7,6 @@ $(function(){
 });
 </script>
 <% end %>
-<link rel="stylesheet" type="text/css" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1/themes/flick/jquery-ui.css">
 <div class="span12">
   <%= form_for(@tutorial, :html => {:class => "form-horizontal"}) do |f| %>
     <fieldset>
lib/tasks/deployment.rake
@@ -2,13 +2,13 @@ namespace :deploy do
   desc "deploy to staging server"
   task :staging do
     sh "cap staging deploy:migrations"
-    sh "curl http://staging.cakeside.com/ > /dev/null"
+    sh "curl https://staging.cakeside.com/ > /dev/null"
   end
 
   desc "deploy to production server"
   task :production do
     sh "cap production deploy:migrations"
-    sh "curl http://www.cakeside.com/ > /dev/null"
+    sh "curl https://www.cakeside.com/ > /dev/null"
   end
 end
 
script/perf.sh
@@ -1,4 +1,4 @@
-ENDPOINT="http://staging.cakeside.com/"
+ENDPOINT="https://staging.cakeside.com/"
 REQUEST_COUNT="100"
 THREAD_COUNT="10"