Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

typo in hsts variable

  • Loading branch information...
commit a94bde0cf2f6b7b6611219935f995519290c79e0 1 parent c3079c8
Christian Meier authored April 07, 2011
1  enforce-ssl-gem/Mavenfile
... ...
@@ -1 +0,0 @@
1  
-properties['jruby.plugins.version'] = '0.26.0-SNAPSHOT'
2  enforce-ssl-gem/enforce-ssl.gemspec
... ...
@@ -1,6 +1,6 @@
1 1
 Gem::Specification.new do |s|
2 2
   s.name = 'enforce-ssl'
3  
-  s.version = '0.3.0'
  3
+  s.version = '0.2.2'
4 4
 
5 5
   s.summary = 'enforce the use of SSL for all controller actions'
6 6
   s.description = 'enforce the use of SSL for all controller actions, skip the enforcement with skip_before_filter :enforce_ssl for selected actions. moto: secure everything, open where needed'
17  enforce-ssl-gem/enforce-ssl.gemspec.pom
@@ -2,7 +2,7 @@
2 2
   <modelVersion>4.0.0</modelVersion>
3 3
   <groupId>rubygems</groupId>
4 4
   <artifactId>enforce-ssl</artifactId>
5  
-  <version>0.3.0</version>
  5
+  <version>0.2.2</version>
6 6
   <name><![CDATA[enforce the use of SSL for all controller actions]]></name>
7 7
   <packaging>gem</packaging>
8 8
   <description><![CDATA[enforce the use of SSL for all controller actions, skip the enforcement with skip_before_filter :enforce_ssl for selected actions. moto: secure everything, open where needed]]></description>
@@ -27,18 +27,6 @@
27 27
       <url>http://gems.saumya.de/releases</url>
28 28
     </repository>
29 29
   </repositories>
30  
-  <pluginRepositories>
31  
-    <pluginRepository>
32  
-      <id>sonatype-snapshots</id>
33  
-      <url>http://oss.sonatype.org/content/repositories/snapshots</url>
34  
-      <releases>
35  
-        <enabled>false</enabled>
36  
-      </releases>
37  
-      <snapshots>
38  
-        <enabled>true</enabled>
39  
-      </snapshots>
40  
-    </pluginRepository>
41  
-  </pluginRepositories>
42 30
   <dependencies>
43 31
     <dependency>
44 32
       <groupId>rubygems</groupId>
@@ -51,12 +39,13 @@
51 39
       <groupId>org.jruby</groupId>
52 40
       <artifactId>jruby-complete</artifactId>
53 41
       <version>1.5.6</version>
  42
+      <type>jar</type>
54 43
     </dependency>
55 44
   </dependencies>
56 45
   <properties>
57 46
     <gem.home>${project.build.directory}/rubygems</gem.home>
58 47
     <gem.path>${project.build.directory}/rubygems</gem.path>
59  
-    <jruby.plugins.version>0.26.0-SNAPSHOT</jruby.plugins.version>
  48
+    <jruby.plugins.version>0.26.0</jruby.plugins.version>
60 49
     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
61 50
   </properties>
62 51
   <build>
2  enforce-ssl-gem/lib/enforce_ssl/enforce_ssl_filter.rb
@@ -13,7 +13,7 @@ def enforce_ssl
13 13
         # use only if max_age is set and only in production mode since it
14 14
         # needs a proper (not self-signed) certificate
15 15
         if Rails.configuration.hsts_max_age && Rails.env == "production"
16  
-          subdomain = Rails.configuration.hsts_include_sub_domains? ? " ; includeSubDomains" : ""
  16
+          subdomain = Rails.configuration.hsts_include_sub_domain == true ? " ; includeSubDomains" : ""
17 17
          controller. response.headers['Strict-Transport-Security'] = "max-age=#{Rails.configuration.hsts_max_age.to_i}" + subdomain
18 18
           
19 19
         end
2  enforce-ssl-gem/lib/enforce_ssl/enforce_ssl_rack.rb
@@ -17,7 +17,7 @@ def call(env)
17 17
         # use only if max_age is set and only in production mode since it
18 18
         # needs a proper (not self-signed) certificate
19 19
         if Rails.configuration.hsts_max_age && Rails.env == "production"
20  
-          subdomain = Rails.configuration.hsts_include_sub_domains? ? " ; includeSubDomains" : ""
  20
+          subdomain = Rails.configuration.hsts_include_sub_domain == true ? " ; includeSubDomains" : ""
21 21
           @headers['Strict-Transport-Security'] = "max-age=#{Rails.configuration.hsts_max_age.to_i}" + subdomain
22 22
           
23 23
         end

0 notes on commit a94bde0

Please sign in to comment.
Something went wrong with that request. Please try again.