rake-kit 0.1.5 → 0.1.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (70) hide show
  1. data/Gemfile +9 -7
  2. data/Gemfile.lock +82 -6
  3. data/README.md +37 -0
  4. data/Rakefile +6 -27
  5. data/lib/rake-kit.rb +8 -2
  6. data/lib/rake-kit/railtie.rb +4 -2
  7. data/lib/rake-kit/version.rb +3 -0
  8. data/lib/tasks/{dumps.rake → db_dumps.rake} +3 -5
  9. data/lib/tasks/db_reset.rake +10 -0
  10. data/lib/tasks/db_truncate.rake +26 -0
  11. data/lib/tasks/source_trailing.rake +36 -0
  12. data/rake-kit.gemspec +80 -25
  13. data/spec/dummy/1 +40 -0
  14. data/spec/dummy/README.rdoc +261 -0
  15. data/spec/dummy/Rakefile +7 -0
  16. data/spec/dummy/app/assets/javascripts/application.js +15 -0
  17. data/spec/dummy/app/assets/javascripts/posts.js +2 -0
  18. data/spec/dummy/app/assets/stylesheets/application.css +13 -0
  19. data/spec/dummy/app/assets/stylesheets/posts.css +4 -0
  20. data/spec/dummy/app/assets/stylesheets/scaffold.css +56 -0
  21. data/spec/dummy/app/controllers/application_controller.rb +3 -0
  22. data/spec/dummy/app/controllers/posts_controller.rb +83 -0
  23. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  24. data/spec/dummy/app/helpers/posts_helper.rb +2 -0
  25. data/spec/dummy/app/mailers/.gitkeep +0 -0
  26. data/spec/dummy/app/models/.gitkeep +0 -0
  27. data/spec/dummy/app/models/post.rb +10 -0
  28. data/spec/dummy/app/views/layouts/application.html.erb +14 -0
  29. data/spec/dummy/app/views/posts/_form.html.erb +25 -0
  30. data/spec/dummy/app/views/posts/edit.html.erb +6 -0
  31. data/spec/dummy/app/views/posts/index.html.erb +25 -0
  32. data/spec/dummy/app/views/posts/new.html.erb +5 -0
  33. data/spec/dummy/app/views/posts/show.html.erb +15 -0
  34. data/spec/dummy/config.ru +4 -0
  35. data/spec/dummy/config/application.rb +59 -0
  36. data/spec/dummy/config/boot.rb +10 -0
  37. data/spec/dummy/config/database.yml +26 -0
  38. data/spec/dummy/config/environment.rb +5 -0
  39. data/spec/dummy/config/environments/development.rb +37 -0
  40. data/spec/dummy/config/environments/production.rb +67 -0
  41. data/spec/dummy/config/environments/test.rb +37 -0
  42. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  43. data/spec/dummy/config/initializers/inflections.rb +15 -0
  44. data/spec/dummy/config/initializers/mime_types.rb +5 -0
  45. data/spec/dummy/config/initializers/secret_token.rb +7 -0
  46. data/spec/dummy/config/initializers/session_store.rb +8 -0
  47. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
  48. data/spec/dummy/config/locales/en.yml +5 -0
  49. data/spec/dummy/config/routes.rb +60 -0
  50. data/spec/dummy/db/migrate/20120627150753_create_posts.rb +10 -0
  51. data/spec/dummy/db/schema.rb +23 -0
  52. data/spec/dummy/lib/assets/.gitkeep +0 -0
  53. data/spec/dummy/log/.gitkeep +0 -0
  54. data/spec/dummy/log/test.log +16 -0
  55. data/spec/dummy/public/404.html +26 -0
  56. data/spec/dummy/public/422.html +26 -0
  57. data/spec/dummy/public/500.html +25 -0
  58. data/spec/dummy/public/favicon.ico +0 -0
  59. data/spec/dummy/script/rails +6 -0
  60. data/spec/dummy/test/fixtures/posts.yml +9 -0
  61. data/spec/dummy/test/functional/posts_controller_test.rb +49 -0
  62. data/spec/dummy/test/unit/helpers/posts_helper_test.rb +4 -0
  63. data/spec/dummy/test/unit/post_test.rb +7 -0
  64. data/spec/spec_helper.rb +14 -0
  65. metadata +160 -75
  66. data/README.rdoc +0 -19
  67. data/VERSION +0 -1
  68. data/lib/tasks/reset_db.rake +0 -9
  69. data/test/helper.rb +0 -18
  70. data/test/test_rake-kit.rb +0 -7
