ar-octopus 0.3.4 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +7 -7
- data/Gemfile.lock +40 -43
- data/README.mkdn +7 -1
- data/Rakefile +24 -22
- data/TODO.txt +0 -1
- data/ar-octopus.gemspec +155 -148
- data/lib/octopus.rb +17 -4
- data/lib/octopus/logger.rb +14 -0
- data/lib/octopus/model.rb +19 -5
- data/lib/octopus/proxy.rb +27 -12
- data/lib/octopus/rails3/arel.rb +13 -0
- data/lib/octopus/scope_proxy.rb +3 -3
- data/sample_app/Gemfile +2 -2
- data/sample_app/Gemfile.lock +95 -79
- data/sample_app/config/shards.yml +1 -1
- data/sample_app/features/migrate.feature +2 -1
- data/sample_app/features/step_definitions/seeds_steps.rb +1 -3
- data/sample_app/features/support/env.rb +8 -0
- data/spec/config/shards.yml +12 -14
- data/spec/database_connection.rb +1 -1
- data/spec/database_models.rb +7 -2
- data/spec/migrations/5_create_users_on_multiples_groups.rb +2 -2
- data/spec/octopus/association_spec.rb +1 -1
- data/spec/octopus/controller_spec.rb +2 -2
- data/spec/octopus/logger_spec.rb +19 -0
- data/spec/octopus/model_spec.rb +67 -37
- data/spec/octopus/octopus_spec.rb +38 -9
- data/spec/octopus/proxy_spec.rb +56 -26
- data/spec/octopus/replication_specs.rb +13 -0
- data/spec/octopus/scope_proxy_spec.rb +1 -1
- data/spec/octopus/sharded_spec.rb +1 -1
- data/spec/octopus_helper.rb +5 -4
- data/spec/spec_helper.rb +1 -5
- metadata +74 -41
- data/.gitignore +0 -5