Commit Graph

74 Commits

Author SHA1 Message Date
Ryuta Kamizono
fb42684015 Update bug report templates
Bump gem version to 6.0.0.rc1.
2019-04-25 19:11:22 +09:00
Sergey Ponomarev
0375ccbae3
Specify sqlite gem version explicitly in version-specific bug report templates 2019-02-04 17:38:54 -05:00
yuuji.yaginuma
6a8519ca89 Specify hosts in bug report template.
Host authentication introduced by #33145 allows only "0.0.0.0/0", "::/0"
and "localhost" in the development environment.
4298df00ae/railties/lib/rails/application/configuration.rb (L33)

But `rack-test` use `example.org` for default host.
6c07bf53ad/lib/rack/test.rb (L13)

Therefore, if `hosts` is not specified, host authentication rejects
the request.

In Travis CI, this problem does not occur because `test` is specified
by default in `RAILS_ENV` and `RACK_ENV`.
https://docs.travis-ci.com/user/environment-variables/#default-environment-variables

If user actually use it, env may not always be specified. Explicitly
specify hosts in the file so that it works in any environment.
2018-12-25 08:40:56 +09:00
Ryuta Kamizono
44bee7f242 Revert "Merge pull request #34421 from albertoalmagro/use-assert-not-instead-of-refute"
This reverts commit ab5d5c95ec51c63d58d7e75694af748f165e2228, reversing
changes made to ef4f5ef69b5a50c897bbb17f6b36b729dff12e6c.
2018-11-11 12:35:55 +09:00
Alberto Almagro
2d749cbea9 Prefer assert_not instead of refute [ci skip]
As mentioned in the contributing to Ruby on Rails guides,
we should prefer `assert_not` instead of `refute`. And the
best place to start giving example are our bug report templates..

See: https://github.com/rails/rails/blame/master/guides/source/contributing_to_ruby_on_rails.md#L256
2018-11-10 21:49:11 +01:00
Robin Dupret
f1e4d3d8dd Update bug report templates
Given that Bundler 1.10 was released back in 2015, we can assume
that people are at least on this version or a higher one so there
is no need to ask people to upgrade.

Also, given that Rails 5.0 supports Ruby 2.2+ and given that this
version come with Minitest 5.4.3 bundled, we don't need to ensure
backward compatibility with Minitest 4.
2018-10-28 18:12:48 +01:00
Xavier Noria
f589e20b0a use "minitest" consistently
The name of the minitest library is spelled that way: regular font, and
lowercase. Lowercase is used even at the beginning of sentences, see

    http://docs.seattlerb.org/minitest/

I double-checked this with @zenspider too (thanks!).
2018-09-11 23:57:25 +02:00
bogdanvlviv
f0eb637f52
Update bug report templates
Set Rails 5.2.0 in templates
2018-04-10 04:32:42 +03:00
bogdanvlviv
690ce38cfe Update bug report templates
Prepare bug report templates for Rails 6.0 development

Add missing `require "active_support"` in `guides/bug_report_templates/generic_gem.rb`
2018-02-17 22:53:14 -08:00
SHIBATA Hiroshi
fd6522a4b4 Revert "Specify bundler version in template files"
This reverts commit b106242f52272c4a5ced7a0e9d1dcb1b50542501.
2017-12-22 23:07:14 +09:00
yuuji.yaginuma
2a26ff80e8 Use released arel
Related to 2e0fe5928f0d08f85b4796c85bd0b39f6be09079
2017-11-15 10:00:43 +09:00
yuuji.yaginuma
b106242f52 Specify bundler version in template files
We have already specified to install `bundler` 1.15.4 in `.travis.yml`.
https://github.com/rails/rails/blob/master/.travis.yml#L31..L32

However, `bundler` 1.16.0 may be used in the test.
https://travis-ci.org/rails/rails/jobs/296582467#L2208

The test failed due to this influence.
In order to avoid this, specifying `bundler` version in bug report
templates.
2017-11-03 22:25:47 +09:00
bogdanvlviv
615415ba81
Set proper migration' version in bug report templates 2017-10-18 16:28:12 +03:00
Kasper Timm Hansen
fbcc4bfe9a
Deprecate secret_token, long since usurped by secret_key_base.
See the changelog entry.

Remove `secrets.secret_token` from the bug report templates,
since we don't accept bug reports for Rails versions that
don't support a `secret_key_base`.

[ claudiob & Kasper Timm Hansen ]
2017-09-28 20:46:01 +02:00
Ryuta Kamizono
a151d8ad89 Add newlines before/after the git_source in bug report templates
[ci skip]
2017-09-27 17:55:43 +09:00
bogdanvlviv
3e0a858aed
Change :github git source for bug report templates
:github source uses `git://` url by default, `https://` is recommended.
See http://bundler.io/v1.15/guides/git.html#security

