Permalink
Browse files

rails4 is default gemfile

  • Loading branch information...
ayanko committed Feb 9, 2015
1 parent 53fa46d commit fb4b0396bd07e6011188652afffc2b4c020a081e
Showing with 26 additions and 30 deletions.
  1. +2 −2 .gitignore
  2. +0 −11 Gemfile
  3. +1 −0 Gemfile
  4. +5 −0 Gemfile.rails3
  5. +1 −7 Gemfile.rails4
  6. +11 −10 README.md
  7. +6 −0 rack_session_access.gemspec
View
@@ -1,5 +1,5 @@
pkg/*
*.gem
.bundle
Gemfile.lock
Gemfile.rails4.lock
pkg/*
Gemfile.*.lock
View
11 Gemfile

This file was deleted.

Oops, something went wrong.
View
View
@@ -0,0 +1,5 @@
source "http://rubygems.org"
gemspec
gem 'rails', '3.2.21'
View
@@ -2,10 +2,4 @@ source "http://rubygems.org"
gemspec
gem 'rspec', '2.12.0'
gem 'capybara', '1.1.4'
gem 'selenium-webdriver', '2.44.0'
gem 'rack'
gem 'sinatra', '1.3.4'
gem 'rails', '4.0.0.beta1'
gem 'rails', '4.2.0'
View
@@ -20,7 +20,7 @@ If you use rack based framework this gem does it!
gem install rack_session_access
```
## Using with Rails 3 or 4
## Using with Rails
Add to `Gemfile`:
@@ -97,11 +97,11 @@ require 'spec_helper'
feature "My feature" do
background do
@user = Factory(:user, :email => 'jack@daniels.com')
@user = Factory(:user, email: 'jack@daniels.com')
end
scenario "logged in user access profile page" do
page.set_rack_session(:user_id => user.id)
page.set_rack_session(user_id: user.id)
page.visit "/profile"
page.should have_content("Hi, jack@daniels.com")
end
@@ -133,18 +133,19 @@ Enjoy!
## Running rack_session_access tests
### Against Rails3, Sinatra, rack applications
### Against Rails4, Sinatra, rack applications
```sh
BUNDLE_GEMFILE=Gemfile bundle install
BUNDLE_GEMFILE=Gemfile bundle exec rspec -fs -c spec/
bundle install
bundle exec rspec -fd spec/
```
### Against Rails4, Sinatra, rack applications
### Against Rails3, Sinatra, rack applications
```sh
BUNDLE_GEMFILE=Gemfile.rails4 bundle install
BUNDLE_GEMFILE=Gemfile.rails4 bundle exec rspec -fs -c spec/
BUNDLE_GEMFILE=Gemfile.rails3 bundle install
BUNDLE_GEMFILE=Gemfile.rails3 bundle exec rspec -fd spec/
```
## Author
@@ -153,7 +154,7 @@ BUNDLE_GEMFILE=Gemfile.rails4 bundle exec rspec -fs -c spec/
## License
* Copyright (c) 2013 Railsware [www.railsware.com](http://www.railsware.com)
* Copyright (c) 2015 Railsware [www.railsware.com](http://www.railsware.com)
* [MIT](www.opensource.org/licenses/MIT)
@@ -20,4 +20,10 @@ Gem::Specification.new do |s|
s.add_runtime_dependency "rack", ">=1.0.0"
s.add_runtime_dependency "builder", ">=2.0.0"
s.add_development_dependency 'rspec', '2.12.0'
s.add_development_dependency 'capybara', '1.1.4'
s.add_development_dependency 'selenium-webdriver', '2.44.0'
s.add_development_dependency 'sinatra', '1.3.4'
s.add_development_dependency 'rails', '>=3.0.0'
end

0 comments on commit fb4b039

Please sign in to comment.