google_authentication 0.2.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ ZWVlNzM2ZDlkMDdiODQ4YWY0NTYwNjdhNTNkZWU4MTQ2YWEwY2U5Mw==
5
+ data.tar.gz: !binary |-
6
+ YmFhZDFjOTQ5MDk0YWJjNDFiZGM1YWQ1MzIyNzI2ZDNhMTc4MDhjZg==
7
+ SHA512:
8
+ metadata.gz: !binary |-
9
+ NGE1M2M0NWE2YTA2YWUxOThmMDBmZDYxZmMwMjBjMmM1NGJjMmI3ZGFhYzlh
10
+ YmM5YzNiMzIwZTk3Yjg2YmY3NzYwYzQ1NDg5YzgzZWYxMzE4NGVkNzhiNDMx
11
+ NGY3NDFjZmM4MDZjODYxZjc4ODA1MzQ3MDQ2OWMzMTQ1NTI3ODc=
12
+ data.tar.gz: !binary |-
13
+ YWUxOGFlYWZhN2RiMDU3ZThhZDZkMzZhMDdhNWJhYjc0YjgzNzdiZGU4MDJm
14
+ YzlmNWE2N2Y5MTFjNjljYmNjYTQ2YTM5NjE0Y2FjZDg5NTNlOTJjYTQ2M2Ey
15
+ YTEzZDhmODI0Zjg2ZDJjYjY0NTZhNWI1NTg4MmM4ZWFlYmZjMTY=
@@ -0,0 +1,60 @@
1
+ # rcov generated
2
+ coverage
3
+
4
+ # rdoc generated
5
+ rdoc
6
+
7
+ # yard generated
8
+ doc
9
+ .yardoc
10
+
11
+ # bundler
12
+ .bundle
13
+
14
+ # jeweler generated
15
+ pkg
16
+
17
+ # sqlite files
18
+ *.sqlite3
19
+
20
+ # tmp files
21
+ tmp/
22
+
23
+ # ignoring Gemfile.lock
24
+ *.lock
25
+
26
+ # Have editor/IDE/OS specific files you need to ignore? Consider using a global gitignore:
27
+ #
28
+ # * Create a file at ~/.gitignore
29
+ # * Include files you want ignored
30
+ # * Run: git config --global core.excludesfile ~/.gitignore
31
+ #
32
+ # After doing this, these files will be ignored in all your git projects,
33
+ # saving you from having to 'pollute' every project you touch with them
34
+ #
35
+ # Not sure what to needs to be ignored for particular editors/OSes? Here's some ideas to get you started. (Remember, remove the leading # of the line)
36
+ #
37
+ # For MacOS:
38
+ #
39
+ .DS_Store
40
+
41
+ # For TextMate
42
+ #*.tmproj
43
+ #tmtags
44
+
45
+ # For emacs:
46
+ #*~
47
+ #\#*
48
+ #.\#*
49
+
50
+ # For vim:
51
+ #*.swp
52
+
53
+ # For redcar:
54
+ #.redcar
55
+
56
+ # For rubinius:
57
+ #*.rbc
58
+
59
+ .idea/
60
+
@@ -0,0 +1 @@
1
+ google_authentication
@@ -0,0 +1 @@
1
+ ruby-1.9.3-p545
@@ -0,0 +1,9 @@
1
+ language: ruby
2
+ rvm:
3
+ - 1.9.3
4
+ - 2.0.0
5
+
6
+ gemfile:
7
+ - gemfiles/rails3_1.gemfile
8
+ - gemfiles/rails3_2.gemfile
9
+ - gemfiles/rails4_0.gemfile
@@ -0,0 +1,11 @@
1
+ appraise 'rails3_1' do
2
+ gem 'rails', '~> 3.1.0'
3
+ end
4
+
5
+ appraise 'rails3_2' do
6
+ gem 'rails', '~> 3.2.0'
7
+ end
8
+
9
+ appraise 'rails4_0' do
10
+ gem 'rails', '~> 4.0.0'
11
+ end
@@ -1,3 +1,7 @@
1
+ ## 0.3.0, released 2014-04-03
2
+
3
+ * Rails 4 support
4
+
1
5
  ## 0.2.0, released 2012-06-06
2
6
 
