├── log └── .keep ├── .rspec ├── app ├── mailers │ └── .keep ├── models │ ├── .keep │ ├── concerns │ │ └── .keep │ ├── request.rb │ ├── page.rb │ ├── validator.rb │ └── sanitizer.rb ├── assets │ ├── images │ │ └── .keep │ ├── javascripts │ │ ├── string_list.json │ │ ├── application.js │ │ └── transgression.js │ └── stylesheets │ │ ├── application.css │ │ └── design.css ├── controllers │ ├── concerns │ │ └── .keep │ ├── visits_controller.rb │ └── application_controller.rb ├── helpers │ └── application_helper.rb └── views │ ├── visits │ └── index.html.erb │ └── layouts │ └── application.html.erb ├── lib ├── assets │ └── .keep └── tasks │ ├── .keep │ └── cucumber.rake ├── public ├── favicon.ico ├── robots.txt ├── assets │ └── string_list.json ├── 500.html ├── 422.html └── 404.html ├── .ruby-version ├── vendor └── assets │ ├── javascripts │ └── .keep │ └── stylesheets │ └── .keep ├── Procfile ├── bin ├── rake ├── bundle └── rails ├── config.ru ├── config ├── environment.rb ├── initializers │ ├── session_store.rb │ ├── filter_parameter_logging.rb │ ├── mime_types.rb │ ├── backtrace_silencers.rb │ ├── wrap_parameters.rb │ ├── inflections.rb │ └── secret_token.rb ├── boot.rb ├── cucumber.yml ├── unicorn.rb ├── locales │ └── en.yml ├── database.yml ├── environments │ ├── development.rb │ ├── test.rb │ └── production.rb ├── application.rb └── routes.rb ├── features ├── fixtures │ ├── irrelevant.html │ └── relevant.html ├── step_definitions │ ├── irrelevant_page_steps.rb │ └── relevant_page_steps.rb ├── prevent_unauthorized_use.feature ├── ease_of_use.feature └── support │ └── env.rb ├── Rakefile ├── script └── cucumber ├── db ├── seeds.rb └── schema.rb ├── .gitignore ├── Gemfile ├── spec └── spec_helper.rb ├── README.rdoc └── Gemfile.lock /log/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.rspec: -------------------------------------------------------------------------------- 1 | --color 2 | -------------------------------------------------------------------------------- /app/mailers/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /app/models/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lib/assets/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lib/tasks/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /public/favicon.ico: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.ruby-version: -------------------------------------------------------------------------------- 1 | 2.1.5 2 | -------------------------------------------------------------------------------- /app/assets/images/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /app/models/concerns/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /app/controllers/concerns/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/assets/javascripts/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/assets/stylesheets/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Procfile: -------------------------------------------------------------------------------- 1 | web: bundle exec unicorn -p $PORT -c ./config/unicorn.rb 2 | -------------------------------------------------------------------------------- /app/helpers/application_helper.rb: -------------------------------------------------------------------------------- 1 | module ApplicationHelper 2 | end 3 | -------------------------------------------------------------------------------- /bin/rake: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | require_relative '../config/boot' 3 | require 'rake' 4 | Rake.application.run 5 | -------------------------------------------------------------------------------- /bin/bundle: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__) 3 | load Gem.bin_path('bundler', 'bundle') 4 | -------------------------------------------------------------------------------- /bin/rails: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | APP_PATH = File.expand_path('../../config/application', __FILE__) 3 | require_relative '../config/boot' 4 | require 'rails/commands' 5 | -------------------------------------------------------------------------------- /config.ru: -------------------------------------------------------------------------------- 1 | # This file is used by Rack-based servers to start the application. 2 | 3 | require ::File.expand_path('../config/environment', __FILE__) 4 | run Rails.application 5 | -------------------------------------------------------------------------------- /config/environment.rb: -------------------------------------------------------------------------------- 1 | # Load the Rails application. 2 | require File.expand_path('../application', __FILE__) 3 | 4 | # Initialize the Rails application. 5 | Transgress::Application.initialize! 6 | -------------------------------------------------------------------------------- /config/initializers/session_store.rb: -------------------------------------------------------------------------------- 1 | # Be sure to restart your server when you modify this file. 2 | 3 | Transgress::Application.config.session_store :cookie_store, key: '_transgress_session' 4 | -------------------------------------------------------------------------------- /config/boot.rb: -------------------------------------------------------------------------------- 1 | # Set up gems listed in the Gemfile. 2 | ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__) 3 | 4 | require 'bundler/setup' if File.exist?(ENV['BUNDLE_GEMFILE']) 5 | -------------------------------------------------------------------------------- /features/fixtures/irrelevant.html: -------------------------------------------------------------------------------- 1 | 2 |
3 |Still not relevant
7 | 8 | 9 | -------------------------------------------------------------------------------- /public/robots.txt: -------------------------------------------------------------------------------- 1 | # See http://www.robotstxt.org/robotstxt.html for documentation on how to use the robots.txt file 2 | # 3 | # To ban all spiders from the entire site uncomment the next two lines: 4 | # User-agent: * 5 | # Disallow: / 6 | -------------------------------------------------------------------------------- /app/controllers/visits_controller.rb: -------------------------------------------------------------------------------- 1 | class VisitsController < ApplicationController 2 | def index 3 | end 4 | 5 | def show 6 | @response = Page.get_page(params[:page]) 7 | render inline: @response.to_s 8 | end 9 | end 10 | -------------------------------------------------------------------------------- /config/initializers/filter_parameter_logging.rb: -------------------------------------------------------------------------------- 1 | # Be sure to restart your server when you modify this file. 2 | 3 | # Configure sensitive parameters which will be filtered from the log file. 4 | Rails.application.config.filter_parameters += [:password] 5 | -------------------------------------------------------------------------------- /config/initializers/mime_types.rb: -------------------------------------------------------------------------------- 1 | # Be sure to restart your server when you modify this file. 2 | 3 | # Add new mime types for use in respond_to blocks: 4 | # Mime::Type.register "text/richtext", :rtf 5 | # Mime::Type.register_alias "text/html", :iphone 6 | -------------------------------------------------------------------------------- /app/controllers/application_controller.rb: -------------------------------------------------------------------------------- 1 | class ApplicationController < ActionController::Base 2 | # Prevent CSRF attacks by raising an exception. 3 | # For APIs, you may want to use :null_session instead. 4 | protect_from_forgery with: :exception 5 | end 6 | -------------------------------------------------------------------------------- /Rakefile: -------------------------------------------------------------------------------- 1 | # Add your own tasks in files placed in lib/tasks ending in .rake, 2 | # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake. 3 | 4 | require File.expand_path('../config/application', __FILE__) 5 | 6 | Transgress::Application.load_tasks 7 | -------------------------------------------------------------------------------- /public/assets/string_list.json: -------------------------------------------------------------------------------- 1 | { 2 | "safe": [ 3 | "transgender", 4 | "transsexual", 5 | "genderqueer", 6 | "trans", 7 | "queer" 8 | ], 9 | "flagged": [ 10 | "tranny", 11 | "shemale" 12 | ], 13 | "redemption": [ 14 | "discourse", 15 | "slur" 16 | ] 17 | } 18 | -------------------------------------------------------------------------------- /app/assets/javascripts/string_list.json: -------------------------------------------------------------------------------- 1 | { 2 | "safe": [ 3 | "transgender", 4 | "transsexual", 5 | "genderqueer", 6 | "trans", 7 | "queer" 8 | ], 9 | "flagged": [ 10 | "tranny", 11 | "shemale" 12 | ], 13 | "redemption": [ 14 | "discourse", 15 | "slur" 16 | ] 17 | } 18 | -------------------------------------------------------------------------------- /app/models/request.rb: -------------------------------------------------------------------------------- 1 | class Request 2 | class << self 3 | def get(url) 4 | resp = Net::HTTP::get_response(URI(url)) 5 | case resp 6 | when Net::HTTPRedirection 7 | resp = Net::HTTP::get_response(URI(resp["location"])) 8 | end 9 | 10 | resp.body 11 | end 12 | end 13 | end 14 | -------------------------------------------------------------------------------- /script/cucumber: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | 3 | vendored_cucumber_bin = Dir["#{File.dirname(__FILE__)}/../vendor/{gems,plugins}/cucumber*/bin/cucumber"].first 4 | if vendored_cucumber_bin 5 | load File.expand_path(vendored_cucumber_bin) 6 | else 7 | require 'rubygems' unless ENV['NO_RUBYGEMS'] 8 | require 'cucumber' 9 | load Cucumber::BINARY 10 | end 11 | -------------------------------------------------------------------------------- /db/seeds.rb: -------------------------------------------------------------------------------- 1 | # This file should contain all the record creation needed to seed the database with its default values. 2 | # The data can then be loaded with the rake db:seed (or created alongside the db with db:setup). 3 | # 4 | # Examples: 5 | # 6 | # cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }]) 7 | # Mayor.create(name: 'Emanuel', city: cities.first) 8 | -------------------------------------------------------------------------------- /features/step_definitions/irrelevant_page_steps.rb: -------------------------------------------------------------------------------- 1 | When(/^I attempt to access an irrelevant page$/) do 2 | f = File.open("#{File.dirname(__FILE__)}/../fixtures/irrelevant.html") 3 | FakeWeb.register_uri(:get, "http://www.irrelephant.com/", :body => f.read) 4 | visit('/visit/http%3A%2F%2Fwww.irrelephant.com%2F') 5 | end 6 | 7 | Then(/^I am told the page is not relevant$/) do 8 | expect(page.body).to match(/this is irrelevant/i) 9 | end 10 | -------------------------------------------------------------------------------- /config/initializers/backtrace_silencers.rb: -------------------------------------------------------------------------------- 1 | # Be sure to restart your server when you modify this file. 2 | 3 | # You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces. 4 | # Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ } 5 | 6 | # You can also remove all the silencers if you're trying to debug a problem that might stem from framework code. 7 | # Rails.backtrace_cleaner.remove_silencers! 8 | -------------------------------------------------------------------------------- /config/cucumber.yml: -------------------------------------------------------------------------------- 1 | <% 2 | rerun = File.file?('rerun.txt') ? IO.read('rerun.txt') : "" 3 | rerun_opts = rerun.to_s.strip.empty? ? "--format #{ENV['CUCUMBER_FORMAT'] || 'progress'} features" : "--format #{ENV['CUCUMBER_FORMAT'] || 'pretty'} #{rerun}" 4 | std_opts = "--format #{ENV['CUCUMBER_FORMAT'] || 'pretty'} --strict --tags ~@wip" 5 | %> 6 | default: <%= std_opts %> features 7 | wip: --tags @wip:3 --wip features 8 | rerun: <%= rerun_opts %> --format rerun --out rerun.txt --strict --tags ~@wip 9 | -------------------------------------------------------------------------------- /app/views/visits/index.html.erb: -------------------------------------------------------------------------------- 1 |Still trans-relevant
12 |
18 |
19 | If you are the application owner check the logs for more information.
56 | 57 | 58 | -------------------------------------------------------------------------------- /app/models/validator.rb: -------------------------------------------------------------------------------- 1 | class Validator 2 | class << self 3 | def validate(document) 4 | content = document.root.content 5 | content.encode!('UTF-8', 'UTF-8', :invalid => :replace) 6 | 7 | safe_regexes.each do |validator| 8 | return true if content =~ validator 9 | end 10 | 11 | check_flagged_terms(content) 12 | end 13 | 14 | def check_flagged_terms(content) 15 | potential = false 16 | flagged_regexes.each do |validator| 17 | if content =~ validator 18 | potential = true 19 | break 20 | end 21 | end 22 | 23 | if potential 24 | redemption_regexes.each do |validator| 25 | return true if content =~ validator 26 | end 27 | end 28 | 29 | false 30 | end 31 | 32 | def regexes 33 | @list ||= safe_regexes + flagged_regexes 34 | end 35 | 36 | def safe_regexes 37 | parse_json_list['safe'] 38 | end 39 | 40 | def flagged_regexes 41 | parse_json_list['flagged'] 42 | end 43 | 44 | def redemption_regexes 45 | parse_json_list['redemption'] 46 | end 47 | 48 | private 49 | 50 | def parse_json_list 51 | return @parsed_file if defined? @parsed_file 52 | filename = Rails.root + 'public/assets/string_list.json' 53 | list = JSON.parse(File.open(filename).read) 54 | @parsed_file = list.each do |category, arr| 55 | arr.map! do |str| 56 | Regexp.new(str, Regexp::IGNORECASE) 57 | end 58 | end 59 | end 60 | end 61 | end 62 | -------------------------------------------------------------------------------- /public/422.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |Maybe you tried to change something you didn't have access to.
55 |If you are the application owner check the logs for more information.
57 | 58 | 59 | -------------------------------------------------------------------------------- /Gemfile: -------------------------------------------------------------------------------- 1 | source 'https://rubygems.org' 2 | 3 | ruby '2.1.5' 4 | 5 | # Bundle edge Rails instead: gem 'rails', github: 'rails/rails' 6 | gem 'rails', '4.0.4' 7 | 8 | # Use SCSS for stylesheets 9 | gem 'sass-rails', '~> 4.0.2' 10 | gem 'bootstrap-sass' 11 | gem 'font-awesome-rails' 12 | 13 | # Use Uglifier as compressor for JavaScript assets 14 | gem 'uglifier', '>= 1.3.0' 15 | 16 | # Use CoffeeScript for .js.coffee assets and views 17 | gem 'coffee-rails', '~> 4.0.0' 18 | 19 | # See https://github.com/sstephenson/execjs#readme for more supported runtimes 20 | # gem 'therubyracer', platforms: :ruby 21 | 22 | # Use jquery as the JavaScript library 23 | gem 'jquery-rails' 24 | 25 | # Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks 26 | gem 'turbolinks' 27 | 28 | # Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder 29 | gem 'jbuilder', '~> 1.2' 30 | 31 | group :doc do 32 | # bundle exec rake doc:rails generates the API under doc/api. 33 | gem 'sdoc', require: false 34 | end 35 | 36 | gem 'rails_12factor', group: :production 37 | 38 | # Use ActiveModel has_secure_password 39 | # gem 'bcrypt', '~> 3.1.7' 40 | 41 | # Use unicorn as the app server 42 | gem 'unicorn' 43 | 44 | gem 'nokogiri' 45 | 46 | # Use Capistrano for deployment 47 | # gem 'capistrano', group: :development 48 | 49 | # Use debugger 50 | # gem 'debugger', group: [:development, :test] 51 | 52 | group :development, :test do 53 | gem 'rspec-rails' 54 | end 55 | 56 | group :test do 57 | gem 'cucumber-rails', require: false 58 | gem 'fakeweb' 59 | end 60 | -------------------------------------------------------------------------------- /public/404.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |You may have mistyped the address or the page may have moved.
55 |If you are the application owner check the logs for more information.
57 | 58 | 59 | -------------------------------------------------------------------------------- /config/environments/test.rb: -------------------------------------------------------------------------------- 1 | Transgress::Application.configure do 2 | # Settings specified here will take precedence over those in config/application.rb. 3 | 4 | # The test environment is used exclusively to run your application's 5 | # test suite. You never need to work with it otherwise. Remember that 6 | # your test database is "scratch space" for the test suite and is wiped 7 | # and recreated between test runs. Don't rely on the data there! 8 | config.cache_classes = true 9 | 10 | # Do not eager load code on boot. This avoids loading your whole application 11 | # just for the purpose of running a single test. If you are using a tool that 12 | # preloads Rails for running tests, you may have to set it to true. 13 | config.eager_load = false 14 | 15 | # Configure static asset server for tests with Cache-Control for performance. 16 | config.serve_static_assets = true 17 | config.static_cache_control = "public, max-age=3600" 18 | 19 | # Show full error reports and disable caching. 20 | config.consider_all_requests_local = true 21 | config.action_controller.perform_caching = false 22 | 23 | # Raise exceptions instead of rendering exception templates. 24 | config.action_dispatch.show_exceptions = false 25 | 26 | # Disable request forgery protection in test environment. 27 | config.action_controller.allow_forgery_protection = false 28 | 29 | # Tell Action Mailer not to deliver emails to the real world. 30 | # The :test delivery method accumulates sent emails in the 31 | # ActionMailer::Base.deliveries array. 32 | config.action_mailer.delivery_method = :test 33 | 34 | # Print deprecation notices to the stderr. 35 | config.active_support.deprecation = :stderr 36 | end 37 | -------------------------------------------------------------------------------- /spec/spec_helper.rb: -------------------------------------------------------------------------------- 1 | # This file is copied to spec/ when you run 'rails generate rspec:install' 2 | ENV["RAILS_ENV"] ||= 'test' 3 | require File.expand_path("../../config/environment", __FILE__) 4 | require 'rspec/rails' 5 | require 'rspec/autorun' 6 | 7 | # Requires supporting ruby files with custom matchers and macros, etc, 8 | # in spec/support/ and its subdirectories. 9 | Dir[Rails.root.join("spec/support/**/*.rb")].each { |f| require f } 10 | 11 | # Checks for pending migrations before tests are run. 12 | # If you are not using ActiveRecord, you can remove this line. 13 | ActiveRecord::Migration.check_pending! if defined?(ActiveRecord::Migration) 14 | 15 | RSpec.configure do |config| 16 | # ## Mock Framework 17 | # 18 | # If you prefer to use mocha, flexmock or RR, uncomment the appropriate line: 19 | # 20 | # config.mock_with :mocha 21 | # config.mock_with :flexmock 22 | # config.mock_with :rr 23 | 24 | # Remove this line if you're not using ActiveRecord or ActiveRecord fixtures 25 | config.fixture_path = "#{::Rails.root}/spec/fixtures" 26 | 27 | # If you're not using ActiveRecord, or you'd prefer not to run each of your 28 | # examples within a transaction, remove the following line or assign false 29 | # instead of true. 30 | config.use_transactional_fixtures = true 31 | 32 | # If true, the base class of anonymous controllers will be inferred 33 | # automatically. This will be the default behavior in future versions of 34 | # rspec-rails. 35 | config.infer_base_class_for_anonymous_controllers = false 36 | 37 | # Run specs in random order to surface order dependencies. If you find an 38 | # order dependency and want to debug it, you can fix the order by providing 39 | # the seed, which is printed after each run. 40 | # --seed 1234 41 | config.order = "random" 42 | end 43 | -------------------------------------------------------------------------------- /config/routes.rb: -------------------------------------------------------------------------------- 1 | Transgress::Application.routes.draw do 2 | # The priority is based upon order of creation: first created -> highest priority. 3 | # See how all your routes lay out with "rake routes". 4 | 5 | # You can have the root of your site routed with "root" 6 | # root 'welcome#index' 7 | 8 | get '/visit', to: 'visits#index' 9 | get '/visit/:page', to: 'visits#show', constraints: { page: /[\w%.-]*/ } 10 | post '/visit', to: 'visits#show' 11 | 12 | root 'visits#index' 13 | 14 | # Example of regular route: 15 | # get 'products/:id' => 'catalog#view' 16 | 17 | # Example of named route that can be invoked with purchase_url(id: product.id) 18 | # get 'products/:id/purchase' => 'catalog#purchase', as: :purchase 19 | 20 | # Example resource route (maps HTTP verbs to controller actions automatically): 21 | # resources :products 22 | 23 | # Example resource route with options: 24 | # resources :products do 25 | # member do 26 | # get 'short' 27 | # post 'toggle' 28 | # end 29 | # 30 | # collection do 31 | # get 'sold' 32 | # end 33 | # end 34 | 35 | # Example resource route with sub-resources: 36 | # resources :products do 37 | # resources :comments, :sales 38 | # resource :seller 39 | # end 40 | 41 | # Example resource route with more complex sub-resources: 42 | # resources :products do 43 | # resources :comments 44 | # resources :sales do 45 | # get 'recent', on: :collection 46 | # end 47 | # end 48 | 49 | # Example resource route with concerns: 50 | # concern :toggleable do 51 | # post 'toggle' 52 | # end 53 | # resources :posts, concerns: :toggleable 54 | # resources :photos, concerns: :toggleable 55 | 56 | # Example resource route within a namespace: 57 | # namespace :admin do 58 | # # Directs /admin/products/* to Admin::ProductsController 59 | # # (app/controllers/admin/products_controller.rb) 60 | # resources :products 61 | # end 62 | end 63 | -------------------------------------------------------------------------------- /app/models/sanitizer.rb: -------------------------------------------------------------------------------- 1 | require 'nokogiri' 2 | 3 | class Sanitizer 4 | class << self 5 | def sanitize(doc) 6 | new(doc).sanitize 7 | end 8 | end 9 | 10 | def initialize(page) 11 | self.page = page 12 | self.doc = page.body 13 | end 14 | 15 | def sanitize 16 | redirect_anchors 17 | redirect_links 18 | redirect_images 19 | redirect_scripts 20 | replace_text 21 | append_translator 22 | end 23 | 24 | private 25 | attr_accessor :doc, :page 26 | 27 | def replace_element_attribute(element, attribute) 28 | doc.xpath("//#{element}").each do |tag| 29 | next unless tag[attribute] 30 | next if tag[attribute] =~ /:\/\// 31 | tag[attribute] = tag[attribute].gsub(/^\/(.*)/, '/visit/'+page.url_safe_root+'\1') 32 | tag[attribute] = tag[attribute].gsub(/^([^\/].*)/, '/visit/'+page.url_safe_url+'\1') 33 | end 34 | end 35 | 36 | def redirect_anchors 37 | replace_element_attribute('a', 'href') 38 | end 39 | 40 | def redirect_links 41 | replace_element_attribute('link', 'href') 42 | end 43 | 44 | def redirect_images 45 | replace_element_attribute('img', 'src') 46 | end 47 | 48 | def redirect_scripts 49 | replace_element_attribute('script', 'src') 50 | end 51 | 52 | def replace_text 53 | doc.xpath('//text()').each do |text| 54 | next if text.parent.name =~ /script/i 55 | Validator::regexes.each_with_index do |regex, i| 56 | text.content = text.content.gsub(regex, "~*#{i}*~") 57 | end 58 | end 59 | end 60 | 61 | def append_translator 62 | jQ = Nokogiri::XML::Node.new('script', doc) 63 | jQ['src'] = "//code.jquery.com/jquery-1.11.0.min.js" 64 | doc.xpath('//head')[0].children.first.before(jQ) 65 | 66 | script = Nokogiri::XML::Node.new('script', doc) 67 | script['src'] = ApplicationController.helpers.asset_path("application.js") 68 | script['type'] = "text/javascript" 69 | doc.xpath('//head')[0].children.last.after(script) 70 | end 71 | end 72 | -------------------------------------------------------------------------------- /features/step_definitions/relevant_page_steps.rb: -------------------------------------------------------------------------------- 1 | When(/^I attempt to access a relevant page$/) do 2 | f = File.open("#{File.dirname(__FILE__)}/../fixtures/relevant.html") 3 | FakeWeb.register_uri(:get, "http://www.trans-relephancy.com/", :body => f.read) 4 | visit('/visit/http%3A%2F%2Fwww.trans-relephancy.com%2F') 5 | end 6 | 7 | When(/^I enter "([^"]*)"$/) do |site_url| 8 | f = File.open("#{File.dirname(__FILE__)}/../fixtures/relevant.html") 9 | FakeWeb.register_uri(:get, Page.fill_in_url_details(site_url), :body => f.read) 10 | visit('/visit/') 11 | fill_in "page", with: site_url 12 | click_on "transgress" 13 | end 14 | 15 | Then(/^I am given a filtered version of the requested page$/) do 16 | f = File.open("#{File.dirname(__FILE__)}/../fixtures/relevant.html") 17 | within('//body') do |body| 18 | expect(body).to_not have_content('this is irrelevant') 19 | expect(body).to_not have_content('trans') 20 | end 21 | end 22 | 23 | Then(/^any links in the page are routed through transgress$/) do 24 | expect(find(:css, "a[name='relative_link']")[:href]).to match("/visit/http%3A%2F%2Fwww.trans-relephancy.com%2Fpage%2Frelative_link.html") 25 | expect(find(:css, "a[name='absolute_link']")[:href]).to match("/visit/http%3A%2F%2Fwww.trans-relephancy.com%2Finternal_link.html") 26 | end 27 | 28 | Then(/^any stylesheets in the page are routed through transgress$/) do 29 | expect(find(:css, "link[title='relative_css']", visible: false)[:href]).to match("/visit/http%3A%2F%2Fwww.trans-relephancy.com%2Fpage%2Frelative_css.css") 30 | expect(find(:css, "link[title='absolute_css']", visible: false)[:href]).to match("/visit/http%3A%2F%2Fwww.trans-relephancy.com%2Finternal_css.css") 31 | end 32 | 33 | Then(/^any images are routed through transgress$/) do 34 | expect(find(:css, "img[name='relative_img']")[:src]).to match("/visit/http%3A%2F%2Fwww.trans-relephancy.com%2Fpage%2Frelative_img.jpg") 35 | expect(find(:css, "img[name='absolute_img']")[:src]).to match("/visit/http%3A%2F%2Fwww.trans-relephancy.com%2Fabsolute_img.jpg") 36 | end 37 | 38 | Then(/^any scripts are routed through transgress$/) do 39 | all(:css, 'script', visible: false).each do |s| 40 | expect(s[:src]).to_not match(/^\/absolute/) 41 | expect(s[:src]).to_not match(/^relative/) 42 | end 43 | end 44 | -------------------------------------------------------------------------------- /lib/tasks/cucumber.rake: -------------------------------------------------------------------------------- 1 | # IMPORTANT: This file is generated by cucumber-rails - edit at your own peril. 2 | # It is recommended to regenerate this file in the future when you upgrade to a 3 | # newer version of cucumber-rails. Consider adding your own code to a new file 4 | # instead of editing this one. Cucumber will automatically load all features/**/*.rb 5 | # files. 6 | 7 | 8 | unless ARGV.any? {|a| a =~ /^gems/} # Don't load anything when running the gems:* tasks 9 | 10 | vendored_cucumber_bin = Dir["#{Rails.root}/vendor/{gems,plugins}/cucumber*/bin/cucumber"].first 11 | $LOAD_PATH.unshift(File.dirname(vendored_cucumber_bin) + '/../lib') unless vendored_cucumber_bin.nil? 12 | 13 | begin 14 | require 'cucumber/rake/task' 15 | 16 | namespace :cucumber do 17 | Cucumber::Rake::Task.new({:ok => 'test:prepare'}, 'Run features that should pass') do |t| 18 | t.binary = vendored_cucumber_bin # If nil, the gem's binary is used. 19 | t.fork = true # You may get faster startup if you set this to false 20 | t.profile = 'default' 21 | end 22 | 23 | Cucumber::Rake::Task.new({:wip => 'test:prepare'}, 'Run features that are being worked on') do |t| 24 | t.binary = vendored_cucumber_bin 25 | t.fork = true # You may get faster startup if you set this to false 26 | t.profile = 'wip' 27 | end 28 | 29 | Cucumber::Rake::Task.new({:rerun => 'test:prepare'}, 'Record failing features and run only them if any exist') do |t| 30 | t.binary = vendored_cucumber_bin 31 | t.fork = true # You may get faster startup if you set this to false 32 | t.profile = 'rerun' 33 | end 34 | 35 | desc 'Run all features' 36 | task :all => [:ok, :wip] 37 | 38 | task :statsetup do 39 | require 'rails/code_statistics' 40 | ::STATS_DIRECTORIES << %w(Cucumber\ features features) if File.exist?('features') 41 | ::CodeStatistics::TEST_TYPES << "Cucumber features" if File.exist?('features') 42 | end 43 | end 44 | desc 'Alias for cucumber:ok' 45 | task :cucumber => 'cucumber:ok' 46 | 47 | task :default => :cucumber 48 | 49 | task :features => :cucumber do 50 | STDERR.puts "*** The 'features' task is deprecated. See rake -T cucumber ***" 51 | end 52 | 53 | # In case we don't have the generic Rails test:prepare hook, append a no-op task that we can depend upon. 54 | task 'test:prepare' do 55 | end 56 | 57 | task :stats => 'cucumber:statsetup' 58 | rescue LoadError 59 | desc 'cucumber rake task not available (cucumber not installed)' 60 | task :cucumber do 61 | abort 'Cucumber rake task is not available. Be sure to install cucumber as a gem or plugin' 62 | end 63 | end 64 | 65 | end 66 | -------------------------------------------------------------------------------- /features/support/env.rb: -------------------------------------------------------------------------------- 1 | # IMPORTANT: This file is generated by cucumber-rails - edit at your own peril. 2 | # It is recommended to regenerate this file in the future when you upgrade to a 3 | # newer version of cucumber-rails. Consider adding your own code to a new file 4 | # instead of editing this one. Cucumber will automatically load all features/**/*.rb 5 | # files. 6 | 7 | require 'cucumber/rails' 8 | 9 | # Capybara defaults to CSS3 selectors rather than XPath. 10 | # If you'd prefer to use XPath, just uncomment this line and adjust any 11 | # selectors in your step definitions to use the XPath syntax. 12 | # Capybara.default_selector = :xpath 13 | 14 | # By default, any exception happening in your Rails application will bubble up 15 | # to Cucumber so that your scenario will fail. This is a different from how 16 | # your application behaves in the production environment, where an error page will 17 | # be rendered instead. 18 | # 19 | # Sometimes we want to override this default behaviour and allow Rails to rescue 20 | # exceptions and display an error page (just like when the app is running in production). 21 | # Typical scenarios where you want to do this is when you test your error pages. 22 | # There are two ways to allow Rails to rescue exceptions: 23 | # 24 | # 1) Tag your scenario (or feature) with @allow-rescue 25 | # 26 | # 2) Set the value below to true. Beware that doing this globally is not 27 | # recommended as it will mask a lot of errors for you! 28 | # 29 | ActionController::Base.allow_rescue = false 30 | 31 | # Remove/comment out the lines below if your app doesn't have a database. 32 | # For some databases (like MongoDB and CouchDB) you may need to use :truncation instead. 33 | # begin 34 | # DatabaseCleaner.strategy = :transaction 35 | # rescue NameError 36 | # raise "You need to add database_cleaner to your Gemfile (in the :test group) if you wish to use it." 37 | # end 38 | 39 | # You may also want to configure DatabaseCleaner to use different strategies for certain features and scenarios. 40 | # See the DatabaseCleaner documentation for details. Example: 41 | # 42 | # Before('@no-txn,@selenium,@culerity,@celerity,@javascript') do 43 | # # { :except => [:widgets] } may not do what you expect here 44 | # # as Cucumber::Rails::Database.javascript_strategy overrides 45 | # # this setting. 46 | # DatabaseCleaner.strategy = :truncation 47 | # end 48 | # 49 | # Before('~@no-txn', '~@selenium', '~@culerity', '~@celerity', '~@javascript') do 50 | # DatabaseCleaner.strategy = :transaction 51 | # end 52 | # 53 | 54 | # Possible values are :truncation and :transaction 55 | # The :transaction strategy is faster, but might give you threading problems. 56 | # See https://github.com/cucumber/cucumber-rails/blob/master/features/choose_javascript_database_strategy.feature 57 | # Cucumber::Rails::Database.javascript_strategy = :truncation 58 | 59 | -------------------------------------------------------------------------------- /config/environments/production.rb: -------------------------------------------------------------------------------- 1 | Transgress::Application.configure do 2 | # Settings specified here will take precedence over those in config/application.rb. 3 | 4 | # Code is not reloaded between requests. 5 | config.cache_classes = true 6 | 7 | # Eager load code on boot. This eager loads most of Rails and 8 | # your application in memory, allowing both thread web servers 9 | # and those relying on copy on write to perform better. 10 | # Rake tasks automatically ignore this option for performance. 11 | config.eager_load = true 12 | 13 | # Full error reports are disabled and caching is turned on. 14 | config.consider_all_requests_local = false 15 | config.action_controller.perform_caching = true 16 | 17 | # Enable Rack::Cache to put a simple HTTP cache in front of your application 18 | # Add `rack-cache` to your Gemfile before enabling this. 19 | # For large-scale production use, consider using a caching reverse proxy like nginx, varnish or squid. 20 | # config.action_dispatch.rack_cache = true 21 | 22 | # Disable Rails's static asset server (Apache or nginx will already do this). 23 | config.serve_static_assets = false 24 | 25 | # Compress JavaScripts and CSS. 26 | config.assets.js_compressor = :uglifier 27 | # config.assets.css_compressor = :sass 28 | 29 | # Do not fallback to assets pipeline if a precompiled asset is missed. 30 | config.assets.compile = false 31 | 32 | # Generate digests for assets URLs. 33 | config.assets.digest = true 34 | 35 | # Version of your assets, change this if you want to expire all your assets. 36 | config.assets.version = '1.0' 37 | 38 | # Specifies the header that your server uses for sending files. 39 | # config.action_dispatch.x_sendfile_header = "X-Sendfile" # for apache 40 | # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for nginx 41 | 42 | # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies. 43 | # config.force_ssl = true 44 | 45 | # Set to :debug to see everything in the log. 46 | config.log_level = :info 47 | 48 | # Prepend all log lines with the following tags. 49 | # config.log_tags = [ :subdomain, :uuid ] 50 | 51 | # Use a different logger for distributed setups. 52 | # config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new) 53 | 54 | # Use a different cache store in production. 55 | # config.cache_store = :mem_cache_store 56 | 57 | # Enable serving of images, stylesheets, and JavaScripts from an asset server. 58 | # config.action_controller.asset_host = "http://assets.example.com" 59 | 60 | # Precompile additional assets. 61 | # application.js, application.css, and all non-JS/CSS in app/assets folder are already added. 62 | # config.assets.precompile += %w( search.js ) 63 | 64 | # Ignore bad email addresses and do not raise email delivery errors. 65 | # Set this to true and configure the email server for immediate delivery to raise delivery errors. 66 | # config.action_mailer.raise_delivery_errors = false 67 | 68 | # Enable locale fallbacks for I18n (makes lookups for any locale fall back to 69 | # the I18n.default_locale when a translation can not be found). 70 | config.i18n.fallbacks = true 71 | 72 | # Send deprecation notices to registered listeners. 73 | config.active_support.deprecation = :notify 74 | 75 | # Disable automatic flushing of the log to improve performance. 76 | # config.autoflush_log = false 77 | 78 | # Use default logging formatter so that PID and timestamp are not suppressed. 79 | config.log_formatter = ::Logger::Formatter.new 80 | end 81 | -------------------------------------------------------------------------------- /README.rdoc: -------------------------------------------------------------------------------- 1 | == Transgress 2 | 3 | === Please Note: This is not a finished product yet, scroll down to the bottom to find out how you can help! 4 | 5 | The ones who most need to access trans-related services and information, the most vulnerable among us, are often the ones 6 | with the least access to these sites. As governments and public networks begin to add content filtering services to their 7 | open networks, transient trans people and trans youth who have not come out find their access to critical resources dwindling. 8 | Many content systems overzealously block sites even tangentially mentioning trans people or the issues they face. When 9 | sites offering information that could help ease a person's sense of isolation or suffering are blocked, it directly impacts 10 | their safety in a very real sense. 11 | 12 | Transgress is a simple, easy-to-use proxy service that allows people to access sites that are relevant to trans people. 13 | It requests a site from an unfiltered location, checks to see if it is relevant to trans issues, replaces any potentially 14 | flagged words, and sends the page on to the requester. In addition to the standard content of the page, a javascript file 15 | is also included, that, upon the page loading completely, repairs the word replacements, restoring the content to its 16 | original state. Any links and content that is part of the site being browsed, is also run through transgress, so you should 17 | be able to browse, as normal, without worrying about any technical details. 18 | 19 | Built into the system is a relatively simple content checking service. If a site does not appear to be related to trans 20 | issues and people, the page served up will be a simple page describing the fact that this service should not be used for 21 | unintended purposes. This should hopefully prevent the service from being flagged by content filter providers as potentially 22 | problematic. It is my hope, that if this service is flagged, that another instance can be created for continued public usage. 23 | Furthermore, such a banning could be a jumping off point to begin discussing with these providers about how these services 24 | can harm already disadvantaged people, and create a dialogue for balancing security and safety in a responsible manner. 25 | 26 | == How YOU can help 27 | 28 | It is my hope that Transgress will continue to develop to become increasingly robust so that those who need the resources 29 | available on the internet can access them in a safe and convenient way. 30 | 31 | Feel free to contact the maintainers of this project by opening an issue in the github repo located at 32 | https://github.com/Valarissa/transgress 33 | 34 | Pull requests are also, not only welcome, but actively encouraged! 35 | 36 | If you know quite a bit about cross-site scripting, I'd love to talk to see if it would be possible to address certain XSS 37 | issues currently present. If you want some additional feature of some sort, by all means, create an issue and we'll talk about 38 | the potential of adding it! 39 | 40 | Adding a new term to search for or replace is INCREDIBLY easy. Just add things to 41 | https://github.com/Valarissa/transgress/blob/master/public/assets/string_list.json 42 | and send the additions as a pull request. That's it. SUPER simple. With a few more additions to the JS code and some changes 43 | to the views, this project will be working as it's intended. 44 | 45 | == Development 46 | 47 | === Getting started—first time set up 48 | 49 | * Check out source code. 50 | 51 | * Set up your ruby environment. 52 | 53 | There are many options for installing the version of ruby used by this project (currently 2.1.0). Here’s how to do it with rbenv: 54 | 55 | rbenv install 56 | 57 | See also docs for rbenv[https://github.com/sstephenson/rbenv], RVM[https://rvm.io/], chruby[https://github.com/postmodern/chruby] 58 | 59 | * Install gems. 60 | 61 | gem install bundler 62 | bundle install 63 | 64 | === Starting the app 65 | 66 | bundle exec rackup 67 | 68 | Open http://localhost:9292 in your browser. 69 | -------------------------------------------------------------------------------- /app/assets/stylesheets/design.css: -------------------------------------------------------------------------------- 1 | /* Global Styles */ 2 | 3 | html, 4 | body { 5 | height: 100%; 6 | width: 100%; 7 | } 8 | 9 | .intro-text { 10 | padding-left: 15%; 11 | padding-right: 15%; 12 | margin-bottom: 25px; 13 | } 14 | 15 | .vert-text { 16 | display: table-cell; 17 | vertical-align: middle; 18 | text-align: center; 19 | } 20 | 21 | .vert-text h1 { 22 | padding: 0; 23 | margin: 0; 24 | font-size: 4.5em; 25 | font-weight: 700; 26 | } 27 | 28 | /* Side Menu */ 29 | 30 | #sidebar-wrapper { 31 | margin-right: -250px; 32 | right: 0; 33 | width: 250px; 34 | background: #000; 35 | position: fixed; 36 | height: 100%; 37 | overflow-y: auto; 38 | z-index: 1000; 39 | -webkit-transition: all 0.4s ease 0s; 40 | -moz-transition: all 0.4s ease 0s; 41 | -ms-transition: all 0.4s ease 0s; 42 | -o-transition: all 0.4s ease 0s; 43 | transition: all 0.4s ease 0s; 44 | } 45 | 46 | .sidebar-nav { 47 | position: absolute; 48 | top: 0; 49 | width: 250px; 50 | list-style: none; 51 | margin: 0; 52 | padding: 0; 53 | } 54 | 55 | .sidebar-nav li { 56 | line-height: 40px; 57 | text-indent: 20px; 58 | } 59 | 60 | .sidebar-nav li a { 61 | color: #999999; 62 | display: block; 63 | text-decoration: none; 64 | } 65 | 66 | .sidebar-nav li a:hover { 67 | color: #fff; 68 | background: rgba(255,255,255,0.2); 69 | text-decoration: none; 70 | } 71 | 72 | .sidebar-nav li a:active, 73 | .sidebar-nav li a:focus { 74 | text-decoration: none; 75 | } 76 | 77 | .sidebar-nav > .sidebar-brand { 78 | height: 55px; 79 | line-height: 55px; 80 | font-size: 18px; 81 | } 82 | 83 | .sidebar-nav > .sidebar-brand a { 84 | color: #999999; 85 | } 86 | 87 | .sidebar-nav > .sidebar-brand a:hover { 88 | color: #fff; 89 | background: none; 90 | } 91 | 92 | #menu-toggle { 93 | top: 0; 94 | right: 0; 95 | position: fixed; 96 | z-index: 1; 97 | } 98 | 99 | #sidebar-wrapper.active { 100 | right: 250px; 101 | width: 250px; 102 | -webkit-transition: all 0.4s ease 0s; 103 | -moz-transition: all 0.4s ease 0s; 104 | -ms-transition: all 0.4s ease 0s; 105 | -o-transition: all 0.4s ease 0s; 106 | transition: all 0.4s ease 0s; 107 | } 108 | 109 | .toggle { 110 | margin: 5px 5px 0 0; 111 | } 112 | 113 | /* Full Page Image Header Area */ 114 | 115 | .header { 116 | display: table; 117 | height: 100%; 118 | width: 100%; 119 | position: relative; 120 | /* background: url(background.png) no-repeat center center fixed; */ 121 | -webkit-background-size: cover; 122 | -moz-background-size: cover; 123 | -o-background-size: cover; 124 | background-size: cover; 125 | } 126 | 127 | /* Intro */ 128 | 129 | .intro { 130 | padding: 50px 0; 131 | } 132 | 133 | /* Services */ 134 | 135 | .services { 136 | background: #7fbbda; 137 | padding: 50px 0; 138 | color: #ffffff; 139 | } 140 | 141 | .service-item { 142 | margin-bottom: 15px; 143 | } 144 | 145 | i.service-icon { 146 | border: 3px solid #ffffff; 147 | border-radius: 50%; 148 | display: inline-block; 149 | font-size: 56px; 150 | width: 140px; 151 | height: 140px; 152 | line-height: 136px; 153 | vertical-align: middle; 154 | text-align: center; 155 | } 156 | 157 | /* Callout */ 158 | 159 | .callout { 160 | color: #ffffff; 161 | display: table; 162 | height: 400px; 163 | width: 100%; 164 | background: url(../img/callout.jpg) no-repeat center center fixed; 165 | -webkit-background-size: cover; 166 | -moz-background-size: cover; 167 | -o-background-size: cover; 168 | background-size: cover; 169 | } 170 | 171 | /* Portfolio */ 172 | 173 | .portfolio { 174 | padding: 50px 0; 175 | } 176 | 177 | .portfolio-item { 178 | margin-bottom: 25px; 179 | } 180 | 181 | .img-portfolio { 182 | margin: 0 auto; 183 | } 184 | 185 | 186 | /* Call to Action */ 187 | 188 | .call-to-action { 189 | color: #ffffff; 190 | background: #0a5175; 191 | padding: 50px 0; 192 | } 193 | 194 | .call-to-action .btn { 195 | margin: 10px; 196 | } 197 | 198 | /* Map */ 199 | 200 | .map { 201 | height: 500px; 202 | } 203 | 204 | /* Footer */ 205 | 206 | footer { 207 | padding: 100px 0; 208 | } 209 | 210 | .top-scroll { 211 | margin-top: 50px; 212 | } 213 | 214 | .top-scroll a { 215 | text-decoration: none; 216 | color: inherit; 217 | } 218 | 219 | i.scroll { 220 | color: #333333; 221 | } 222 | 223 | i.scroll:hover { 224 | color: #0a5175; 225 | } 226 | -------------------------------------------------------------------------------- /Gemfile.lock: -------------------------------------------------------------------------------- 1 | GEM 2 | remote: https://rubygems.org/ 3 | specs: 4 | actionmailer (4.0.4) 5 | actionpack (= 4.0.4) 6 | mail (~> 2.5.4) 7 | actionpack (4.0.4) 8 | activesupport (= 4.0.4) 9 | builder (~> 3.1.0) 10 | erubis (~> 2.7.0) 11 | rack (~> 1.5.2) 12 | rack-test (~> 0.6.2) 13 | activemodel (4.0.4) 14 | activesupport (= 4.0.4) 15 | builder (~> 3.1.0) 16 | activerecord (4.0.4) 17 | activemodel (= 4.0.4) 18 | activerecord-deprecated_finders (~> 1.0.2) 19 | activesupport (= 4.0.4) 20 | arel (~> 4.0.0) 21 | activerecord-deprecated_finders (1.0.3) 22 | activesupport (4.0.4) 23 | i18n (~> 0.6, >= 0.6.9) 24 | minitest (~> 4.2) 25 | multi_json (~> 1.3) 26 | thread_safe (~> 0.1) 27 | tzinfo (~> 0.3.37) 28 | arel (4.0.2) 29 | bootstrap-sass (3.3.1.0) 30 | sass (~> 3.2) 31 | builder (3.1.4) 32 | capybara (2.4.4) 33 | mime-types (>= 1.16) 34 | nokogiri (>= 1.3.3) 35 | rack (>= 1.0.0) 36 | rack-test (>= 0.5.4) 37 | xpath (~> 2.0) 38 | coffee-rails (4.0.1) 39 | coffee-script (>= 2.2.0) 40 | railties (>= 4.0.0, < 5.0) 41 | coffee-script (2.3.0) 42 | coffee-script-source 43 | execjs 44 | coffee-script-source (1.8.0) 45 | cucumber (1.3.17) 46 | builder (>= 2.1.2) 47 | diff-lcs (>= 1.1.3) 48 | gherkin (~> 2.12) 49 | multi_json (>= 1.7.5, < 2.0) 50 | multi_test (>= 0.1.1) 51 | cucumber-rails (1.4.2) 52 | capybara (>= 1.1.2, < 3) 53 | cucumber (>= 1.3.8, < 2) 54 | mime-types (>= 1.16, < 3) 55 | nokogiri (~> 1.5) 56 | rails (>= 3, < 5) 57 | diff-lcs (1.2.5) 58 | erubis (2.7.0) 59 | execjs (2.2.2) 60 | fakeweb (1.3.0) 61 | font-awesome-rails (4.2.0.0) 62 | railties (>= 3.2, < 5.0) 63 | gherkin (2.12.2) 64 | multi_json (~> 1.3) 65 | hike (1.2.3) 66 | i18n (0.6.11) 67 | jbuilder (1.5.3) 68 | activesupport (>= 3.0.0) 69 | multi_json (>= 1.2.0) 70 | jquery-rails (3.1.2) 71 | railties (>= 3.0, < 5.0) 72 | thor (>= 0.14, < 2.0) 73 | json (1.8.1) 74 | kgio (2.9.2) 75 | mail (2.5.4) 76 | mime-types (~> 1.16) 77 | treetop (~> 1.4.8) 78 | mime-types (1.25.1) 79 | mini_portile (0.6.1) 80 | minitest (4.7.5) 81 | multi_json (1.10.1) 82 | multi_test (0.1.1) 83 | nokogiri (1.6.4.1) 84 | mini_portile (~> 0.6.0) 85 | polyglot (0.3.5) 86 | rack (1.5.2) 87 | rack-test (0.6.2) 88 | rack (>= 1.0) 89 | rails (4.0.4) 90 | actionmailer (= 4.0.4) 91 | actionpack (= 4.0.4) 92 | activerecord (= 4.0.4) 93 | activesupport (= 4.0.4) 94 | bundler (>= 1.3.0, < 2.0) 95 | railties (= 4.0.4) 96 | sprockets-rails (~> 2.0.0) 97 | rails_12factor (0.0.3) 98 | rails_serve_static_assets 99 | rails_stdout_logging 100 | rails_serve_static_assets (0.0.2) 101 | rails_stdout_logging (0.0.3) 102 | railties (4.0.4) 103 | actionpack (= 4.0.4) 104 | activesupport (= 4.0.4) 105 | rake (>= 0.8.7) 106 | thor (>= 0.18.1, < 2.0) 107 | raindrops (0.13.0) 108 | rake (10.3.2) 109 | rdoc (4.1.2) 110 | json (~> 1.4) 111 | rspec-core (3.1.7) 112 | rspec-support (~> 3.1.0) 113 | rspec-expectations (3.1.2) 114 | diff-lcs (>= 1.2.0, < 2.0) 115 | rspec-support (~> 3.1.0) 116 | rspec-mocks (3.1.3) 117 | rspec-support (~> 3.1.0) 118 | rspec-rails (3.1.0) 119 | actionpack (>= 3.0) 120 | activesupport (>= 3.0) 121 | railties (>= 3.0) 122 | rspec-core (~> 3.1.0) 123 | rspec-expectations (~> 3.1.0) 124 | rspec-mocks (~> 3.1.0) 125 | rspec-support (~> 3.1.0) 126 | rspec-support (3.1.2) 127 | sass (3.2.19) 128 | sass-rails (4.0.4) 129 | railties (>= 4.0.0, < 5.0) 130 | sass (~> 3.2.2) 131 | sprockets (~> 2.8, < 2.12) 132 | sprockets-rails (~> 2.0) 133 | sdoc (0.4.1) 134 | json (~> 1.7, >= 1.7.7) 135 | rdoc (~> 4.0) 136 | sprockets (2.11.3) 137 | hike (~> 1.2) 138 | multi_json (~> 1.0) 139 | rack (~> 1.0) 140 | tilt (~> 1.1, != 1.3.0) 141 | sprockets-rails (2.0.1) 142 | actionpack (>= 3.0) 143 | activesupport (>= 3.0) 144 | sprockets (~> 2.8) 145 | thor (0.19.1) 146 | thread_safe (0.3.4) 147 | tilt (1.4.1) 148 | treetop (1.4.15) 149 | polyglot 150 | polyglot 151 | polyglot 152 | polyglot 153 | polyglot 154 | polyglot 155 | polyglot 156 | polyglot 157 | polyglot 158 | polyglot 159 | polyglot 160 | polyglot 161 | polyglot 162 | polyglot 163 | polyglot 164 | polyglot 165 | polyglot 166 | polyglot (>= 0.3.1) 167 | polyglot (>= 0.3.1) 168 | polyglot (>= 0.3.1) 169 | polyglot (>= 0.3.1) 170 | polyglot (>= 0.3.1) 171 | polyglot (>= 0.3.1) 172 | polyglot (>= 0.3.1) 173 | polyglot (>= 0.3.1) 174 | polyglot (>= 0.3.1) 175 | polyglot (>= 0.3.1) 176 | polyglot (>= 0.3.1) 177 | polyglot (>= 0.3.1) 178 | polyglot (>= 0.3.1) 179 | polyglot (>= 0.3.1) 180 | polyglot (>= 0.3.1) 181 | polyglot (>= 0.3.1) 182 | polyglot (>= 0.3.1) 183 | polyglot (>= 0.3.1) 184 | polyglot (>= 0.3.1) 185 | polyglot (>= 0.3.1) 186 | polyglot (>= 0.3.1) 187 | polyglot (>= 0.3.1) 188 | polyglot (>= 0.3.1) 189 | polyglot (>= 0.3.1) 190 | polyglot (>= 0.3.1) 191 | polyglot (>= 0.3.1) 192 | polyglot (>= 0.3.1) 193 | polyglot (>= 0.3.1) 194 | polyglot (>= 0.3.1) 195 | polyglot (>= 0.3.1) 196 | polyglot (>= 0.3.1) 197 | polyglot (>= 0.3.1) 198 | polyglot (>= 0.3.1) 199 | polyglot (>= 0.3.1) 200 | polyglot (>= 0.3.1) 201 | polyglot (>= 0.3.1) 202 | polyglot (>= 0.3.1) 203 | polyglot (>= 0.3.1) 204 | polyglot (>= 0.3.1) 205 | polyglot (>= 0.3.1) 206 | polyglot (>= 0.3.1) 207 | polyglot (>= 0.3.1) 208 | polyglot (>= 0.3.1) 209 | polyglot (>= 0.3.1) 210 | polyglot (>= 0.3.1) 211 | polyglot (>= 0.3.1) 212 | polyglot (>= 0.3.1) 213 | polyglot (>= 0.3.1) 214 | polyglot (>= 0.3.1) 215 | polyglot (>= 0.3.1) 216 | polyglot (>= 0.3.1) 217 | polyglot (>= 0.3.1) 218 | polyglot (>= 0.3.1) 219 | polyglot (>= 0.3.1) 220 | polyglot (>= 0.3.1) 221 | polyglot (>= 0.3.1) 222 | polyglot (>= 0.3.1) 223 | polyglot (>= 0.3.1) 224 | polyglot (>= 0.3.1) 225 | polyglot (>= 0.3.1) 226 | polyglot (>= 0.3.1) 227 | polyglot (>= 0.3.1) 228 | polyglot (>= 0.3.1) 229 | polyglot (>= 0.3.1) 230 | polyglot (>= 0.3.1) 231 | polyglot (>= 0.3.1) 232 | polyglot (>= 0.3.1) 233 | polyglot (>= 0.3.1) 234 | polyglot (>= 0.3.1) 235 | polyglot (>= 0.3.1) 236 | polyglot (>= 0.3.1) 237 | polyglot (>= 0.3.1) 238 | polyglot (>= 0.3.1) 239 | polyglot (>= 0.3.1) 240 | polyglot (>= 0.3.1) 241 | polyglot (>= 0.3.1) 242 | polyglot (>= 0.3.1) 243 | polyglot (>= 0.3.1) 244 | polyglot (>= 0.3.1) 245 | polyglot (>= 0.3.1) 246 | polyglot (>= 0.3.1) 247 | polyglot (>= 0.3.1) 248 | polyglot (>= 0.3.1) 249 | polyglot (>= 0.3.1) 250 | polyglot (>= 0.3.1) 251 | polyglot (>= 0.3.1) 252 | polyglot (>= 0.3.1) 253 | polyglot (>= 0.3.1) 254 | polyglot (>= 0.3.1) 255 | polyglot (>= 0.3.1) 256 | polyglot (>= 0.3.1) 257 | polyglot (>= 0.3.1) 258 | polyglot (>= 0.3.1) 259 | polyglot (>= 0.3.1) 260 | polyglot (>= 0.3.1) 261 | polyglot (>= 0.3.1) 262 | polyglot (>= 0.3.1) 263 | polyglot (>= 0.3.1) 264 | polyglot (>= 0.3.1) 265 | polyglot (>= 0.3.1) 266 | polyglot (>= 0.3.1) 267 | polyglot (>= 0.3.1) 268 | polyglot (>= 0.3.1) 269 | polyglot (>= 0.3.1) 270 | polyglot (>= 0.3.1) 271 | polyglot (>= 0.3.1) 272 | polyglot (>= 0.3.1) 273 | polyglot (>= 0.3.1) 274 | polyglot (>= 0.3.1) 275 | polyglot (>= 0.3.1) 276 | polyglot (>= 0.3.1) 277 | polyglot (>= 0.3.1) 278 | polyglot (>= 0.3.1) 279 | polyglot (>= 0.3.1) 280 | polyglot (>= 0.3.1) 281 | turbolinks (2.5.2) 282 | coffee-rails 283 | tzinfo (0.3.42) 284 | uglifier (2.5.3) 285 | execjs (>= 0.3.0) 286 | json (>= 1.8.0) 287 | unicorn (4.8.3) 288 | kgio (~> 2.6) 289 | rack 290 | raindrops (~> 0.7) 291 | xpath (2.0.0) 292 | nokogiri (~> 1.3) 293 | 294 | PLATFORMS 295 | ruby 296 | 297 | DEPENDENCIES 298 | bootstrap-sass 299 | coffee-rails (~> 4.0.0) 300 | cucumber-rails 301 | fakeweb 302 | font-awesome-rails 303 | jbuilder (~> 1.2) 304 | jquery-rails 305 | nokogiri 306 | rails (= 4.0.4) 307 | rails_12factor 308 | rspec-rails 309 | sass-rails (~> 4.0.2) 310 | sdoc 311 | turbolinks 312 | uglifier (>= 1.3.0) 313 | unicorn 314 | --------------------------------------------------------------------------------