solidus_act_as_tenant 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.circleci/config.yml +62 -0
- data/.gem_release.yml +5 -0
- data/.github/stale.yml +1 -0
- data/.github_changelog_generator +2 -0
- data/.gitignore +21 -0
- data/.rspec +2 -0
- data/.rubocop.yml +5 -0
- data/CHANGELOG.md +3 -0
- data/Gemfile +47 -0
- data/LICENSE +26 -0
- data/README.md +100 -0
- data/Rakefile +7 -0
- data/app/decorators/spree/store_credit_decorator.rb +16 -0
- data/app/decorators/spree/variant_decorator.rb +22 -0
- data/app/models/spree/products_taxon.rb +9 -0
- data/app/models/spree/reimbursement_credit.rb +9 -0
- data/app/models/spree/tenant.rb +9 -0
- data/bin/console +17 -0
- data/bin/rails +7 -0
- data/bin/rails-engine +13 -0
- data/bin/rails-sandbox +16 -0
- data/bin/rake +7 -0
- data/bin/sandbox +76 -0
- data/bin/setup +8 -0
- data/config/locales/en.yml +4 -0
- data/config/routes.rb +5 -0
- data/db/migrate/20241204043609_add_tenant_id_to_solidus_tables.rb +100 -0
- data/db/migrate/20241204055845_update_spree_unique_indexes_with_tenant_scope.rb +17 -0
- data/db/migrate/20241204105318_create_spree_tenants.rb +15 -0
- data/lib/generators/solidus_act_as_tenant/install/install_generator.rb +38 -0
- data/lib/generators/solidus_act_as_tenant/install/templates/initializer.rb +8 -0
- data/lib/generators/solidus_act_as_tenant/install/templates/tenant_aware_models.yml +95 -0
- data/lib/solidus_act_as_tenant/configuration.rb +19 -0
- data/lib/solidus_act_as_tenant/engine.rb +23 -0
- data/lib/solidus_act_as_tenant/factories/preference_factory.rb +7 -0
- data/lib/solidus_act_as_tenant/factories/tenant_factory.rb +9 -0
- data/lib/solidus_act_as_tenant/tenant_aware.rb +50 -0
- data/lib/solidus_act_as_tenant/testing_support/factories.rb +5 -0
- data/lib/solidus_act_as_tenant/utils/tenant_selector.rb +74 -0
- data/lib/solidus_act_as_tenant/version.rb +5 -0
- data/lib/solidus_act_as_tenant.rb +8 -0
- data/solidus_act_as_tenant.gemspec +38 -0
- data/spec/lib/solidus_act_as_tenant/tenant_aware_spec.rb +48 -0
- data/spec/models/spree/store_credit_spec.rb +15 -0
- data/spec/models/spree/variant_spec.rb +37 -0
- data/spec/spec_helper.rb +32 -0
- data/spec/support/config.rb +21 -0
- metadata +177 -0
metadata
ADDED
@@ -0,0 +1,177 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: solidus_act_as_tenant
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.2
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Ikraam Ghoor
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2024-12-05 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: acts_as_tenant
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 1.0.1
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 1.0.1
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: solidus_core
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 2.0.0
|
34
|
+
- - "<"
|
35
|
+
- !ruby/object:Gem::Version
|
36
|
+
version: '5'
|
37
|
+
type: :runtime
|
38
|
+
prerelease: false
|
39
|
+
version_requirements: !ruby/object:Gem::Requirement
|
40
|
+
requirements:
|
41
|
+
- - ">="
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: 2.0.0
|
44
|
+
- - "<"
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: '5'
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: solidus_support
|
49
|
+
requirement: !ruby/object:Gem::Requirement
|
50
|
+
requirements:
|
51
|
+
- - "~>"
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '0.5'
|
54
|
+
type: :runtime
|
55
|
+
prerelease: false
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
requirements:
|
58
|
+
- - "~>"
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
version: '0.5'
|
61
|
+
- !ruby/object:Gem::Dependency
|
62
|
+
name: pry
|
63
|
+
requirement: !ruby/object:Gem::Requirement
|
64
|
+
requirements:
|
65
|
+
- - ">="
|
66
|
+
- !ruby/object:Gem::Version
|
67
|
+
version: '0'
|
68
|
+
type: :development
|
69
|
+
prerelease: false
|
70
|
+
version_requirements: !ruby/object:Gem::Requirement
|
71
|
+
requirements:
|
72
|
+
- - ">="
|
73
|
+
- !ruby/object:Gem::Version
|
74
|
+
version: '0'
|
75
|
+
- !ruby/object:Gem::Dependency
|
76
|
+
name: solidus_dev_support
|
77
|
+
requirement: !ruby/object:Gem::Requirement
|
78
|
+
requirements:
|
79
|
+
- - "~>"
|
80
|
+
- !ruby/object:Gem::Version
|
81
|
+
version: '2.9'
|
82
|
+
type: :development
|
83
|
+
prerelease: false
|
84
|
+
version_requirements: !ruby/object:Gem::Requirement
|
85
|
+
requirements:
|
86
|
+
- - "~>"
|
87
|
+
- !ruby/object:Gem::Version
|
88
|
+
version: '2.9'
|
89
|
+
description: Adds tenant functionality to solidus using the row level acts_as_tenant
|
90
|
+
gem
|
91
|
+
email: consult.ikraam@gmail.com
|
92
|
+
executables: []
|
93
|
+
extensions: []
|
94
|
+
extra_rdoc_files: []
|
95
|
+
files:
|
96
|
+
- ".circleci/config.yml"
|
97
|
+
- ".gem_release.yml"
|
98
|
+
- ".github/stale.yml"
|
99
|
+
- ".github_changelog_generator"
|
100
|
+
- ".gitignore"
|
101
|
+
- ".rspec"
|
102
|
+
- ".rubocop.yml"
|
103
|
+
- CHANGELOG.md
|
104
|
+
- Gemfile
|
105
|
+
- LICENSE
|
106
|
+
- README.md
|
107
|
+
- Rakefile
|
108
|
+
- app/decorators/spree/store_credit_decorator.rb
|
109
|
+
- app/decorators/spree/variant_decorator.rb
|
110
|
+
- app/models/spree/products_taxon.rb
|
111
|
+
- app/models/spree/reimbursement_credit.rb
|
112
|
+
- app/models/spree/tenant.rb
|
113
|
+
- bin/console
|
114
|
+
- bin/rails
|
115
|
+
- bin/rails-engine
|
116
|
+
- bin/rails-sandbox
|
117
|
+
- bin/rake
|
118
|
+
- bin/sandbox
|
119
|
+
- bin/setup
|
120
|
+
- config/locales/en.yml
|
121
|
+
- config/routes.rb
|
122
|
+
- db/migrate/20241204043609_add_tenant_id_to_solidus_tables.rb
|
123
|
+
- db/migrate/20241204055845_update_spree_unique_indexes_with_tenant_scope.rb
|
124
|
+
- db/migrate/20241204105318_create_spree_tenants.rb
|
125
|
+
- lib/generators/solidus_act_as_tenant/install/install_generator.rb
|
126
|
+
- lib/generators/solidus_act_as_tenant/install/templates/initializer.rb
|
127
|
+
- lib/generators/solidus_act_as_tenant/install/templates/tenant_aware_models.yml
|
128
|
+
- lib/solidus_act_as_tenant.rb
|
129
|
+
- lib/solidus_act_as_tenant/configuration.rb
|
130
|
+
- lib/solidus_act_as_tenant/engine.rb
|
131
|
+
- lib/solidus_act_as_tenant/factories/preference_factory.rb
|
132
|
+
- lib/solidus_act_as_tenant/factories/tenant_factory.rb
|
133
|
+
- lib/solidus_act_as_tenant/tenant_aware.rb
|
134
|
+
- lib/solidus_act_as_tenant/testing_support/factories.rb
|
135
|
+
- lib/solidus_act_as_tenant/utils/tenant_selector.rb
|
136
|
+
- lib/solidus_act_as_tenant/version.rb
|
137
|
+
- solidus_act_as_tenant.gemspec
|
138
|
+
- spec/lib/solidus_act_as_tenant/tenant_aware_spec.rb
|
139
|
+
- spec/models/spree/store_credit_spec.rb
|
140
|
+
- spec/models/spree/variant_spec.rb
|
141
|
+
- spec/spec_helper.rb
|
142
|
+
- spec/support/config.rb
|
143
|
+
homepage: https://github.com/solidusio-contrib/solidus_act_as_tenant#readme
|
144
|
+
licenses:
|
145
|
+
- BSD-3-Clause
|
146
|
+
metadata:
|
147
|
+
homepage_uri: https://github.com/solidusio-contrib/solidus_act_as_tenant#readme
|
148
|
+
source_code_uri: https://github.com/solidusio-contrib/solidus_act_as_tenant
|
149
|
+
changelog_uri: https://github.com/solidusio-contrib/solidus_act_as_tenant/blob/main/CHANGELOG.md
|
150
|
+
post_install_message:
|
151
|
+
rdoc_options: []
|
152
|
+
require_paths:
|
153
|
+
- lib
|
154
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
155
|
+
requirements:
|
156
|
+
- - ">="
|
157
|
+
- !ruby/object:Gem::Version
|
158
|
+
version: '2.5'
|
159
|
+
- - "<"
|
160
|
+
- !ruby/object:Gem::Version
|
161
|
+
version: '4'
|
162
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
163
|
+
requirements:
|
164
|
+
- - ">="
|
165
|
+
- !ruby/object:Gem::Version
|
166
|
+
version: '0'
|
167
|
+
requirements: []
|
168
|
+
rubygems_version: 3.5.16
|
169
|
+
signing_key:
|
170
|
+
specification_version: 4
|
171
|
+
summary: Adds tenant functionality to solidus using the row level acts_as_tenant gem
|
172
|
+
test_files:
|
173
|
+
- spec/lib/solidus_act_as_tenant/tenant_aware_spec.rb
|
174
|
+
- spec/models/spree/store_credit_spec.rb
|
175
|
+
- spec/models/spree/variant_spec.rb
|
176
|
+
- spec/spec_helper.rb
|
177
|
+
- spec/support/config.rb
|