Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
418 commits
Select commit Hold shift + click to select a range
f4c868f
Remove AbstractController::Translation.raise_on_missing_translations …
akhilgkrishnan Sep 10, 2023
a564e75
Remove Enumerable#sum from guide
akhilgkrishnan Sep 10, 2023
b1ac22f
Merge pull request #49214 from akhilgkrishnan/enumerables-sum-doc
p8 Sep 10, 2023
4e76a97
Update description for `require_master_key` setting
andyw8 Sep 10, 2023
843283b
Add negative `where` examples for `normalizes`
jonathanhefner Sep 10, 2023
38e388b
Tweak summary of `normalizes` in CHANGELOG [ci-skip]
jonathanhefner Sep 10, 2023
659d378
Tweak summary of `generates_token_for` in CHANGELOG [ci-skip]
jonathanhefner Sep 10, 2023
0a45333
Fix ActiveRecord::TokenFor documentation [ci-skip]
jonathanhefner Sep 10, 2023
43a9e05
Describe AS::MessagePack in 7.1 release notes [ci-skip]
jonathanhefner Sep 10, 2023
2f26d01
Merge pull request #49216 from jonathanhefner/message_pack-release-notes
jonathanhefner Sep 10, 2023
bb4dbd1
Merge pull request #49213 from akhilgkrishnan/action-config-removal-r…
kamipo Sep 11, 2023
5f69951
Suggest using composite primary key on join tables in `:through` asso…
nvasilevski Sep 8, 2023
0bddf35
Merge pull request #49218 from Shopify/suggest-cpk-for-join-tables
eileencodes Sep 11, 2023
6100664
Rails supports but does not recommend non-PK `id` column
nvasilevski Sep 11, 2023
4cfb6d0
[ci skip] Fix typo in association guides
adrianna-chang-shopify Sep 11, 2023
afc031f
Merge pull request #49220 from adrianna-chang-shopify/ac-fix-typos-as…
adrianna-chang-shopify Sep 11, 2023
450f64d
Merge pull request #49219 from Shopify/AR-supports-non-PK-column-name…
eileencodes Sep 11, 2023
1b97206
Revert "Remove AbstractController::Translation.raise_on_missing_trans…
rafaelfranca Sep 11, 2023
7fd0aab
Fixup links, code tags in Rails::Paths::Root
skipkayhil Sep 11, 2023
c9f4b1e
Merge pull request #49230 from skipkayhil/hm-doc-rails-paths-root
skipkayhil Sep 11, 2023
9a98235
Make bin/setup work with bun
duduribeiro Sep 11, 2023
ce49fa9
Instrument Active Record transactions
composerinteralia Sep 6, 2023
15c639f
Active Job, not ActiveJob
rafaelfranca Sep 12, 2023
514021f
Merge pull request #49192 from ipc103/transaction-instrumentation
rafaelfranca Sep 12, 2023
d469436
Merge pull request #49229 from duduribeiro/make-bin-setup-work-with-bun
rafaelfranca Sep 12, 2023
b67bdfb
Merge pull request #49215 from andyw8/andyw8/update-require_master_ke…
rafaelfranca Sep 12, 2023
439c93e
Encryption: support `support_unencrypted_data` being set at a per-att…
ghiculescu Aug 29, 2023
b37748f
Add regression test for #45722
ghiculescu Sep 12, 2023
b5d63b9
Merge pull request #49234 from ghiculescu/regression-test-for-45722
byroot Sep 12, 2023
a8ea8bb
Fix inferred query constraints
eileencodes Sep 12, 2023
213e8ff
Merge pull request #49242 from eileencodes/fix-inferred-query-constra…
eileencodes Sep 12, 2023
6416965
dep: bump sqlite3 dependency
flavorjones Sep 12, 2023
15bbd9b
Merge pull request #49243 from flavorjones/flavorjones-bump-sqlite-ve…
eileencodes Sep 12, 2023
274bc97
Add Bun support (#49241)
terracatta Sep 12, 2023
9eb16e7
Revert "Merge pull request #49242 from eileencodes/fix-inferred-query…
rafaelfranca Sep 12, 2023
aa268ba
Merge pull request #49072 from ghiculescu/extend-queries-per-attribute
rafaelfranca Sep 13, 2023
699dfdb
Preparing for 7.1.0.beta1 release
rafaelfranca Sep 13, 2023
51ac8b9
Enable Minitest/LiteralAsActualArgument
shouichi Sep 13, 2023
11aa3fd
Merge pull request #49236 from shouichi/enable-literal-as-actual-argu…
jonathanhefner Sep 13, 2023
5c2a112
Import rails-bin to internal tools/
zzak May 13, 2023
2961560
Support CHANGELOG with release headers in the linter
rafaelfranca Sep 13, 2023
32b8e66
Autocorrect violations
rafaelfranca Sep 13, 2023
9150a98
Merge pull request #48216 from zzak/import-rails-bin-linter
rafaelfranca Sep 13, 2023
f47d082
Remove a redundant blank line from Gemfile of new app
koic Sep 13, 2023
bd4996b
Merge pull request #49247 from koic/remove_redundant_blank_line_from_…
kamipo Sep 13, 2023
a9148b4
Add "Testing View Partials" section to the Testing Guides
seanpdoyle Sep 7, 2023
a92bc71
Update guides/source/testing.md
seanpdoyle Sep 13, 2023
86a5f33
Don't pass active_record to `derive_fk_query_constraints`
eileencodes Sep 13, 2023
edd43af
Merge pull request #49255 from eileencodes/minor-refactoring-on-deriv…
eileencodes Sep 13, 2023
e4206c6
Add changelog entry for profiling slow tests
fatkodima Sep 13, 2023
bb2fedb
Merge pull request #49257 from fatkodima/changelog-entry-49082
eileencodes Sep 13, 2023
39f3f96
Remove unused delete_all from test
p8 Sep 13, 2023
cf8ab2f
Add outcome to transaction tracking payload
composerinteralia Sep 12, 2023
dcfddc1
Explicit `primary_key:` option should always take priority in associa…
nvasilevski Sep 13, 2023
13b3e7d
Merge pull request #49193 from seanpdoyle/action-view-test-case-docum…
rafaelfranca Sep 13, 2023
2552482
Add Composite Primary Keys guide to guides index
ghiculescu Sep 14, 2023
bd3a0d4
Merge pull request #49258 from p8/activerecord/enum-test-remove-unuse…
kamipo Sep 14, 2023
7ff9365
Add tests for AJ events
shouichi Sep 12, 2023
7b67084
Merge pull request #49237 from shouichi/active-job-instrumentation-tests
kamipo Sep 14, 2023
d777f73
Regex escape table and column names
aidanharan Sep 14, 2023
99b1316
Raise error when generating attribute with dangerous name
p8 Mar 23, 2023
6d4abdc
Merge pull request #47752 from p8/activerecord/keyword-attributes
kamipo Sep 14, 2023
da2af18
Merge pull request #49269 from aidanharan/batches-test-regex-escape
kamipo Sep 14, 2023
ff30934
Merge pull request #49268 from ghiculescu/cpk-guide
eileencodes Sep 14, 2023
910eb47
Merge pull request #49264 from Shopify/explicitly-configured-primary-…
eileencodes Sep 14, 2023
96ff476
Add missing dollar sign to bash scripts
akhilgkrishnan Sep 14, 2023
6ba2bf4
Merge pull request #49275 from akhilgkrishnan/add-missing-dollar
skipkayhil Sep 14, 2023
524f485
Added new railties notable changes in 7.1 release note
akhilgkrishnan Sep 14, 2023
0d3a4ca
Add missing dollar sign for bash script [skip ci]
akhilgkrishnan Sep 14, 2023
ff6bf8d
Merge pull request #49277 from akhilgkrishnan/add-missing-dollar-s-gn
eileencodes Sep 14, 2023
ccde530
Shorten some of the guide names in the Guides index
ghiculescu Sep 14, 2023
7578618
Ignore env files (except templates) (#49278)
dhh Sep 14, 2023
4d4f105
Merge pull request #49279 from ghiculescu/documents-formattin
rafaelfranca Sep 14, 2023
9e34e3b
Merge pull request #49262 from ipc103/transaction-instrumentation-pay…
rafaelfranca Sep 14, 2023
83f36d5
Remove duplication from #49278
Sep 14, 2023
1111ec0
Clean up old composite key code
gmcgibbon Sep 13, 2023
ed9248d
Merge pull request #49265 from gmcgibbon/cpk_tuple_or_querying
gmcgibbon Sep 15, 2023
5d31d33
Make GeneratedAttribute work without ActiveRecord
p8 Sep 15, 2023
c15996c
Make ErrorReporterAssertions methods public
byroot Sep 15, 2023
9e4d9c4
Merge pull request #49281 from Shopify/fix-error-reporter-assertions
byroot Sep 15, 2023
29cb2ba
Merge pull request #48780 from rails/ar-deadlocked
fxn Sep 15, 2023
9c974ca
Merge pull request #49280 from p8/railties/ar-dependency
kamipo Sep 15, 2023
726c2e4
FIX shard_names returns duplicate shard names
nikhilbhatt Sep 15, 2023
7c9eac6
Merge pull request #49284 from nikhilbhatt/fix_shard_names_returns_du…
eileencodes Sep 15, 2023
7c2e4fc
Remove misspell references
esasse Sep 15, 2023
32faee0
Action View: docs use `application/` instead of `shared/`
seanpdoyle Sep 15, 2023
93ea1d0
Merge pull request #49289 from esasse/remove-mispell-docs
rafaelfranca Sep 15, 2023
19930b4
Merge pull request #49276 from akhilgkrishnan/add-railties-notable
rafaelfranca Sep 15, 2023
3c8e3fe
Merge pull request #49288 from seanpdoyle/action-view-guides-shared-p…
rafaelfranca Sep 15, 2023
f423447
Edit anchors in Testing View Partials to match targets
hungmi Sep 15, 2023
a50be00
Update 7_1_release_notes.md (#49285)
Schwad Sep 15, 2023
d21d811
Merge pull request #49291 from hungmi/fix-typos-in-action-view-test-c…
skipkayhil Sep 15, 2023
1bdabc1
Clarify that the default retry strategy uses polynomial backoff and n…
victormours Sep 15, 2023
e890ae6
Loosen test condition `Arel::Nodes::Node` descendants
BuonOmo Sep 16, 2023
48879ee
eliminate extra blank lines in dockerfile template
rubys Sep 16, 2023
af1d77a
Merge pull request #49302 from rubys/eliminate-extra-blank-lines-dock…
jonathanhefner Sep 16, 2023
e21856f
Consistency/semantics: BUN_VERSION vs bun-v
rubys Sep 16, 2023
4960de3
Merge pull request #49305 from rubys/bun-v
jonathanhefner Sep 16, 2023
8bd463c
Merge pull request #49299 from BuonOmo/loosen-arel-test
byroot Sep 16, 2023
65f43d7
Merge pull request #49292 from victormours/clarify-backoff-strategy-f…
byroot Sep 16, 2023
1437ff7
Sorry I didn't catch these the first time, but two more...
rubys Sep 16, 2023
8e93958
Merge pull request #49307 from rubys/rm-more-blank-lines
jonathanhefner Sep 16, 2023
7a7d118
Document any callable can normalize AR attributes
fxn Sep 17, 2023
af20a14
Make example align with most common demo runs
Sep 17, 2023
a967d35
Merge pull request #49309 from rails/doc-normalizes
fxn Sep 17, 2023
8b77436
Add documentation for `locals:` and `local_assigns` [ci skip]
seanpdoyle Sep 15, 2023
f8e1e20
Firebug was replaced by Firefox/Chrome DevTools
tnir Sep 18, 2023
defe6ae
Merge pull request #49294 from seanpdoyle/action-view-local-assigns-d…
p8 Sep 18, 2023
ebcd723
Merge pull request #49313 from tnir/tn-replace-firebug-in-security-gu…
p8 Sep 18, 2023
233c550
Fix Active Support changelog
hachi8833 Sep 19, 2023
1d76d45
Use Ruby 3.3 `Range#overlap?` if available
yahonda Sep 19, 2023
603b784
Merge pull request #49316 from hachi8833/fix_activesupport_changelog
adrianna-chang-shopify Sep 19, 2023
ff8a051
`#unique_keys` returns the renamed column name
alpaca-tc Sep 13, 2023
fa81b79
Merge pull request #49251 from alpaca-tc/fix-unique-keys
yahonda Sep 19, 2023
19c996f
Add `*_deliver` callback examples [ci skip]
ansonhoyt Sep 19, 2023
b2e003c
Merge pull request #49320 from ansonhoyt/patch-1
adrianna-chang-shopify Sep 19, 2023
e1d160d
Remove blank line in Action Mailer Basics guide
adrianna-chang-shopify Sep 19, 2023
a907b36
Merge pull request #49321 from adrianna-chang-shopify/ac-remove-blank…
adrianna-chang-shopify Sep 19, 2023
42523a0
Merge pull request #49317 from yahonda/ruby33_range_overlap
guilleiguaran Sep 19, 2023
ac9f08d
This enhancement automatically updates the Dockerfile to the desired …
paulreece Sep 19, 2023
bc8da7a
Add CHANGELOG entry to add bigdecimal as Active Support dependency
yahonda Sep 19, 2023
5f6efda
dump PostgreSQL schemas as part of the schema dump
lsylvester Sep 6, 2023
b3df4f2
Merge pull request #49164 from lsylvester/dump-postgresql-schemas
yahonda Sep 20, 2023
3c7a8d7
Merge pull request #49311 from paulreece/change_db_dockerfile
guilleiguaran Sep 20, 2023
0723e6c
Merge pull request #49318 from yahonda/add_changelog_entry_for_bigdec…
guilleiguaran Sep 20, 2023
828eec6
Ensure the SQLite3 adapter handles default functions with the `||` co…
fractaledmind Sep 15, 2023
677fa58
Improve `strict_loading` documentation [ci-skip]
p8 Sep 20, 2023
39ccb97
Fix uninitialized constant error on Puma boot
mattbrictson Sep 20, 2023
6f27e92
Merge pull request #49329 from p8/guides/strict-loading-with-mode
p8 Sep 20, 2023
a024447
Merge pull request #49325 from mattbrictson/bugs/fix-missing-concurre…
guilleiguaran Sep 20, 2023
c8830a2
Merge pull request #49287 from fractaledmind/ar-sqlite3-concatentation
guilleiguaran Sep 20, 2023
9bbbf4b
The SQLite3 adapter now supports `supports_insert_returning?`
fractaledmind Sep 15, 2023
69b32bd
Fix MySQL expression index dumping with escaped quotes
fatkodima Sep 20, 2023
35b280f
Refactor Router#find_routes to be lazier
skipkayhil Sep 20, 2023
0f92f8b
Merge pull request #49290 from fractaledmind/ar-sqlite3-returning-col…
tenderlove Sep 20, 2023
4fb4af7
[Docs][Tests] Add tests for validates_exclusion_of to 7.1.0beta1 Acti…
hachi8833 Sep 19, 2023
b5dbcb1
Add links to Callbacks, note example definition
skipkayhil Sep 21, 2023
31482d2
Get rid of ActiveRecord::Core#===
byroot Sep 20, 2023
d56db8f
Merge pull request #49335 from Shopify/remove-ar-case-equal
byroot Sep 21, 2023
4381416
Skip unless adapter supports insert on duplicate update
aidanharan Sep 21, 2023
e985cb2
Regex escape the table columns in query
aidanharan Sep 21, 2023
585e0ca
Merge pull request #49345 from aidanharan/regex-escape-remove-adapter…
carlosantoniodasilva Sep 21, 2023
23f130c
Merge pull request #49342 from skipkayhil/hm-doc-callbacks
skipkayhil Sep 21, 2023
90d5a5c
[CI skip] Update rails new USAGE with specific version request
jean-francois-labbe Sep 20, 2023
c864a37
Merge pull request #49338 from jean-francois-labbe/document-rails-new…
carlosantoniodasilva Sep 21, 2023
8eed508
Reword stuff related to config.autoload_lib
fxn Sep 21, 2023
26d24d6
Let these example match the ones in config/application.rb
fxn Sep 21, 2023
d39ea2b
Merge pull request #49344 from aidanharan/skip-tests-unless-supports-…
kamipo Sep 22, 2023
236a144
Allow SQLite3 `busy_handler` to be configured with simple max number …
fractaledmind Sep 22, 2023
e6f0915
Merge pull request #49340 from skipkayhil/hm-lazy-find-routes
kamipo Sep 22, 2023
64184c6
Fix Range#overlap? ignoring empty ranges
skipkayhil Sep 22, 2023
16f592f
Fix typo in activerecord/CHANGELOG.md
hachi8833 Sep 23, 2023
a5f4aad
Merge pull request #49358 from hachi8833/fix_typo_ar_changelog
kamipo Sep 23, 2023
102eb1f
ActiveRecord notable changes added to 7.1 release note
Sep 23, 2023
80a6c2f
Merge pull request #49357 from akhilgkrishnan/active-record-notable-c…
skipkayhil Sep 23, 2023
a7fa54d
Minor reword in the upgrading guide re add_autoload_paths_to_load_path
fxn Sep 23, 2023
72bd066
Add a section about config.autoload_lib(_once) to the upgrading guide
fxn Sep 23, 2023
ef6c3fb
Merge pull request #49359 from rails/upgrade-guide-autoload-lib
fxn Sep 23, 2023
4b8cdef
Merge pull request #49356 from skipkayhil/hm-fix-empty-range-overlap
guilleiguaran Sep 23, 2023
3b028fd
Fix: expores_in -> expires_at
hachi8833 Sep 24, 2023
46e3076
Merge pull request #49366 from hachi8833/fix_ar_changelog_364939c
vipulnsward Sep 24, 2023
d99e355
Simplify wording, avoids word wrap
fxn Sep 24, 2023
7c07787
Merge pull request #49352 from fractaledmind/ar-sqlite-retries
guilleiguaran Sep 24, 2023
c6d7ffc
Performance tune the SQLite3 adapter connection configuration
fractaledmind Sep 21, 2023
d8391b2
Merge pull request #49349 from fractaledmind/ar-sqlite-tune-connectio…
guilleiguaran Sep 24, 2023
9910e37
Upgrade guide: mention `test:prepare` enhnacements
ghiculescu Sep 25, 2023
72b3fe9
Update doc for `include_hidden` form form file_field.
bhanubhakta Sep 22, 2023
0f5e7a6
Update requires in LoggerThreadSafeLevel
skipkayhil Sep 25, 2023
162be9f
Merge pull request #49350 from bhanubhakta/bhanubhakta-include-hidden…
skipkayhil Sep 25, 2023
e35e780
Merge pull request #49372 from skipkayhil/hm-rm-safe-level-requires
kamipo Sep 25, 2023
44d0859
Minor edits in the upgrading guide
fxn Sep 25, 2023
22bacd7
Allow attaching File or Pathname to has_one_attached
dorianmariecom Sep 13, 2023
99e2999
Merge pull request #48462 from iamradioactive/remove_additional_query
byroot Sep 25, 2023
94c90ec
Merge pull request #45606 from dorianmariefr/build-blob-from-file-or-…
byroot Sep 25, 2023
adf1c21
Fix an incorrect `assert_equal` argument order
byroot Sep 25, 2023
14208d4
[skip ci] Missing language highligting added for bash code block
akhilgkrishnan Sep 25, 2023
d64e44b
Merge pull request #49379 from akhilgkrishnan/code-highlight-fix
vipulnsward Sep 25, 2023
f57d54c
Merge pull request #49336 from fatkodima/fix-mysql-expression-index-d…
eileencodes Sep 25, 2023
94a7149
Actually upload the files when passed as File or Pathname
dorianmariecom Sep 25, 2023
2d196d4
Merge pull request #49381 from dorianmariefr/fix-upload-of-files
byroot Sep 25, 2023
71613d3
Merge pull request #45411 from jonathanhefner/add-deep_mergeable
rafaelfranca Sep 25, 2023
ad7a3e2
Merge pull request #49322 from hachi8833/add_tests_for_exclusion_vali…
rafaelfranca Sep 25, 2023
9a2cf33
Introduce `ActionMailer::FormBuilder`
ghiculescu Jun 21, 2023
1fbd812
Add a public API for broadcasting logs:
Edouard-chin Jun 30, 2023
4e605f5
Fix ruby warning
rafaelfranca Sep 25, 2023
88bb5f2
Define the method in the right place
rafaelfranca Sep 25, 2023
4c72cc2
Merge pull request #48615 from Edouard-chin/ec-logger
rafaelfranca Sep 25, 2023
38ce7fa
Merge pull request #48542 from ghiculescu/am-default-form-builder
rafaelfranca Sep 25, 2023
3721fdc
Remove erroneous committed file
rafaelfranca Sep 25, 2023
9274275
Don't leak database connection to other tests
rafaelfranca Sep 26, 2023
c32813d
Update description for filter_parameter_logging (#49347)
jess Sep 26, 2023
b2790b6
Rename back unique keys to unique constraints
kamipo Sep 26, 2023
708176e
Merge pull request #49383 from kamipo/rename_unique_constraint
kamipo Sep 26, 2023
4d42741
Fix typo "an unique" -> "a unique" [ci skip]
kamipo Sep 26, 2023
a564341
Revert "Document clean chain behavior for ActiveRecord scope"
zzak Sep 26, 2023
05ed261
Merge pull request #49386 from rails/revert-49096-document_class_meth…
eileencodes Sep 26, 2023
8c5584c
Add 7.1 release notes for SQLite3 adapter improvements
fractaledmind Sep 26, 2023
7809146
fix ActionText::Attachable#as_json to allow options
a5-stable Sep 14, 2023
5dfded9
Remove connection created in the test
rafaelfranca Sep 26, 2023
15ccf5b
Merge pull request #49387 from fractaledmind/ar-sqlite-7_1-release-notes
rafaelfranca Sep 26, 2023
cf44b9e
Merge pull request #49272 from a5-stable/attachable-as-json
rafaelfranca Sep 26, 2023
468d3d0
Fix duplicate escaping of quotes for check constraint expressions in …
Flixt Jun 8, 2021
dcc6ad5
Merge pull request #49370 from ghiculescu/upgrade-guide-rails-test
rafaelfranca Sep 26, 2023
dc56140
Merge pull request #42429 from Flixt/fix-mysql-check-constraints-quoting
rafaelfranca Sep 26, 2023
a09fcd5
Removes unneccessary stub
ipc103 Sep 26, 2023
2022ee1
[skip ci] ActiveRecord notable changes added to 7.1 release note
akhilgkrishnan Sep 26, 2023
a86d4d7
Add a CHANGELOG entry for #49383
kamipo Sep 26, 2023
68cd75b
Merge pull request #49392 from akhilgkrishnan/active-record-notable-c…
eileencodes Sep 26, 2023
1fe4538
Fix `rewhere`'s link for API doc in the guide
kamipo Sep 26, 2023
6ef9007
Merge pull request #49393 from kamipo/changelog_for_unique_constraint
kamipo Sep 26, 2023
5fcc610
Use monospace font for code snippets and options [ci-skip]
jonathanhefner Sep 26, 2023
1f9fbbe
Add `expires_at` option to `ActiveStorage::Blob#signed_id`
aki77 May 2, 2023
a8e7c2d
Merge pull request #49395 from ipc103/remove-dirty-current-transactio…
rafaelfranca Sep 26, 2023
2e93162
Merge pull request #48115 from aki77/add_expired_at
rafaelfranca Sep 26, 2023
1d999e6
Support `ActionController::Parameters#deep_merge`
seanpdoyle Jun 15, 2022
99cf11c
Merge pull request #45369 from seanpdoyle/action-controller-parameter…
rafaelfranca Sep 26, 2023
acfa045
Revert typography change in user facing errors
rafaelfranca Sep 26, 2023
60002c3
Fix some more quotes
rafaelfranca Sep 26, 2023
c919b47
Set, serialize, and deserialize Active Job `scheduled_at` as Time; de…
bensheldon Apr 22, 2023
bdbc182
Merge pull request #48066 from bensheldon/aj_scheduled_at
rafaelfranca Sep 27, 2023
b729d7e
fix typo in new_framework_defaults_7_1.rb.tt
Sep 27, 2023
d87ecd0
Merge pull request #49396 from jonfoster9999/fix-typo-in-new_framewor…
rafaelfranca Sep 27, 2023
7badc42
Introduce `ActionView::TestCase.register_parser`
seanpdoyle Sep 7, 2023
7893e0a
Merge pull request #49194 from seanpdoyle/action-view-test-case-encoder
rafaelfranca Sep 27, 2023
647e39b
Log delivery errors in ActionMailer::LogSubscriber
1st8 Aug 30, 2023
e7009b1
Remove unused mailer
rafaelfranca Sep 27, 2023
54f3048
Also rescue TZInfo::ZoneinfoDirectoryNotFound when loading time zone …
rafaelfranca Sep 27, 2023
d6d47fb
Merge pull request #49083 from 1st8/actionmailer-log-subscriber-log-e…
rafaelfranca Sep 27, 2023
c0d8528
[skip ci] Docs: Fix typo in author name Paul Coelho -> Paulo Coelho
hatsu38 Sep 27, 2023
e5386cb
Preparing for 7.1.0.rc1 release
rafaelfranca Sep 27, 2023
4bd5d20
Don't add CHANGELOG offenses to "no changes" line
rafaelfranca Sep 27, 2023
e57a936
Merge pull request #49397 from hatsu38/fix_typo-author_name-in_md
rafaelfranca Sep 27, 2023
fb6c600
Development of Rails 7.2 starts now
rafaelfranca Sep 27, 2023
7dd068c
Fix the problem of database connections leaking between tests
fractaledmind Sep 27, 2023
7ef86b6
Enable `Lint/RedundantSafeNavigation` rubocop cop
fatkodima Sep 27, 2023
01743dd
Merge pull request #49404 from fatkodima/enable-redundant_safe_naviga…
kamipo Sep 27, 2023
bb626ff
HTML tag validation added for tags
akhilgkrishnan Sep 6, 2023
92a8513
[ci skip] do not use backticks in docs
nvasilevski Sep 27, 2023
8d5d0a1
Merge pull request #49407 from Shopify/do-not-use-backticks-in-docs
eileencodes Sep 27, 2023
3e14e8d
Add `async_ids` to 7_1_release_notes [ci skip]
koic Sep 27, 2023
5d48062
Merge pull request #49403 from fractaledmind/fix-49373
rafaelfranca Sep 27, 2023
32eba97
Make sure scheduled_at is a Time object when asserting enqueued jobs
rafaelfranca Sep 27, 2023
d2a6fd9
Merge pull request #49410 from koic/add_async_ids_to_7_1_release_notes
rafaelfranca Sep 27, 2023
1f51409
Use `id` in favor of `send(primary_key)`
nvasilevski Sep 27, 2023
3c6e739
Merge pull request #49411 from Shopify/call-id-instead-of-sending-key…
rafaelfranca Sep 27, 2023
7c03e4f
Merge pull request #49175 from akhilgkrishnan/content_tag-html-tag-va…
rafaelfranca Sep 27, 2023
09d883d
Migrate to github actions
hahmed Aug 6, 2023
5d419c8
Attempt to run things in parallel
hahmed Aug 31, 2023
2ded6a1
re-add action cable test
hahmed Aug 31, 2023
961885f
activejob_integration
hahmed Sep 29, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
180 changes: 180 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,180 @@
name: CI

on:
push:
branches:
- ha/migrate-to-github-actions

env:
CI: true
BUILDKITE: true
RAILS_ENV: test
RACK_ENV: test
MYSQL_HOST: 127.0.0.1
MYSQL_PORT: 3306
REDIS_HOST: redis
REDIS_PORT: 6379
PGHOST: 127.0.0.1
PGUSER: postgres
PGPORT: 5432
BUNDLE_DEPLOYMENT: false
BEANSTALK_URL: "beanstalk://127.0.0.1:11300"
RABBITMQ_URL: "amqp://guest:guest@127.0.0.1:5672"
QC_DATABASE_URL: "postgres://postgres@127.0.0.1/active_jobs_qc_int_test"
# Sauce Labs username and access key. Obfuscated, purposefully not encrypted.
ENCODED: "U0FVQ0VfQUNDRVNTX0tFWT1hMDM1MzQzZi1lOTIyLTQwYjMtYWEzYy0wNmIzZWE2MzVjNDggU0FVQ0VfVVNFUk5BTUU9cnVieW9ucmFpbHM="

jobs:
test:
name: Ruby ${{ matrix.ruby }} - ${{ matrix.framework }}
runs-on: ubuntu-latest
services:
mysql:
image: mysql:latest
env:
MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
ports:
- 3306:3306
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
postgres:
image: postgres:alpine
env:
POSTGRES_HOST_AUTH_METHOD: trust
ports:
- 5432:5432
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 3
selenium:
image: selenium/standalone-chrome:latest
ports:
- 4444:4444
strategy:
fail-fast: false
matrix:
experimental: [false]
ruby: [3.2, 3.1, 3.0, 2.7]
framework: [actioncable, actionmailbox, actionmailer, actionpack, actiontext, actionview, activemodel, activerecord_sqlite3, activerecord_mysql2, activerecord_trilogy, activerecord_postgresql, activestorage, activesupport, railties, actioncable_integration, actionview_ujs, activejob_integration, actiontext_integration, guides]
include:
- ruby: head
experimental: true
outputs:
data: ${{ steps.create_steps.outputs.data }}

steps:
- uses: actions/checkout@v3

- name: Create steps
id: create_steps
run: |
declare -A data=(
["actioncable"]="test,default"
["actionmailbox "]="test,default"
["actionmailer"]="test,default"
["actionpack"]="test,default"
["actiontext"]="test,default"
["actionview"]="test,default"
["activejob"]="test,default"
["activemodel"]="test,default"
["activerecord_sqlite3"]="sqlite3:test,default"
["activerecord_mysql2"]="db:mysql:rebuild,mysql2:test,mysqldb"
["activerecord_trilogy"]="db:mysql:rebuild,trilogy:test,mysqldb"
["activerecord_postgresql"]="db:postgresql:rebuild,postgresql:test,postgresdb"
["activestorage"]="test,default"
["activesupport"]="test,default"
["railties"]="test,default"
["actioncable_integration"]="test:integration,default"
["actionview_ujs"]="test:ujs,default"
["activejob_integration"]="test:integration,default"
["actiontext_integration"]="test:system,default"
["guides"]="test,default"
)

echo "frameworks_data=${data[${{ matrix.framework }}]}" >> "$GITHUB_ENV"

- name: Install dependencies
run: |
codename="$(. /etc/os-release; x="${VERSION_CODENAME-${VERSION#*(}}"; echo "${x%%[ )]*}")"
if ! which gpg || ! which curl; then \
apt-get update \
&& apt-get install -y --no-install-recommends \
gnupg curl; \
fi
# Postgres apt sources
sudo curl -sS https://www.postgresql.org/media/keys/ACCC4CF8.asc | APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE=1 sudo apt-key add -
sudo add-apt-repository "deb http://apt.postgresql.org/pub/repos/apt/ ${codename}-pgdg main"
# Node apt sources
sudo curl -sS https://deb.nodesource.com/gpgkey/nodesource.gpg.key | APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE=1 sudo apt-key add -
sudo add-apt-repository "deb http://deb.nodesource.com/node_18.x ${codename} main"
# Yarn apt sources
sudo curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE=1 sudo apt-key add -
sudo add-apt-repository "deb http://dl.yarnpkg.com/debian/ stable main"
# Install dependencies
sudo apt-get install -y --no-install-recommends \
imagemagick \
postgresql-client \
libmysqlclient-dev \
default-mysql-client \
sqlite3 \
nodejs \
yarn \
ffmpeg \
mupdf \
mupdf-tools \
poppler-utils \
libvips-dev \
libwebp-dev \
beanstalkd

- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: false
rubygems: latest
bundler: latest

- name: Install bundler dependencies
run: bundle config unset deployment && bundle install --jobs 4 --retry 3
timeout-minutes: 3

- name: Set up Redis
uses: supercharge/redis-github-action@1.2.0

- name: Set up Memcached
uses: niden/actions-memcached@v7

- name: Start RabbitMQ container
if: ${{ matrix.framework == 'activejob_integration'}}
run: |
docker run -d --name rabbitmq -p 5672:5672 -p 15672:15672 -e RABBITMQ_DEFAULT_USER=guest -e RABBITMQ_DEFAULT_PASS=guest rabbitmq:alpine

- name: MYSQL - Grant all privileges to rails user
run: |
mysql -h 127.0.0.1 -P 3306 -u root -e "
create user 'rails'@'%';
grant all privileges on activerecord_unittest.* to rails@'%';
grant all privileges on activerecord_unittest2.* to rails@'%';
grant all privileges on inexistent_activerecord_unittest.* to rails@'%';
create database activerecord_unittest default character set utf8mb4;
create database activerecord_unittest2 default character set utf8mb4;
"

- name: npm install
timeout-minutes: 3
run: npm install

- name: ${{ matrix.framework }}
run: |
framework=$(echo "${{ matrix.framework }}" | cut -d_ -f1)
cd $framework
echo "frameworks_data: $frameworks_data"
instructions=$(echo $frameworks_data | sed 's/,[^,]*$//')
if [[ $instructions == *,* ]]; then
instructions=$(echo "$instructions" | sed 's/,/ \&\& bundle exec rake /g')
fi
instructions="bundle exec rake $instructions"
echo "instructions: $instructions"
eval $instructions
18 changes: 4 additions & 14 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
BUNDLE_WITHOUT: db:job:cable:storage:ujs

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set up Ruby 3.2
uses: ruby/setup-ruby@v1
Expand All @@ -27,26 +27,16 @@ jobs:
uses: actions/setup-python@v3
with:
python-version: "3.10"

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install codespell==2.1.0
- name: Check spelling with codespell
run: codespell --ignore-words=codespell.txt --skip="./vendor/bundle,./actionview/test/ujs/public/vendor/qunit.js,./actiontext/app/assets/javascripts/trix.js,./yarn.lock" || exit 1

- uses: actions/checkout@v3
with:
repository: skipkayhil/rails-bin
ref: 748f4673a5fe5686b5859e89f814166280e51781
- uses: ruby/setup-ruby@v1
with:
ruby-version: 3.2
bundler-cache: true
- uses: actions/checkout@v3
with:
path: rails
- run: bin/check-changelogs ./rails
- run: bin/check-config-docs ./rails
- run: tools/railspect changelogs .
- run: tools/railspect configuration .

- uses: zzak/action-discord@v8
continue-on-error: true
Expand Down
24 changes: 24 additions & 0 deletions .github/workflows/rail_inspector.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Rail Inspector

on:
pull_request:
paths:
- "tools/rail_inspector/**"
push:
paths:
- "tools/rail_inspector/**"

permissions:
contents: read

jobs:
rail_inspector:
name: rail_inspector tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ruby/setup-ruby@v1
with:
ruby-version: 3.2
bundler-cache: true
- run: cd tools/rail_inspector && bundle exec rake
2 changes: 1 addition & 1 deletion .github/workflows/rails-new-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
rails-new-docker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: '3.2'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
BUNDLE_ONLY: rubocop

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set up Ruby 3.2
uses: ruby/setup-ruby@v1
Expand Down
7 changes: 7 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ AllCops:
- 'actionmailbox/test/dummy/**/*'
- 'activestorage/test/dummy/**/*'
- 'actiontext/test/dummy/**/*'
- 'tools/rail_inspector/test/fixtures/*'
- '**/node_modules/**/*'
- '**/CHANGELOG.md'
- '**/2_*_release_notes.md'
Expand Down Expand Up @@ -242,6 +243,9 @@ Lint/RequireParentheses:
Lint/RedundantStringCoercion:
Enabled: true

Lint/RedundantSafeNavigation:
Enabled: true

Lint/UriEscapeUnescape:
Enabled: true

Expand Down Expand Up @@ -350,6 +354,9 @@ Minitest/AssertRaisesWithRegexpArgument:
Minitest/AssertWithExpectedArgument:
Enabled: true

Minitest/LiteralAsActualArgument:
Enabled: true

Minitest/SkipEnsure:
Enabled: true

Expand Down
8 changes: 6 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ gem "json", ">= 2.0.0"
# Workaround until Ruby ships with cgi version 0.3.6 or higher.
gem "cgi", ">= 0.3.6", require: false

group :lint do
gem "syntax_tree", "6.1.1", require: false
end

group :rubocop do
gem "rubocop", ">= 1.25.1", require: false
gem "rubocop-minitest", require: false
Expand Down Expand Up @@ -150,12 +154,12 @@ platforms :ruby, :windows do
gem "racc", ">=1.4.6", require: false

# Active Record.
gem "sqlite3", "< 1.6.4"
gem "sqlite3", "~> 1.6", ">= 1.6.6"

group :db do
gem "pg", "~> 1.3"
gem "mysql2", "~> 0.5"
gem "trilogy", github: "github/trilogy", branch: "main", glob: "contrib/ruby/*.gemspec"
gem "trilogy", ">= 2.5.0"
end
end

Expand Down
Loading