rack-secure_only 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.rdoc CHANGED
@@ -15,7 +15,7 @@ This can be disabled by setting the :use_http_x_forwarded_proto option to false.
15
15
 
16
16
  == Usage
17
17
 
18
- require 'rack/secure_only'
18
+ require 'rack-secure_only'
19
19
 
20
20
  app = Rack::Builder.new do
21
21
  map '/secure' do
@@ -33,7 +33,7 @@ This can be disabled by setting the :use_http_x_forwarded_proto option to false.
33
33
  run lambda { |env| [200, { 'Content-Type' => 'text/plain' }, ["SECURE APP"]] }
34
34
  end
35
35
 
36
- map '/secure_with_fixed_redirect_ulr' do
36
+ map '/secure_with_fixed_redirect_url' do
37
37
  use Rack::SecureOnly, :redirect_to => "https://my.site.org/login"
38
38
  run lambda { |env| [200, { 'Content-Type' => 'text/plain' }, ["SECURE APP"]] }
39
39
  end
data/Rakefile CHANGED
@@ -13,7 +13,6 @@ begin
13
13
  gem.add_development_dependency "rspec", ">= 1.2.9"
14
14
  gem.add_development_dependency "rack-test", ">= 0.5.3"
15
15
  gem.add_dependency "rack", ">= 1.1.0"
16
- gem.autorequire = "lib/rack/secure-only"
17
16
  end
18
17
  Jeweler::GemcutterTasks.new
19
18
  rescue LoadError
@@ -37,3 +36,12 @@ Rake::RDocTask.new do |rdoc|
37
36
  rdoc.rdoc_files.include('README*')
38
37
  rdoc.rdoc_files.include('lib/**/*.rb')
39
38
  end
39
+
40
+ begin
41
+ require 'yard'
42
+ YARD::Rake::YardocTask.new
43
+ rescue LoadError
44
+ task :yardoc do
45
+ abort "YARD is not available. In order to run yardoc, you must: sudo gem install yard"
46
+ end
47
+ end
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.0
1
+ 0.3.1
@@ -0,0 +1 @@
1
+ require "rack/secure_only"
@@ -5,11 +5,10 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{rack-secure_only}
8
- s.version = "0.3.0"
8
+ s.version = "0.3.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Klaas Speller"]
12
- s.autorequire = %q{lib/rack/secure-only}
13
12
  s.date = %q{2010-05-22}
14
13
  s.description = %q{Redirect http to https and the other way around}
15
14
  s.email = %q{klaasspeller@gmail.com}
@@ -24,6 +23,7 @@ Gem::Specification.new do |s|
24
23
  "README.rdoc",
25
24
  "Rakefile",
26
25
  "VERSION",
26
+ "lib/rack-secure_only.rb",
27
27
  "lib/rack/secure_only.rb",
28
28
  "rack-secure_only.gemspec",
29
29
  "spec/rack/secure_only_spec.rb",
metadata CHANGED
@@ -5,12 +5,12 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 3
8
- - 0
9
- version: 0.3.0
8
+ - 1
9
+ version: 0.3.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - Klaas Speller
13
- autorequire: lib/rack/secure-only
13
+ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
@@ -75,6 +75,7 @@ files:
75
75
  - README.rdoc
76
76
  - Rakefile
77
77
  - VERSION
78
+ - lib/rack-secure_only.rb
78
79
  - lib/rack/secure_only.rb
79
80
  - rack-secure_only.gemspec
80
81
  - spec/rack/secure_only_spec.rb