active_shard 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,4 +1,7 @@
1
- ## 0.1.0.alpha ##
1
+ ## 0.1.1 ##
2
+ - bug in Railtie prevented gem from working
3
+
4
+ ## 0.1.0 ##
2
5
 
3
6
  - initial release of code and gem
4
7
  - includes working code base, missing completed railtie, better specs.
data/README.md CHANGED
@@ -202,6 +202,7 @@ To better understand what's happening here, see ActiveShard::Scope.
202
202
  Migrations for each schema must reside in a directory under db/migrate that corresponds to the schema name.
203
203
 
204
204
  Example:
205
+
205
206
  db/migrate/main
206
207
  20110810103523_create_users_table.rb
207
208
  db/migrate/directories
@@ -237,8 +238,8 @@ There are several, but Octopus (ar-octopus) is the most popular.
237
238
 
238
239
  ## Authors ##
239
240
 
240
- Brasten Sager ( brasten@dashwire.com )
241
- Matt Baker ( matt@dashwire.com )
241
+ - Brasten Sager ( brasten@dashwire.com )
242
+ - Matt Baker ( matt@dashwire.com )
242
243
 
243
244
  ## Copyright
244
245
 
@@ -30,25 +30,25 @@ module ActiveShard
30
30
  end
31
31
  end
32
32
 
33
- ActiveShard.config do |c|
34
- definitions = ActiveShard::ShardDefinition.from_yaml_file( File.expand_path( '../shards.yml', __FILE__ ) )
35
-
36
- definitions[ Rails.env.to_sym ].each do |shard|
37
- c.add_shard( shard )
38
- end
39
- end
40
-
41
- require 'active_shard/active_record'
42
-
43
- ActiveRecord::Base.send( :include, ActiveShard::ActiveRecord::ShardSupport )
44
-
45
- ActiveRecord::Base.connection_handler =
46
- ActiveShard::ActiveRecord::ConnectionHandler.new(
47
- ActiveShard.config.shard_definitions,
48
- :shard_lookup => ActiveShard::ShardLookupHandler.new( :scope => ActiveShard.scope, :config => ActiveShard.config )
49
- )
50
-
51
- ActiveRecord::Base.schema_name( :main )
33
+ # ActiveShard.config do |c|
34
+ # definitions = ActiveShard::ShardDefinition.from_yaml_file( File.expand_path( '../shards.yml', __FILE__ ) )
35
+ #
36
+ # definitions[ Rails.env.to_sym ].each do |shard|
37
+ # c.add_shard( shard )
38
+ # end
39
+ # end
40
+ #
41
+ # require 'active_shard/active_record'
42
+ #
43
+ # ActiveRecord::Base.send( :include, ActiveShard::ActiveRecord::ShardSupport )
44
+ #
45
+ # ActiveRecord::Base.connection_handler =
46
+ # ActiveShard::ActiveRecord::ConnectionHandler.new(
47
+ # ActiveShard.config.shard_definitions,
48
+ # :shard_lookup => ActiveShard::ShardLookupHandler.new( :scope => ActiveShard.scope, :config => ActiveShard.config )
49
+ # )
50
+ #
51
+ # ActiveRecord::Base.schema_name( :main )
52
52
 
53
53
 
54
54
  end
@@ -1,3 +1,3 @@
1
1
  module ActiveShard
2
- VERSION = '0.1.0'
2
+ VERSION = '0.1.1'
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: active_shard
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.1.0
5
+ version: 0.1.1
6
6
  platform: ruby
7
7
  authors:
8
8
  - Brasten Sager