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

Crashdown rails 5.2 #8

Open
wants to merge 141 commits into
base: crashdown-rails-5
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
141 commits
Select commit Hold shift + click to select a range
d588643
Update README.md to include the GRANT usage command to db_enhancements
ethier Apr 10, 2016
721093b
Skip initialization of Apartment during assets:clean
frank-west-iii Aug 4, 2016
70fa0c1
Merge pull request #348 from frank-west-iii/issue-346-assets-clean-in…
bradrobertson Aug 4, 2016
b2b68b3
[DOCS] middleware considerations and general cleanup
typeoneerror Aug 8, 2016
5ee0b42
Merge pull request #352 from typeoneerror/middleware-docs
bradrobertson Aug 8, 2016
efd28e3
Fix for AbstractAdapter's DB name escaping in drop_command
Aug 9, 2016
80de24f
Merge pull request #353 from mikecmpbll/db_name_escaping
bradrobertson Aug 9, 2016
b142428
Don't retain connection used during gem initialisation
Nov 14, 2016
aeab03c
Accept DB config
kakipo Dec 10, 2016
df0ed3f
Merge pull request #376 from mikecmpbll/dont-retain-connection-during…
bradrobertson Feb 28, 2017
924a534
Merge pull request #381 from kakipo/accept-db-options
mikecmpbll Mar 1, 2017
bae62c5
Use public_suffix for smarter subdomain parsing (#309)
humancopy Mar 2, 2017
18fab38
Removing deprecated methods.
Mar 12, 2017
dbb78b8
Merge pull request #415 from caironoleto/remove-deprecated-methods
mikecmpbll Mar 13, 2017
86d52cd
Add Rails ~5.0.0 to travis and remove ~3.2.0
Mar 13, 2017
08b804e
Merge pull request #416 from mikecmpbll/rails-5-travis
mikecmpbll Mar 13, 2017
17ef2fa
Fix error when passing strings to the middleware stack
tzabaman Apr 10, 2017
33bf153
Merge pull request #422 from tzabaman/fix_rails_5_1_middleware_error
mikecmpbll Apr 20, 2017
43e0510
Keep query cache config after switching databases
fernandomm Jun 27, 2017
2627097
Merge pull request #445 from fernandomm/keep-query-cache
mikecmpbll Jun 27, 2017
3b63405
Cache bundled gems in Travis CI
meganemura Jun 18, 2017
fa3ebf8
Specify the Rails release to inheriting AR::Migration class
meganemura Jun 15, 2017
50d0f6a
Add docker-compose.yml for development easily
meganemura Jun 16, 2017
ecd5f26
Specify username in spec/dummy/config/database.yml.sample
meganemura Jun 17, 2017
57fb6b8
Respect spec/config/database.yml configurations
meganemura Jun 16, 2017
d15ba64
PostgreSQL < 9.3 does not respect a new search_path for prepared stat…
meganemura Jul 3, 2017
7fa0400
Fix a spec about Apartment::Tenant using postgresql
meganemura Jul 3, 2017
b70f2b7
Fix rarely failing specs caused by retaining per model connection
meganemura Jul 3, 2017
705bdfc
Specify nokogiri version only if ruby < 2.1 for bundling
meganemura Jul 3, 2017
d19eb1c
Remove a bitdeli badge
meganemura Jul 4, 2017
d288a40
Merge pull request #451 from meganemura/remove-broken-badge
mikecmpbll Jul 4, 2017
ea7fb05
Use JRuby (>= 9.1.9.0) to run Rails (>= 4.1)
meganemura Jul 4, 2017
1633f60
Use svg badges
meganemura Jul 4, 2017
f6eb389
Merge pull request #452 from meganemura/use-svg-badges
mikecmpbll Jul 5, 2017
c7db2e3
Merge pull request #449 from meganemura/clear-cache-for-older-postgresql
mikecmpbll Jul 5, 2017
c9664e2
Fix typo (respresented -> represented)
meganemura Jul 2, 2017
d08b794
Merge pull request #454 from meganemura/fix-typo
mikecmpbll Jul 6, 2017
e344f95
Support Rails 5.1 (#453)
meganemura Jul 6, 2017
eafb3ef
Test against Ruby head and Rails master (#457)
meganemura Jul 19, 2017
163961b
Fix create for libpq 9.6 and older db (#418)
omergertel Jul 19, 2017
0c80084
Provide a specific error to `raise_error` matcher
meganemura Jul 6, 2017
0b5a9ff
Replace deprecated constants
meganemura Jul 20, 2017
31285d4
Repalce should matchers with expect matchers
meganemura Jul 20, 2017
33cc016
Use RUBY_GC_HEAP_FREE_SLOTS instead of obsolete RUBY_FREE_MIN
meganemura Jul 20, 2017
4a1d507
Merge pull request #458 from meganemura/up-to-date
mikecmpbll Jul 20, 2017
ccf99ce
Kernel#quietly was deprecated in Rails 4.2
brownbeagle Feb 21, 2017
8102fb3
Removed task dependency
meganemura Jul 19, 2017
b271412
Add a gem version badge to README.md
meganemura Jul 20, 2017
a2feed6
Remove a trailing space
meganemura Jul 20, 2017
b127329
Merge pull request #459 from meganemura/fix-apartment-create-task
mikecmpbll Jul 20, 2017
8ddb799
Merge pull request #460 from meganemura/gem-badge
mikecmpbll Jul 20, 2017
8cd4d60
Generated initializers/apartment.rb is misguided
meganemura Jul 21, 2017
e517fe7
Raise FileNotFound when apartment cannot find the file to be loaded
meganemura Jul 20, 2017
bfd8e06
Merge pull request #461 from meganemura/raise-file-not-found
mikecmpbll Jul 21, 2017
e7edf71
Merge pull request #462 from meganemura/documentation
mikecmpbll Jul 21, 2017
e70887a
Release 2.0.0
Jul 26, 2017
6f074ab
enhance db:drop task
kuzukuzu Sep 20, 2017
39fd791
Add Host Elevator and refine Elevators documentation
shrmnk Sep 24, 2017
1690953
Ignore `row_security` statements (#479)
meganemura Oct 2, 2017
7492576
Add ignore_private option to parse_host
michiomochi Sep 27, 2017
ccc8739
Relax version of public_suffix gem
michiomochi Sep 9, 2017
3e17a10
Merge pull request #472 from michiomochi/update-public-suffix
mikecmpbll Oct 5, 2017
3a2e8cd
Fixed a typo
Deep2Origins Oct 26, 2017
bc9d202
Merge pull request #483 from CrystalBlue998/patch-1
mikecmpbll Oct 27, 2017
6f6c57a
Merge pull request #477 from shrmnk/development
mikecmpbll Oct 27, 2017
0524def
Merge pull request #478 from michiomochi/add-ignore-private
mikecmpbll Oct 27, 2017
7ad53e9
Merge pull request #475 from kuzukuzu/enhance_db_drop_task
mikecmpbll Oct 28, 2017
91e5d72
Fix Apartment::Elevators::Host specs
meganemura Oct 28, 2017
c6cc883
Strict a version of public_suffix gem for Ruby < 2.1.0
meganemura Oct 29, 2017
6ddbffc
Merge pull request #484 from meganemura/fix-host-spec
mikecmpbll Oct 29, 2017
7061ccb
Document `switch` in README
Nov 3, 2017
3b8c871
Merge pull request #486 from mikecmpbll/switch-docs
mikecmpbll Nov 3, 2017
e5ad63b
Document apartment-activejob
Nov 3, 2017
30ed131
Merge pull request #487 from mikecmpbll/apartment-activejob
mikecmpbll Nov 3, 2017
3964167
Merge pull request #305 from ethier/development
mikecmpbll Nov 6, 2017
576837b
Exclude jruby + Rails 4.0 builds from Travis-CI bulid matrix
meganemura Dec 9, 2017
3c94975
Drop support for Ruby 2.0
meganemura Dec 9, 2017
8480a64
Remove rvm related files
meganemura Dec 9, 2017
7d6c169
Add an issue template for GitHub
meganemura Dec 9, 2017
635cd66
Merge pull request #494 from meganemura/exlucde-jrubies
mikecmpbll Dec 11, 2017
9ee9f9e
Merge pull request #495 from meganemura/github-template
mikecmpbll Dec 11, 2017
0579539
Merge pull request #496 from meganemura/drop-ruby-2-0
mikecmpbll Dec 11, 2017
9cce6fe
Merge pull request #497 from meganemura/remove-rvm-files
mikecmpbll Dec 11, 2017
81aaa45
Run migrations in parallel
Aug 29, 2013
edf567b
Remove ruby-2.0.0 from travis config
Dec 11, 2017
d492ab8
Merge pull request #493 from mikecmpbll/feature/parallel_migrations
mikecmpbll Dec 11, 2017
dfa9be4
Merge pull request #499 from mikecmpbll/remove-ruby-2-from-travis
mikecmpbll Dec 11, 2017
bb1f94c
Fix an example of middleware
meganemura Dec 11, 2017
f311892
Merge pull request #500 from meganemura/update-readme
mikecmpbll Dec 12, 2017
80a21f2
Release 2.1.0
Dec 15, 2017
0fe7a11
Fix HISTORY.md
Dec 15, 2017
da4be39
update travis
ahorek Dec 18, 2017
16f077d
add ruby 2.5.0
ahorek Dec 27, 2017
8428bca
Merge pull request #504 from ahorek/adapters
mikecmpbll Jan 2, 2018
f2f90dc
Fixed typo in owl word from Readme file
menorval Jan 14, 2018
a637ee6
Fix exception when main database don't exist
mayeco Jan 30, 2018
e8b6fbc
Merge pull request #514 from menorval/patch-2
mikecmpbll Jan 30, 2018
06d80f0
Support ActiveRecord-5.2 migration context
IngusSkaistkalns Feb 14, 2018
581ad0c
Specify pg version
meganemura Feb 26, 2018
575432e
Merge pull request #526 from meganemura/pg-version
meganemura Feb 26, 2018
a092cd5
Remove Rails 4.0, 4.1 from Appraisals
meganemura Feb 26, 2018
da1bc36
.gitignore: Ignore gemfiles/vendor
meganemura Feb 26, 2018
804ab53
Update Appraisals
meganemura Feb 26, 2018
777c366
$ appraisal install
meganemura Feb 26, 2018
e692b04
Merge pull request #527 from meganemura/use-appraisal
meganemura Feb 26, 2018
1dea990
Merge pull request #523 from IngusSkaistkalns/fix-activerecord_5_2_mi…
meganemura Feb 26, 2018
e4ad593
Appraisals: Add rails-5-2
meganemura Feb 26, 2018
f1558a9
$ appraisal install
meganemura Feb 26, 2018
c4c6198
Test against Rails 5.2
meganemura Feb 26, 2018
1c18584
Skip tests for compatibility
meganemura Feb 26, 2018
eb200cc
Remove redundant parens
meganemura Feb 26, 2018
ed7cd94
Fix typo
meganemura Feb 26, 2018
50d86ce
Merge pull request #528 from meganemura/rails-5-2
meganemura Feb 26, 2018
e8f2cee
Substitute tenant name in pg dump
shterrett Mar 19, 2018
478d779
Add note to initializer template
shterrett Mar 27, 2018
944d00e
Pin mysql2 version in gemfiles
meganemura Mar 27, 2018
ad67fba
Merge pull request #539 from meganemura/mysql2
meganemura Mar 27, 2018
fc1765f
gemfiles/* should be generated by `appraisal install`
meganemura Mar 27, 2018
964fc0c
$ appraisal install
meganemura Mar 27, 2018
7bf9269
Merge pull request #540 from meganemura/appraisal
meganemura Mar 27, 2018
e0f5fd7
Preserve search path during pg tenant creation
shterrett Mar 27, 2018
5a49053
Bump postgres version in Jenkins
shterrett Mar 27, 2018
528df25
Properly namespace ar_internal_metadata dump
shterrett Mar 27, 2018
935a581
Merge pull request #537 from shterrett/postgres-security-patch
meganemura Apr 13, 2018
803d510
Drop support for JRuby + Rails 5.0
meganemura Apr 13, 2018
deddf3b
Merge pull request #545 from meganemura/drop-jruby-rails-5-0
meganemura Apr 13, 2018
010cd78
Appraisals: Use rails 5.2.0
meganemura Apr 13, 2018
b4c1aea
$ appraisal install
meganemura Apr 13, 2018
9c1d52c
Merge pull request #544 from meganemura/rails-5-2
meganemura Apr 13, 2018
1064b43
Merge pull request #519 from mayeco/patch-1
meganemura Apr 13, 2018
7e08174
Use guard clause
meganemura Apr 13, 2018
5211eb4
Swallow the AR::NoDatabaseError
meganemura Apr 13, 2018
1766b65
Merge pull request #546 from meganemura/suppress-message
meganemura Apr 13, 2018
6e52aa3
Appraisals: rails ~> 5.1.0
meganemura Apr 13, 2018
12058a1
Remove pinning for mysql2
meganemura Apr 13, 2018
750379f
$ appraisal install
meganemura Apr 13, 2018
68825d4
Prepare release for v2.2.0
meganemura Feb 26, 2018
18a0762
Merge pull request #547 from meganemura/pluck-pins
meganemura Apr 13, 2018
06bc8c3
Merge pull request #529 from meganemura/v2.1.1
meganemura Apr 13, 2018
78273c5
Update .ruby-version to 2.5.3
brentdodell Feb 14, 2019
2cfd37e
Merge tag 'v2.2.0' into crashdown-rails-5.2
brentdodell Feb 14, 2019
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
21 changes: 21 additions & 0 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
## Steps to reproduce

## Expected behavior

## Actual behavior

## System configuration

<!-- Please let us know as far as you can. -->

* Database: (Tell us what database and its version you use.)

* Apartment version:

* Apartment config (in `config/initializers/apartment.rb` or so):

* `use_schemas`: (`true` or `false`)

* Rails (or ActiveRecord) version:

* Ruby version:
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
.bundle
*.lock
gemfiles/*.lock
gemfiles/vendor
pkg/*
*.log
.idea
Expand Down
1 change: 0 additions & 1 deletion .ruby-gemset

This file was deleted.

2 changes: 1 addition & 1 deletion .ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
ruby-2.3
2.5.3
41 changes: 31 additions & 10 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,44 @@
language: ruby
rvm:
- 2.0.0
- 2.1.9
- 2.2.4
- 2.3.1
- jruby-9.0.5.0
- 2.2.9
- 2.3.6
- 2.4.3
- 2.5.0
- ruby-head
- jruby-9.1.15.0
gemfile:
- gemfiles/rails_3_2.gemfile
- gemfiles/rails_4_0.gemfile
- gemfiles/rails_4_1.gemfile
- gemfiles/rails_4_2.gemfile
- gemfiles/rails_5_0.gemfile
- gemfiles/rails_5_1.gemfile
- gemfiles/rails_5_2.gemfile
- gemfiles/rails_master.gemfile
bundler_args: --without local
before_install:
- gem install bundler -v '> 1.5.0'
env:
RUBY_GC_MALLOC_LIMIT: 90000000
RUBY_FREE_MIN: 200000
RUBY_GC_HEAP_FREE_SLOTS: 200000
matrix:
allow_failures:
- rvm: ruby-head
- gemfile: gemfiles/rails_master.gemfile
- rvm: jruby-9.1.15.0
gemfile: gemfiles/rails_5_0.gemfile
exclude:
- rvm: 2.2.0
gemfile: gemfiles/rails_3_2.gemfile
- rvm: 2.1.9
gemfile: gemfiles/rails_5_0.gemfile
- rvm: 2.1.9
gemfile: gemfiles/rails_5_1.gemfile
- rvm: 2.1.9
gemfile: gemfiles/rails_5_2.gemfile
- rvm: 2.1.9
gemfile: gemfiles/rails_master.gemfile
- rvm: jruby-9.1.15.0
gemfile: gemfiles/rails_5_1.gemfile
- rvm: jruby-9.1.15.0
gemfile: gemfiles/rails_5_2.gemfile
- rvm: jruby-9.1.15.0
gemfile: gemfiles/rails_master.gemfile
fast_finish: true
cache: bundler
56 changes: 45 additions & 11 deletions Appraisals
Original file line number Diff line number Diff line change
@@ -1,20 +1,54 @@
appraise "rails-3-2" do
gem "rails", "~> 3.2"
gem "test-unit", "~> 3.0"
appraise "rails-4-2" do
gem "rails", "~> 4.2.0"
platforms :ruby do
gem "pg", "< 1.0.0"
gem "mysql2", "~> 0.4.0"
end
platforms :jruby do
gem 'activerecord-jdbc-adapter', '~> 1.3'
gem 'activerecord-jdbcpostgresql-adapter', '~> 1.3'
gem 'activerecord-jdbcmysql-adapter', '~> 1.3'
end
end

appraise "rails-4-0" do
gem "rails", "~> 4.0"
appraise "rails-5-0" do
gem "rails", "~> 5.0.0"
platforms :ruby do
gem "pg", "< 1.0.0"
end
platforms :jruby do
gem 'activerecord-jdbc-adapter', '~> 50.0'
gem 'activerecord-jdbcpostgresql-adapter', '~> 50.0'
gem 'activerecord-jdbcmysql-adapter', '~> 50.0'
end
end

appraise "rails-4-1" do
gem "rails", "~> 4.1"
appraise "rails-5-1" do
gem "rails", "~> 5.1.0"
platforms :ruby do
gem "pg", "< 1.0.0"
end
platforms :jruby do
gem 'activerecord-jdbc-adapter', '~> 51.0'
gem 'activerecord-jdbcpostgresql-adapter', '~> 51.0'
gem 'activerecord-jdbcmysql-adapter', '~> 51.0'
end
end

appraise "rails-4-2" do
gem "rails", "~> 4.2"
appraise "rails-5-2" do
gem "rails", "~> 5.2.0"
platforms :jruby do
gem 'activerecord-jdbc-adapter', '~> 51.0'
gem 'activerecord-jdbcpostgresql-adapter', '~> 51.0'
gem 'activerecord-jdbcmysql-adapter', '~> 51.0'
end
end

appraise "rails-5-0" do
gem "rails", "~> 5.0"
appraise "rails-master" do
gem "rails", git: 'https://github.com/rails/rails.git'
platforms :jruby do
gem 'activerecord-jdbc-adapter', '~> 51.0'
gem 'activerecord-jdbcpostgresql-adapter', '~> 51.0'
gem 'activerecord-jdbcmysql-adapter', '~> 51.0'
end
end
50 changes: 50 additions & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,53 @@
# 2.2.0
* April 14, 2018

## Added
- #523: Add Rails 5.2 support [IngusSkaistkalns]
- #504: Test against Ruby 2.5.0 [ahorek]
- #528: Test against Rails 5.2 [meganemura]

## Removed
- #504: Remove Rails 4.0/4.1 support [ahorek]
- #545: Stop supporting for JRuby + Rails 5.0 [meganemura]

## Fixed
- #537: Fix PostgresqlSchemaFromSqlAdapter for newer PostgreSQL [shterrett]
- #532: Issue is reported by [aldrinmartoq]
- #519: Fix exception when main database doesn't exist [mayeco]

## Changed
- #514: Fix typo [menorval]

# 2.1.0
* December 15, 2017

- Add `parallel_migration_threads` configuration option for running migrations
in parallel [ryanbrunner]
- Drop Ruby 2.0.0 support [meganemura]
- ignore_private when parsing subdomains with PublicSuffix [michiomochi]
- Ignore row_security statements in psql dumps for backward compatibility
[meganemura]
- "Host" elevator [shrmnk]
- Enhance db:drop task to act on all tenants [kuzukuzu]

# 2.0.0
* July 26, 2017

- Raise FileNotFound rather than abort when loading files [meganemura]
- Add 5.1 support with fixes for deprecations [meganemura]
- Fix tests for 5.x and a host of dev-friendly improvements [meganemura]
- Keep query cache config after switching databases [fernandomm]
- Pass constants not strings to middleware stack (Rails 5) [tzabaman]
- Remove deprecations from 1.0.0 [caironoleto]
- Replace `tld_length` configuration option with PublicSuffix gem for the
subdomain elevator [humancopy]
- Pass full config to create_database to allow :encoding/:collation/etc
[kakipo]
- Don't retain a connection during initialization [mikecmpbll]
- Fix database name escaping in drop_command [mikecmpbll]
- Skip initialization for assets:clean and assets:precompile tasks
[frank-west-iii]

# 1.2.0
* July 28, 2016

Expand Down
Loading