Commit Graph

110 Commits

Author SHA1 Message Date
Jean Boussier 6ba2fdb2fe Bump the required Ruby version to 3.1.0
Until now, Rails only droped compatibility with older
rubies on new majors, but I propose to change this policy
because it causes us to either keep compatibility with long
EOLed rubies or to bump the Rails major more often, and to
drop multiple Ruby versions at once when we bump the major.

In my opinion it's a bad alignments of incentives. And we'd
be much better to just drop support in new minors whenever they
go EOL (so 3 years).

Also Ruby being an upstream dependency, it's not even
a semver violation AFAICT.

Since Rails 7.2 isn't planned before a few months, we
can already drop Ruby 3.0 as it will be EOL in March.
2023-12-31 08:54:03 +01:00
Yasuo Honda 1e2001862e Revert "Merge pull request #46817 from yahonda/bump_required_rubygems_version_to_3313"
This reverts commit c14b8c7323, reversing
changes made to 85bc6ca9d2.
2023-02-28 08:42:28 +09:00
Yasuo Honda 3aa32f2176 Bump required_rubygems_version to 3.3.13 or higher
https://github.com/rails/rails/pull/45979 relies on
https://github.com/rubygems/rubygems/pull/5486 which is included
in https://github.com/rubygems/rubygems/blob/master/CHANGELOG.md#3313--2022-05-04

- RubyGems 3.3.12` Gem.ruby_version` includes patch level
```ruby
$ gem -v
3.3.12
$ irb
irb(main):001:0> Gem.ruby_version
=> Gem::Version.new("3.1.3.p185")
```

- RubyGems 3.3.13` Gem.ruby_version` does not include patch level
```
$ gem -v
3.3.13
$ irb
irb(main):001:0> Gem.ruby_version
=> Gem::Version.new("3.1.3")
irb(main):002:0>
```

