Skip to content

Commit 375450b

Browse files
committed
Merge remote-tracking branch 'remotes/origin/dev'
2 parents e487bf4 + b406247 commit 375450b

43 files changed

Lines changed: 1269 additions & 783 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

pkg/Delphi/PascalRAL.dpk

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ contains
5252
RALCripto in '..\..\src\utils\RALCripto.pas',
5353
RALCriptoAES in '..\..\src\utils\RALCriptoAES.pas',
5454
RALCustomObjects in '..\..\src\utils\RALCustomObjects.pas',
55-
RALHashes in '..\..\src\utils\RALHashes.pas',
55+
RALHashBase in '..\..\src\utils\RALHashBase.pas',
5656
RALJson in '..\..\src\utils\RALJson.pas',
5757
RALMD5 in '..\..\src\utils\RALMD5.pas',
5858
RALMIMETypes in '..\..\src\utils\RALMIMETypes.pas',
@@ -72,6 +72,7 @@ contains
7272
RALStorageCSV in '..\..\src\utils\RALStorageCSV.pas',
7373
RALStorageJSON in '..\..\src\utils\RALStorageJSON.pas',
7474
RALStorageBIN in '..\..\src\utils\RALStorageBIN.pas',
75-
RALDBTypes in '..\..\src\base\RALDBTypes.pas';
75+
RALDBTypes in '..\..\src\base\RALDBTypes.pas',
76+
RALHashes in '..\..\src\utils\RALHashes.pas';
7677

7778
end.

pkg/Delphi/PascalRAL.dproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@
191191
<DCCReference Include="..\..\src\utils\RALCripto.pas"/>
192192
<DCCReference Include="..\..\src\utils\RALCriptoAES.pas"/>
193193
<DCCReference Include="..\..\src\utils\RALCustomObjects.pas"/>
194-
<DCCReference Include="..\..\src\utils\RALHashes.pas"/>
194+
<DCCReference Include="..\..\src\utils\RALHashBase.pas"/>
195195
<DCCReference Include="..\..\src\utils\RALJson.pas"/>
196196
<DCCReference Include="..\..\src\utils\RALMD5.pas"/>
197197
<DCCReference Include="..\..\src\utils\RALMIMETypes.pas"/>
@@ -212,6 +212,7 @@
212212
<DCCReference Include="..\..\src\utils\RALStorageJSON.pas"/>
213213
<DCCReference Include="..\..\src\utils\RALStorageBIN.pas"/>
214214
<DCCReference Include="..\..\src\base\RALDBTypes.pas"/>
215+
<DCCReference Include="..\..\src\utils\RALHashes.pas"/>
215216
<BuildConfiguration Include="Base">
216217
<Key>Base</Key>
217218
</BuildConfiguration>

src/base/RALClient.pas

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ TRALClient = class(TRALComponent)
128128
/// event called when client thread finishes
129129
procedure OnThreadResponse(Sender: TObject; AResponse: TRALResponse; AException: StringRAL);
130130

131-
function CreateClient : TRALClientHTTP;
131+
function CreateClient: TRALClientHTTP;
132132
/// Copy all properties of current TRALClientBase object
133133
procedure CopyProperties(ADest: TRALClient); virtual;
134134

@@ -148,31 +148,31 @@ TRALClient = class(TRALComponent)
148148
function Clone(AOwner: TComponent = nil): TRALClient; virtual;
149149

