Skip to content

Commit

Permalink
Merge branch 'release/4.1.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
dawoe committed Jul 22, 2019
2 parents 4add266 + d232af5 commit 0e511ab
Show file tree
Hide file tree
Showing 12 changed files with 41 additions and 24 deletions.
2 changes: 1 addition & 1 deletion Packaging/build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<!-- SHARED PROPERTIES -->
<PropertyGroup>
<PackageName>Dawoe.OEmbedPickerPropertyEditor</PackageName>
<MinUmbracoVersion>8.0.0</MinUmbracoVersion>
<MinUmbracoVersion>8.1.0</MinUmbracoVersion>
<Readme><![CDATA[This package implements a property editor that allows you to easily insert items that support the oEmbed protocol]]></Readme>
<AuthorName>Dave Woestenborghs</AuthorName>
<AuthorUrl>https://github.com/dawoe/</AuthorUrl>
Expand Down
2 changes: 1 addition & 1 deletion Packaging/package.core.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<language></language>
<tags></tags>
<dependencies>
<dependency id="UmbracoCms.Core" version="8.0.0" />
<dependency id="UmbracoCms.Core" version="8.1.0" />
</dependencies>
</metadata>
</package>
4 changes: 2 additions & 2 deletions Packaging/package.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
<language></language>
<tags></tags>
<dependencies>
<dependency id="UmbracoCms.Core" version="8.0.0" />
<dependency id="Dawoe.OEmbedPickerPropertyEditor.Core" version="4.0.0" />
<dependency id="UmbracoCms.Core" version="8.1.0" />
<dependency id="Dawoe.OEmbedPickerPropertyEditor.Core" version="4.1.0" />
</dependencies>
</metadata>
</package>
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ For multiple embeds :

