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
@@ -1,19 +0,0 @@
1
- = rake-kit
2
-
3
- Description goes here.
4
-
5
- == Contributing to rake-kit
6
-
7
- * Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet
8
- * Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it
9
- * Fork the project
10
- * Start a feature/bugfix branch
11
- * Commit and push until you are happy with your contribution
12
- * Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
13
- * Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
14
-
15
- == Copyright
16
-
17
- Copyright (c) 2011 stanislaw. See LICENSE.txt for
18
- further details.
19
-
data/VERSION DELETED
@@ -1 +0,0 @@
1
- 0.1.5
@@ -1,9 +0,0 @@
1
- require 'rake_performance'
2
- desc 'This resets database (development - default)'
3
- task :reset_db 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
-
@@ -1,18 +0,0 @@
1
- require 'rubygems'
2
- require 'bundler'
3
- begin
4
- Bundler.setup(:default, :development)
5
- rescue Bundler::BundlerError => e
6
- $stderr.puts e.message
7
- $stderr.puts "Run `bundle install` to install missing gems"
8
- exit e.status_code
9
- end
10
- require 'test/unit'
11
- require 'shoulda'
12
-
13
- $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
14
- $LOAD_PATH.unshift(File.dirname(__FILE__))
15
- require 'rake-kit'
16
-
17
- class Test::Unit::TestCase
18
- end
@@ -1,7 +0,0 @@
1
- require 'helper'
2
-
3
- class TestRakeKit < Test::Unit::TestCase
4
- should "probably rename this file and start testing for real" do
5
- flunk "hey buddy, you should probably rename this file and start testing for real"
6
- end
7
- end