Skip to content

Commit 1b718d5

Browse files
authored
Merge pull request #7 from geeklearningio/release/0.2.0
Release/0.2.0
2 parents 2591c9a + 2e08d9f commit 1b718d5

21 files changed

+380
-39
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,4 +242,5 @@ ModelManifest.xml
242242
.paket/paket.exe
243243

244244
# FAKE - F# Make
245-
.fake/
245+
.fake/
246+
/tests/GeekLearning.Email.Integration.Test/appsettings.development.json

GeekLearning.Email.sln

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
Microsoft Visual Studio Solution File, Format Version 12.00
33
# Visual Studio 14
4-
VisualStudioVersion = 14.0.25123.0
4+
VisualStudioVersion = 14.0.25420.1
55
MinimumVisualStudioVersion = 10.0.40219.1
66
Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "GeekLearning.Email", "src\GeekLearning.Email\GeekLearning.Email.xproj", "{474EEA84-EBFB-4925-BDC2-619C21E7EBC9}"
77
EndProject
@@ -11,6 +11,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
1111
ProjectSection(SolutionItems) = preProject
1212
.gitattributes = .gitattributes
1313
.gitignore = .gitignore
14+
GitVersion.yml = GitVersion.yml
1415
global.json = global.json
1516
LICENSE.md = LICENSE.md
1617
README.md = README.md
@@ -20,6 +21,10 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "samples", "samples", "{6898
2021
EndProject
2122
Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "GeekLearning.Email.Samples", "samples\GeekLearning.Email.Samples\GeekLearning.Email.Samples.xproj", "{EDA94EFF-7FF4-4C79-BC52-93BC7E696FF6}"
2223
EndProject
24+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "tests", "tests", "{8DF5B138-1052-4991-88EF-FF23AE1DCC34}"
25+
EndProject
26+
Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "GeekLearning.Email.Integration.Test", "tests\GeekLearning.Email.Integration.Test\GeekLearning.Email.Integration.Test.xproj", "{86B313ED-41D4-424F-A172-7D0E8EEE5E49}"
27+
EndProject
2328
Global
2429
GlobalSection(SolutionConfigurationPlatforms) = preSolution
2530
Debug|Any CPU = Debug|Any CPU
@@ -34,12 +39,17 @@ Global
3439
{EDA94EFF-7FF4-4C79-BC52-93BC7E696FF6}.Debug|Any CPU.Build.0 = Debug|Any CPU
3540
{EDA94EFF-7FF4-4C79-BC52-93BC7E696FF6}.Release|Any CPU.ActiveCfg = Release|Any CPU
3641
{EDA94EFF-7FF4-4C79-BC52-93BC7E696FF6}.Release|Any CPU.Build.0 = Release|Any CPU
42+
{86B313ED-41D4-424F-A172-7D0E8EEE5E49}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
43+
{86B313ED-41D4-424F-A172-7D0E8EEE5E49}.Debug|Any CPU.Build.0 = Debug|Any CPU
44+
{86B313ED-41D4-424F-A172-7D0E8EEE5E49}.Release|Any CPU.ActiveCfg = Release|Any CPU
45+
{86B313ED-41D4-424F-A172-7D0E8EEE5E49}.Release|Any CPU.Build.0 = Release|Any CPU
3746
EndGlobalSection
3847
GlobalSection(SolutionProperties) = preSolution
3948
HideSolutionNode = FALSE
4049
EndGlobalSection
4150
GlobalSection(NestedProjects) = preSolution
4251
{474EEA84-EBFB-4925-BDC2-619C21E7EBC9} = {01E85AC0-EFEF-4564-9EE9-9A124776B72E}
4352
{EDA94EFF-7FF4-4C79-BC52-93BC7E696FF6} = {68985ADC-F984-4594-AF38-6A6EEFB2DFDE}
53+
{86B313ED-41D4-424F-A172-7D0E8EEE5E49} = {8DF5B138-1052-4991-88EF-FF23AE1DCC34}
4454
EndGlobalSection
4555
EndGlobal

GitVersion.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
branches:
2+
dev(elop)?(ment)?$:
3+
tag: alpha
4+
features?[/-]:
5+
tag: alpha.{BranchName}
6+
releases?[/-]:
7+
mode: ContinuousDeployment
8+
hotfix(es)?[/-]:
9+
mode: ContinuousDeployment

global.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
{
2-
"projects": [ "src", "test" ],
3-
"sdk": {
4-
"version": "1.0.0-preview1-002702"
5-
}
2+
"projects": [ "src", "tests", "samples" ],
3+
"sdk": { "version": "1.0.0-preview2-003121" }
64
}

samples/GeekLearning.Email.Samples/Startup.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,19 @@ public Startup(IHostingEnvironment env)
2222
.AddJsonFile($"appsettings.{env.EnvironmentName}.json", optional: true)
2323
.AddEnvironmentVariables();
2424
Configuration = builder.Build();
25+
this.HostingEnvironment = env;
2526
}
2627

2728
public IConfigurationRoot Configuration { get; }
29+
public IHostingEnvironment HostingEnvironment { get; }
2830