```
@using Dawoe.OEmbedPickerPropertyEditor.Models;
@for(var item in Model.Value<IEnumerable<OEmbedItem>>("propalias"))
@foreach(var item in Model.Value<IEnumerable<OEmbedItem>>("propalias"))
{
<div>@item.EmbedCode</div>
}
Expand Down
2 changes: 1 addition & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
image: Visual Studio 2017

# Version format
version: 4.0.0.{build}
version: 4.1.0.{build}

branches:
only:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="AutoMapper, Version=8.0.0.0, Culture=neutral, PublicKeyToken=be96cd2c38ef1005, processorArchitecture=MSIL">
<HintPath>..\packages\AutoMapper.8.0.0\lib\net461\AutoMapper.dll</HintPath>
<Reference Include="AutoMapper, Version=8.1.1.0, Culture=neutral, PublicKeyToken=be96cd2c38ef1005, processorArchitecture=MSIL">
<HintPath>..\packages\AutoMapper.8.1.1\lib\net461\AutoMapper.dll</HintPath>
</Reference>
<Reference Include="LightInject, Version=5.4.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\LightInject.5.4.0\lib\net46\LightInject.dll</HintPath>
Expand Down Expand Up @@ -93,9 +93,15 @@
<Reference Include="Serilog.Settings.AppSettings, Version=2.0.0.0, Culture=neutral, PublicKeyToken=24c2f752a8e58a10, processorArchitecture=MSIL">
<HintPath>..\packages\Serilog.Settings.AppSettings.2.2.2\lib\net45\Serilog.Settings.AppSettings.dll</HintPath>
</Reference>
<Reference Include="Serilog.Sinks.Async, Version=1.0.0.0, Culture=neutral, PublicKeyToken=24c2f752a8e58a10, processorArchitecture=MSIL">
<HintPath>..\packages\Serilog.Sinks.Async.1.3.0\lib\net45\Serilog.Sinks.Async.dll</HintPath>
</Reference>
<Reference Include="Serilog.Sinks.File, Version=2.0.0.0, Culture=neutral, PublicKeyToken=24c2f752a8e58a10, processorArchitecture=MSIL">
<HintPath>..\packages\Serilog.Sinks.File.4.0.0\lib\net45\Serilog.Sinks.File.dll</HintPath>
</Reference>
<Reference Include="Serilog.Sinks.Map, Version=1.0.0.0, Culture=neutral, PublicKeyToken=24c2f752a8e58a10, processorArchitecture=MSIL">
<HintPath>..\packages\Serilog.Sinks.Map.1.0.0\lib\netstandard2.0\Serilog.Sinks.Map.dll</HintPath>
</Reference>
<Reference Include="Superpower, Version=1.0.0.0, Culture=neutral, PublicKeyToken=aec39280ded1b3a7, processorArchitecture=MSIL">
<HintPath>..\packages\Superpower.2.0.0\lib\net45\Superpower.dll</HintPath>
</Reference>
Expand Down Expand Up @@ -135,7 +141,7 @@
<Reference Include="System.Net.Http" />
<Reference Include="System.Xml" />
<Reference Include="Umbraco.Core, Version=8.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\UmbracoCms.Core.8.0.0\lib\net472\Umbraco.Core.dll</HintPath>
<HintPath>..\packages\UmbracoCms.Core.8.1.0\lib\net472\Umbraco.Core.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("4.0.0.0")]
[assembly: AssemblyFileVersion("4.0.0.0")]
[assembly: AssemblyVersion("4.1.0.0")]
[assembly: AssemblyFileVersion("4.1.0.0")]
6 changes: 4 additions & 2 deletions src/Dawoe.OEmbedPickerPropertyEditor.Web/packages.config
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="AutoMapper" version="8.0.0" targetFramework="net472" />
<package id="AutoMapper" version="8.1.1" targetFramework="net472" />
<package id="LightInject" version="5.4.0" targetFramework="net472" />
<package id="LightInject.Annotation" version="1.1.0" targetFramework="net472" />
<package id="LightInject.Web" version="2.0.0" targetFramework="net472" />
Expand All @@ -21,10 +21,12 @@
<package id="Serilog.Formatting.Compact" version="1.0.0" targetFramework="net472" />
<package id="Serilog.Formatting.Compact.Reader" version="1.0.3" targetFramework="net472" />
<package id="Serilog.Settings.AppSettings" version="2.2.2" targetFramework="net472" />
<package id="Serilog.Sinks.Async" version="1.3.0" targetFramework="net472" />
<package id="Serilog.Sinks.File" version="4.0.0" targetFramework="net472" />
<package id="Serilog.Sinks.Map" version="1.0.0" targetFramework="net472" />
<package id="Superpower" version="2.0.0" targetFramework="net472" />
<package id="System.Diagnostics.DiagnosticSource" version="4.4.1" targetFramework="net472" />
<package id="System.ValueTuple" version="4.5.0" targetFramework="net472" />
<package id="Umbraco.SqlServerCE" version="4.0.0.1" targetFramework="net472" />
<package id="UmbracoCms.Core" version="8.0.0" targetFramework="net472" />
<package id="UmbracoCms.Core" version="8.1.0" targetFramework="net472" />
</packages>
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="AutoMapper, Version=8.0.0.0, Culture=neutral, PublicKeyToken=be96cd2c38ef1005, processorArchitecture=MSIL">
<HintPath>..\packages\AutoMapper.8.0.0\lib\net461\AutoMapper.dll</HintPath>
<Reference Include="AutoMapper, Version=8.1.1.0, Culture=neutral, PublicKeyToken=be96cd2c38ef1005, processorArchitecture=MSIL">
<HintPath>..\packages\AutoMapper.8.1.1\lib\net461\AutoMapper.dll</HintPath>
</Reference>
<Reference Include="LightInject, Version=5.4.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\LightInject.5.4.0\lib\net46\LightInject.dll</HintPath>
Expand Down Expand Up @@ -93,9 +93,15 @@
<Reference Include="Serilog.Settings.AppSettings, Version=2.0.0.0, Culture=neutral, PublicKeyToken=24c2f752a8e58a10, processorArchitecture=MSIL">
<HintPath>..\packages\Serilog.Settings.AppSettings.2.2.2\lib\net45\Serilog.Settings.AppSettings.dll</HintPath>
</Reference>
<Reference Include="Serilog.Sinks.Async, Version=1.0.0.0, Culture=neutral, PublicKeyToken=24c2f752a8e58a10, processorArchitecture=MSIL">
<HintPath>..\packages\Serilog.Sinks.Async.1.3.0\lib\net45\Serilog.Sinks.Async.dll</HintPath>
</Reference>
<Reference Include="Serilog.Sinks.File, Version=2.0.0.0, Culture=neutral, PublicKeyToken=24c2f752a8e58a10, processorArchitecture=MSIL">
<HintPath>..\packages\Serilog.Sinks.File.4.0.0\lib\net45\Serilog.Sinks.File.dll</HintPath>
</Reference>
<Reference Include="Serilog.Sinks.Map, Version=1.0.0.0, Culture=neutral, PublicKeyToken=24c2f752a8e58a10, processorArchitecture=MSIL">
<HintPath>..\packages\Serilog.Sinks.Map.1.0.0\lib\netstandard2.0\Serilog.Sinks.Map.dll</HintPath>
</Reference>
<Reference Include="Superpower, Version=1.0.0.0, Culture=neutral, PublicKeyToken=aec39280ded1b3a7, processorArchitecture=MSIL">
<HintPath>..\packages\Superpower.2.0.0\lib\net45\Superpower.dll</HintPath>
</Reference>
Expand Down Expand Up @@ -135,7 +141,7 @@
<Reference Include="System.Net.Http" />
<Reference Include="System.Xml" />
<Reference Include="Umbraco.Core, Version=8.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\UmbracoCms.Core.8.0.0\lib\net472\Umbraco.Core.dll</HintPath>
<HintPath>..\packages\UmbracoCms.Core.8.1.0\lib\net472\Umbraco.Core.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("4.0.0.0")]
[assembly: AssemblyFileVersion("4.0.0.0")]
[assembly: AssemblyVersion("4.1.0.0")]
[assembly: AssemblyFileVersion("4.1.0.0")]
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@
public class OEmbedPickerValueConverter : PropertyValueConverterBase
{
/// <inheritdoc />
public override bool IsConverter(PublishedPropertyType propertyType) =>
public override bool IsConverter(IPublishedPropertyType propertyType) =>
Constants.DataEditorAlias.Equals(propertyType.EditorAlias);

/// <inheritdoc />
public override Type GetPropertyValueType(PublishedPropertyType propertyType) =>
public override Type GetPropertyValueType(IPublishedPropertyType propertyType) =>
propertyType.DataType.ConfigurationAs<OEmbedPickerConfiguration>().AllowMultiple
? typeof(IEnumerable<OEmbedItem>)
: typeof(OEmbedItem);
Expand All @@ -33,14 +33,15 @@ public override Type GetPropertyValueType(PublishedPropertyType propertyType) =>
/// <inheritdoc />
public override object ConvertSourceToIntermediate(
IPublishedElement owner,
PublishedPropertyType propertyType,
IPublishedPropertyType propertyType,
object source,
bool preview) =>
source?.ToString();

/// <inheritdoc />
public override object ConvertIntermediateToObject(
IPublishedElement owner,
PublishedPropertyType propertyType,
IPublishedPropertyType propertyType,
PropertyCacheLevel referenceCacheLevel,
object inter,
bool preview)
Expand Down
6 changes: 4 additions & 2 deletions src/Dawoe.OEmbedPickerPropertyEditor/packages.config
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="AutoMapper" version="8.0.0" targetFramework="net472" />
<package id="AutoMapper" version="8.1.1" targetFramework="net472" />
<package id="LightInject" version="5.4.0" targetFramework="net472" />
<package id="LightInject.Annotation" version="1.1.0" targetFramework="net472" />
<package id="LightInject.Web" version="2.0.0" targetFramework="net472" />
Expand All @@ -21,10 +21,12 @@
<package id="Serilog.Formatting.Compact" version="1.0.0" targetFramework="net472" />
<package id="Serilog.Formatting.Compact.Reader" version="1.0.3" targetFramework="net472" />
<package id="Serilog.Settings.AppSettings" version="2.2.2" targetFramework="net472" />
<package id="Serilog.Sinks.Async" version="1.3.0" targetFramework="net472" />
<package id="Serilog.Sinks.File" version="4.0.0" targetFramework="net472" />
<package id="Serilog.Sinks.Map" version="1.0.0" targetFramework="net472" />
<package id="Superpower" version="2.0.0" targetFramework="net472" />
<package id="System.Diagnostics.DiagnosticSource" version="4.4.1" targetFramework="net472" />
<package id="System.ValueTuple" version="4.5.0" targetFramework="net472" />
<package id="Umbraco.SqlServerCE" version="4.0.0.1" targetFramework="net472" />
<package id="UmbracoCms.Core" version="8.0.0" targetFramework="net472" />
<package id="UmbracoCms.Core" version="8.1.0" targetFramework="net472" />
</packages>

0 comments on commit 0e511ab

Please sign in to comment.