Skip to content

Commit

Permalink
Merge pull request #84 from rails-on-services/development
Browse files Browse the repository at this point in the history
Prepare Release 2.7.1

# Enhancements

- N/a

# Bugfixes

- [Resolves #82] Enhanced db:create breaks plugin compatibility - #83

# Chores

- Update rake version in development
- Renamed gemspec to match gem name
  • Loading branch information
rpbaltazar authored Jun 27, 2020
2 parents c51f826 + 6f7ecf2 commit 581a0ae
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 5 deletions.
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

0 comments on commit 581a0ae

Please sign in to comment.