Skip to content

Commit c48ced4

Browse files
committed
Merged revision(s) 4508-4551, 3462-4508 from tags/version-4.8.7:
This updates the trunk with changes made in release 4.8.7.
1 parent 2a1738b commit c48ced4

File tree

7 files changed

+36
-20
lines changed

7 files changed

+36
-20
lines changed

Docs/ChangeLogs/ChangeLog-v4.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@
1111
; Change Log for CodeSnip Release 4
1212
; ------------------------------------------------------------------------------
1313

14+
Release v4.8.7 of 06 March 2014
15+
+ Changed so that automatic bug checker now correctly records last update date. This fixes bug #93 (http://bit.ly/NmSQUt).
16+
+ Updated to use v2 of the DelphiDabbler CodeSnip update web service when checking for availability of program updates.
17+
+ Minor corrections to help file.
18+
1419
Release v4.8.6 of 28 February 2014
1520
+ Improved operating system detection to handle Windows 8.1.
1621
+ Added compatibility section to application manifest that declares the program has been tested with Windows Vista and Windows 7.

Src/Help/HTML/dlg_favourites.htm

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* v. 2.0. If a copy of the MPL was not distributed with this file, You can
55
* obtain one at http://mozilla.org/MPL/2.0/
66
*
7-
* Copyright (C) 2013, Peter Johnson (www.delphidabbler.com).
7+
* Copyright (C) 2013-2014, Peter Johnson (www.delphidabbler.com).
88
*
99
* $Rev$
1010
* $Date$
@@ -27,14 +27,12 @@
2727
<param name="ALink Name" value="FavouritesDlg">
2828
</object>
2929
<h1>
30-
Favorites Dialogue Box
30+
Favourites Dialogue Box
3131
</h1>
3232
<p>
3333
The user's favourite snippets can be accessed and managed from this
34-
dialogue box. It is displayed from the <em>Snippets | Favourites</em>
35-
menu option, the <img
36-
alt="Menu icon" src="../images/Favourites.png" class="glyph"
37-
> toolbar, or by pressing <span class="smallcaps">F4</span>.
34+
dialogue box. It is displayed from the <em>Snippets | Show Favourites</em>
35+
menu option or by pressing <span class="smallcaps">F4</span>.
3836
</p>
3937
<p>
4038
The dialogue box is non-modal so you can continue using <em>CodeSnip</em>

Src/Help/HTML/dlg_findcompiler.htm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* v. 2.0. If a copy of the MPL was not distributed with this file, You can
55
* obtain one at http://mozilla.org/MPL/2.0/
66
*
7-
* Copyright (C) 2005-2012, Peter Johnson (www.delphidabbler.com).
7+
* Copyright (C) 2005-2014, Peter Johnson (www.delphidabbler.com).
88
*
99
* $Rev$
1010
* $Date$
@@ -32,7 +32,7 @@ <h1>
3232
<p>
3333
This dialogue box enables snippets to be searched for by their
3434
relationship with various compilers. It is accessed from the <em>Search |
35-
Compiler</em> menu option.
35+
Find Compiler</em> menu option.
3636
</p>
3737
<p>
3838
The dialogue works by applying a search criteria to any or all of a

Src/UUpdateCheckers.pas

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* v. 2.0. If a copy of the MPL was not distributed with this file, You can
44
* obtain one at http://mozilla.org/MPL/2.0/
55
*
6-
* Copyright (C) 2013, Peter Johnson (www.delphidabbler.com).
6+
* Copyright (C) 2013-2014, Peter Johnson (www.delphidabbler.com).
77
*
88
* $Rev$
99
* $Date$
@@ -207,10 +207,8 @@ function TUpdateCheckerThread.GetNotification(out N: TNotificationData):
207207
try
208208
if not CanUpdate then
209209
Exit(False);
210-
if not DoCheck(N) then
211-
Exit(False);
210+
Result := DoCheck(N);
212211
RecordUpdate;
213-
Result := True;
214212
except
215213
// Swallow any exception and return false to indicate "no update"
216214
Result := False;

Src/VCodeSnip.vi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111

1212

1313
[Fixed File Info]
14-
File Version #=4, 8, 6, 244
15-
Product Version #=4, 8, 6, 0
14+
File Version #=4, 8, 7, 245
15+
Product Version #=4, 8, 7, 0
1616
File OS=4
1717
File Type=1
1818
File Sub-Type=0

