Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prepare Release 2.7.1 #84

Merged
merged 5 commits into from
Jun 27, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,36 @@
# 2.7.1

# Enhancements

- N/a

# Bugfixes

- [Resolves #82] Enhanced db:create breaks plugin compatibility - <https://github.com/rails-on-services/apartment/pull/83>

# Chores

- Update rake version in development
- Renamed gemspec to match gem name

# 2.7.0

# Enhancements

- [Resolves #70] Rake tasks define methods on main - <https://github.com/rails-on-services/apartment/pull/75>
- 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>

# Bugfixes

- [Fixes #61] Fix database create in mysql - <https://github.com/rails-on-services/apartment/pull/76>

# Chores

- 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>
- Using [diffend.io proxy](https://diffend.io) to safely check required gems
- Added [story branch](https://github.com/story-branch/story_branch) to the configuration
- Using travis-ci to run rubocop as well, replacing github actions: github actions do not work in fork's PRs

# 2.6.1

## Enhancements
Expand Down
2 changes: 1 addition & 1 deletion lib/apartment/tasks/enhancements.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ module Apartment
class RakeTaskEnhancer
module TASKS
ENHANCE_BEFORE = %w[db:drop].freeze
ENHANCE_AFTER = %w[db:create db:migrate db:rollback db:migrate:up db:migrate:down db:migrate:redo db:seed].freeze
ENHANCE_AFTER = %w[db:migrate db:rollback db:migrate:up db:migrate:down db:migrate:redo db:seed].freeze
freeze
end

Expand Down
2 changes: 1 addition & 1 deletion lib/apartment/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module Apartment
VERSION = '2.7.0'
VERSION = '2.7.1'
end
4 changes: 3 additions & 1 deletion lib/tasks/apartment.rake
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ require 'parallel'
apartment_namespace = namespace :apartment do
desc 'Create all tenants'
task :create do
Apartment::TaskHelper.warn_if_tenants_empty

Apartment::TaskHelper.tenants.each do |tenant|
begin
puts("Creating #{tenant} tenant")
Expand Down Expand Up @@ -43,7 +45,7 @@ apartment_namespace = namespace :apartment do
end

desc 'Seed all tenants'
task :seed do
task seed: :create do
Apartment::TaskHelper.warn_if_tenants_empty

Apartment::TaskHelper.each_tenant do |tenant|
Expand Down
3 changes: 1 addition & 2 deletions apartment.gemspec → ros-apartment.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ Gem::Specification.new do |s|
s.homepage = 'https://github.com/rails-on-services/apartment'
s.licenses = ['MIT']

# must be >= 3.1.2 due to bug in prepared_statements
s.add_dependency 'activerecord', '>= 5.0.0', '< 6.1'
s.add_dependency 'parallel', '< 2.0'
s.add_dependency 'public_suffix', '>= 2.0.5', '< 5.0'
Expand All @@ -36,7 +35,7 @@ Gem::Specification.new do |s|
s.add_development_dependency 'appraisal', '~> 2.2'
s.add_development_dependency 'bundler', '>= 1.3', '< 3.0'
s.add_development_dependency 'capybara', '~> 2.0'
s.add_development_dependency 'rake', '~> 0.9'
s.add_development_dependency 'rake', '~> 13.0'
s.add_development_dependency 'rspec', '~> 3.4'
s.add_development_dependency 'rspec-rails', '~> 3.4'

Expand Down