The current version 1.8.11 has been updated to use Ruby 1.9.3-p0
https://github.com/rails/rails/pull/4576
2022-12-24 10:46:41 +09:00
Eric D. Helms 5d117fc9ac Add MIT-LICENSE file to Rails gem 2022-06-30 21:45:33 -04:00
Rafael Mendonça França 1fde031e89 Fix gemspec 2021-11-15 21:06:21 +00:00
Rafael Mendonça França 9195b7fd0a
Require MFA to release rails 2021-11-15 20:37:42 +00:00
David Heinemeier Hansson fb1ab3460a
Make Sprockets more optional, offer Propshaft as alternative (#43261)
* Make Sprockets more optional, offer Propshaft as alternative

* Whups, local reference

* No longer used

* Spacing

* Need explicit sprockets-rails inclusion now

* Manually require the sprockets railtie

* Don't need these changes right now

* Kick off another build

* Fix tests

* DRY up test

* Require railtie when using sprockets

* Introduce option to skip asset pipeline

* No longer relevant

* Always have to return

* Gone

* Add helper for skip_sprockets?

* Fix guard statement

* Use latest gems

* Include propshaft

* fix tests for #43261 (#43277)

* help fix tests for #43261

skip_sprockets? should not be called on options

:skip_sprockets is no longer a value in the option hash, so
skip_sprockets? should not be called on it

move --asset-pipeline to shared generator

skip_sprockets? is defined on app_base, and used in the plugin
generator to determine whether to add the engine's assets to the dummy
sprockets manifest, so I believe it makes sense to include in both
generators

Because of this change, I also changed the shared test back to testing
against non-sprockets

add skip_sprockets to Gemfile template vars

Mocking skip_sprockets? in app_base generator

fix more generator tests

* use skip_sprockets? everywhere

* Use latest propshaft

* Update `AssetUrlHelper` docs to list both asset pipeline gems (#43328)

* Update to latest Propshaft

* Bump Propshaft again

* Ask for latest

* Use latest propshaft

Co-authored-by: Hartley McGuire <skipkayhil@gmail.com>
Co-authored-by: Richard Macklin <1863540+rmacklin@users.noreply.github.com>
2021-10-09 17:03:05 +02:00
Rafael Mendonça França 6487836af8
Rails 7 requires Ruby 2.7 and prefer Ruby 3+
The code cleanup is comming in later commits but this
already remove support to Ruby < 2.7.
2021-02-04 16:34:53 +00:00
mikong 31da78caf0
Update outdated bundler in gemspec 2020-08-18 00:39:54 +08:00
Abhay Nikam bdfffd1355 Update the Rails mailing list URLs to new discuss discourse URL [ci skip] 2020-04-02 22:00:28 +05:30
Orien Madgwick 36a8d96de7 Add Rails changelog URI 2019-11-28 07:57:37 +11:00
Orien Madgwick 493edf044f Add bug tracker/documentation/mailing list URIs to the gemspecs 2019-10-11 20:47:19 -04:00
George Claghorn 0decd2ddc4 Import Action Text 2019-01-04 22:22:49 -05:00
George Claghorn a5b2fff64c Import Action Mailbox 2018-12-25 21:32:35 -05:00
Kasper Timm Hansen 1b7c3222e8
Require Ruby 2.5 for Rails 6.
Generally followed the pattern for https://github.com/rails/rails/pull/32034

* Removes needless CI configs for 2.4
* Targets 2.5 in rubocop
* Updates existing CHANGELOG entries for fewer merge conflicts
* Removes Hash#slice extension as that's inlined on Ruby 2.5.
* Removes the need for send on define_method in MethodCallAssertions.
2018-12-19 21:47:50 +01:00
Benjamin Kim 8113f1896f
rubyonrails.org has been ready for https 2018-11-24 07:28:52 +09:00
Jeremy Daer d4eb0dc89e Rails 6 requires Ruby 2.4.1+
Skipping over 2.4.0 to sidestep the `"symbol_from_string".to_sym.dup` bug.

References #32028
2018-02-17 15:34:57 -08:00
Rafael Mendonça França 0ea8e7db1a Remove support to Ruby 2.2
Rails 6 will only support Ruby >= 2.3.
2018-02-16 18:52:10 -05:00
Koichi ITO d17264d93f Use frozen string literal in root files 2017-08-13 22:14:24 +09:00
David Heinemeier Hansson 16d00247f3 Bring activestorage dependencies into the general Gemfile 2017-07-31 15:53:09 -05:00
Julian Nadeau 7529bbd338
Allow the use of Bundler 2.0 2017-07-04 10:23:47 -04:00
Matthew Draper 87b3e226d6 Revert "Merge pull request #29540 from kirs/rubocop-frozen-string"
This reverts commit 3420a14590, reversing
changes made to afb66a5a59.
2017-07-02 02:15:17 +09:30
Kir Shatrov cfade1ec7e Enforce frozen string in Rubocop 2017-07-01 02:11:03 +03:00
bogdanvlviv 40bdbce191
Define path with __dir__
".. with __dir__ we can restore order in the Universe." - by @fxn

Related to 5b8738c2df
2017-05-23 00:53:51 +03:00
Xavier Noria adca8154c6 applies new string literal convention in the gemspecs
The current code base is not uniform. After some discussion,
we have chosen to go with double quotes by default.
2016-08-06 19:27:12 +02:00
Xavier Noria 1eb27fafa9 revises the homepage URL in the gemspecs [ci skip]
References https://github.com/rails/homepage/issues/46.
2016-03-10 07:55:27 +01:00
David Heinemeier Hansson 760de782f7 Initial stab at adding Action Cable to rails/master 2015-12-14 16:38:37 +01:00
claudiob 6d02b75b2b Require sprockets-rails >= 2
Fixes 4d157ea8c1

Without any specification about the version of sprockets-rails, running a
`bundle install` on a brand new app might result in sprockets 0.0.1 being
installed.

However, the minimum requirement is sprockets-rails 2 (see https://github.com/rails/rails/pull/17752/files)
2015-09-01 09:30:38 -07:00
Jon Atack 32f7491808 Upgrade to Ruby 2.2.2
and fix the grammar in the ruby_version_check.rb user message.
2015-04-14 08:41:56 +05:30
Peter Suschlik f0768eba28 Target Ruby 2.2.1 in gemspecs
This is a follow-up to #19257
2015-03-09 09:56:26 +01:00
Xavier Noria cd7cc5254b Remove documentation tasks
This patch removes the tasks doc:app, doc:rails, and doc:guides.

In our experience applications do not generate APIs using doc:app.
Methods may be certainly documented for maintainers, annotated
with YARD tags, etc. but that is intended to be read with the
source code, not in a separate website. Then, teams also have
typically selected topics written down in Markdown files, or in
a GitHub wiki... that kind of thing.

If a team absolutely needs to generate application documentation
for internal purposes, they can still easily write their own task.

Regarding doc:rails and doc:guides, we live in 2015. We are used
to go to online docs all the time. If you really want access to the
API offline RubyGems generates it for every Rails component unless
you tell it not to, and you can checkout the Rails source code to
read the guides as Markdown, or download them for a Kindle reader.

All in all, maintaining this code does not seem to be worthwhile
anymore.

As a consequence of this, guides (+3 MB uncompressed) won't be
distributed with the rails gem anymore. Of course, guides and API
are going to be still part of releases, since documentation is
maintained alongside code and tests.

Also, time permitting, this will allow us to experiment with novel
ways to generate documentation in the Rails docs server, since
right now we were constrained by being able to generate them in
the user's environment.
2015-02-06 21:04:54 +01:00
Kyle Decot acee13be20 targeting 2.2 2014-12-25 23:25:49 -05:00
Igor Zubkov 35a14cfd5d Bump ruby version to 2.1.0 in rails.gemspec too. 2014-11-29 18:45:47 +02:00
Rafael Mendonça França 4d157ea8c1 Merge pull request #17752 from arthurnn/fix_sprockets-rails-dependency
Use sprockets-rails 2.2.x on base app and allow greater version
2014-11-24 19:33:07 -02:00
Arthur Neves 8e1e9f6c70
Fix sprockets-rails dependency dance
- Remove sprockets-rails from generated Gemfile as rails has a hard-dependency on it

- Also allow sprockets-rails >= 2.0.0
2014-11-24 16:30:26 -05:00
Rafael Mendonça França 828c64241c Do not package the guides output
Fixes #17455
2014-10-31 12:25:40 -02:00
Rafael Mendonça França d4f018fc25 Require sprockets-rails 3.0.0.beta1 2014-08-19 19:57:55 -03:00
Abdelkader Boudih 0c232779ec Remove activejob integration tests 2014-08-12 10:07:21 +00:00
Rafael Mendonça França a338b39f75 Make possible to use sprockets-rails 2.1 2014-04-04 16:25:46 -03:00
Arun Agrawal 2adea0a5b3 Added activemodel as a explicit dependency
As we have other dependency explicitly here
it's fine to add activemodel as well
2013-10-02 16:40:17 +02:00
Piotr Sarnacki 78b0934dd1 Add bare actionview gem to the root directory
This commit creates structure for Action View gem and is first of a
series of commits extracting Action View from Action Pack.
2013-06-20 17:23:15 +02:00
Paul Nikitochkin 37db946023 Use sprockets-rails 2.0.0 2013-06-12 16:57:04 +03:00
Guillermo Iguaran be4ccae9c3 Use sprockets-rails 2.0.0.rc4 2013-04-18 13:37:43 -05:00
Xavier Noria 0513f6ca9c fixes gemspec 2013-04-16 18:17:54 +02:00
Xavier Noria 1003f5bd6d removes bindir from the rails gemspec
Nowadays the rails gem itself has no executables.
2013-03-29 13:27:56 +01:00
Jeremy Kemper 202041e762 Bundler 1.3.0 released. We prefer it for new binstub behavior. 2013-02-25 17:07:45 -06:00
Guillermo Iguaran 40111c5c8a Use sprockets-rails 2.0.0.rc3 in new apps 2013-02-24 13:31:29 -05:00
Jeremy Kemper 5be6fa5c33 Relax bundler dep until 1.3.0 is actually released.
Revert "Bump bundler dep to 1.3.0.pre.4+ to introduce 'bundle binstubs <gem>'"

This reverts commit e00b8ecf1a.

Revert "Use bundler --pre for travis builds"

This reverts commit 4d240ec20a.
2013-01-10 12:37:12 -07:00
Xavier Noria 9c5fb00141 let the rails gem ship with the README
The doc:rails application rake task needs this README.
2013-01-08 00:50:55 +01:00
Jeremy Kemper e00b8ecf1a Bump bundler dep to 1.3.0.pre.4+ to introduce 'bundle binstubs <gem>' 2013-01-03 17:41:52 -07:00