data/Gemfile CHANGED
@@ -1,14 +1,16 @@
1
- source "http://rubygems.org"
1
+ source 'http://rubygems.org'
2
2
  # Add dependencies required to use your gem here.
3
3
  # Example:
4
- # gem "activesupport", ">= 2.3.5"
4
+ # gem 'activesupport', '>= 2.3.5'
5
5
 
6
6
  # Add dependencies to develop your gem here.
7
7
  # Include everything needed to run rake, tests, features, etc.
8
8
  gem 'rake-performance'
9
- group :development do
10
- gem "shoulda", ">= 0"
11
- gem "bundler", "~> 1.0.0"
12
- gem "jeweler", "~> 1.6.4"
13
- gem "rcov", ">= 0"
9
+
10
+ group :development, :test do
11
+ gem 'bundler'
12
+ gem 'jeweler', '~> 1.6.4'
13
+ gem 'rails', '3.2.6'
14
+ gem 'mysql2'
15
+ gem 'sqlite3'
14
16
  end
@@ -1,22 +1,98 @@
1
1
  GEM
2
2
  remote: http://rubygems.org/
3
3
  specs:
4
+ actionmailer (3.2.6)
5
+ actionpack (= 3.2.6)
6
+ mail (~> 2.4.4)
7
+ actionpack (3.2.6)
8
+ activemodel (= 3.2.6)
9
+ activesupport (= 3.2.6)
10
+ builder (~> 3.0.0)
11
+ erubis (~> 2.7.0)
12
+ journey (~> 1.0.1)
13
+ rack (~> 1.4.0)
14
+ rack-cache (~> 1.2)
15
+ rack-test (~> 0.6.1)
16
+ sprockets (~> 2.1.3)
17
+ activemodel (3.2.6)
18
+ activesupport (= 3.2.6)
19
+ builder (~> 3.0.0)
20
+ activerecord (3.2.6)
21
+ activemodel (= 3.2.6)
22
+ activesupport (= 3.2.6)
23
+ arel (~> 3.0.2)
24
+ tzinfo (~> 0.3.29)
25
+ activeresource (3.2.6)
26
+ activemodel (= 3.2.6)
27
+ activesupport (= 3.2.6)
28
+ activesupport (3.2.6)
29
+ i18n (~> 0.6)
30
+ multi_json (~> 1.0)
31
+ arel (3.0.2)
32
+ builder (3.0.0)
33
+ erubis (2.7.0)
4
34
  git (1.2.5)
35
+ hike (1.2.1)
36
+ i18n (0.6.0)
5
37
  jeweler (1.6.4)
6
38
  bundler (~> 1.0)
7
39
  git (>= 1.2.5)
8
40
  rake
9
- rake (0.9.2)
41
+ journey (1.0.4)
42
+ json (1.7.3)
43
+ mail (2.4.4)
44
+ i18n (>= 0.4.0)
45
+ mime-types (~> 1.16)
46
+ treetop (~> 1.4.8)
47
+ mime-types (1.18)
48
+ multi_json (1.3.6)
49
+ mysql2 (0.3.11)
50
+ polyglot (0.3.3)
51
+ rack (1.4.1)
52
+ rack-cache (1.2)
53
+ rack (>= 0.4)
54
+ rack-ssl (1.3.2)
55
+ rack
56
+ rack-test (0.6.1)
57
+ rack (>= 1.0)
58
+ rails (3.2.6)
59
+ actionmailer (= 3.2.6)
60
+ actionpack (= 3.2.6)
61
+ activerecord (= 3.2.6)
62
+ activeresource (= 3.2.6)
63
+ activesupport (= 3.2.6)
64
+ bundler (~> 1.0)
65
+ railties (= 3.2.6)
66
+ railties (3.2.6)
67
+ actionpack (= 3.2.6)
68
+ activesupport (= 3.2.6)
69
+ rack-ssl (~> 1.3.2)
70
+ rake (>= 0.8.7)
71
+ rdoc (~> 3.4)
72
+ thor (>= 0.14.6, < 2.0)
73
+ rake (0.9.2.2)
10
74
  rake-performance (0.1.0)
