Skip to content

Commit 32bb3f5

Browse files
committed
Major rewrite:
Configure a global default and named overrides Use helper methods to set/modify configurations at runtime Set the headers in middleware based on the configuration saved to request.env Configuration changes: All headers require string values except for CSP and HPKP CSP directives must be arrays of strings, no more support for space-delimited strings or procs
1 parent 441b7a1 commit 32bb3f5

39 files changed

+1732
-2023
lines changed

.rspec

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
--order rand

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,7 @@ rvm:
77
- "1.9.3"
88
- "jruby-19mode"
99

10+
before_install: gem update bundler
11+
1012
sudo: false
1113
cache: bundler

Gemfile

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,13 @@
1-
source 'https://rubygems.org'
1+
source "https://rubygems.org"
22

33
gemspec
44

55
group :test do
6-
gem 'test-unit', '~> 3.0'
7-
gem 'rails', '3.2.22'
8-
gem 'sqlite3', :platforms => [:ruby, :mswin, :mingw]
9-
gem 'jdbc-sqlite3', :platforms => [:jruby]
10-
gem 'rspec-rails', '>= 3.1'
11-
gem 'rspec', '>= 3.1'
12-
gem 'growl'
13-
gem 'rb-fsevent'
14-
gem 'coveralls', :platforms => [:ruby_19, :ruby_20, :ruby_21]
15-
gem 'i18n', '< 0.7.0', :platforms => [:ruby_18]
6+
gem "pry-nav"
7+
gem "rack"
8+
gem "guard-rspec", platforms: [:ruby_19, :ruby_20, :ruby_21, :ruby_22]
9+
gem "rspec", ">= 3.1"
10+
gem "growl"
11+
gem "rb-fsevent"
12+
gem "coveralls", platforms: [:ruby_19, :ruby_20, :ruby_21, :ruby_22]
1613
end

Guardfile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
guard :rspec, cmd: "bundle exec rspec", all_on_start: true, all_after_pass: true do
2+
require "guard/rspec/dsl"
3+
dsl = Guard::RSpec::Dsl.new(self)
4+
5+
# RSpec files
6+
rspec = dsl.rspec
7+
watch(rspec.spec_helper) { rspec.spec_dir }
8+
watch(rspec.spec_support) { rspec.spec_dir }
9+
watch(rspec.spec_files)
10+
11+
watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" }
12+
end

0 commit comments

Comments
 (0)