partitioned 1.3.5 → 2.0.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.
Files changed (60) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +4 -0
  3. data/.travis.yml +1 -2
  4. data/lib/monkey_patch_activerecord.rb +115 -81
  5. data/lib/monkey_patch_postgres.rb +0 -13
  6. data/lib/partitioned/by_time_field.rb +2 -1
  7. data/lib/partitioned/partitioned_base.rb +2 -2
  8. data/lib/partitioned/partitioned_base/redshift_sql_adapter.rb +5 -7
  9. data/lib/partitioned/partitioned_base/sql_adapter.rb +31 -15
  10. data/lib/partitioned/version.rb +1 -1
  11. data/partitioned.gemspec +4 -4
  12. data/spec/dummy/.gitignore +16 -0
  13. data/spec/dummy/README.rdoc +15 -248
  14. data/spec/dummy/Rakefile +0 -1
  15. data/spec/dummy/app/assets/javascripts/application.js +11 -4
  16. data/spec/dummy/app/assets/stylesheets/application.css +11 -5
  17. data/spec/dummy/app/controllers/application_controller.rb +3 -1
  18. data/spec/dummy/app/views/layouts/application.html.erb +2 -2
  19. data/spec/dummy/bin/bundle +3 -0
  20. data/spec/dummy/bin/rails +4 -0
  21. data/spec/dummy/bin/rake +4 -0
  22. data/spec/dummy/config.ru +1 -1
  23. data/spec/dummy/config/application.rb +6 -32
  24. data/spec/dummy/config/boot.rb +3 -9
  25. data/spec/dummy/config/environment.rb +2 -2
  26. data/spec/dummy/config/environments/development.rb +12 -13
  27. data/spec/dummy/config/environments/production.rb +44 -24
  28. data/spec/dummy/config/environments/test.rb +15 -18
  29. data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  30. data/spec/dummy/config/initializers/inflections.rb +9 -3
  31. data/spec/dummy/config/initializers/secret_token.rb +7 -2
  32. data/spec/dummy/config/initializers/session_store.rb +1 -6
  33. data/spec/dummy/config/initializers/wrap_parameters.rb +6 -6
  34. data/spec/dummy/config/locales/en.yml +20 -2
  35. data/spec/dummy/config/routes.rb +22 -24
  36. data/spec/dummy/db/seeds.rb +7 -0
  37. data/spec/dummy/public/404.html +43 -11
  38. data/spec/dummy/public/422.html +43 -11
  39. data/spec/dummy/public/500.html +43 -12
  40. data/spec/dummy/public/robots.txt +5 -0
  41. data/spec/dummy/test/test_helper.rb +15 -0
  42. data/spec/{monkey_patch_posgres_spec.rb → monkey_patch_postgres_spec.rb} +0 -13
  43. data/spec/partitioned/by_created_at_spec.rb +1 -2
  44. data/spec/partitioned/by_daily_time_field_spec.rb +0 -1
  45. data/spec/partitioned/by_foreign_key_spec.rb +0 -1
  46. data/spec/partitioned/by_id_spec.rb +16 -3
  47. data/spec/partitioned/by_integer_field_spec.rb +0 -1
  48. data/spec/partitioned/by_monthly_time_field_spec.rb +1 -2
  49. data/spec/partitioned/by_time_field_spec.rb +1 -2
  50. data/spec/partitioned/by_weekly_time_field_spec.rb +0 -1
  51. data/spec/partitioned/by_yearly_time_field_spec.rb +1 -2
  52. data/spec/partitioned/partitioned_base/sql_adapter_spec.rb +2 -2
  53. data/spec/partitioned/partitioned_base_spec.rb +1 -1
  54. data/spec/support/shared_example_spec_helper_for_integer_key.rb +2 -2
  55. data/spec/support/shared_example_spec_helper_for_time_key.rb +1 -1
  56. data/spec/support/tables_spec_helper.rb +2 -2
  57. data/travis/before.sh +6 -0
  58. metadata +29 -16
  59. data/spec/dummy/script/rails +0 -6
  60. data/spec/dummy/spec/spec_helper.rb +0 -27
@@ -1,6 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
3
-
4
- APP_PATH = File.expand_path('../../config/application', __FILE__)
5
- require File.expand_path('../../config/boot', __FILE__)
6
- require 'rails/commands'
@@ -1,27 +0,0 @@
1
- # This file is copied to spec/ when you run 'rails generate rspec:install'
2
- ENV["RAILS_ENV"] ||= 'test'
3
- require File.expand_path("../dummy/config/environment", __FILE__)
4
- require 'rspec/rails'
5
-
6
- # Requires supporting ruby files with custom matchers and macros, etc,
7
- # in spec/support/ and its subdirectories.
8
- Dir[Rails.root.join("spec/support/**/*.rb")].each {|f| require f}
9
-
10
- RSpec.configure do |config|
11
- # == Mock Framework
12
- #
13
- # If you prefer to use mocha, flexmock or RR, uncomment the appropriate line:
14
- #
15
- # config.mock_with :mocha
16
- # config.mock_with :flexmock
17
- # config.mock_with :rr
18
- config.mock_with :rspec
19
-
20
- # Remove this line if you're not using ActiveRecord or ActiveRecord fixtures
21
- config.fixture_path = "#{::Rails.root}/spec/fixtures"
22
-
23
- # If you're not using ActiveRecord, or you'd prefer not to run each of your
24
- # examples within a transaction, remove the following line or assign false
25
- # instead of true.
26
- config.use_transactional_fixtures = true
27
- end