11
- rcov (0.9.10)
12
- shoulda (2.11.3)
75
+ rdoc (3.12)
76
+ json (~> 1.4)
77
+ sprockets (2.1.3)
78
+ hike (~> 1.2)
79
+ rack (~> 1.0)
80
+ tilt (~> 1.1, != 1.3.0)
81
+ sqlite3 (1.3.6)
82
+ thor (0.15.3)
83
+ tilt (1.3.3)
84
+ treetop (1.4.10)
85
+ polyglot
86
+ polyglot (>= 0.3.1)
87
+ tzinfo (0.3.33)
13
88
 
14
89
  PLATFORMS
15
90
  ruby
16
91
 
17
92
  DEPENDENCIES
18
- bundler (~> 1.0.0)
93
+ bundler
19
94
  jeweler (~> 1.6.4)
95
+ mysql2
96
+ rails (= 3.2.6)
20
97
  rake-performance
21
- rcov
22
- shoulda
98
+ sqlite3
@@ -0,0 +1,37 @@
1
+ # rake-kit
2
+
3
+ Rake-kit is a pack of useful rake tasks to reuse across different Rails apps.
4
+
5
+ ## What it does
6
+
7
+ ```bash
8
+ # 'db' group
9
+ rake db:dump # dumps the database to a sql file
10
+ rake db:dump:import # imports the rake_kit_development_dump.sql file to the current db
11
+ rake db:reset # This resets database (drop, create, migrate, seed)
12
+ rake db:truncate # Truncates tables
13
+
14
+ # 'source' group
15
+ rake source:detab # Replace all tabs in source code files with two spaces
16
+ rake source:detrail # Remove trailing whitespace on the ends of lines
17
+ rake source:gsub[pattern,result] # Replace all instances of {pattern} with {result}
18
+ ```
19
+
20
+ ## Installiation
21
+
22
+ Include it in Gemfile
23
+
24
+ ```ruby
25
+ gem 'rake-kit'
26
+ ```
27
+
28
+ ## Credits
29
+
30
+ Some tasks contain the code done by following people:
31
+
32
+ * André Arko, 'source' group, https://gist.github.com/2922427.
33
+ * Manu J, 'db:truncate' task, http://www.manu-j.com/blog/truncate-all-tables-in-a-ruby-on-rails-application/221/.
34
+
35
+ ## Copyright
36
+
37
+ Copyright (c) 2011 stanislaw.
data/Rakefile CHANGED
@@ -11,6 +11,9 @@ rescue Bundler::BundlerError => e
11
11
  end
12
12
  require 'rake'
13
13
 
14
+ $:.unshift File.expand_path('lib', File.dirname(__FILE__))
15
+ require 'rake-kit'
16
+
14
17
  require 'jeweler'
15
18
  Jeweler::Tasks.new do |gem|
16
19
  # gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
@@ -20,34 +23,10 @@ Jeweler::Tasks.new do |gem|
20
23
  gem.summary = %Q{Common rake tasks to re-use across Rails apps}
21
24
  gem.description = %Q{Simple gem for re-using common rake tasks across Rails apps}
22
25
  gem.email = "s.pankevich@gmail.com"
23
- gem.authors = ["stanislaw"]
26
+ gem.authors = ["Stanislaw Pankevich"]
27
+ gem.version = RakeKit::VERSION
24
28
  # dependencies defined in Gemfile
25
29
  end
26
30
  Jeweler::RubygemsDotOrgTasks.new
27
31
 
28
- require 'rake/testtask'
29
- Rake::TestTask.new(:test) do |test|
30
- test.libs << 'lib' << 'test'
31
- test.pattern = 'test/**/test_*.rb'
32
- test.verbose = true
33
- end
34
-
35
- require 'rcov/rcovtask'
36
- Rcov::RcovTask.new do |test|
37
- test.libs << 'test'
38
- test.pattern = 'test/**/test_*.rb'
39
- test.verbose = true
40
- test.rcov_opts << '--exclude "gems/*"'
41
- end
42
-
43
- task :default => :test
44
-
45
- require 'rake/rdoctask'
46
- Rake::RDocTask.new do |rdoc|
47
- version = File.exist?('VERSION') ? File.read('VERSION') : ""
48
-
49
- rdoc.rdoc_dir = 'rdoc'
50
- rdoc.title = "rake-kit #{version}"
51
- rdoc.rdoc_files.include('README*')
52
- rdoc.rdoc_files.include('lib/**/*.rb')
53
- end
32
+ # task :default => :test
@@ -1,4 +1,10 @@
1
- #require "rake-kit/engine"
2
- require "rake-kit/railtie"
1
+ #require 'rake-kit/engine'
2
+ require 'rake-kit/version'
3
+ require 'rake-kit/railtie' if defined? Rails
4
+
5
+ require 'rake'
6
+ require 'rake_performance'
7
+
3
8
  module RakeKit
