Commit Graph

58 Commits

Author SHA1 Message Date
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
Prathamesh Sonpatki
d9412d9bb6 Use force: true options for creating tables in bug templates
- Generally we have to run the bug templates multiple times to get them
   right and it always complains because the posts and comments tables
   already exist due to earlier runs.
 - Using force: true will eliminate this issue.
2015-01-19 09:03:02 +05:30
Prathamesh Sonpatki
55298629c0 Update bug report templates to use version 4.2.0 instead of 5.0.0 [ci skip]
- Right now master is 5.0.0. Latest gem release is 4.2.0 for which we
  are accepting bug reports. So lets use it in bug report templates.
- 5.0.0 is not installable as it's not available on Rubygems yet. So the
  gem bug templates are not usable without editing the version. Using
  4.2.0 will make them usable again.
2015-01-04 16:06:01 +05:30
Lucas Caton
8d2135881c Using Rails 5.0 in bug report templates [ci skip] 2015-01-02 09:06:11 +10:00
Rafael Mendonça França
86637391db Remove rack and i18n master from bug report tempaltes [ci skip] 2014-12-19 15:12:31 -02:00
Benjamin Fleischer
db5f1a46f2 secret_token is now saved in Rails.application.secrets.secret_token
- `secrets.secret_token` is now used in all places `config.secret_token` was
  - `secrets.secret_token`, when not present in `config/secrets.yml`,
    now falls back to the value of `config.secret_token`
  - when `secrets.secret_token` is set, it over-writes
    `config.secret_token` so they are the same (for backwards-compatibility)
  - Update docs to reference app.secrets in all places
    - Remove references to `config.secret_token`, `config.secret_key_base`
- Warn that missing secret_key_base is deprecated
- Add tests for secret_token, key_generator, and message_verifier
  - the legacy key generator is used with the message verifier when
    secrets.secret_key_base is blank and secret_token is set
  - app.key_generator raises when neither secrets.secret_key_base nor
    secret_token are set
  - app.env_config    raises when neither secrets.secret_key_base nor
    secret_token are set
- Add changelog

Run focused tests via
ruby -w -Itest test/application/configuration_test.rb -n '/secret_|key_/'
2014-11-02 21:21:09 -06:00
yuuji.yaginuma
ea88b8e8c3 [ci skip]Add i18n master to the Gemfile 2014-07-24 17:08:11 +09:00
Abdelkader Boudih
d966ee0eca [Bug report templates] Added rack master to the Gemfile 2014-07-12 10:36:57 +00:00
Abdelkader Boudih
f367f2e50e Add arel to the controller template 2014-07-03 19:35:53 +00:00
Godfrey Chan
16cc914645 Revert "Don't rely on Arel master in bug report template [ci skip]"
This reverts commit fd6d7835.

We are back on arel master, see b395265f.
2014-04-27 10:26:56 -07:00
Robin Dupret
fd6d78356f Don't rely on Arel master in bug report template [ci skip]
We should rely instead on the version supported by Active Record

Closes #14809
2014-04-19 18:25:11 +02:00
Robin Dupret
a9444916ee Ensure backward compatibility between Minitest 5 and 4
Define Minitest::Test in case we are running the gist under Minitest 4
and avoid relying on MiniTest::Unit::TestCase to avoid displaying
warning on version five.

[ci skip]
2013-12-27 11:30:53 +01:00
Arun Agrawal
fd1c515d4d Minitest::Unit::TestCase is Minitest::Test [ci skip] 2013-12-26 23:55:59 +01:00
Vipul A M
7bae2921ec Change all MiniTest to Minitest since, MiniTest namespace has been renamed to Minitest
Ref: https://github.com/seattlerb/minitest/blob/master/History.txt
2013-12-18 14:39:50 +05:30
Yves Senn
d4294fe952 add missing arel dependency to active_record_master bug report script.
[ci skip].

This solves:

```
Could not find gem 'arel (~> 5.0.0) ruby', which is required by gem 'rails (>= 0) ruby', in any of the sources.
```
2013-11-29 17:07:24 +01:00
Roman Kushnir
299fe844dd Include URL helpers in TestController in bug report templates
[ci skip]

Fixes #12848.
2013-11-11 21:28:26 +02:00
laurocaetano
d48222d22e remove warnings on ruby trunk 2013-11-01 18:15:53 -02:00