3
7
  * Updated gem to work with new versions of Devise and Omniauth, currently 2.1.0 for Devise and 1.1.0 for Omniauth
data/Gemfile CHANGED
@@ -1,29 +1,11 @@
1
- source "http://rubygems.org"
1
+ source 'https://rubygems.org'
2
2
 
3
- gem 'rails', '>= 3.1.0'
4
- gem 'omniauth', '>= 1.0'
5
- gem 'omniauth-google-apps'
6
- gem 'devise', '>= 2.0'
7
-
8
- # Add dependencies to develop your gem here.
9
- # Include everything needed to run rake, tests, features, etc.
10
- group :development do
11
- gem "sqlite3", '~> 1.3.5'
12
- gem "rspec-rails", '>= 2.9.0'
13
- gem "shoulda-matchers"
14
- gem "generator_spec", '>= 0.8.5'
15
- gem "guard-rspec"
16
- gem "capybara", ">= 0.4.0"
17
- gem "yard"
18
- gem "cucumber", "~> 0.10"
19
- gem "aruba"
20
- gem "bundler"
21
- gem "jeweler", "~> 1.6.2"
22
- end
3
+ # Specify your gem's dependencies in google_authentication.gemspec
4
+ gemspec
23
5
 
24
6
  group :test do
25
- if RUBY_PLATFORM.downcase.include?("darwin") # I'm on Mac
26
- gem "rb-fsevent"
27
- gem "growl"
7
+ if RUBY_PLATFORM.downcase.include?('darwin') # I'm on Mac
8
+ gem 'rb-fsevent'
9
+ gem 'growl'
28
10
  end
29
11
  end
@@ -1,5 +1,7 @@
1
1
  # google_authentication with devise + omniauth
2
2
 
