bartt-ssl_requirement 1.2.2 → 1.2.3

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.2.2
1
+ 1.2.3
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{bartt-ssl_requirement}
8
- s.version = "1.2.2"
8
+ s.version = "1.2.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["RailsJedi", "David Heinemeier Hansson", "jcnetdev", "bcurren", "bmpercy", "revo", "nathany", "bartt"]
12
- s.date = %q{2010-06-12}
12
+ s.date = %q{2010-07-28}
13
13
  s.description = %q{SSL requirement adds a declarative way of specifying that certain actions should only be allowed to run under SSL, and if they're accessed without it, they should be redirected.}
14
14
  s.email = %q{bartt@vurve.com}
15
15
  s.extra_rdoc_files = [
@@ -32,7 +32,7 @@ Gem::Specification.new do |s|
32
32
  s.homepage = %q{http://github.com/bartt/ssl_requirement}
33
33
  s.rdoc_options = ["--charset=UTF-8"]
34
34
  s.require_paths = ["lib"]
35
- s.rubygems_version = %q{1.3.6}
35
+ s.rubygems_version = %q{1.3.7}
36
36
  s.summary = %q{Allow controller actions to force SSL on specific parts of the site.}
37
37
  s.test_files = [
38
38
  "test/ssl_requirement_test.rb",
@@ -43,7 +43,7 @@ Gem::Specification.new do |s|
43
43
  current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
44
44
  s.specification_version = 3
45
45
 
46
- if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
46
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
47
47
  else
48
48
  end
49
49
  else
@@ -24,11 +24,11 @@ module SslRequirement
24
24
  mattr_writer :ssl_host, :non_ssl_host, :disable_ssl_check
25
25
 
26
26
  def self.ssl_host
27
- determine_host(@@ssl_host)
27
+ determine_host(@@ssl_host) rescue nil
28
28
  end
29
29
 
30
30
  def self.non_ssl_host
31
- determine_host(@@non_ssl_host)
31
+ determine_host(@@non_ssl_host) rescue nil
32
32
  end
33
33
 
34
34
  # mattr_reader would generate both ssl_host and self.ssl_host
metadata CHANGED
@@ -1,12 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bartt-ssl_requirement
3
3
  version: !ruby/object:Gem::Version
4
+ hash: 25
4
5
  prerelease: false
5
6
  segments:
6
7
  - 1
7
8
  - 2
8
- - 2
9
- version: 1.2.2
9
+ - 3
10
+ version: 1.2.3
10
11
  platform: ruby
11
12
  authors:
12
13
  - RailsJedi
@@ -21,7 +22,7 @@ autorequire:
21
22
  bindir: bin
22
23
  cert_chain: []
23
24
 
24
- date: 2010-06-12 00:00:00 -07:00
25
+ date: 2010-07-28 00:00:00 -07:00
25
26
  default_executable:
26
27
  dependencies: []
27
28
 
@@ -56,23 +57,27 @@ rdoc_options:
56
57
  require_paths:
57
58
  - lib
58
59
  required_ruby_version: !ruby/object:Gem::Requirement
60
+ none: false
59
61
  requirements:
60
62
  - - ">="
61
63
  - !ruby/object:Gem::Version
64
+ hash: 3
62
65
  segments:
63
66
  - 0
64
67
  version: "0"
65
68
  required_rubygems_version: !ruby/object:Gem::Requirement
69
+ none: false
66
70
  requirements:
67
71
  - - ">="
68
72
  - !ruby/object:Gem::Version
73
+ hash: 3
69
74
  segments:
70
75
  - 0
71
76
  version: "0"
72
77
  requirements: []
73
78
 
74
79
  rubyforge_project:
75
- rubygems_version: 1.3.6
80
+ rubygems_version: 1.3.7
76
81
  signing_key:
77
82
  specification_version: 3
78
83
  summary: Allow controller actions to force SSL on specific parts of the site.