├── .gitignore ├── .travis.yml ├── Appraisals ├── CHANGELOG.md ├── Gemfile ├── MIT-LICENSE ├── README.md ├── Rakefile ├── bin └── rails ├── fastly-rails.gemspec ├── gemfiles ├── rails_3.gemfile ├── rails_4.gemfile ├── rails_41.gemfile └── rails_5.gemfile ├── lib ├── fastly-rails.rb └── fastly-rails │ ├── action_controller │ ├── cache_control_headers.rb │ └── surrogate_key_headers.rb │ ├── active_record │ └── surrogate_key.rb │ ├── client.rb │ ├── configuration.rb │ ├── engine.rb │ ├── errors.rb │ ├── mongoid │ └── surrogate_key.rb │ ├── rack │ └── remove_set_cookie_header.rb │ └── version.rb └── test ├── dummy ├── README.rdoc ├── Rakefile ├── app │ ├── assets │ │ ├── images │ │ │ └── .keep │ │ ├── javascripts │ │ │ └── application.js │ │ └── stylesheets │ │ │ └── application.css │ ├── controllers │ │ ├── application_controller.rb │ │ ├── books_controller.rb │ │ └── concerns │ │ │ └── .keep │ ├── helpers │ │ └── application_helper.rb │ ├── mailers │ │ └── .keep │ ├── models │ │ ├── .keep │ │ ├── book.rb │ │ └── concerns │ │ │ └── .keep │ └── views │ │ ├── books │ │ ├── index.html.erb │ │ └── show.html.erb │ │ └── layouts │ │ └── application.html.erb ├── bin │ ├── bundle │ ├── rails │ └── rake ├── config.ru ├── config │ ├── application.rb │ ├── boot.rb │ ├── database.yml │ ├── environment.rb │ ├── environments │ │ ├── development.rb │ │ ├── production.rb │ │ └── test.rb │ ├── initializers │ │ ├── _rails_version_check.rb │ │ ├── backtrace_silencers.rb │ │ ├── filter_parameter_logging.rb │ │ ├── inflections.rb │ │ ├── mime_types.rb │ │ ├── secret_token.rb │ │ ├── session_store.rb │ │ └── wrap_parameters.rb │ ├── locales │ │ └── en.yml │ └── routes.rb ├── db │ ├── migrate │ │ ├── 20140407202136_create_books.rb │ │ └── 20150312044151_add_service_id_to_books.rb │ └── schema.rb ├── lib │ └── assets │ │ └── .keep ├── log │ └── .keep ├── public │ ├── 404.html │ ├── 422.html │ ├── 500.html │ └── favicon.ico └── test │ ├── controllers │ └── books_controller_test.rb │ ├── factories │ └── books.rb │ ├── fixtures │ └── books.yml │ ├── integration │ └── fastly_headers_test.rb │ ├── lib │ └── remove_set_cookie_header_test.rb │ └── models │ └── book_test.rb ├── fastly-rails ├── action_controller │ └── api_test.rb ├── active_record │ └── purge_test.rb ├── cache_control_headers_test.rb ├── client_test.rb └── configuration_test.rb ├── fastly-rails_test.rb └── test_helper.rb /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastly/fastly-rails/HEAD/.gitignore -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastly/fastly-rails/HEAD/.travis.yml -------------------------------------------------------------------------------- /Appraisals: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastly/fastly-rails/HEAD/Appraisals -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastly/fastly-rails/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /Gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastly/fastly-rails/HEAD/Gemfile -------------------------------------------------------------------------------- /MIT-LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastly/fastly-rails/HEAD/MIT-LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastly/fastly-rails/HEAD/README.md -------------------------------------------------------------------------------- /Rakefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastly/fastly-rails/HEAD/Rakefile -------------------------------------------------------------------------------- /bin/rails: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastly/fastly-rails/HEAD/bin/rails -------------------------------------------------------------------------------- /fastly-rails.gemspec: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastly/fastly-rails/HEAD/fastly-rails.gemspec -------------------------------------------------------------------------------- /gemfiles/rails_3.gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastly/fastly-rails/HEAD/gemfiles/rails_3.gemfile -------------------------------------------------------------------------------- /gemfiles/rails_4.gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastly/fastly-rails/HEAD/gemfiles/rails_4.gemfile -------------------------------------------------------------------------------- /gemfiles/rails_41.gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastly/fastly-rails/HEAD/gemfiles/rails_41.gemfile -------------------------------------------------------------------------------- /gemfiles/rails_5.gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastly/fastly-rails/HEAD/gemfiles/rails_5.gemfile -------------------------------------------------------------------------------- /lib/fastly-rails.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastly/fastly-rails/HEAD/lib/fastly-rails.rb -------------------------------------------------------------------------------- /lib/fastly-rails/action_controller/cache_control_headers.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastly/fastly-rails/HEAD/lib/fastly-rails/action_controller/cache_control_headers.rb -------------------------------------------------------------------------------- /lib/fastly-rails/action_controller/surrogate_key_headers.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastly/fastly-rails/HEAD/lib/fastly-rails/action_controller/surrogate_key_headers.rb -------------------------------------------------------------------------------- /lib/fastly-rails/active_record/surrogate_key.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastly/fastly-rails/HEAD/lib/fastly-rails/active_record/surrogate_key.rb -------------------------------------------------------------------------------- /lib/fastly-rails/client.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastly/fastly-rails/HEAD/lib/fastly-rails/client.rb -------------------------------------------------------------------------------- /lib/fastly-rails/configuration.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastly/fastly-rails/HEAD/lib/fastly-rails/configuration.rb -------------------------------------------------------------------------------- /lib/fastly-rails/engine.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastly/fastly-rails/HEAD/lib/fastly-rails/engine.rb -------------------------------------------------------------------------------- /lib/fastly-rails/errors.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastly/fastly-rails/HEAD/lib/fastly-rails/errors.rb -------------------------------------------------------------------------------- /lib/fastly-rails/mongoid/surrogate_key.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastly/fastly-rails/HEAD/lib/fastly-rails/mongoid/surrogate_key.rb -------------------------------------------------------------------------------- /lib/fastly-rails/rack/remove_set_cookie_header.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastly/fastly-rails/HEAD/lib/fastly-rails/rack/remove_set_cookie_header.rb -------------------------------------------------------------------------------- /lib/fastly-rails/version.rb: -------------------------------------------------------------------------------- 1 | module FastlyRails 2 | VERSION = "0.8.0" 3 | end 4 | -------------------------------------------------------------------------------- /test/dummy/README.rdoc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastly/fastly-rails/HEAD/test/dummy/README.rdoc -------------------------------------------------------------------------------- /test/dummy/Rakefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastly/fastly-rails/HEAD/test/dummy/Rakefile -------------------------------------------------------------------------------- /test/dummy/app/assets/images/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/dummy/app/assets/javascripts/application.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastly/fastly-rails/HEAD/test/dummy/app/assets/javascripts/application.js -------------------------------------------------------------------------------- /test/dummy/app/assets/stylesheets/application.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastly/fastly-rails/HEAD/test/dummy/app/assets/stylesheets/application.css -------------------------------------------------------------------------------- /test/dummy/app/controllers/application_controller.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastly/fastly-rails/HEAD/test/dummy/app/controllers/application_controller.rb -------------------------------------------------------------------------------- /test/dummy/app/controllers/books_controller.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastly/fastly-rails/HEAD/test/dummy/app/controllers/books_controller.rb -------------------------------------------------------------------------------- /test/dummy/app/controllers/concerns/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/dummy/app/helpers/application_helper.rb: -------------------------------------------------------------------------------- 1 | module ApplicationHelper 2 | end 3 | -------------------------------------------------------------------------------- /test/dummy/app/mailers/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/dummy/app/models/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/dummy/app/models/book.rb: -------------------------------------------------------------------------------- 1 | class Book < ActiveRecord::Base 2 | end 3 | -------------------------------------------------------------------------------- /test/dummy/app/models/concerns/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/dummy/app/views/books/index.html.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastly/fastly-rails/HEAD/test/dummy/app/views/books/index.html.erb -------------------------------------------------------------------------------- /test/dummy/app/views/books/show.html.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastly/fastly-rails/HEAD/test/dummy/app/views/books/show.html.erb -------------------------------------------------------------------------------- /test/dummy/app/views/layouts/application.html.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastly/fastly-rails/HEAD/test/dummy/app/views/layouts/application.html.erb -------------------------------------------------------------------------------- /test/dummy/bin/bundle: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastly/fastly-rails/HEAD/test/dummy/bin/bundle -------------------------------------------------------------------------------- /test/dummy/bin/rails: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastly/fastly-rails/HEAD/test/dummy/bin/rails -------------------------------------------------------------------------------- /test/dummy/bin/rake: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastly/fastly-rails/HEAD/test/dummy/bin/rake -------------------------------------------------------------------------------- /test/dummy/config.ru: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastly/fastly-rails/HEAD/test/dummy/config.ru -------------------------------------------------------------------------------- /test/dummy/config/application.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastly/fastly-rails/HEAD/test/dummy/config/application.rb -------------------------------------------------------------------------------- /test/dummy/config/boot.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastly/fastly-rails/HEAD/test/dummy/config/boot.rb -------------------------------------------------------------------------------- /test/dummy/config/database.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastly/fastly-rails/HEAD/test/dummy/config/database.yml -------------------------------------------------------------------------------- /test/dummy/config/environment.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastly/fastly-rails/HEAD/test/dummy/config/environment.rb -------------------------------------------------------------------------------- /test/dummy/config/environments/development.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastly/fastly-rails/HEAD/test/dummy/config/environments/development.rb -------------------------------------------------------------------------------- /test/dummy/config/environments/production.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastly/fastly-rails/HEAD/test/dummy/config/environments/production.rb -------------------------------------------------------------------------------- /test/dummy/config/environments/test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastly/fastly-rails/HEAD/test/dummy/config/environments/test.rb -------------------------------------------------------------------------------- /test/dummy/config/initializers/_rails_version_check.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastly/fastly-rails/HEAD/test/dummy/config/initializers/_rails_version_check.rb -------------------------------------------------------------------------------- /test/dummy/config/initializers/backtrace_silencers.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastly/fastly-rails/HEAD/test/dummy/config/initializers/backtrace_silencers.rb -------------------------------------------------------------------------------- /test/dummy/config/initializers/filter_parameter_logging.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastly/fastly-rails/HEAD/test/dummy/config/initializers/filter_parameter_logging.rb -------------------------------------------------------------------------------- /test/dummy/config/initializers/inflections.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastly/fastly-rails/HEAD/test/dummy/config/initializers/inflections.rb -------------------------------------------------------------------------------- /test/dummy/config/initializers/mime_types.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastly/fastly-rails/HEAD/test/dummy/config/initializers/mime_types.rb -------------------------------------------------------------------------------- /test/dummy/config/initializers/secret_token.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastly/fastly-rails/HEAD/test/dummy/config/initializers/secret_token.rb -------------------------------------------------------------------------------- /test/dummy/config/initializers/session_store.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastly/fastly-rails/HEAD/test/dummy/config/initializers/session_store.rb -------------------------------------------------------------------------------- /test/dummy/config/initializers/wrap_parameters.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastly/fastly-rails/HEAD/test/dummy/config/initializers/wrap_parameters.rb -------------------------------------------------------------------------------- /test/dummy/config/locales/en.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastly/fastly-rails/HEAD/test/dummy/config/locales/en.yml -------------------------------------------------------------------------------- /test/dummy/config/routes.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastly/fastly-rails/HEAD/test/dummy/config/routes.rb -------------------------------------------------------------------------------- /test/dummy/db/migrate/20140407202136_create_books.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastly/fastly-rails/HEAD/test/dummy/db/migrate/20140407202136_create_books.rb -------------------------------------------------------------------------------- /test/dummy/db/migrate/20150312044151_add_service_id_to_books.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastly/fastly-rails/HEAD/test/dummy/db/migrate/20150312044151_add_service_id_to_books.rb -------------------------------------------------------------------------------- /test/dummy/db/schema.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastly/fastly-rails/HEAD/test/dummy/db/schema.rb -------------------------------------------------------------------------------- /test/dummy/lib/assets/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/dummy/log/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/dummy/public/404.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastly/fastly-rails/HEAD/test/dummy/public/404.html -------------------------------------------------------------------------------- /test/dummy/public/422.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastly/fastly-rails/HEAD/test/dummy/public/422.html -------------------------------------------------------------------------------- /test/dummy/public/500.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastly/fastly-rails/HEAD/test/dummy/public/500.html -------------------------------------------------------------------------------- /test/dummy/public/favicon.ico: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/dummy/test/controllers/books_controller_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastly/fastly-rails/HEAD/test/dummy/test/controllers/books_controller_test.rb -------------------------------------------------------------------------------- /test/dummy/test/factories/books.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastly/fastly-rails/HEAD/test/dummy/test/factories/books.rb -------------------------------------------------------------------------------- /test/dummy/test/fixtures/books.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastly/fastly-rails/HEAD/test/dummy/test/fixtures/books.yml -------------------------------------------------------------------------------- /test/dummy/test/integration/fastly_headers_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastly/fastly-rails/HEAD/test/dummy/test/integration/fastly_headers_test.rb -------------------------------------------------------------------------------- /test/dummy/test/lib/remove_set_cookie_header_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastly/fastly-rails/HEAD/test/dummy/test/lib/remove_set_cookie_header_test.rb -------------------------------------------------------------------------------- /test/dummy/test/models/book_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastly/fastly-rails/HEAD/test/dummy/test/models/book_test.rb -------------------------------------------------------------------------------- /test/fastly-rails/action_controller/api_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastly/fastly-rails/HEAD/test/fastly-rails/action_controller/api_test.rb -------------------------------------------------------------------------------- /test/fastly-rails/active_record/purge_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastly/fastly-rails/HEAD/test/fastly-rails/active_record/purge_test.rb -------------------------------------------------------------------------------- /test/fastly-rails/cache_control_headers_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastly/fastly-rails/HEAD/test/fastly-rails/cache_control_headers_test.rb -------------------------------------------------------------------------------- /test/fastly-rails/client_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastly/fastly-rails/HEAD/test/fastly-rails/client_test.rb -------------------------------------------------------------------------------- /test/fastly-rails/configuration_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastly/fastly-rails/HEAD/test/fastly-rails/configuration_test.rb -------------------------------------------------------------------------------- /test/fastly-rails_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastly/fastly-rails/HEAD/test/fastly-rails_test.rb -------------------------------------------------------------------------------- /test/test_helper.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fastly/fastly-rails/HEAD/test/test_helper.rb --------------------------------------------------------------------------------