150150
/// Defines method on the client: Delete.
151-
procedure Delete(ARoute : StringRAL; var AResponse : TRALResponse); overload;
152-
procedure Delete(ARoute : StringRAL; AOnResponse: TRALThreadClientResponse = nil;
151+
procedure Delete(ARoute: StringRAL; var AResponse : TRALResponse); overload;
152+
procedure Delete(ARoute: StringRAL; AOnResponse: TRALThreadClientResponse = nil;
153153
AExecBehavior : TRALExecBehavior = ebMultiThread); overload;
154154

155155
/// Defines method on the client: Get.
156-
procedure Get(ARoute : StringRAL; var AResponse : TRALResponse); overload;
157-
procedure Get(ARoute : StringRAL; AOnResponse: TRALThreadClientResponse = nil;
156+
procedure Get(ARoute: StringRAL; var AResponse : TRALResponse); overload;
157+
procedure Get(ARoute: StringRAL; AOnResponse: TRALThreadClientResponse = nil;
158158
AExecBehavior : TRALExecBehavior = ebMultiThread); overload;
159159

160160
/// Defines method on the client: Patch.
161-
procedure Patch(ARoute : StringRAL; var AResponse : TRALResponse); overload;
162-
procedure Patch(ARoute : StringRAL; AOnResponse: TRALThreadClientResponse = nil;
161+
procedure Patch(ARoute: StringRAL; var AResponse : TRALResponse); overload;
162+
procedure Patch(ARoute: StringRAL; AOnResponse: TRALThreadClientResponse = nil;
163163
AExecBehavior : TRALExecBehavior = ebMultiThread); overload;
164164

165165
/// Defines method on the client: Post.
166-
procedure Post(ARoute : StringRAL; var AResponse : TRALResponse); overload;
167-
procedure Post(ARoute : StringRAL; AOnResponse: TRALThreadClientResponse = nil;
166+
procedure Post(ARoute: StringRAL; var AResponse : TRALResponse); overload;
167+
procedure Post(ARoute: StringRAL; AOnResponse: TRALThreadClientResponse = nil;
168168
AExecBehavior : TRALExecBehavior = ebMultiThread); overload;
169169

170170
/// Defines method on the client: Put.
171-
procedure Put(ARoute : StringRAL; var AResponse : TRALResponse); overload;
172-
procedure Put(ARoute : StringRAL; AOnResponse: TRALThreadClientResponse = nil;
173-
AExecBehavior : TRALExecBehavior = ebMultiThread); overload;
171+
procedure Put(ARoute: StringRAL; var AResponse : TRALResponse); overload;
172+
procedure Put(ARoute: StringRAL; AOnResponse: TRALThreadClientResponse = nil;
173+
AExecBehavior: TRALExecBehavior = ebMultiThread); overload;
174174

175-
property Request : TRALRequest read FRequest;
175+
property Request: TRALRequest read FRequest;
176176
published
177177
property Authentication: TRALAuthClient read FAuthentication write SetAuthentication;
178178
property BaseURL: TStrings read FBaseURL write SetBaseURL;
@@ -304,7 +304,7 @@ procedure TRALClient.ExecuteThread(ARoute: StringRAL; AMethod: TRALMethod;
304304
function TRALClient.ExecuteSingle(ARoute: StringRAL; AMethod: TRALMethod): TRALResponse;
305305
var
306306
vClient: TRALClientHTTP;
307-
vRequest : TRALRequest;
307+
vRequest: TRALRequest;
308308
begin
309309
Result := TRALClientResponse.Create(Self);
310310
vRequest := TRALClientRequest.Create(Self);

src/base/RALConsts.pas

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ interface
1313

1414
const
1515
// Versionamento
16-
RALVERSION = '0.11.0-13 alpha';
16+
RALVERSION = '0.12.0-4 beta';
1717
RALVERSION_MAJOR = 0;
18-
RALVERSION_MINOR = 11;
18+
RALVERSION_MINOR = 12;
1919
RALVERSION_PATCH = 0;
2020
RALVERSION_FULL = RALVERSION_MAJOR * 10000
2121
+ RALVERSION_MINOR * 100
@@ -28,6 +28,11 @@ interface
2828
RALPACKAGESITE = 'https://github.com/OpenSourceCommunityBrasil/PascalRAL';
2929
RALPACKAGELICENSE = 'OpenSource';
3030
RALPACKAGELICENSEVERSION = 'OpenSource - v' + RALVERSION;
31+
ENGINESYNOPSE = 'mORMot2';
32+
ENGINEINDY = 'Indy';
33+
ENGINESAGUI = 'Sagui';
34+
ENGINENETHTTP = 'netHttp';
35+
ENGINEFPHTTP = 'fpHttp';
3136

3237
// html pages
3338
RALDefaultPage = '<!DOCTYPE html>'

src/base/RALDBTypes.pas

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ TRALDBInfoTable = class
157157

158158
TRALDBInfoTables = class
159159
private
160-
FTables : TList;
160+
FTables: TList;
161161
protected
162162
function GetAsJSON: StringRAL;
163163
function GetAsJSONObj: TRALJSONArray;
@@ -378,7 +378,7 @@ class procedure TRALDB.ParseSQLParams(ASQL: StringRAL; AParams: TParams);
378378

379379
for vInt := POSINISTR to RALHighStr(ASQL) do
380380
begin
381-
vSQLChar := ASQL[vInt];
381+
vSQLChar := CharRAL(ASQL[vInt]);
382382
if (vSQLChar = '''') and (not vEspaceDoubleQuote) and
383383
(not (vEscapeQuote and (vChar = '\'))) then
384384
begin

0 commit comments

Comments
 (0)