tenanfy 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/tenanfy/tenant.rb +3 -3
- data/lib/tenanfy/version.rb +1 -1
- metadata +24 -24
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4e02f8e4d2a850161a80bc0dfe192a739ae2c8e3
|
4
|
+
data.tar.gz: 28fdbb0b97dbfac2ef508fea328eeef75b70afe5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a32d42ac71a3eba4540c7b9f3d7684cd44d39ff08dbe964a7e9c7a18c97c7ec117c669edef1af5dc68ab0f9cd5fbb005b227f46669bf82ca85e31522f7ae4438
|
7
|
+
data.tar.gz: d8a78b24a31ee877604650dfee851e18594915ed57bcf86c8a188a2a5bdde26553f27ed4da600e793fd99ed0fef5984e88cfe97af593ad38d7c0007dfd14b3e8
|
@@ -20,7 +20,7 @@ module Tenanfy
|
|
20
20
|
end
|
21
21
|
|
22
22
|
def switch_to_tenant
|
23
|
-
::Apartment::
|
23
|
+
::Apartment::Tenant.switch(self.schema_name)
|
24
24
|
end
|
25
25
|
|
26
26
|
def theme_path
|
@@ -30,11 +30,11 @@ module Tenanfy
|
|
30
30
|
private
|
31
31
|
|
32
32
|
def build_schema
|
33
|
-
::Apartment::
|
33
|
+
::Apartment::Tenant.create(self.schema_name)
|
34
34
|
end
|
35
35
|
|
36
36
|
def drop_schema
|
37
|
-
::Apartment::
|
37
|
+
::Apartment::Tenant.drop(self.schema_name)
|
38
38
|
end
|
39
39
|
|
40
40
|
end
|
data/lib/tenanfy/version.rb
CHANGED
metadata
CHANGED
@@ -1,97 +1,97 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tenanfy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tiago Scolari
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2014-07-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: 3.2.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: 3.2.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: apartment
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: 0.25.0
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
40
|
+
version: 0.25.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: pg
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- -
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '0'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- -
|
52
|
+
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: rspec-rails
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- -
|
59
|
+
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: '0'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- -
|
66
|
+
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: factory_girl_rails
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- -
|
73
|
+
- - ">="
|
74
74
|
- !ruby/object:Gem::Version
|
75
75
|
version: '0'
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- -
|
80
|
+
- - ">="
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '0'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: database_cleaner
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- -
|
87
|
+
- - ">="
|
88
88
|
- !ruby/object:Gem::Version
|
89
89
|
version: '0'
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
|
-
- -
|
94
|
+
- - ">="
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '0'
|
97
97
|
description: Offers a opinated use of the Apartment gem.
|
@@ -101,14 +101,18 @@ executables: []
|
|
101
101
|
extensions: []
|
102
102
|
extra_rdoc_files: []
|
103
103
|
files:
|
104
|
+
- MIT-LICENSE
|
105
|
+
- README.rdoc
|
106
|
+
- Rakefile
|
104
107
|
- app/models/tenanfy/tenant.rb
|
105
108
|
- app/models/tenanfy/url.rb
|
106
109
|
- db/migrate/20130128025640_create_tenanfy_tenants.rb
|
107
110
|
- db/migrate/20130128025755_create_tenanfy_urls.rb
|
111
|
+
- lib/generators/tenanfy/install/USAGE
|
108
112
|
- lib/generators/tenanfy/install/install_generator.rb
|
109
113
|
- lib/generators/tenanfy/install/templates/initializer.rb
|
110
|
-
- lib/generators/tenanfy/install/USAGE
|
111
114
|
- lib/tasks/tenantfy_tasks.rake
|
115
|
+
- lib/tenanfy.rb
|
112
116
|
- lib/tenanfy/apartment/elevator.rb
|
113
117
|
- lib/tenanfy/configurations/keys.rb
|
114
118
|
- lib/tenanfy/configurations/values.rb
|
@@ -116,10 +120,6 @@ files:
|
|
116
120
|
- lib/tenanfy/engine.rb
|
117
121
|
- lib/tenanfy/helpers.rb
|
118
122
|
- lib/tenanfy/version.rb
|
119
|
-
- lib/tenanfy.rb
|
120
|
-
- MIT-LICENSE
|
121
|
-
- Rakefile
|
122
|
-
- README.rdoc
|
123
123
|
homepage: https://github.com/tscolari/tenanfy
|
124
124
|
licenses: []
|
125
125
|
metadata: {}
|
@@ -129,17 +129,17 @@ require_paths:
|
|
129
129
|
- lib
|
130
130
|
required_ruby_version: !ruby/object:Gem::Requirement
|
131
131
|
requirements:
|
132
|
-
- -
|
132
|
+
- - ">="
|
133
133
|
- !ruby/object:Gem::Version
|
134
134
|
version: '0'
|
135
135
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
136
136
|
requirements:
|
137
|
-
- -
|
137
|
+
- - ">="
|
138
138
|
- !ruby/object:Gem::Version
|
139
139
|
version: '0'
|
140
140
|
requirements: []
|
141
141
|
rubyforge_project:
|
142
|
-
rubygems_version: 2.
|
142
|
+
rubygems_version: 2.2.2
|
143
143
|
signing_key:
|
144
144
|
specification_version: 4
|
145
145
|
summary: Mult-Tenant drop and play solution.
|