Commit Graph

40929 Commits

Author SHA1 Message Date
damianedwards 5c7d811aa6 Fix the merge 2015-05-20 16:22:54 -07:00
damianedwards e5a0918054 Merge branch 'dev' of https://github.com/hishamco/Localization into hishamco-dev
Conflicts:
	src/Microsoft.AspNet.Localization/CustomRequestCultureStrategy.cs
	src/Microsoft.AspNet.Localization/IApplicationBuilderExtensions.cs
	src/Microsoft.Framework.Localization/ResourceManagerStringLocalizer.cs
2015-05-20 16:17:57 -07:00
Chris R 2168176149 #276 #277 Fix ini loading, read location from command line. 2015-05-20 16:10:58 -07:00
Kiran Challa 7ed6802bba Reacting to Caching api review changes 2015-05-20 15:15:12 -07:00
Kirthi Krishnamraju b75a855b98 React to aspnet/Congifuration #195,#198 2015-05-20 14:54:33 -07:00
damianedwards 4ba159afe7 Removed Moq from tests & enabled .NET Core
- Introduced AssemblyWrapper to enable testing
- Cleaned up properties on ResourceManagerStringLocalizer
- #15

Change "Strategy" to "Provider"
- #19
2015-05-20 14:41:52 -07:00
damianedwards 9384848cc7 Cache walk of the culture tree when building resource name list:
- #15
2015-05-20 14:41:36 -07:00
Ajay Bhargav Baaskaran aaa14cd36b More bug fix for #379 2015-05-20 13:55:12 -07:00
Chris R 5694f79af4 React to IRequestCookieFeature API change. 2015-05-20 12:51:38 -07:00
Chris R 69849cc37c #311 Move UseMiddleware to Http.Abstractions. 2015-05-20 12:42:54 -07:00
Troy Dai f6119d4856 Update references
Microsoft.Framework.NotNullAttribute.Internal =>
Microsoft.Framework.NotNullAttribute.Sources
2015-05-20 12:41:17 -07:00
Troy Dai e86f571011 Update dependency, react to Microsoft.Framework.NotNullAttribute.Sources 2015-05-20 12:38:31 -07:00
Troy Dai 1566f72063 Update TestHost's dependencies 2015-05-20 12:24:38 -07:00
Doug Bunting 75c1efeec7 Fix `target-dir-clean` target
- not currently cleaning in most cases
- typo in 16bb0df
2015-05-20 12:02:39 -07:00
Doug Bunting 0e296283f9 Address a round of nits
- clean up trailing curly braces (Java style)
 - affected lots of files touched for #89 fix
