redmine-trunk-changes 2019-09-13

リビジョン 18460 - Fix that date grouping for MySQL is not working (#32046, #13803). Patch by M... - Redmine

MySQLで日付をグループ化するSQLがうまく動いていなかったのを修正しています。

カラムを日付に変更してからタイムゾーンを変換していたのを、カラムのタイムゾーンを変えてから日付に変更するようにしています。 た、たしかに〜〜!!!

リビジョン 18461 - rubocop: disable Naming/PredicateName - Redmine

真偽値を返すようなメソッドの名前で is_ とか has_ とかついているとおこるCopを無効にしています。

リビジョン 18462 - code cleanup: rubocop: fix Style/MethodCallWithoutArgsParentheses in test/fun... - Redmine

メソッド呼び出しの不要な()を消しています。

リビジョン 18463 - code clean up test/functional/repositories_git_controller_test.rb - Redmine

外部エンコーディングがUTF8かどうか調べた結果を入れているインスタンス変数や、メソッドの名前にruby19_prefixがついてたので、消しています。R.I.P.

リビジョン 18464 - code clean up test/functional/repositories_mercurial_controller_test.rb - Redmine

外部エンコーディングがUTF8かしらべた結果を一時変数に入れていたのですが、つかっている場所が1箇所なので、直接書くようにしてローカル変数を消しています。

リビジョン 18465 - mail_body method in test/test_helper.rb raises an exception if the message is... - Redmine

テストヘルパーの中でメールオブジェクトを渡すとbodyの文字列を返すmail_bodyメソッドがあるんですが、multipartじゃないメールを渡すとエラーになっていたので、multipartかどうかで処理をわけてエラーにならないよう修正しています。

リビジョン 18466 - code cleanup: rubocop: fix Layout/IndentationConsistency in test/functional/r... - Redmine

インデントを直しています

リビジョン 18467 - Merged r18377 from trunk to 4.0-stable (#31870). - Redmine

jQuery関係のdeprecatedの修正を4.0にバックポートしています。