octoball 0.1.0 → 0.1.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '0669e5023c27ce0b1ec2e5116331e8b9f6e5fa405e9f9ac87ea198ecc10023e4'
4
- data.tar.gz: 0b222767e80de3ad53e689d0ffda6e7fe87b4ce551e3bcd2eacc6beb79b98abe
3
+ metadata.gz: '0795c1883b68bebf799c031723b21cf2866a36dc7eb265050bd2109ec804d9ff'
4
+ data.tar.gz: a5511fa201eeb07e95531ae16d900e2cb8aea2eba7f58aeefcf7b6ee69879d5e
5
5
  SHA512:
6
- metadata.gz: 9282d81935c2c736cd9d9abec4b9a5a42b595aabb64326bd77a4f74027fb12e04855bf8f7197f9abc83f24488eac3e9a64e4689ab6a275da7764999a252f812c
7
- data.tar.gz: 0c00b0f6ee82aaa84278b0343b8a264f999e34eabe7d7fe96c99d6845bd56496745c5e39479a34033b8dd01fd87ab036859faeaf510e2d2a54b34ef7288f9df1
6
+ metadata.gz: 3c8453ca9237450c52106bcfae8211f812b008ca7b2de066931980916e7d1beb7af4e7e7e97a878b0db5b32fad3cd6ac9c059319605f3a76be30bffc4091c3ed
7
+ data.tar.gz: 736553145f161faa71d32ab6000f3bd1fa4697b315002c64e4683e04236007a90ae21e39ef91964cf172a1451acbffbd37844800e1ca8b1e909c06b140aef776
data/README.md CHANGED
@@ -45,13 +45,6 @@ Currently, its implementation is focusing on horizontal database sharding. Howev
45
45
  gem "octoball"
46
46
  ```
47
47
 
48
- Until first release:
49
- ```
50
- # Bundle edge Rails
51
- gem 'rails', github: 'rails/rails'
52
- gem 'octoball', git: 'git@github.com:aktsk/octoball'
53
- ```
54
-
55
48
  Define the database connections in `config/database.yml`, e.g.:
56
49
  ```
57
50
  default: &default
@@ -19,7 +19,7 @@ class Octoball
19
19
 
20
20
  def instantiate_instance_of(klass, attributes, column_types = {}, &block)
21
21
  result = super
22
- result.instance_variable_set(:@current_shard, connection.current_shard)
22
+ result.instance_variable_set(:@current_shard, current_shard)
23
23
  result
24
24
  end
25
25
  end
@@ -21,7 +21,7 @@ class Octoball
21
21
 
22
22
  def init_internals
23
23
  super
24
- @current_shard = self.class.connection.current_shard
24
+ @current_shard = self.class.current_shard
25
25
  end
26
26
  end
27
27
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class Octoball
4
- VERSION = '0.1.0'
4
+ VERSION = '0.1.1'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: octoball
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tomoki Sekiyama
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-12-10 00:00:00.000000000 Z
11
+ date: 2021-05-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord