Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

And we have a name!

  • Loading branch information...
commit 45c06a95c36e23342597aab5bf9c658e536bbe79 1 parent 752edcc
@carols10cents authored
View
2  .rvmrc
@@ -4,7 +4,7 @@
# development environment upon cd'ing into the directory
# First we specify our desired <ruby>[@<gemset>], the @gemset name is optional.
-environment_id="ruby-1.9.2@x_proj"
+environment_id="ruby-1.9.2@compatriot"
#
# First we attempt to load the desired environment directly from the environment
View
2  Gemfile
@@ -1,4 +1,4 @@
source 'http://rubygems.org'
-# Specify your gem's dependencies in x_proj.gemspec
+# Specify your gem's dependencies in compatriot.gemspec
gemspec
View
4 README.md
@@ -1,3 +1,7 @@
+Compatriot
+----------
+**Compat**ibility + **riot**! It's your **friend** that helps you with browser compatibility!
+
What this is
------------
View
6 x_proj.gemspec → compatriot.gemspec
@@ -1,5 +1,5 @@
# -*- encoding: utf-8 -*-
-require File.expand_path('../lib/x_proj/version', __FILE__)
+require File.expand_path('../lib/compatriot/version', __FILE__)
Gem::Specification.new do |gem|
gem.authors = ["Carol Nichols"]
@@ -11,9 +11,9 @@ Gem::Specification.new do |gem|
gem.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
gem.files = `git ls-files`.split("\n")
gem.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
- gem.name = "x_proj"
+ gem.name = "compatriot"
gem.require_paths = ["lib"]
- gem.version = XProj::VERSION
+ gem.version = Compatriot::VERSION
gem.add_runtime_dependency "capybara", "~> 1.1.2"
gem.add_runtime_dependency "rake", "~> 0.9.2.2"
View
4 lib/compatriot.rb
@@ -0,0 +1,4 @@
+require "compatriot/version"
+require "compatriot/runner"
+require "compatriot/browser"
+require "compatriot/results_presenter"
View
2  lib/x_proj/browser.rb → lib/compatriot/browser.rb
@@ -1,7 +1,7 @@
require "fileutils"
require 'capybara/dsl'
-module XProj
+module Compatriot
class Browser
include Capybara::DSL
View
2  lib/x_proj/results_presenter.rb → lib/compatriot/results_presenter.rb
@@ -1,6 +1,6 @@
require 'erb'
-module XProj
+module Compatriot
class ResultsPresenter
def initialize(results_directory)
@results_directory = results_directory
View
6 lib/x_proj/runner.rb → lib/compatriot/runner.rb
@@ -1,6 +1,6 @@
require "fileutils"
-module XProj
+module Compatriot
class Runner
def self.start(app, paths, clock = DateTime)
runner = new(app, paths, clock)
@@ -22,7 +22,7 @@ def initialize(app, paths, clock)
def take_screenshots
@results = {}
BROWSERS.each do |b|
- browser = XProj::Browser.new(b)
+ browser = Compatriot::Browser.new(b)
@results[b] = browser.take_screenshots(
:app => @app,
:paths => @paths,
@@ -40,7 +40,7 @@ def results_directory
end
def make_index_page
- presenter = XProj::ResultsPresenter.new(results_directory)
+ presenter = Compatriot::ResultsPresenter.new(results_directory)
presenter.make_index_page(@results)
end
end
View
2  lib/x_proj/version.rb → lib/compatriot/version.rb
@@ -1,3 +1,3 @@
-module XProj
+module Compatriot
VERSION = "0.0.1"
end
View
8 lib/x_proj.rb
@@ -1,8 +0,0 @@
-require "x_proj/version"
-require "x_proj/runner"
-require "x_proj/browser"
-require "x_proj/results_presenter"
-
-module XProj
- # Your code goes here...
-end
View
6 spec/basic_behavior_spec.rb
@@ -21,18 +21,18 @@
end
it "holds onto the app we give it" do
- x = XProj::Runner.new(TestApp, ["/"], @fixed_clock)
+ x = Compatriot::Runner.new(TestApp, ["/"], @fixed_clock)
x.app.must_equal(TestApp)
end
it "names a results directory based on the clock" do
- x = XProj::Runner.new(TestApp, ["/"], @fixed_clock)
+ x = Compatriot::Runner.new(TestApp, ["/"], @fixed_clock)
x.results_directory.must_equal(@results_directory)
end
describe "self#start" do
before do
- XProj::Runner.start(TestApp, ["/"], @fixed_clock)
+ Compatriot::Runner.start(TestApp, ["/"], @fixed_clock)
end
it "creates directories in which to store the results based on the date" do
View
2  spec/list_of_app_paths_spec.rb
@@ -16,7 +16,7 @@
@firefox_directory = File.join(@results_directory, "firefox")
@chrome_directory = File.join(@results_directory, "chrome")
- @x = XProj::Runner.start(TestApp, ["/", "/chrome-css-bug"], @fixed_clock)
+ @x = Compatriot::Runner.start(TestApp, ["/", "/chrome-css-bug"], @fixed_clock)
end
after do
View
2  spec/spec_helper.rb
@@ -1,7 +1,7 @@
$:.unshift(File.expand_path('../lib', File.dirname(__FILE__)))
require 'minitest/autorun'
-require 'x_proj'
+require 'compatriot'
require_relative "sample_app/test_app"
Please sign in to comment.
Something went wrong with that request. Please try again.