Skip to content

Commit

Permalink
Proof of concept
Browse files Browse the repository at this point in the history
  • Loading branch information
josepjaume committed Oct 9, 2011
0 parents commit 1575550
Show file tree
Hide file tree
Showing 7 changed files with 62 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .gitignore
@@ -0,0 +1,17 @@
*.gem
*.rbc
.bundle
.config
.yardoc
Gemfile.lock
InstalledFiles
_yardoc
coverage
doc/
lib/bundler/man
pkg
rdoc
spec/reports
test/tmp
test/version_tmp
tmp
1 change: 1 addition & 0 deletions .rvmrc
@@ -0,0 +1 @@
rvm --create use 1.9.3@spinach-rails
4 changes: 4 additions & 0 deletions Gemfile
@@ -0,0 +1,4 @@
source 'http://rubygems.org'

# Specify your gem's dependencies in spinach-rails.gemspec
gemspec
2 changes: 2 additions & 0 deletions Rakefile
@@ -0,0 +1,2 @@
#!/usr/bin/env rake
require 'bundler/gem_tasks'
12 changes: 12 additions & 0 deletions lib/spinach-rails.rb
@@ -0,0 +1,12 @@
require "spinach-rails/version"

require 'spinach'
require 'capybara'

Spinach::Runner.before_run do
require 'spinach/capybara'
require 'capybara/rails'
Spinach::FeatureSteps.class_eval do
include Spinach::FeatureSteps::Capybara
end
end
5 changes: 5 additions & 0 deletions lib/spinach-rails/version.rb
@@ -0,0 +1,5 @@
module Spinach
module Rails
VERSION = "0.0.1"
end
end
21 changes: 21 additions & 0 deletions spinach-rails.gemspec
@@ -0,0 +1,21 @@
# -*- encoding: utf-8 -*-
require File.expand_path('../lib/spinach-rails/version', __FILE__)

Gem::Specification.new do |gem|
gem.authors = ["Codegram"]
gem.email = ["info@codegram.com"]
gem.description = %q{spinach-rails adds Rails support to spinach}
gem.summary = %q{spinach-rails adds Rails support to spinach}
gem.homepage = 'http://github.com/codegram/spinach-rails'

gem.add_runtime_dependency 'capybara'
gem.add_runtime_dependency 'spinach', '~> 0.1'
gem.add_runtime_dependency 'rails', '>= 3'

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 = "spinach-rails"
gem.require_paths = ['lib']
gem.version = Spinach::Rails::VERSION
end

0 comments on commit 1575550

Please sign in to comment.