ar-octopus 0.6.0 → 0.6.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (49) hide show
  1. data/.gitignore +1 -1
  2. data/.travis.yml +7 -6
  3. data/README.mkdn +1 -1
  4. data/Rakefile +21 -1
  5. data/gemfiles/rails30.gemfile +8 -0
  6. data/gemfiles/rails31.gemfile +7 -0
  7. data/gemfiles/rails32.gemfile +7 -0
  8. data/lib/octopus.rb +4 -1
  9. data/lib/octopus/model.rb +15 -0
  10. data/lib/octopus/version.rb +1 -1
  11. data/sample_app/Gemfile +9 -10
  12. data/sample_app/README.rdoc +261 -0
  13. data/sample_app/Rakefile +2 -2
  14. data/sample_app/app/assets/images/rails.png +0 -0
  15. data/sample_app/app/assets/javascripts/application.js +15 -0
  16. data/sample_app/app/assets/stylesheets/application.css +13 -0
  17. data/sample_app/app/mailers/.gitkeep +0 -0
  18. data/sample_app/app/models/.gitkeep +0 -0
  19. data/sample_app/config/application.rb +30 -14
  20. data/sample_app/config/boot.rb +3 -10
  21. data/sample_app/config/database.yml +18 -15
  22. data/sample_app/config/environments/development.rb +22 -4
  23. data/sample_app/config/environments/production.rb +35 -14
  24. data/sample_app/config/environments/test.rb +13 -8
  25. data/sample_app/config/initializers/inflections.rb +5 -0
  26. data/sample_app/config/initializers/secret_token.rb +1 -1
  27. data/sample_app/config/initializers/session_store.rb +3 -3
  28. data/sample_app/config/initializers/wrap_parameters.rb +14 -0
  29. data/sample_app/config/locales/en.yml +1 -1
  30. data/sample_app/config/routes.rb +1 -1
  31. data/sample_app/db/schema.rb +7 -8
  32. data/sample_app/features/support/database.rb +13 -0
  33. data/sample_app/features/support/env.rb +43 -58
  34. data/sample_app/lib/assets/.gitkeep +0 -0
  35. data/sample_app/lib/tasks/cucumber.rake +15 -3
  36. data/sample_app/log/.gitkeep +0 -0
  37. data/sample_app/vendor/assets/javascripts/.gitkeep +0 -0
  38. data/sample_app/vendor/assets/stylesheets/.gitkeep +0 -0
  39. data/spec/octopus/association_spec.rb +1 -1
  40. data/spec/octopus/octopus_spec.rb +4 -4
  41. data/spec/octopus/proxy_spec.rb +40 -7
  42. data/spec/octopus/replication_spec.rb +1 -1
  43. data/spec/octopus/sharded_spec.rb +1 -1
  44. data/spec/spec_helper.rb +0 -2
  45. data/spec/support/database_models.rb +21 -0
  46. data/spec/support/octopus_helper.rb +7 -1
  47. metadata +175 -156
  48. data/sample_app/test/performance/browsing_test.rb +0 -9
  49. data/sample_app/test/test_helper.rb +0 -13
@@ -1,9 +0,0 @@
1
- require 'test_helper'
2
- require 'rails/performance_test_help'
3
-
4
- # Profiling results for each test method are written to tmp/performance.
5
- class BrowsingTest < ActionDispatch::PerformanceTest
6
- def test_homepage
7
- get '/'
8
- end
9
- end
@@ -1,13 +0,0 @@
1
- ENV["RAILS_ENV"] = "test"
2
- require File.expand_path('../../config/environment', __FILE__)
3
- require 'rails/test_help'
4
-
5
- class ActiveSupport::TestCase
6
- # Setup all fixtures in test/fixtures/*.(yml|csv) for all tests in alphabetical order.
7
- #
8
- # Note: You'll currently still have to declare fixtures explicitly in integration tests
9
- # -- they do not yet inherit this setting
10
- fixtures :all
11
-
12
- # Add more helper methods to be used by all tests here...
13
- end