9
+
4
10
  end
@@ -1,8 +1,10 @@
1
1
  module RakeKit
2
2
  class Railtie < Rails::Railtie
3
3
  rake_tasks do
4
- load 'tasks/dumps.rake'
5
- load 'tasks/reset_db.rake'
4
+ load 'tasks/db_dumps.rake'
5
+ load 'tasks/db_reset.rake'
6
+ load 'tasks/db_truncate.rake'
7
+ load 'tasks/source_trailing.rake'
6
8
  end
7
9
  end
8
10
  end
@@ -0,0 +1,3 @@
1
+ module RakeKit
2
+ VERSION = '0.1.6'
3
+ end
@@ -4,7 +4,7 @@ username = config.database_configuration[Rails.env]["username"]
4
4
  password = config.database_configuration[Rails.env]["password"]
5
5
 
6
6
  namespace :db do
7
-
7
+
8
8
  #rake db:dump
9
9
  desc "dumps the database to a sql file"
10
10
  task :dump => :environment do
@@ -13,13 +13,11 @@ namespace :db do
13
13
  end
14
14
 
15
15
  namespace :dump do
16
- #rake db:dump:import - Resets the DB.
16
+ #rake db:dump:import
17
17
  desc "imports the #{database}_dump.sql file to the current db"
18
-
19
- # TODO add :reset as prerequisite...
18
+
20
19
  task :import do
21
20
  `mysql -u root --password="#{password}" "#{database}" < "#{database}"_dump.sql`
22
21
  end
23
22
  end
24
-
25
23
  end
@@ -0,0 +1,10 @@
1
+ namespace :db do
2
+ desc 'This resets database (drop, create, migrate, seed)'
3
+ task :reset do
4
+ Rake::Task["db:drop"].invoke
5
+ Rake::Task["db:create"].invoke
6
+ Rake::Task["db:migrate"].invoke
7
+ Rake::Task["db:seed"].invoke
8
+ end
9
+ end
10
+
@@ -0,0 +1,26 @@
1
+ # Thanks to Manu, http://www.manu-j.com/blog/truncate-all-tables-in-a-ruby-on-rails-application/221/
2
+
3
+ namespace :db do
4
+ desc "Truncates tables"
5
+ task(:truncate => :load_config) do
6
+ begin
7
+ config = ActiveRecord::Base.configurations[RAILS_ENV]
8
+ ActiveRecord::Base.establish_connection
9
+
10
+ case config["adapter"]
11
+ when "mysql", "mysql2"
12
+ ActiveRecord::Base.connection.tables.each do |table|
13
+ ActiveRecord::Base.connection.execute("TRUNCATE #{table}")
14
+ end
15
+ when "sqlite", "sqlite3"
16
+ ActiveRecord::Base.connection.tables.each do |table|
17
+ ActiveRecord::Base.connection.execute("DELETE FROM #{table}")
18
+ ActiveRecord::Base.connection.execute("DELETE FROM sqlite_sequence where name='#{table}'")
19
+ end
20
+ ActiveRecord::Base.connection.execute("VACUUM")
21
+ end
22
+ rescue
23
+ $stderr.puts "Error while truncating. Make sure you have a valid database.yml file and have created the database tables before running this command. You should be able to run rake db:migrate without an error"
24
+ end
25
+ end
26
+ end
@@ -0,0 +1,36 @@
1
+ # Thanks to @indirect, https://gist.github.com/2922427
2
+
3
+ namespace :source do
4
+ def find_and_replace_in_source_files(find, replace)
5
+ puts "Search and replace #{find.inspect} => #{replace.inspect}"
6
+
7
+ files = %w[ .autotest .rspec .rvmrc Gemfile Procfile config.ru ].select{|f| File.exist?(f) }
8
+ directories = %w[app config lib public script spec test] # exclude bin, db, doc, log, and tmp
9
+ directories.each do |d|
10
+ files += Dir[File.join(d, "**/*.{rb,rake,haml,erb,builder,js,coffee,css,scss}")]
11
+ end
12
+
13
+ files.each do |file_name|
14
+ text = File.open(file_name, 'r'){ |file| file.read }
15
+ if text.gsub!(find, replace)
16
+ puts "rewriting #{file_name}..."
17
+ File.open(file_name, 'w'){|file| file.write(text)}
18
+ end
19
+ end
20
+ end
21
+
22
+ desc "Replace all tabs in source code files with two spaces"
23
+ task :detab do
24
+ find_and_replace_in_source_files("\t", " ")
25
+ end
26
+
27
+ desc "Remove trailing whitespace on the ends of lines"
28
+ task :detrail do
29
+ find_and_replace_in_source_files(/ +$/, '')
30
+ end
31
+
32
+ desc "Replace all instances of {pattern} with {result}"
33
+ task :gsub, :pattern, :result do |t, args|
34
+ find_and_replace_in_source_files(Regexp.new(args[:pattern] || ENV['PATTERN']), args[:result] || ENV['RESULT'])
35
+ end
36
+ end
@@ -4,63 +4,118 @@
4
4
  # -*- encoding: utf-8 -*-