Src/VCodeSnipPortable.vi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111

1212

1313
[Fixed File Info]
14-
File Version #=4, 8, 6, 244
15-
Product Version #=4, 8, 6, 0
14+
File Version #=4, 8, 7, 245
15+
Product Version #=4, 8, 7, 0
1616
File OS=4
1717
File Type=1
1818
File Sub-Type=0

Src/Web.UProgramUpdateMgr.pas

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* v. 2.0. If a copy of the MPL was not distributed with this file, You can
44
* obtain one at http://mozilla.org/MPL/2.0/
55
*
6-
* Copyright (C) 2012-2013, Peter Johnson (www.delphidabbler.com).
6+
* Copyright (C) 2012-2014, Peter Johnson (www.delphidabbler.com).
77
*
88
* $Rev$
99
* $Date$
@@ -26,7 +26,7 @@ interface
2626

2727
type
2828
/// <summary>Provides an interface to the DelphiDabbler CodeSnip program
29-
/// update web service.</summary>
29+
/// update web service using the v2 API.</summary>
3030
/// <remarks>This class provides a public method for every command exposed by
3131
/// the web service.</remarks>
3232
TProgramUpdateMgr = class sealed(TStdWebService)
@@ -36,8 +36,12 @@ TProgramUpdateMgr = class sealed(TStdWebService)
3636
ScriptURLTplt = 'http://codesnip.%s/websvc/prog-update';
3737
/// <summary>User agent sent to web service.</summary>
3838
UserAgent = 'CodeSnip';
39+
/// <summary>API version of web service.</summary>
40+
ApiVersion = '2';
3941
/// <summary>API key required for all calls to web service.</summary>
4042
ApiKey = '9EE3A4D85A2F46F79AE2AAB1012A7678';
43+
/// <summary>Release channel sent to web service.</summary>
44+
Channel = '4';
4145
/// <summary>Program edition sent to web service.</summary>
4246
{$IFDEF PORTABLE}
4347
Edition = 'portable';
@@ -50,6 +54,9 @@ TProgramUpdateMgr = class sealed(TStdWebService)
5054
/// </summary>
5155
/// <remarks>Callers must free the returned object.</remarks>
5256
function CreateParams: TURIParams;
57+
/// <summary>Adds channel and edition parameters to the given parameters.
58+
/// </summary>
59+
procedure AddUpdateStreamParams(Params: TURIParams);
5360
public
5461
/// <summary>Creates a new object instance with the correct URL and
5562
/// suitable user agent.</summary>
@@ -83,6 +90,13 @@ implementation
8390

8491
{ TProgramUpdateMgr }
8592

93+
procedure TProgramUpdateMgr.AddUpdateStreamParams(Params: TURIParams);
94+
begin
95+
Assert(Assigned(Params), ClassName + '.AddUpdateStreamParams: Params is nil');
96+
Params.Add('channel', Channel);
97+
Params.Add('edition', Edition);
98+
end;
99+
86100
constructor TProgramUpdateMgr.Create;
87101
begin
88102
inherited Create(TWebServiceInfo.Create(ScriptURLTplt, UserAgent));
@@ -91,6 +105,7 @@ constructor TProgramUpdateMgr.Create;
91105
function TProgramUpdateMgr.CreateParams: TURIParams;
92106
begin
93107
Result := TURIParams.Create;
108+
Result.Add('api', ApiVersion);
94109
Result.Add('key', ApiKey);
95110
Result.Add('prog-id', TAppInfo.ProgramKey);
96111
end;
@@ -102,7 +117,7 @@ function TProgramUpdateMgr.DownloadURL: string;
102117
begin
103118
Params := CreateParams;
104119
try
105-
Params.Add('edition', Edition);
120+
AddUpdateStreamParams(Params);
106121
Response := TStringList.Create;
107122
try
108123
PostCommand('downloadurl', Params, Response);
@@ -122,7 +137,7 @@ function TProgramUpdateMgr.LatestProgramVersion: string;
122137
begin
123138
Params := CreateParams;
124139
try
125-
Params.Add('edition', Edition);
140+
AddUpdateStreamParams(Params);
126141
Response := TStringList.Create;
127142
try
128143
PostCommand('version', Params, Response);

0 commit comments

Comments
 (0)