We do the same in our `Gemfile` and templates.
2017-09-27 00:02:11 +03:00
Koichi ITO
1f37d846a9 Use frozen string literal in guides/ 2017-08-13 22:04:09 +09:00
Sean Griffin
0267019a55 Require arel master in the benchmark template
Pointing at Rails master generally requires pointing at Arel master
2017-07-25 15:50:10 -04:00
Matthew Draper
87b3e226d6 Revert "Merge pull request #29540 from kirs/rubocop-frozen-string"
This reverts commit 3420a14590c0e6915d8b6c242887f74adb4120f9, reversing
changes made to afb66a5a598ce4ac74ad84b125a5abf046dcf5aa.
2017-07-02 02:15:17 +09:30
Kir Shatrov
cfade1ec7e Enforce frozen string in Rubocop 2017-07-01 02:11:03 +03:00
yuuji.yaginuma
2dafc4be22 Do not use private API in bug report templates
`ActiveRecord::Migrator` is private API.
bb9d6eb094/activerecord/lib/active_record/migration.rb (L977)

Therefore, it is not good to use it in bug report templates.
Instead, should use the public API `ActiveRecord::Migration#migrate`.
2017-06-22 08:08:45 +09:00
bogdanvlviv
40bdbce191
Define path with __dir__
".. with __dir__ we can restore order in the Universe." - by @fxn

Related to 5b8738c2df003a96f0e490c43559747618d10f5f
2017-05-23 00:53:51 +03:00
Alex Kitchens
99c34f269e Update the Gem Bug Report Templates to 5.1.0
5.1.0 has been released, and the gem templates can reflect that now.
2017-05-01 07:48:11 -05:00
Matthew Draper
afbbcf24d7 Update bug report templates 2017-03-22 10:11:43 +10:30
Matthew Draper
6c08d480f1 Start Rails 5.2 development 2017-03-22 10:11:39 +10:30
yuuji.yaginuma
08df808b41 Use released arel
Follow up to ea9566f6cd1b4d3f0d8a5f03283b49423b89044d
2017-02-26 19:55:52 +09:00
Rafael Mendonça França
ea9566f6cd
Use released arel 2017-02-21 11:46:42 -05:00
Daniel Martin
c85a9714ba Bump bug report template versions to 5.0.1 2017-01-26 10:43:32 +01:00
Rafael Mendonça França
e646bad5b7
Remove deprecated support to passing a column to #quote 2016-12-29 17:53:03 -05:00
Rafael Mendonça França
fe1f4b2ad5
Add more rubocop rules about whitespaces 2016-10-29 01:17:49 -02:00
Godfrey Chan
f2f9b88685 Introduce a benchmark template [ci skip]
This replaces boilerplate in the “benchmark your code” section of the
contributors’ guide with an executable template. I also amended the text
to encourage best practices and codified it in the template.

For now this is only good for relatively self-contained changes that can
be inlined into a simple script. In the future, this can be expanded to
cover how to measure the difference between two commits.

The output looks like this:

```
==================================== Empty =====================================

Warming up --------------------------------------
              blank?   225.963k i/100ms
         fast_blank?   238.147k i/100ms
Calculating -------------------------------------
              blank?      8.825M (± 6.4%) i/s -     44.063M in   5.014824s
         fast_blank?      9.311M (± 6.3%) i/s -     46.439M in   5.009153s

Comparison:
         fast_blank?:  9310694.8 i/s
              blank?:  8824801.7 i/s - same-ish: difference falls within error


================================= Single Space =================================

Warming up --------------------------------------
              blank?    56.581k i/100ms
         fast_blank?   232.774k i/100ms
Calculating -------------------------------------
              blank?    813.985k (±16.7%) i/s -      4.017M in   5.076576s
         fast_blank?      9.547M (± 5.2%) i/s -     47.719M in   5.013204s

Comparison:
         fast_blank?:  9547414.0 i/s
              blank?:   813985.0 i/s - 11.73x  slower


================================== Two Spaces ==================================

Warming up --------------------------------------
              blank?    58.265k i/100ms
         fast_blank?   244.056k i/100ms
Calculating -------------------------------------
              blank?    823.343k (±16.2%) i/s -      4.020M in   5.014213s
         fast_blank?      9.484M (± 4.9%) i/s -     47.347M in   5.005339s

Comparison:
         fast_blank?:  9484021.6 i/s
              blank?:   823343.1 i/s - 11.52x  slower


=============================== Mixed Whitspaces ===============================

Warming up --------------------------------------
              blank?    53.919k i/100ms
         fast_blank?   237.103k i/100ms
Calculating -------------------------------------
              blank?    763.435k (±16.8%) i/s -      3.720M in   5.018029s
         fast_blank?      9.672M (± 5.8%) i/s -     48.369M in   5.019356s

Comparison:
         fast_blank?:  9672467.2 i/s
              blank?:   763435.4 i/s - 12.67x  slower


=============================== Very Long String ===============================

Warming up --------------------------------------
              blank?    34.037k i/100ms
         fast_blank?   240.366k i/100ms
Calculating -------------------------------------
              blank?    409.731k (± 8.9%) i/s -      2.042M in   5.028235s
         fast_blank?      9.794M (± 4.3%) i/s -     49.035M in   5.016328s

Comparison:
         fast_blank?:  9794225.2 i/s
              blank?:   409731.4 i/s - 23.90x  slower
```
2016-10-15 12:34:46 +02:00
Girish Sonawane
084211a7da bug report template for migrations (#26488)
* added bug report template for migrations
2016-09-15 07:28:12 -04:00
yuuji.yaginuma
9eba3d6976 fix class name typo 2016-09-02 17:16:15 +09:00
Prathamesh Sonpatki
26a2776f23
Added bug report templates for Active Job 2016-09-02 11:31:04 +05:30
yuuji.yaginuma
3173244d4b remove unnessary session_store setting
Since e5a6f7ee9e951dbe0e4e9ea2c0743b4dfb135c57, by default the session store
will be set to cookie store with application name as session key.
2016-08-20 20:24:17 +09:00
Xavier Noria
6b3719b757 applies new string literal convention in guides
The current code base is not uniform. After some discussion,
we have chosen to go with double quotes by default.
2016-08-06 19:21:59 +02:00
Jon Moss
d3165fc84d
Bump version for master bug report templates 2016-07-05 20:10:19 -04:00
Rafael Mendonça França
deb9c8ce3c Update Ruby report templates 2016-05-10 03:46:56 -03:00
Jon Moss
beff7d9d8e Remove extra space [ci skip] 2016-05-05 09:07:31 -04:00
Rafael Mendonça França
454bc1deab Remove github gems from the master bug report templates
All gems are released now so we don't need to ask the github repository
for these gems anymore.
2016-02-18 15:35:45 -02:00
yuuji.yaginuma
92cca41bbe remove backward compatibility code for Minitest 4
The master branch is required Ruby 2.2.2+, for the Ruby 2.2 is bundled Minitest 5.4.3,
I think backward compatibility code for Minitest 4 is unnecessary.
2016-01-30 16:52:09 +09:00
claudiob
9ddd1c4451 Fix: make Travis CI happy about guides again
Tests on Rails [are currently failing](https://travis-ci.org/rails/rails/jobs/78255666).

The reason is the dependency of Rails master from gems that are currently on
GitHub (not on RubyGems) and should be explicitly referenced in the Guides
test files.
2015-09-01 10:00:06 -07:00
Aaron Patterson
7354ef146e argh!!! 2015-08-20 13:55:48 -07:00
Prathamesh Sonpatki
dafe2997ca Replaced render :text with render :plain in AC gem bug report template
- Followup of https://github.com/rails/rails/pull/20929.
 [ci skip]
2015-07-18 17:07:58 +05:30
yuuji.yaginuma
fec638cf1a use plain option instead of deprecated text option
this will silence deprecation warnings
2015-07-18 17:37:34 +09:00
akihiro17
b07483490f Output an error message and raise an error if bundler 1.10.x is not installed when reporting bugs 2015-06-06 23:09:46 +09:00
Roque Pinel
89550bc1a0 Add the bug report templates to the Travis CI build
The bug report templates are now executed from the `ci/travis.rb` when
`GEM` contains `guides`.

I started by creating a `test` task in `guides/Rakefile` to handle this,
but since inline `gemfile` must not be executed with `bundle exec`, that
rake task would not be consistent with others. So I went back by
executing them directly from `Build`.

Use inline Gemfile dependency when reporting gem bugs
2015-06-05 15:29:48 -05:00
Roque Pinel
ebd806cf4b Use inline Gemfile dependency when reporting bugs
With Bundler `1.10.3`, it is possible to list the gems inline without the
need to create a `Gemfile` if none is found in the current directory.
2015-06-03 22:02:25 -05:00
Godfrey Chan
ee43a67c2c Add a "generic" bug report template
This template gives contributors a starting point to use when reporting bugs
that does not involve Active Record or Action Pack.
2015-04-19 15:18:01 -07:00
yuuji.yaginuma
7c342af1b7 load "rack/test" before "action_controller/railtie" in bug report templates [ci skip] 2015-02-05 08:19:45 +09:00