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 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
@@ -11,7 +11,7 @@ module Multitenant
11
11
  end
12
12
 
13
13
  def self.full_path
14
- path << '.rb'
14
+ "#{path}.rb"
15
15
  end
16
16
 
17
17
  def self.default_path
@@ -1,5 +1,5 @@
1
1
  module Multitenant
2
2
  module Mysql
3
- VERSION = "1.0.0"
3
+ VERSION = "1.0.1"
4
4
  end
5
5
  end
@@ -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.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-17 00:00:00.000000000 Z
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.21
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