- a couple of trailing whitespace removals
2015-05-19 17:39:26 -07:00
Ajay Bhargav Baaskaran 47577fd936 [Fixes #379] Ignoring whitespace at the end of text tag 2015-05-19 17:21:28 -07:00
N. Taylor Mullen 58c0a36200 Add support for null conditional operators in implicit expressions.
- Added case in ImplicitExpression handling to understand question marks.
- text?. is special compared to text. because with text. we currently validate content after text. to determine if it's an expression or if it's a period. Now with ?. we always treat it as an expression because ?. is not a useful sentance of any kind.
- Added unit tests to validate new implicit expression handling
- Added runtime and design time code generation tests to validate null conditional operators.

#44
2015-05-19 16:34:08 -07:00
Ryan Nowak fa56df93c3 Fix #2407 - Part 1 - Make model binding behavior for [Required] compatible
with MVC5.

This change removes the behavior in model binding to validate values 'on
the wire' for requiredness instead of the looking at the model. This
restores the behavior of [Required] for model binding to the MVC5
semantics.
2015-05-19 15:57:56 -07:00
moozzyk 16bb0df055 Replacing `directory delete` with `rimraf` in the `target-dir-clean` target
`directory delete` fails for read-only files
2015-05-19 09:27:16 -07:00
Eilon Lipton 807a467429 Merge pull request #618 from marcusoftnet/osXSourceDnvmShInstructions
Added instructions on how to source dnvm.sh on OsX
2015-05-19 00:00:03 -07:00
Marcus Hammarberg ef07010f41 Added instructions on how to source dnvm.sh on OsX 2015-05-19 13:41:18 +07:00
N. Taylor Mullen b25bf01158 Add TagHelper support for unbound data- attributes.
- Involved updating the HtmlMarkupParser to properly separate data- attributes. Prior to this change `data-foo="abc @DateTime.Now def"` would involve 1 Span for `data-foo="abc` 1 Span for `@DateTime.Now` and 1 Span for `def"`. This was very unique behavior from an attribute standpoint (as far as Razor is concerned) and made it difficult for the TagHelper rewriting system to rewrite attributes. With this change it gets broken out as follows: `|data-foo="|abc| @DateTime.Now| def|"|`.
- Added unit tests to validate the various ways you can write unbound data- attributes.
- Updated the BasicTagHelpers codegeneration test to intermix some unbound data- attributes.

#342
2015-05-18 22:43:03 -07:00
N. Taylor Mullen 407a2ceae6 Remove unneeded NamespaceKeywordLength from AddImportCodeGenerator.
- This was completely unused outside of the AddImportCodeGenerator.
2015-05-18 17:21:50 -07:00
Ajay Bhargav Baaskaran 48e0b3261c [Fixes #2547] Fixed attribute value prefix with dynamic content being ignored 2015-05-18 17:15:38 -07:00
damianedwards b86af22c4d Fix inconsistent terminology name/key 2015-05-18 16:48:59 -07:00
N. Taylor Mullen a0813faa48 React to default hosting environment change.
- Default hosting environment was changed from Development to Production, modified EnvironmentTagHelper functional test.
2015-05-18 16:16:17 -07:00
Eilon Lipton 1af741519f Merge pull request #613 from thekane/typo
lowercase mono-complete package name
2015-05-18 16:14:47 -07:00
Kirthi Krishnamraju d298c9206e React to aspnet/Configuration #197 2015-05-18 15:35:41 -07:00
Suhas Joshi 170bad48c4 Fixed formatting 2015-05-18 15:26:46 -07:00
Suhas Joshi f8fa1eef0f Adding support to pin version and tag prerelease 2015-05-18 15:02:56 -07:00
Eilon Lipton 545af137a0 Merge pull request #484 from henkmollema/patch-1
Update README.md
2015-05-18 14:41:16 -07:00
Henk Mollema 16b9a79a82 Update README.md
- ASP.NET 5.0 -> ASP.NET 5
- KVM -> DNVM
- Minor text changes
2015-05-18 23:38:14 +02:00
Brice Lambson 281c42ba1c Don't run tests using bin/debug/app/project.json files 2015-05-18 14:04:26 -07:00
damianedwards 6abeff9f09 Add missing [NotNull] attributes on StringLocalizerExtensions 2015-05-18 12:12:47 -07:00
Chris R 179bdbf903 #82 Implement ITlsTokenBindingFeature. 2015-05-18 11:44:45 -07:00
Suhas Joshi b2d34bfb6b Disabling tests to unblock CI 2015-05-18 11:38:16 -07:00
damianedwards cda137ca9f Drop leading "I" from IStringLocalizerExtensions 2015-05-18 10:11:01 -07:00
thekane 598e0fd377 lowercase mono-complete package name 2015-05-17 14:50:56 -06:00
David Fowler ac1e0aeee3 Fixed remaining refs 2015-05-17 10:25:42 -07:00
David Fowler 3124cdd641 Remove ConfigureServicesDelegate
- Removed the delegate type as it's not used anywhere in user code
- Also removed platform helper
2015-05-17 10:19:03 -07:00
David Fowler 83a8fd136f Fix tabs 2015-05-17 09:07:21 -07:00
Eilon Lipton 99c7859608 Fix build break due to Configuration rename 2015-05-16 23:42:42 -07:00
Eilon Lipton d5cfe839db Merge pull request #459 from hishamco/dev
Using 'nameof' operator instead of magic strings
2015-05-16 22:52:08 -07:00
Doug Bunting 94f2f904b3 Add `[HtmlAttributeName(..., DictionaryAttributePrefix="prefix")]` part II
- relates to #89 because that changes `string` property checks and needs this refactor
- determine `string`-ness when creating `TagHelperAttributeDescriptor`s
 - add `TagHelperAttributeDescriptor.IsStringProperty` (set in constructor)
 - avoid repeated `string` comparisons and be more explicit
- change `TagHelperBlockRewriter` to centralize more of the `string`-ness determination
 - also add `TryParseResult` DTO, avoiding multiple `out` parameters
- refactor `CSharpTagHelperCodeRenderer` to allow reuse of core attribute value rendering
- test all of it
 - add `TagHelperDescriptorTest` to confirm serialization / deserialization

minor:
- fix `TagHelperBlockRewriter.TryParseBlock()` end quote removal when tag is malformed

nits:
- remove dangling mention of fixed bug #220
- make recently-added `TagHelperBlockRewriterTest` tests realistic
 - multiple `TagHelperDescriptor`s for same tag helper have identical `Attributes`
2015-05-15 23:17:52 -07:00
Chris R 7ae1941c83 Enable additional WebListener response tests. 2015-05-15 15:11:29 -07:00
Chris R 2681e8b3d1 #112, #113 Sort out default response modes, allow manual chunking. 2015-05-15 14:55:54 -07:00
Chris R 0e87d989d7 #272 Make HostingEnvironment default to Production. 2015-05-15 14:45:34 -07:00
Hao Kung 5b851c49a3 Throw when ConfigureServices has wrong signature 2015-05-15 13:46:58 -07:00
damianedwards 2ba7049648 Moved methods off of IStringLocalizer and into extension methods 2015-05-15 12:37:02 -07:00
Ajay Bhargav Baaskaran 47bfba11b9 React to aspnet/Razor#217 fix 2015-05-15 12:28:43 -07:00