5
5
 
6
6
  Gem::Specification.new do |s|
7
- s.name = %q{rake-kit}
8
- s.version = "0.1.5"
7
+ s.name = "rake-kit"
8
+ s.version = "0.1.6"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = ["stanislaw"]
12
- s.date = %q{2011-08-13}
13
- s.description = %q{Simple gem for re-using common rake tasks across Rails apps}
14
- s.email = %q{s.pankevich@gmail.com}
11
+ s.authors = ["Stanislaw Pankevich"]
12
+ s.date = "2012-06-27"
13
+ s.description = "Simple gem for re-using common rake tasks across Rails apps"
14
+ s.email = "s.pankevich@gmail.com"
15
15
  s.extra_rdoc_files = [
16
16
  "LICENSE.txt",
17
- "README.rdoc"
17
+ "README.md"
18
18
  ]
19
19
  s.files = [
20
20
  ".document",
21
21
  "Gemfile",
22
22
  "Gemfile.lock",
23
23
  "LICENSE.txt",
24
- "README.rdoc",
24
+ "README.md",
25
25
  "Rakefile",
26
- "VERSION",
27
26
  "lib/rake-kit.rb",
28
27
  "lib/rake-kit/engine.rb",
29
28
  "lib/rake-kit/railtie.rb",
30
- "lib/tasks/dumps.rake",
31
- "lib/tasks/reset_db.rake",
29
+ "lib/rake-kit/version.rb",
30
+ "lib/tasks/db_dumps.rake",
31
+ "lib/tasks/db_reset.rake",
32
+ "lib/tasks/db_truncate.rake",
33
+ "lib/tasks/source_trailing.rake",
32
34
  "rake-kit.gemspec",
33
- "test/helper.rb",
34
- "test/test_rake-kit.rb"
35
+ "spec/dummy/1",
36
+ "spec/dummy/README.rdoc",
37
+ "spec/dummy/Rakefile",
38
+ "spec/dummy/app/assets/javascripts/application.js",
39
+ "spec/dummy/app/assets/javascripts/posts.js",
40
+ "spec/dummy/app/assets/stylesheets/application.css",
41
+ "spec/dummy/app/assets/stylesheets/posts.css",
42
+ "spec/dummy/app/assets/stylesheets/scaffold.css",
43
+ "spec/dummy/app/controllers/application_controller.rb",
44
+ "spec/dummy/app/controllers/posts_controller.rb",
45
+ "spec/dummy/app/helpers/application_helper.rb",
46
+ "spec/dummy/app/helpers/posts_helper.rb",
47
+ "spec/dummy/app/mailers/.gitkeep",
48
+ "spec/dummy/app/models/.gitkeep",
49
+ "spec/dummy/app/models/post.rb",
50
+ "spec/dummy/app/views/layouts/application.html.erb",
51
+ "spec/dummy/app/views/posts/_form.html.erb",
52
+ "spec/dummy/app/views/posts/edit.html.erb",
53
+ "spec/dummy/app/views/posts/index.html.erb",
54
+ "spec/dummy/app/views/posts/new.html.erb",
55
+ "spec/dummy/app/views/posts/show.html.erb",
56
+ "spec/dummy/config.ru",
57
+ "spec/dummy/config/application.rb",
58
+ "spec/dummy/config/boot.rb",
59
+ "spec/dummy/config/database.yml",
60
+ "spec/dummy/config/environment.rb",
61
+ "spec/dummy/config/environments/development.rb",
62
+ "spec/dummy/config/environments/production.rb",
63
+ "spec/dummy/config/environments/test.rb",
64
+ "spec/dummy/config/initializers/backtrace_silencers.rb",
65
+ "spec/dummy/config/initializers/inflections.rb",
66
+ "spec/dummy/config/initializers/mime_types.rb",
67
+ "spec/dummy/config/initializers/secret_token.rb",
68
+ "spec/dummy/config/initializers/session_store.rb",
69
+ "spec/dummy/config/initializers/wrap_parameters.rb",
70
+ "spec/dummy/config/locales/en.yml",
71
+ "spec/dummy/config/routes.rb",
72
+ "spec/dummy/db/migrate/20120627150753_create_posts.rb",
73
+ "spec/dummy/db/schema.rb",
74
+ "spec/dummy/lib/assets/.gitkeep",
75
+ "spec/dummy/log/.gitkeep",
76
+ "spec/dummy/log/test.log",
77
+ "spec/dummy/public/404.html",
78
+ "spec/dummy/public/422.html",
79
+ "spec/dummy/public/500.html",
80
+ "spec/dummy/public/favicon.ico",
81
+ "spec/dummy/script/rails",
82
+ "spec/dummy/test/fixtures/posts.yml",
83
+ "spec/dummy/test/functional/posts_controller_test.rb",
84
+ "spec/dummy/test/unit/helpers/posts_helper_test.rb",
85
+ "spec/dummy/test/unit/post_test.rb",
86
+ "spec/spec_helper.rb"
35
87
  ]
