multitenant-mysql 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +1 -0
- data/lib/multitenant-mysql/conf_file.rb +1 -1
- data/lib/multitenant-mysql/version.rb +1 -1
- data/spec/conf_file_spec.rb +7 -0
- metadata +3 -3
data/README.rdoc
CHANGED
@@ -7,6 +7,7 @@ The idea is taken from http://blog.empowercampaigns.com/post/1044240481/multi-te
|
|
7
7
|
The advantages of such approach:
|
8
8
|
- no default scopes
|
9
9
|
- only one db
|
10
|
+
- no Threads
|
10
11
|
- the biggest advantage is that responsebility about the data is moved to the db layer. It means the customer shouldn't be warry about developer's mistake before very critical demo and the logic of the app is much simplier.
|
11
12
|
|
12
13
|
== Code Status
|
data/spec/conf_file_spec.rb
CHANGED
@@ -24,6 +24,13 @@ describe Multitenant::Mysql::ConfFile do
|
|
24
24
|
subject.path = '/conf/file'
|
25
25
|
expect(subject.full_path).to eql('/conf/file.rb')
|
26
26
|
end
|
27
|
+
|
28
|
+
it 'should return correct path no metter how many times we call it' do
|
29
|
+
subject.path = '/conf/file'
|
30
|
+
2.times do
|
31
|
+
expect(subject.full_path).to eql('/conf/file.rb')
|
32
|
+
end
|
33
|
+
end
|
27
34
|
end
|
28
35
|
|
29
36
|
context '.default_path' do
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: multitenant-mysql
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-02-
|
12
|
+
date: 2013-02-18 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rspec
|
@@ -83,7 +83,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
83
83
|
version: '0'
|
84
84
|
requirements: []
|
85
85
|
rubyforge_project:
|
86
|
-
rubygems_version: 1.8.
|
86
|
+
rubygems_version: 1.8.24
|
87
87
|
signing_key:
|
88
88
|
specification_version: 3
|
89
89
|
summary: Add multi-tenancy to Rails application using MySql views
|