2931
// This method gets called by the runtime. Use this method to add services to the container.
3032
public void ConfigureServices(IServiceCollection services)
3133
{
3234
// Add framework services.
3335
services.AddMvc();
3436

35-
services.AddStorage().AddFileSystemStorage();
37+
services.AddStorage().AddFileSystemStorage(this.HostingEnvironment.ContentRootPath);
3638
services.Configure<StorageOptions>(Configuration.GetSection("Storage"));
3739
services.AddTemplating().AddHandlebars();
3840

samples/GeekLearning.Email.Samples/Templates/Invitation-BodyHtml.hbs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,4 @@
1313
<span style="font-size:10pt;">This is an invitation to {{ApplicationName}}.</span>
1414
</font>
1515
</div>
16+
{{> Footer-Html}}
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
Hi {{User.DisplayName}},
22

3-
This is an invitation to {{ApplicationName}}.
3+
This is an invitation to {{ApplicationName}}.
4+
{{> Footer-Text}}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<div style="margin:0;">
2+
<font face="Calibri,sans-serif" size="2">
3+
<span style="font-size:10pt;">This is an awesome footer.</span>
4+
</font>
5+
</div>
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
--
2+
This is an awesome footer

samples/GeekLearning.Email.Samples/project.json

Lines changed: 18 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,39 @@
11
{
22
"dependencies": {
33
"Microsoft.NETCore.App": {
4-
"version": "1.0.0-rc2-3002702",
4+
"version": "1.0.0",
55
"type": "platform"
66
},
7-
"Microsoft.AspNetCore.Diagnostics": "1.0.0-rc2-final",
8-
"Microsoft.AspNetCore.Mvc": "1.0.0-rc2-final",
7+
"Microsoft.AspNetCore.Diagnostics": "1.0.0",
8+
"Microsoft.AspNetCore.Mvc": "1.0.0",
99
"Microsoft.AspNetCore.Razor.Tools": {
10-
"version": "1.0.0-preview1-final",
10+
"version": "1.0.0-preview2-final",
1111
"type": "build"
1212
},
13-
"Microsoft.AspNetCore.Server.IISIntegration": "1.0.0-rc2-final",
14-
"Microsoft.AspNetCore.Server.Kestrel": "1.0.0-rc2-final",
15-
"Microsoft.AspNetCore.StaticFiles": "1.0.0-rc2-final",
16-
"Microsoft.Extensions.Configuration.EnvironmentVariables": "1.0.0-rc2-final",
17-
"Microsoft.Extensions.Configuration.Json": "1.0.0-rc2-final",
18-
"Microsoft.Extensions.Logging": "1.0.0-rc2-final",
19-
"Microsoft.Extensions.Logging.Console": "1.0.0-rc2-final",
20-
"Microsoft.Extensions.Logging.Debug": "1.0.0-rc2-final",
21-
"Microsoft.VisualStudio.Web.BrowserLink.Loader": "14.0.0-rc2-final",
22-
"Microsoft.Extensions.Options.ConfigurationExtensions": "1.0.0-rc2-final",
23-
"GeekLearning.Storage.FileSystem": "0.2.0",
24-
"GeekLearning.Templating.Handlebars": "0.2.1",
13+
"Microsoft.AspNetCore.Server.IISIntegration": "1.0.0",
14+
"Microsoft.AspNetCore.Server.Kestrel": "1.0.0",
15+
"Microsoft.AspNetCore.StaticFiles": "1.0.0",
16+
"Microsoft.Extensions.Configuration.EnvironmentVariables": "1.0.0",
17+
"Microsoft.Extensions.Configuration.Json": "1.0.0",
18+
"Microsoft.Extensions.Logging": "1.0.0",
19+
"Microsoft.Extensions.Logging.Console": "1.0.0",
20+
"Microsoft.Extensions.Logging.Debug": "1.0.0",
21+
"Microsoft.VisualStudio.Web.BrowserLink.Loader": "14.0.0",
22+
"Microsoft.Extensions.Options.ConfigurationExtensions": "1.0.0",
23+
"GeekLearning.Storage.FileSystem": "0.3.0-*",
24+
"GeekLearning.Templating.Handlebars": "0.3.0-*",
2525
"GeekLearning.Email": "*"
2626
},
2727

2828
"tools": {
29-
"Microsoft.AspNetCore.Razor.Tools": {
30-
"version": "1.0.0-preview1-final",
31-
"imports": "portable-net45+win8+dnxcore50"
32-
},
33-
"Microsoft.AspNetCore.Server.IISIntegration.Tools": {
34-
"version": "1.0.0-preview1-final",
35-
"imports": "portable-net45+win8+dnxcore50"
36-
}
29+
"Microsoft.AspNetCore.Razor.Tools": "1.0.0-preview2-final",
30+
"Microsoft.AspNetCore.Server.IISIntegration.Tools": "1.0.0-preview2-final"
3731
},
3832

3933
"frameworks": {
4034
"netcoreapp1.0": {
4135
"imports": [
4236
"dotnet5.6",
43-
"dnxcore50",
4437
"portable-net45+win8"
4538
]
4639
}

0 commit comments

Comments
 (0)