36
- s.homepage = %q{http://github.com/stanislaw/rake-kit}
88
+ s.homepage = "http://github.com/stanislaw/rake-kit"
37
89
  s.licenses = ["MIT"]
38
90
  s.require_paths = ["lib"]
39
- s.rubygems_version = %q{1.6.2}
40
- s.summary = %q{Common rake tasks to re-use across Rails apps}
91
+ s.rubygems_version = "1.8.19"
92
+ s.summary = "Common rake tasks to re-use across Rails apps"
41
93
 
42
94
  if s.respond_to? :specification_version then
43
95
  s.specification_version = 3
44
96
 
45
97
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
46
98
  s.add_runtime_dependency(%q<rake-performance>, [">= 0"])
47
- s.add_development_dependency(%q<shoulda>, [">= 0"])
48
- s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
99
+ s.add_development_dependency(%q<bundler>, [">= 0"])
49
100
  s.add_development_dependency(%q<jeweler>, ["~> 1.6.4"])
50
- s.add_development_dependency(%q<rcov>, [">= 0"])
101
+ s.add_development_dependency(%q<rails>, ["= 3.2.6"])
102
+ s.add_development_dependency(%q<mysql2>, [">= 0"])
103
+ s.add_development_dependency(%q<sqlite3>, [">= 0"])
51
104
  else
52
105
  s.add_dependency(%q<rake-performance>, [">= 0"])
53
- s.add_dependency(%q<shoulda>, [">= 0"])
54
- s.add_dependency(%q<bundler>, ["~> 1.0.0"])
106
+ s.add_dependency(%q<bundler>, [">= 0"])
55
107
  s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
56
- s.add_dependency(%q<rcov>, [">= 0"])
108
+ s.add_dependency(%q<rails>, ["= 3.2.6"])
109
+ s.add_dependency(%q<mysql2>, [">= 0"])
110
+ s.add_dependency(%q<sqlite3>, [">= 0"])
57
111
  end
58
112
  else
59
113
  s.add_dependency(%q<rake-performance>, [">= 0"])
60
- s.add_dependency(%q<shoulda>, [">= 0"])
61
- s.add_dependency(%q<bundler>, ["~> 1.0.0"])
114
+ s.add_dependency(%q<bundler>, [">= 0"])
62
115
  s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
63
- s.add_dependency(%q<rcov>, [">= 0"])
116
+ s.add_dependency(%q<rails>, ["= 3.2.6"])
117
+ s.add_dependency(%q<mysql2>, [">= 0"])
118
+ s.add_dependency(%q<sqlite3>, [">= 0"])
64
119
  end
65
120
  end
66
121