Edgars Beigarts
7432c9226e
Use weak references in descendants tracker
...
It allows anonymous subclasses to be garbage collected.
2019-03-26 12:11:37 +02:00
Xavier Noria
3acf5f71f0
Depend on Zeitwerk 1.4.2
2019-03-23 14:42:24 +01:00
Ali Ibrahim
b64cb97452
Fix AS CHANGELOG typo
2019-03-22 15:13:58 -04:00
Ali Ibrahim
aaf89cdea7
Update CHANGELOG and docs
...
with change to ActiveSupport::Notifications::Instrumenter#instrument
2019-03-22 11:17:33 -04:00
Ali Ibrahim
1b7ef40db5
Update AS::Notifications::Instrumenter#instrument
...
* Update #instrument to make passing a block optional. This will let users
leverage #instrument for messaging in addition to instrumentation.
2019-03-22 10:01:18 -04:00
Xavier Noria
3d0850bfb8
depend on Zeitwerk 1.4.0
2019-03-19 13:07:31 +01:00
Andrew White
58ac3f212f
Fix Time#advance to work with dates before 1001-03-07
...
In #10634 the behavior of Time#advance was changed to maintain a
proleptic gregorian calendar for dates before calendar reform. However
it didn't full address dates a long time before calendar reform and
they gradually drift away from the proleptic calendar the further you
go back in time. Fix this by always converting the date to gregorian
before calling advance which sets the reform date to -infinity.
2019-03-18 17:02:34 +00:00
Ryuta Kamizono
26b5e62847
Merge pull request #35634 from sharang-d/update-parameterize-docs
...
Update docs for 'parameterize()' [ci skip]
2019-03-16 08:40:46 +09:00
Xavier Noria
a47c84d584
Engines are reloaded in Zeitwerk mode [ closes #35618 ]
2019-03-15 22:59:03 +01:00
Sharang Dashputre
40ef8a12ed
Update docs for 'parameterize()' [ci skip]
2019-03-16 03:24:26 +05:30
John Hawthorn
dbfe5c6ac4
Match evented checker behavior on dir with no exts
...
When FileUpdateChecker is passed a directory and given an empty array of
extensions to match on, it will match any extension.
Previously, EventedFileUpdateChecker would never match any files when
given an empty array. This commit makes it EventedFileUpdateChecker
match FileUpdateChecker, and watch all extensions when given an empty
array.
2019-03-15 13:29:14 -07:00
Xavier Noria
85984e5031
bumps Zeitwerk
2019-03-14 14:42:12 -07:00
Richard Monette
af20522954
support slice assignment on SafeBuffer
2019-03-13 19:22:04 -04:00
eileencodes
a2bd669ed2
v6.0.0.beta3 release
...
-----BEGIN PGP SIGNATURE-----
iQEzBAABCAAdFiEEEvJkGf0BARV+D0L2ulxXUSC76N8FAlyJN4cACgkQulxXUSC7
6N9ZXAf/Wx7edIct8kZzcC6irlROx4DzpNbrrH792sO1OAcnoFDE7DPkokllTEP/
4kzC42lca/XG27MCl7E0dtVD8hIyAl89nxid6cwKFVZVTPIRVc1wjXkoiWy/cvd7
6+9IjxhlgrzxGnw3aWZJG7H3iqz69yr55aoSDU/TbMqq5kQrqNF95vr2nc8LEUco
SLQj0pO/tfJdHquSeX0JiXn3VSEHT+5TdLGQ3J/w0wFU6mkecH4MJMJvMwLFx/v4
llnvF6HyfSLASWbrpdD3h6MQHpImDoee5vILXAHzPdSaEVcVa1cDFtMcPMYiu8Dw
AGdCAaHQhZFFGoYK472+o6pur0dxEA==
=5dET
-----END PGP SIGNATURE-----
Merge tag 'v6.0.0.beta3'
v6.0.0.beta3 release
2019-03-13 13:11:10 -04:00
Ryuta Kamizono
1dc4d49f51
Fix typo s/ActiveSupport::Timezone/ActiveSupport::TimeZone/ [ci skip]
2019-03-13 19:42:32 +09:00
Vipul A M
2fa03e6257
Merge pull request #35577 from sharang-d/typo-opt-out
...
Change wording of some instances of 'opt out' [ci skip]
2019-03-12 22:02:16 +05:30
Sharang Dashputre
dcccc38989
Change wording of some instances of 'opt out' [ci skip]
2019-03-12 20:06:02 +05:30
Ryuta Kamizono
c5979e7bea
Merge pull request #35575 from sharang-d/changelog-for-parameterize
...
Add changelog entry for transliterate/parameterize accepting `locale` [ci skip]
2019-03-12 17:52:51 +09:00
Sharang Dashputre
8201dbf685
Add changelog entry for transliterate/parameterize accepting `locale` [ci skip]
2019-03-12 14:06:09 +05:30
Xavier Noria
96242410a8
bump Zeitwerk to 1.3.3
2019-03-11 16:11:35 -07:00
Sharang Dashputre
818437c366
Fix bug with parametrize when `locale` is passed
...
Also add tests for parametrize and transliterate
2019-03-12 01:48:21 +05:30
eileencodes
7c87fd5635
Prep release
...
* Update RAILS_VERSION
* Bundle
* rake update_versions
* rake changelog:header
2019-03-11 11:58:15 -04:00
Kaan Ozkan
bc9711fb7d
Add locale option to parameterize
...
Parameterize is triggering I18n#transliterate. This method already
accepts a locale. It would be cleaner if similar to other string inflection
methods #parameterize also accepted 'locale' as a parameter.
2019-03-11 11:47:31 -04:00
Kasper Timm Hansen
c87f6841b7
Merge pull request #35121 from utilum/warning_tried_to_create_proc_without_block
...
Ruby 2.7 warning: creating a Proc without a block
2019-03-10 16:31:15 +01:00
Kasper Timm Hansen
0fc1397784
Merge pull request #35559 from ashishprajapati/ashishprajapati/important_textual_improvements
...
Added missing guide links in documentation and minor wording fix
2019-03-09 22:54:21 +01:00
ashishprajapati
e3ef12b310
Added missing guide links in README documentation and minor wording fix [ci skip]
2019-03-10 03:17:01 +05:30
Abhay Nikam
027e492b6f
Fix links in gemspec and docs from http to https.
2019-03-09 19:42:35 +05:30
Xavier Noria
2c33932e9b
Merge pull request #35536 from alexander-lazarov/improve-cache-docs
...
Improve wording in cache documentation
2019-03-08 20:05:08 +01:00
Alexander Lazarov
5103a5ef4b
Improve wording in cache documentation [ci skip]
2019-03-08 20:09:16 +02:00
Jean Boussier
6d624f2de9
Allow autoloader inflectors to be swaped out
2019-03-08 17:31:29 +01:00
Ryuta Kamizono
2170338239
Merge pull request #35498 from sobrinho/fix-including-excluding-flatten
...
Fix including/excluding flattening
2019-03-07 09:33:21 +09:00
Xavier Noria
71e23d33ae
Bump Zeitwerk
2019-03-06 12:08:08 -08:00
Gabriel Sobrinho
87468284d5
Fix including/excluding flattening
2019-03-06 13:34:04 -03:00
David Heinemeier Hansson
bfaa3091c3
Added Array#including, Array#excluding, Enumerable#including, Enumerable#excluding
2019-03-05 16:04:41 -08:00
Dylan Thacker-Smith
dfa439eefc
activesupport: Simplify class_attribute implementation ( #35454 )
...
* activesupport(class_attribute): Use redefine_singleton_method
* activesupport(class_attribute): Use keyword arguments
* activesupport(class_attribute): Avoid unnecessary redefinition for default
2019-03-03 12:21:46 +09:00
bogdanvlviv
a79a5f6efb
Run activesupport's memcache store tests on Buildkite
...
Related to 287920ca7d
2019-02-26 23:19:26 +00:00
Rafael Mendonça França
5e6e505083
Preparing for 6.0.0.beta2 release
2019-02-25 17:45:04 -05:00
Xavier Noria
39b2a6374b
Let Zeitwerk autoloaders inflect with Active Support
...
[Harry Brundage & Xavier Noria]
2019-02-23 14:37:20 -08:00
Xavier Noria
24092b7115
Upgrade Zeitwerk to 1.3.1
2019-02-23 05:16:03 -08:00
Xavier Noria
f2e51e3123
simplify AS::Dependencies.verbose=
...
Possible thanks to Zeitwerk 1.3.0.
2019-02-21 14:51:28 -08:00
Xavier Noria
159b9c40db
bump Zeitwerk
2019-02-21 14:27:32 -08:00
Xavier Noria
2607b57917
let Zeitwerk integration unhook AS::Dependencies
2019-02-19 15:22:48 -08:00
Xavier Noria
07346c4b35
upgrades Zeitwerk to 1.2.0
2019-02-17 10:10:05 -08:00
Xavier Noria
3aa3c0684d
Implement AS::Dependencies.verbose= compatibility for :zeitwerk mode
2019-02-15 14:49:44 -08:00
Conrad Beach
0aebca9f25
Fix small typo in docs
...
[ci skip]
2019-02-15 08:18:47 -07:00
Xavier Noria
870377915a
Replace autoloader accessors with Rails.autoloaders.{main,once}
...
Rails.autoloader and Rails.once_autoloader was just tentative API good
enough for a first patch. Rails.autoloader is singular and does not
convey in its name that there is another autoloader. That might be
confusing, for example if you set a logger and miss traces. On the other
hand, the name `once_autoloader` is very close to being horrible.
Rails.autoloaders.main and Rails.autoloaders.once read better for my
taste, and have a nice symmetry. Also, both "main" and "once" are four
letters long, short and same length.
They are tagged as "rails.main" and "rails.once", respectively.
References #35235 .
2019-02-14 22:34:16 -08:00
Xavier Noria
e53430fa9a
Register new autoloading in AS CHANGELOG [ci skip]
...
There is too much to say about it for a CHANGELOG entry, and linking to
the original PR could mislead if there are later changes as already
happened with the gem dependency, so just a one-liner.
For final we'll up to date documentation.
2019-02-14 00:04:20 -08:00
Xavier Noria
a20b00db3f
Merge pull request #35261 from rails/zeitwerk-as-dependency
...
Let Zeitwerk be a dependency of Active Support
2019-02-13 22:43:40 -08:00
Ricardo Díaz
df29b6643b
Use Dir#children and Dir#each_child instead of excluding "." and ".."
...
Both methods were introduced in Ruby 2.5 and fit this use case very
nicely: listing a directory's entries excluding the "." and ".." nodes.
The private method #exclude_from was removed as it no longer serves
its original purpose.
2019-02-13 22:56:34 -05:00
Xavier Noria
c36b6c8d38
Let Zeitwerk be a dependency of Active Support
...
Zeitwerk is a strong dependency, planned to replace AS::Dependencies. A
line in the generated Gemfile does not convey this as much.
2019-02-13 12:27:53 -08:00