3
+ [![Build Status](https://secure.travis-ci.org/fabn/google_authentication.png)](http://travis-ci.org/fabn/google_authentication) [![Gem Version](https://badge.fury.io/rb/google_authentication.svg)](http://badge.fury.io/rb/google_authentication)
4
+
3
5
  I found myself using Google authentication in a lot of projects (especially private projects which require google apps
4
6
  authentication). With Omniauth it's pretty simple to authenticate against Google and Devise has a lot of convenient helpers.
5
7
 
@@ -117,24 +119,11 @@ Models used in this gem may use other devise modules in a transparent way, just
117
119
  acts_as_google_user :omniauthable, :token_authenticable, :trackable, :timeoutable, :rememberable
118
120
  end
119
121
 
120
- ## Known issues
121
-
122
- I'm a fun of Cucumber + Rspec so I tried to test my gem with these two tools, however it is not fully tested (I had
123
- trouble in writing some spec for a Rails Engine) but it still has a pretty decent coverage.
124
-
125
- Moreover I wrote some high level integration test with [Aruba](https://github.com/cucumber/aruba) but I can't make them
126
- running. I opened [an issue on for aruba](https://github.com/cucumber/aruba/issues/77), but I'm not sure that the problem
127
- is with Aruba itself, it could also be related in some way with Bundler. You can clone the repo and run the features by
128
- yourself to see what's happening. Any fix for that is welcome...
129
-
130
122
  ## Contributing to google_authentication
131
123
 
132
124
  I'm using the [gitflow model](https://github.com/nvie/gitflow) to maintain this gem, so all the development stuff is in
133
125
  the develop branch, master will contain only stable code.
134
126
 
135
- For gem publishing and maintaining I'm using the [jeweler gem](https://github.com/technicalpickles/jeweler), so you can
136
- fork my project and run `bundle install` to get the required dependencies.
137
-
138
127
  * Check out the latest develop to make sure the feature hasn't been implemented or the bug hasn't been fixed yet
139
128
  * Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it
140
129
  * Fork the project
data/Rakefile CHANGED
@@ -1,45 +1,16 @@
1
- # encoding: utf-8
1
+ require 'bundler/gem_tasks'
2
2
 
3
- require 'rubygems'
4
- require 'bundler'
5
- begin
6
- Bundler.setup(:default, :development)
7
- rescue Bundler::BundlerError => e
8
- $stderr.puts e.message
9
- $stderr.puts "Run `bundle install` to install missing gems"
10
- exit e.status_code
11
- end
12
- require 'rake'
13
-
14
- require 'jeweler'
15
- Jeweler::Tasks.new do |gem|
16
- # gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
17
- gem.name = "google_authentication"
18
- gem.homepage = "http://github.com/fabn/google_authentication"
19
- gem.license = "MIT"
20
- gem.summary = %Q{Authenticate users through Google in your app}
21
- gem.description = %Q{Authenticate users through Google in your app using devise and omniauth}
22
- gem.email = "f.napoleoni@gmail.com"
23
- gem.authors = ["Fabio Napoleoni"]
24
- # dependencies defined in Gemfile
25
- end
26
- Jeweler::RubygemsDotOrgTasks.new
3
+ require 'bundler/setup'
4
+ require 'appraisal'
27
5
 
28
- require 'rspec/core'
29
6
  require 'rspec/core/rake_task'
30
- RSpec::Core::RakeTask.new(:spec) do |spec|
31
- spec.pattern = FileList['spec/**/*_spec.rb']
32
- end
33
-
34
- RSpec::Core::RakeTask.new(:rcov) do |spec|
35
- spec.pattern = 'spec/**/*_spec.rb'
36
- spec.rcov = true
37
- end
7
+ RSpec::Core::RakeTask.new(:spec)
38
8
 
9
+ require 'cucumber'
39
10
  require 'cucumber/rake/task'
40
- Cucumber::Rake::Task.new(:features)
41
11
 
42
- task :default => :spec
12
+ Cucumber::Rake::Task.new(:features) do |t|
13
+ t.cucumber_opts = 'features --format pretty'
14
+ end
43
15
 
44
- require 'yard'
45
- YARD::Rake::YardocTask.new
16
+ task default: [:spec, :features]
@@ -3,25 +3,36 @@ Feature: Create a new application
3
3
  A user should create a new rails application and install the gem and run the generator
4
4
 
5
5
  Background: A new rails application has been created with google_authentication gem
6
- Given a rails application named "google_app" exists
6
+ Given The default aruba timeout is 30 seconds
7
+ And a rails application named "google_app" exists
7
8
  And this gem is installed in that application
8
9
 
9
- @announce
10
10
  Scenario: Installation using default values
11
- When I successfully run `rails generate google_authentication:install`
11
+ When I successfully run `bundle exec rails generate google_authentication:install`
12
12
  # this is needed because rails g returns 0 when can't find the generator
13
13
  And the output should not contain "Could not find generator"
14
14
  Then a file named "config/initializers/devise.rb" should exist
15
- And the file "config/initializers/google_authentication.rb" should contain "# config.domain = 'gmail.com'"
15
+ And the file "config/initializers/google_authentication.rb" should contain "config.domain = 'gmail.com'"
16
16
  And the file "config/initializers/google_authentication.rb" should contain "# config.model_name = :user"
17
17
 
18
18
  Scenario: Installation with model generation and default values
19
- When I generate the model with "" as argument
19
+ When I generate the model with "user" as argument
20
20
  Then the file "app/models/user.rb" should contain "acts_as_google_user"
21
21
  And the file "db/schema.rb" should contain "users"
22
22
 
23
23
  Scenario: Installation with different model name
24
24
  When I generate the model with "account" as argument
25
25
  Then the file "app/models/account.rb" should contain "acts_as_google_user"
26
- And the file "config/initializers/google_authentication.rb" should contain "config.model_name = :account"
27
26
  And the file "db/schema.rb" should contain "accounts"
27
+ And the output should contain "You should edit the google_authentication initializer"
28
+
29
+ Scenario: Routes configuration for rails 3.x and 4.x
30
+ Given I generate the model with "user" as argument
31
+ When I successfully run `bundle exec rake routes`
32
+ Then the output should match:
33
+ """
34
+ user_omniauth_authorize GET|POST /users/auth/:provider(.:format) google_authentication/omniauth_callbacks#passthru {:provider=>/google_apps/}
35
+ user_omniauth_callback GET|POST /users/auth/:action/callback(.:format) google_authentication/omniauth_callbacks#(?-mix:google_apps)
36
+ new_user_session GET /sign_in(.:format) google_authentication/sessions#new
37
+ destroy_user_session GET /sign_out(.:format) google_authentication/sessions#destroy
38
+ """
@@ -1,19 +1,25 @@
1
1
  Given /^a rails application named "([^\"]*)" exists$/ do |app_name|
2
2
  @app_name = app_name
3
- Given "I successfully run `rm -rf #{app_name}`"
4
- And "a directory named \"#{app_name}\" should not exist"
5
- And "I successfully run `rails new #{app_name}`"
6
- And "I cd to \"#{app_name}\""
3
+ steps %Q{
4
+ Given I successfully run `rm -rf #{app_name}`
5
+ And a directory named "#{app_name}" should not exist
6
+ And I successfully run `bundle exec rails new #{app_name}`
7
+ And I cd to "#{app_name}"
8
+ }
7
9
  end
8
10
 
9
11
  When /^this gem is installed in that application$/ do
10
12
  gempath = File.expand_path('../../../', __FILE__)
11
- Given "I append to \"Gemfile\" with \"gem 'google_authentication', :path => '#{gempath}'\""
12
- And "I successfully run `bundle check`"
13
+ steps %Q{
14
+ Given I append to "Gemfile" with "gem 'google_authentication', :path => '#{gempath}'"
15
+ And I successfully run `bundle check`
16
+ }
13
17
  end
14
18
 
15
19
  When /^I generate the model with "([^\"]*)" as argument$/ do |model_name|
16
- Given "I successfully run `rails generate google_authentication:install`"
17
- And "I successfully run `rails generate google_authentication #{model_name}`"
18
- And "I successfully run `rake db:migrate`"
20
+ steps %Q{
21
+ Given I successfully run `bundle exec rails generate google_authentication:install`
22
+ And I successfully run `bundle exec rails generate google_authentication #{model_name}`
23
+ And I successfully run `bundle exec rake db:migrate`
24
+ }
19
25
  end
@@ -0,0 +1,7 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "rails", "~> 3.1.0"
6
+
7
+ gemspec :path=>"../"
@@ -0,0 +1,7 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "rails", "~> 3.2.0"
6
+
7
+ gemspec :path=>"../"
@@ -0,0 +1,7 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "rails", "~> 4.0.0"
6
+
7
+ gemspec :path=>"../"
@@ -1,159 +1,41 @@
1
- # Generated by jeweler
2
- # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
- # -*- encoding: utf-8 -*-
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'google_authentication/version'
5
5
 
6
- Gem::Specification.new do |s|
7
- s.name = "google_authentication"
8
- s.version = "0.2.0"
6
+ Gem::Specification.new do |spec|
7
+ spec.name = 'google_authentication'
8
+ spec.version = GoogleAuthentication::VERSION
9
+ spec.authors = ['Fabio Napoleoni']
10
+ spec.email = %w(f.napoleoni@gmail.com)
11
+ spec.description = %q{Authenticate users through Google in your app using devise and omniauth}
12
+ spec.summary = %q{Authenticate users through Google in your app}
13
+ spec.homepage = 'http://github.com/fabn/google_authentication'
14
+ spec.license = 'MIT'
9
15
 
10
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = ["Fabio Napoleoni"]
12
- s.date = "2012-06-06"
13
- s.description = "Authenticate users through Google in your app using devise and omniauth"
14
- s.email = "f.napoleoni@gmail.com"
15
- s.extra_rdoc_files = [
16
- "LICENSE.txt",
17
- "README.markdown"
18
- ]
19
- s.files = [
20
- ".document",
21
- ".rspec",
22
- ".rvmrc",
23
- "CHANGES.markdown",
24
- "Gemfile",
25
- "Guardfile",
26
- "LICENSE.txt",
27
- "README.markdown",
28
- "Rakefile",
29
- "VERSION",
30
- "app/controllers/google_authentication/omniauth_callbacks_controller.rb",
31
- "app/controllers/google_authentication/sessions_controller.rb",
32
- "config/routes.rb",
33
- "features/google_authentication.feature",
34
- "features/step_definitions/google_authentication_steps.rb",
35
- "features/support/env.rb",
36
- "google_authentication.gemspec",
37
- "lib/generators/google_authentication/google_authentication_generator.rb",
38
- "lib/generators/google_authentication/install_generator.rb",
39
- "lib/generators/templates/MODEL.warning",
40
- "lib/generators/templates/README",
41
- "lib/generators/templates/google_authentication.rb",
42
- "lib/generators/templates/migration.rb",
43
- "lib/google_authentication.rb",
44
- "lib/google_authentication/acts_as_google_user.rb",
45
- "lib/google_authentication/engine.rb",
46
- "spec/dummy/Rakefile",
47
- "spec/dummy/app/controllers/application_controller.rb",
48
- "spec/dummy/app/controllers/posts_controller.rb",
49
- "spec/dummy/app/helpers/application_helper.rb",
50
- "spec/dummy/app/helpers/posts_helper.rb",
51
- "spec/dummy/app/models/post.rb",
52
- "spec/dummy/app/models/user.rb",
53
- "spec/dummy/app/views/layouts/application.html.erb",
54
- "spec/dummy/app/views/posts/_form.html.erb",
55
- "spec/dummy/app/views/posts/edit.html.erb",
56
- "spec/dummy/app/views/posts/index.html.erb",
57
- "spec/dummy/app/views/posts/new.html.erb",
58
- "spec/dummy/app/views/posts/show.html.erb",
59
- "spec/dummy/config.ru",
60
- "spec/dummy/config/application.rb",
61
- "spec/dummy/config/boot.rb",
62
- "spec/dummy/config/database.yml",
63
- "spec/dummy/config/environment.rb",
64
- "spec/dummy/config/environments/development.rb",
65
- "spec/dummy/config/environments/production.rb",
66
- "spec/dummy/config/environments/test.rb",
67
- "spec/dummy/config/initializers/backtrace_silencers.rb",
68
- "spec/dummy/config/initializers/devise.rb",
69
- "spec/dummy/config/initializers/inflections.rb",
70
- "spec/dummy/config/initializers/mime_types.rb",
71
- "spec/dummy/config/initializers/secret_token.rb",
72
- "spec/dummy/config/initializers/session_store.rb",
73
- "spec/dummy/config/locales/devise.en.yml",
74
- "spec/dummy/config/locales/en.yml",
75
- "spec/dummy/config/routes.rb",
76
- "spec/dummy/db/migrate/20110630105039_create_posts.rb",
77
- "spec/dummy/db/migrate/20110630111038_devise_create_users.rb",
78
- "spec/dummy/db/schema.rb",
79
- "spec/dummy/public/404.html",
80
- "spec/dummy/public/422.html",
81
- "spec/dummy/public/500.html",
82
- "spec/dummy/public/favicon.ico",
83
- "spec/dummy/public/javascripts/application.js",
84
- "spec/dummy/public/javascripts/controls.js",
85
- "spec/dummy/public/javascripts/dragdrop.js",
86
- "spec/dummy/public/javascripts/effects.js",
87
- "spec/dummy/public/javascripts/prototype.js",
88
- "spec/dummy/public/javascripts/rails.js",
89
- "spec/dummy/public/stylesheets/.gitkeep",
90
- "spec/dummy/public/stylesheets/scaffold.css",
91
- "spec/dummy/script/rails",
92
- "spec/generators/google_authentication_generator_spec.rb",
93
- "spec/generators/install_generator_spec.rb",
94
- "spec/google_authentication_spec.rb",
95
- "spec/integration/navigation_spec.rb",
96
- "spec/models/acts_as_google_user_spec.rb",
97
- "spec/spec_helper.rb"
98
- ]
99
- s.homepage = "http://github.com/fabn/google_authentication"
100
- s.licenses = ["MIT"]
101
- s.require_paths = ["lib"]
102
- s.rubygems_version = "1.8.24"
103
- s.summary = "Authenticate users through Google in your app"
16
+ spec.files = `git ls-files`.split($/)
17
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
+ spec.require_paths = ['lib']
104
20
 
105
- if s.respond_to? :specification_version then
106
- s.specification_version = 3
21
+ # gem runtime requirements
22
+ spec.add_dependency 'rails', '>= 3.1.0'
23
+ spec.add_dependency 'omniauth', '>= 1.0'
24
+ spec.add_dependency 'omniauth-google-apps'
25
+ spec.add_dependency 'devise', '>= 2.0'
107
26
 
108
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
109
- s.add_runtime_dependency(%q<rails>, [">= 3.1.0"])
110
- s.add_runtime_dependency(%q<omniauth>, [">= 1.0"])
111
- s.add_runtime_dependency(%q<omniauth-google-apps>, [">= 0"])
112
- s.add_runtime_dependency(%q<devise>, [">= 2.0"])
113
- s.add_development_dependency(%q<sqlite3>, ["~> 1.3.5"])
114
- s.add_development_dependency(%q<rspec-rails>, [">= 2.9.0"])
115
- s.add_development_dependency(%q<shoulda-matchers>, [">= 0"])
116
- s.add_development_dependency(%q<generator_spec>, [">= 0.8.5"])
117
- s.add_development_dependency(%q<guard-rspec>, [">= 0"])
118
- s.add_development_dependency(%q<capybara>, [">= 0.4.0"])
119
- s.add_development_dependency(%q<yard>, [">= 0"])
120
- s.add_development_dependency(%q<cucumber>, ["~> 0.10"])
121
- s.add_development_dependency(%q<aruba>, [">= 0"])
122
- s.add_development_dependency(%q<bundler>, [">= 0"])
123
- s.add_development_dependency(%q<jeweler>, ["~> 1.6.2"])
124
- else
125
- s.add_dependency(%q<rails>, [">= 3.1.0"])
126
- s.add_dependency(%q<omniauth>, [">= 1.0"])
127
- s.add_dependency(%q<omniauth-google-apps>, [">= 0"])
128
- s.add_dependency(%q<devise>, [">= 2.0"])
129
- s.add_dependency(%q<sqlite3>, ["~> 1.3.5"])
130
- s.add_dependency(%q<rspec-rails>, [">= 2.9.0"])
131
- s.add_dependency(%q<shoulda-matchers>, [">= 0"])
132
- s.add_dependency(%q<generator_spec>, [">= 0.8.5"])
133
- s.add_dependency(%q<guard-rspec>, [">= 0"])
134
- s.add_dependency(%q<capybara>, [">= 0.4.0"])
135
- s.add_dependency(%q<yard>, [">= 0"])
136
- s.add_dependency(%q<cucumber>, ["~> 0.10"])
137
- s.add_dependency(%q<aruba>, [">= 0"])
138
- s.add_dependency(%q<bundler>, [">= 0"])
139
- s.add_dependency(%q<jeweler>, ["~> 1.6.2"])
140
- end
141
- else
142
- s.add_dependency(%q<rails>, [">= 3.1.0"])
143
- s.add_dependency(%q<omniauth>, [">= 1.0"])
144
- s.add_dependency(%q<omniauth-google-apps>, [">= 0"])
145
- s.add_dependency(%q<devise>, [">= 2.0"])
146
- s.add_dependency(%q<sqlite3>, ["~> 1.3.5"])
147
- s.add_dependency(%q<rspec-rails>, [">= 2.9.0"])
148
- s.add_dependency(%q<shoulda-matchers>, [">= 0"])
149
- s.add_dependency(%q<generator_spec>, [">= 0.8.5"])
150
- s.add_dependency(%q<guard-rspec>, [">= 0"])
151
- s.add_dependency(%q<capybara>, [">= 0.4.0"])
152
- s.add_dependency(%q<yard>, [">= 0"])
153
- s.add_dependency(%q<cucumber>, ["~> 0.10"])
154
- s.add_dependency(%q<aruba>, [">= 0"])
155
- s.add_dependency(%q<bundler>, [">= 0"])
156
- s.add_dependency(%q<jeweler>, ["~> 1.6.2"])
157
- end
158
- end
27
+ # dev dependencies
28
+ spec.add_development_dependency 'bundler', '~> 1.3'
29
+ spec.add_development_dependency 'rake'
30
+ spec.add_development_dependency 'sqlite3', '~> 1.3.5'
31
+ spec.add_development_dependency 'rspec-rails', '>= 2.9.0'
32
+ spec.add_development_dependency 'shoulda-matchers'
33
+ spec.add_development_dependency 'generator_spec', '>= 0.8.5'
34
+ spec.add_development_dependency 'guard-rspec'
35
+ spec.add_development_dependency 'capybara', '>= 0.4.0'
36
+ spec.add_development_dependency 'yard'
37
+ spec.add_development_dependency 'cucumber'
38
+ spec.add_development_dependency 'aruba', '~> 0.5.4'
39
+ spec.add_development_dependency 'appraisal'
159
40
 
41
+ end