Skip to content

Commit dbed04e

Browse files
Michael SchwarzMichael Schwarz
authored andcommitted
fixed wrong assembly versions in different files
1 parent b2d9bb3 commit dbed04e

File tree

6 files changed

+206
-211
lines changed

6 files changed

+206
-211
lines changed

AjaxPro/AssemblyInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@
9292
// You can specify all the values or you can default the Revision and Build Numbers
9393
// by using the '*' as shown below:
9494

95-
[assembly: AssemblyVersion("21.12.6.1")] // do not remove the blanks!!!!
95+
[assembly: AssemblyVersion(AjaxPro.Constant.AssemblyVersion)]
9696

9797
//
9898
// In order to sign your assembly you must specify a key to use. Refer to the

AjaxPro/Handler/ConverterJavaScriptHandler.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ public void ProcessRequest(HttpContext context)
105105
context.Response.Cache.SetLastModified(lastMod);
106106

107107
context.Response.Write(@"//--------------------------------------------------------------
108-
// Copyright (C) 2006 Michael Schwarz (http://www.ajaxpro.info).
108+
// Copyright (C) 2021 Michael Schwarz (http://www.ajaxpro.info).
109109
// All rights reserved.
110110
//--------------------------------------------------------------
111111
// Converter.js

AjaxPro/Handler/EmbeddedJavaScriptHandler.cs

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ public void ProcessRequest(HttpContext context)
116116
context.Response.Cache.SetLastModified(lastMod);
117117

118118
context.Response.Write(@"//--------------------------------------------------------------
119-
// Copyright (C) 2006 Michael Schwarz (http://www.ajaxpro.info).
119+
// Copyright (C) 2021 Michael Schwarz (http://www.ajaxpro.info).
120120
// All rights reserved.
121121
//--------------------------------------------------------------
122122
@@ -138,15 +138,17 @@ public void ProcessRequest(HttpContext context)
138138

139139
if (s != null)
140140
{
141-
System.IO.StreamReader sr = new System.IO.StreamReader(s);
141+
string content = "";
142142

143-
context.Response.Write("// " + files[i] + ".js\r\n");
143+
using (System.IO.StreamReader sr = new System.IO.StreamReader(s))
144+
{
145+
content = sr.ReadToEnd();
146+
}
144147

145-
context.Response.Write(sr.ReadToEnd());
148+
context.Response.Write("// " + files[i] + ".js\r\n");
149+
context.Response.Write(content.Replace("{AssemblyVersion}", Constant.AssemblyVersion));
146150
context.Response.Write("\r\n");
147151

148-
sr.Close();
149-
150152
if (files[i] == "prototype" && AjaxPro.Utility.Settings.OldStyle.Contains("objectExtendPrototype"))
151153
{
152154
context.Response.Write(@"

AjaxPro/Handler/TypeJavaScriptHandler.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -161,13 +161,8 @@ public void ProcessRequest(HttpContext context)
161161
// Build the javascript source and save it to the current
162162
// Application context.
163163

164-
165164
string url = context.Request.ApplicationPath + (context.Request.ApplicationPath.EndsWith("/") ? "" : "/") + Utility.HandlerPath + "/" + AjaxPro.Utility.GetSessionUri() + path + Utility.HandlerExtension;
166165

167-
168-
169-
170-
171166
// find all methods that are able to be used with AjaxPro
172167

173168
MethodInfo[] mi = type.GetMethods();

AjaxPro/Utilities/Constant.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,6 @@ public sealed class Constant
5252
/// <summary>
5353
/// The assembly version.
5454
/// </summary>
55-
public const string AssemblyVersion = "21.10.27.1";
55+
public const string AssemblyVersion = "21.12.8.1";
5656
}
5757
}

0 commit comments

Comments
 (0)