ros-apartment 2.7.0 → 2.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/HISTORY.md +33 -0
- data/lib/apartment/tasks/enhancements.rb +1 -1
- data/lib/apartment/version.rb +1 -1
- data/lib/tasks/apartment.rake +3 -1
- data/{apartment.gemspec → ros-apartment.gemspec} +1 -2
- metadata +8 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f2dcb62b879236f8522148786e9ef35dc10b59be747f5e4cd0e9b0d515add9de
|
4
|
+
data.tar.gz: 33cc4f75fbe99a1ec29e6370cee9a83cd9a8ee59b0657ada7ce6f2b0cbd87524
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3b4fbc349f3d9198c85914667335662c7d3bc8c64a1c6fa0397b417e4d451247eeb18e44a6949d2f79647889a20542f64c0b25de2d700cb9cf6459e2a2120d80
|
7
|
+
data.tar.gz: 4b5057afb829f973b0234a04136f0f470b38f7b52e2dc96ccdc7d88f70c1d949c06b5195d41da5a74b6460cd23c5a3b0393dc38be21eb5d69d66caa3507746b6
|
data/HISTORY.md
CHANGED
@@ -1,3 +1,36 @@
|
|
1
|
+
# 2.7.1
|
2
|
+
|
3
|
+
# Enhancements
|
4
|
+
|
5
|
+
- N/a
|
6
|
+
|
7
|
+
# Bugfixes
|
8
|
+
|
9
|
+
- [Resolves #82] Enhanced db:create breaks plugin compatibility - <https://github.com/rails-on-services/apartment/pull/83>
|
10
|
+
|
11
|
+
# Chores
|
12
|
+
|
13
|
+
- Update rake version in development
|
14
|
+
- Renamed gemspec to match gem name
|
15
|
+
|
16
|
+
# 2.7.0
|
17
|
+
|
18
|
+
# Enhancements
|
19
|
+
|
20
|
+
- [Resolves #70] Rake tasks define methods on main - <https://github.com/rails-on-services/apartment/pull/75>
|
21
|
+
- Add database and schema to active record log. Configurable, defaults to false to keep current behavior - <https://github.com/rails-on-services/apartment/pull/55>
|
22
|
+
|
23
|
+
# Bugfixes
|
24
|
+
|
25
|
+
- [Fixes #61] Fix database create in mysql - <https://github.com/rails-on-services/apartment/pull/76>
|
26
|
+
|
27
|
+
# Chores
|
28
|
+
|
29
|
+
- Remove deprecated tld_length config option: tld_length was removed in influitive#309, this configuration option doesn't have any effect now. - <https://github.com/rails-on-services/apartment/pull/72>
|
30
|
+
- Using [diffend.io proxy](https://diffend.io) to safely check required gems
|
31
|
+
- Added [story branch](https://github.com/story-branch/story_branch) to the configuration
|
32
|
+
- Using travis-ci to run rubocop as well, replacing github actions: github actions do not work in fork's PRs
|
33
|
+
|
1
34
|
# 2.6.1
|
2
35
|
|
3
36
|
## Enhancements
|
@@ -7,7 +7,7 @@ module Apartment
|
|
7
7
|
class RakeTaskEnhancer
|
8
8
|
module TASKS
|
9
9
|
ENHANCE_BEFORE = %w[db:drop].freeze
|
10
|
-
ENHANCE_AFTER = %w[db:
|
10
|
+
ENHANCE_AFTER = %w[db:migrate db:rollback db:migrate:up db:migrate:down db:migrate:redo db:seed].freeze
|
11
11
|
freeze
|
12
12
|
end
|
13
13
|
|
data/lib/apartment/version.rb
CHANGED
data/lib/tasks/apartment.rake
CHANGED
@@ -7,6 +7,8 @@ require 'parallel'
|
|
7
7
|
apartment_namespace = namespace :apartment do
|
8
8
|
desc 'Create all tenants'
|
9
9
|
task :create do
|
10
|
+
Apartment::TaskHelper.warn_if_tenants_empty
|
11
|
+
|
10
12
|
Apartment::TaskHelper.tenants.each do |tenant|
|
11
13
|
begin
|
12
14
|
puts("Creating #{tenant} tenant")
|
@@ -43,7 +45,7 @@ apartment_namespace = namespace :apartment do
|
|
43
45
|
end
|
44
46
|
|
45
47
|
desc 'Seed all tenants'
|
46
|
-
task :
|
48
|
+
task seed: :create do
|
47
49
|
Apartment::TaskHelper.warn_if_tenants_empty
|
48
50
|
|
49
51
|
Apartment::TaskHelper.each_tenant do |tenant|
|
@@ -27,7 +27,6 @@ Gem::Specification.new do |s|
|
|
27
27
|
s.homepage = 'https://github.com/rails-on-services/apartment'
|
28
28
|
s.licenses = ['MIT']
|
29
29
|
|
30
|
-
# must be >= 3.1.2 due to bug in prepared_statements
|
31
30
|
s.add_dependency 'activerecord', '>= 5.0.0', '< 6.1'
|
32
31
|
s.add_dependency 'parallel', '< 2.0'
|
33
32
|
s.add_dependency 'public_suffix', '>= 2.0.5', '< 5.0'
|
@@ -36,7 +35,7 @@ Gem::Specification.new do |s|
|
|
36
35
|
s.add_development_dependency 'appraisal', '~> 2.2'
|
37
36
|
s.add_development_dependency 'bundler', '>= 1.3', '< 3.0'
|
38
37
|
s.add_development_dependency 'capybara', '~> 2.0'
|
39
|
-
s.add_development_dependency 'rake', '~> 0
|
38
|
+
s.add_development_dependency 'rake', '~> 13.0'
|
40
39
|
s.add_development_dependency 'rspec', '~> 3.4'
|
41
40
|
s.add_development_dependency 'rspec-rails', '~> 3.4'
|
42
41
|
|
metadata
CHANGED
@@ -1,16 +1,16 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ros-apartment
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.7.
|
4
|
+
version: 2.7.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan Brunner
|
8
8
|
- Brad Robertson
|
9
9
|
- Rui Baltazar
|
10
|
-
autorequire:
|
10
|
+
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2020-06-
|
13
|
+
date: 2020-06-27 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: activerecord
|
@@ -140,14 +140,14 @@ dependencies:
|
|
140
140
|
requirements:
|
141
141
|
- - "~>"
|
142
142
|
- !ruby/object:Gem::Version
|
143
|
-
version: '0
|
143
|
+
version: '13.0'
|
144
144
|
type: :development
|
145
145
|
prerelease: false
|
146
146
|
version_requirements: !ruby/object:Gem::Requirement
|
147
147
|
requirements:
|
148
148
|
- - "~>"
|
149
149
|
- !ruby/object:Gem::Version
|
150
|
-
version: '0
|
150
|
+
version: '13.0'
|
151
151
|
- !ruby/object:Gem::Dependency
|
152
152
|
name: rspec
|
153
153
|
requirement: !ruby/object:Gem::Requirement
|
@@ -243,7 +243,6 @@ files:
|
|
243
243
|
- README.md
|
244
244
|
- Rakefile
|
245
245
|
- TODO.md
|
246
|
-
- apartment.gemspec
|
247
246
|
- docker-compose.yml
|
248
247
|
- gemfiles/rails_4_2.gemfile
|
249
248
|
- gemfiles/rails_5_0.gemfile
|
@@ -285,11 +284,12 @@ files:
|
|
285
284
|
- lib/generators/apartment/install/install_generator.rb
|
286
285
|
- lib/generators/apartment/install/templates/apartment.rb
|
287
286
|
- lib/tasks/apartment.rake
|
287
|
+
- ros-apartment.gemspec
|
288
288
|
homepage: https://github.com/rails-on-services/apartment
|
289
289
|
licenses:
|
290
290
|
- MIT
|
291
291
|
metadata: {}
|
292
|
-
post_install_message:
|
292
|
+
post_install_message:
|
293
293
|
rdoc_options: []
|
294
294
|
require_paths:
|
295
295
|
- lib
|
@@ -305,7 +305,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
305
305
|
version: '0'
|
306
306
|
requirements: []
|
307
307
|
rubygems_version: 3.0.3
|
308
|
-
signing_key:
|
308
|
+
signing_key:
|
309
309
|
specification_version: 4
|
310
310
|
summary: A Ruby gem for managing database multitenancy. Apartment Gem drop in replacement
|
311
311
|
test_files: []
|