dd94ead358
Initial work on #10488
2016-12-02 00:01:51 +03:00
53a2a48f97
Update tutorial-i18n.md
...
to double quotes
2016-12-01 18:55:31 +01:00
9d9b800a57
Improve docs on i18n messages ( #13107 )
...
* start with improving doc
* updates
* fixes for @samdark review
* fixes after @cebe's review
* changes after @silverfire
2016-12-01 18:23:21 +01:00
7b3f4095c2
added @since
2016-12-01 17:57:11 +01:00
d295812695
upgrade file updated
2016-12-01 17:24:41 +01:00
758ca250ac
Enabled Codeclimate code coverage ( #13112 )
2016-12-01 19:13:23 +03:00
51786cb595
improved composer stability for the asset plugin
2016-12-01 16:28:00 +01:00
5e12a5cc3a
added spaces
2016-12-01 16:00:31 +01:00
781ac2e139
add changelog
2016-12-01 16:00:06 +01:00
9218adcec2
fixes after @samdark review
2016-12-01 15:34:03 +01:00
02af14e62f
move JS tests into a separate branch in travis matrix
...
this avoids running JS tests for each PHP version.
2016-12-01 14:51:03 +01:00
7f537d684e
Custom ID generation for Pjax widgets to solve unstable ajax calls (issue #12969 )
...
Implements the solution proposed in the following comment:
https://github.com/yiisoft/yii2/pull/12977#issuecomment-260123078
2016-12-01 14:27:20 +01:00
8ea1f510af
Implemented Javascript test suite
...
fixes #12840
Used @nkovacs draft as starting
point(https://github.com/yiisoft/yii2/issues/11037#issuecomment-193356450 ).
I also fixed some bugs in `yii.validation.js` and did some refactoring.
Implemented tests:
- yii.validation.js
Running tests:
- Install Node.js. I used the latest version available at the moment -
`v7.1.0`. Note that used `jsdom` dependent library version requires
`Node.js >= 4`.
- Run `npm install` to install dependencies.
- Execute `npm test` for running tests.
2016-12-01 11:25:18 +01:00
47ece37b5a
Merge branch 'prepare-travis-for-js'
...
* prepare-travis-for-js:
remove CUBRID env from travis it is unused
Install APC on Ubuntu trusty
Fix MySQL database setup for ubuntu trusty
Switch travis OR from precise to trusty
2016-12-01 11:12:44 +01:00
4e4a6f69e3
remove CUBRID env from travis it is unused
2016-12-01 11:11:28 +01:00
e94ca4793b
Install APC on Ubuntu trusty
...
Trusty does not have APC preinstalled (see
https://github.com/travis-ci/travis-ci/issues/5618 ,
https://github.com/travis-ci/travis-ci/issues/6853 ) so we need to
install it manually using PECL. `yes ''` allows to skip prompts and fill
it with default values.
2016-12-01 11:10:13 +01:00
729ddc5b76
Select only primary keys in UniqueValidator ( #10896 ) ( #13098 )
...
fixes #10896
2016-12-01 10:45:58 +01:00
8c0a431c66
Fix MySQL database setup for ubuntu trusty
2016-12-01 10:33:59 +01:00
081ee7c5b1
Implemented shortcut methods for returning JSON and XML ( #13101 )
...
fixes #13036
2016-12-01 10:33:49 +01:00
a7ee60f9d2
Switch travis OR from precise to trusty
...
Switch from precise to trusty is required mainly because of jsdom
dependency. It requires Node.js > 4. Precise has very old Node.js and
NPM versions and they can not be updated because of default versions of
C++ compilers. While it's possible somehow to install Node 6 on Precise,
see this [document](https://github.com/nodesource/distributions/blob/master/OLDER_DISTROS.md ),
I think this is not elegant solution and I'm not 100%
sure it will work correctly with Travis and container-based precise dist.
Trusty has v6.3.0 by default which is enough and way better and newer.
2016-12-01 10:20:13 +01:00
17e2c16836
Disabled StaticAccess check in codeclimate.yml
...
We use Yii::whatever through all the code so this check does not make sense in Yii project
2016-12-01 11:19:23 +02:00
706fcec374
Use github-no-api for assets plugin. ( #13100 )
...
Possible fix for #12987 . At least for me it fixes travis tests on my fork: https://travis-ci.org/rob006/yii2-dev/branches .
References:
http://www.yiiframework.com/wiki/843/boost-composer-asset-plugin-update-speed/
fxpio/composer-asset-plugin#226
2016-12-01 10:00:20 +01:00
6782954c6a
improved test coverage of HostFilter
...
PR #13063
2016-12-01 01:31:30 +01:00
7da77c3d5a
created HostControl filter to prevent Host header attacks
...
fixes #13050
close #13063
2016-12-01 00:59:26 +01:00
0a9ffc0557
Russian guide typo fixes [skip ci]
2016-11-29 12:40:22 +03:00
18b0dab360
Fixed yii\console\controllers\AssetController::adjustCssUrl() breaks URL reference specification (url(#id))
2016-11-29 10:24:39 +02:00
16a5777e0f
Merge branch 'rob006-create-protocol-relative-url'
...
Closes #13067
Closes #12738
2016-11-29 09:55:04 +02:00
2d91723934
Add support for creating protocol-relative URLs.
...
Improve phpdoc for protocol-relative URL creation.
Remove useless `is_string()` check.
2016-11-29 09:53:51 +02:00
f23dc5aee9
Add attribute to set the openlog $option attribute for SyslogTarget
...
Fixes issue #13074
close #13075
2016-11-29 00:00:24 +01:00
3ce698b0a9
Merge branch 'fphammerle-mysql-comma-in-enum-fix'
2016-11-29 00:22:51 +02:00
46da2df98d
yii\db\mysql\Schema::loadColumnSchema sets enumValues attribute incorrectly if enum definition contains comma
...
(i.e. "enum('a','B','c,D')" -> ['a','B','c','D'] instead of expected ['a','B','c,D'])
2016-11-29 00:21:44 +02:00
7f46ab33cc
Merge branch 'cyphix333-master'
2016-11-29 00:06:37 +02:00
63e650952b
Updated tests for HtmlHelper::textarea()
2016-11-29 00:06:20 +02:00
10ad620cb4
Adds ability for the user to choose if they want to double encode entities within textareas or not when using ActiveForm. Applies enhancement from #12988 .
2016-11-29 00:06:12 +02:00
457e9241e3
Merge pull request #13072 from developeruz/7727-truncate-html-leaves-extra-tags
...
Fixed truncateHtml leaving extra tags (#7727 )
2016-11-28 18:11:42 +02:00
0545bb6936
Fixed truncateHtml leaving extra tags ( #7727 )
2016-11-28 20:29:20 +05:00
b5b62e7a0f
Fix name variable (ttl -> defaultDuration) ( #13083 ) [skip ci]
2016-11-27 21:07:28 +03:00
e705519c5a
Fixes #13071 : Help option for commands was not working in modules
2016-11-27 16:14:08 +03:00
22b2a78a0a
Added test for unique validator with empty values
...
close #7007
2016-11-27 02:37:12 +01:00
a56c598743
Portability fixes for SchemaBuilder on MSSQL
...
Changed timestamp mapping to datetime on MSSQL.
Timestamp is a unique number on MSSQL, not a timestamp.
> https://msdn.microsoft.com/en-us/library/ms182776(v=SQL.90).aspx
> The timestamp data type is just an incrementing number and does not
> preserve a date or a time. To record a date or time, use a datetime data type.
separated from #9191
close #9305
2016-11-27 01:11:30 +01:00
a498dedb5c
Added documentation about Host header attack ( #13073 )
...
* Added documentation about Host header attack
Added info about Host header attack (#13050 ) to the guide and the Request class.
When we introduce a filter or property to protect against this, these
sections should be updated to link to that option.
2016-11-26 21:57:52 +01:00
f1f357bad3
Documentation for Events updated
2016-11-26 12:19:45 +02:00
092430df7d
Merge pull request #13078 from TrueXakeP/patch-1
...
Fix typo in guide-ru/runtime-routing.md
2016-11-26 10:49:26 +02:00
132ba1bd43
Fix typo in runtime-routing.md
2016-11-26 07:29:18 +02:00
87e51837d9
[ci skip] framework/messages/ja/yii.php updated ( #13069 )
...
approved
2016-11-25 08:41:30 +01:00
f4e54a1b5a
Fixed typo in get parameter in docs [skip ci] ( #13066 )
2016-11-24 11:52:44 +03:00
41b3f0db0b
Fixed driver name in MSSQL test
2016-11-22 23:34:35 +03:00
a837c59182
improved error message for Instance::ensure() when component does not exist ( #12967 )
...
fixes #7333
2016-11-22 17:49:55 +01:00
aba42fce4d
Squash merge rebased branch nadar-patch-4
2016-11-22 17:01:38 +01:00
db349527e7
fix typo in guide code block
2016-11-22 16:12:57 +01:00