Skip to content

Commit fc2b294

Browse files
Horse 2.0 #5
1 parent 3cae9e8 commit fc2b294

File tree

4 files changed

+24
-34
lines changed

4 files changed

+24
-34
lines changed

samples/boss-lock.json

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,19 @@
11
{
2-
"hash": "6ef9161b900632671022358216c7dfe7",
3-
"updated": "2019-10-15T22:07:14.0506259-03:00",
2+
"hash": "d41d8cd98f00b204e9800998ecf8427e",
3+
"updated": "2020-09-04T08:21:10.615254-03:00",
44
"installedModules": {
5-
"github.com/hashload/handle-exception": {
6-
"name": "handle-exception",
7-
"version": "0.1.2",
8-
"hash": "519df8be252fbda605e46bef8d604915",
9-
"artifacts": {},
10-
"failed": false,
11-
"changed": false
12-
},
135
"github.com/hashload/horse": {
146
"name": "horse",
15-
"version": "1.6.8",
16-
"hash": "7a0b2394ac49dbd1a62f6d1021cac5b9",
7+
"version": "v2.0.0",
8+
"hash": "e37b9706c16357ab94219cf12b67b036",
179
"artifacts": {},
1810
"failed": false,
1911
"changed": false
2012
},
2113
"github.com/hashload/jhonson": {
2214
"name": "jhonson",
23-
"version": "1.0.3",
24-
"hash": "334dfe6b2e7daa4cb6af5b1bf88ec76e",
15+
"version": "1.0.5",
16+
"hash": "34d01183ef1b6af802c7e132adedeae5",
2517
"artifacts": {},
2618
"failed": false,
2719
"changed": false

samples/boss.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@
66
"mainsrc": "./",
77
"projects": [],
88
"dependencies": {
9-
"github.com/HashLoad/handle-exception": "^0.1.2",
10-
"github.com/HashLoad/horse": "^1.6.8",
11-
"github.com/hashload/jhonson": "^1.0.3"
9+
"github.com/hashload/horse": "^v2.0.0",
10+
"github.com/hashload/jhonson": "^1.0.5"
1211
}
1312
}

samples/samples.dpr

Lines changed: 7 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,20 @@
11
program samples;
22

33
{$APPTYPE CONSOLE}
4-
5-
uses
6-
Horse,
7-
Horse.Jhonson,
8-
Horse.HandleException,
9-
System.SysUtils;
10-
114
{$R *.res}
125

13-
var
14-
App: THorse;
6+
uses Horse, Horse.Jhonson, Horse.HandleException, System.SysUtils;
157

168
begin
17-
App := THorse.Create(9000);
18-
19-
App.Use(Jhonson);
20-
App.Use(HandleException);
9+
THorse
10+
.Use(Jhonson)
11+
.Use(HandleException);
2112

22-
App.Get('ping',
13+
THorse.Get('/ping',
2314
procedure(Req: THorseRequest; Res: THorseResponse; Next: TProc)
2415
begin
25-
raise Exception.Create('My Error!');
16+
raise EHorseException.Create('My Error!');
2617
end);
2718

28-
App.Start;
19+
THorse.Listen(9000);
2920
end.

samples/samples.dproj

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,9 @@
8686
<UsingDelphiRTL>true</UsingDelphiRTL>
8787
<Icon_MainIcon>$(BDS)\bin\delphi_PROJECTICON.ico</Icon_MainIcon>
8888
<Icns_MainIcns>$(BDS)\bin\delphi_PROJECTICNS.icns</Icns_MainIcns>
89-
<DCC_UnitSearchPath>$(Horse);modules\.dcp;modules\.dcu;modules;modules\handle-exception\Src;modules\horse\src;modules\jhonson\src;$(DCC_UnitSearchPath)</DCC_UnitSearchPath>
9089
<DCC_Framework>VCL;$(DCC_Framework)</DCC_Framework>
9190
<SanitizedProjectName>samples</SanitizedProjectName>
91+
<DCC_UnitSearchPath>modules\.dcp;modules\.dcu;modules;modules\horse\src;modules\jhonson\src;$(DCC_UnitSearchPath)</DCC_UnitSearchPath>
9292
</PropertyGroup>
9393
<PropertyGroup Condition="'$(Base_Android)'!=''">
9494
<DCC_UsePackage>DBXSqliteDriver;RESTComponents;DBXInterBaseDriver;emsclientfiredac;tethering;DataSnapFireDAC;bindcompfmx;fmx;FireDACIBDriver;FireDACDBXDriver;dbexpress;IndyCore;dsnap;emsclient;DataSnapCommon;FireDACCommon;RESTBackendComponents;soapserver;bindengine;CloudService;FireDACCommonDriver;DataSnapClient;inet;IndyIPCommon;bindcompdbx;IndyIPServer;IndySystem;fmxFireDAC;FireDAC;FireDACSqliteDriver;soaprtl;DbxCommonDriver;xmlrtl;soapmidas;DataSnapNativeClient;FireDACDSDriver;rtl;DbxClientDriver;CustomIPTransport;bindcomp;IndyIPClient;dbxcds;dsnapxml;DataSnapProviderClient;dbrtl;IndyProtocols;$(DCC_UsePackage)</DCC_UsePackage>
@@ -132,6 +132,9 @@
132132
</PropertyGroup>
133133
<PropertyGroup Condition="'$(Cfg_1_Win32)'!=''">
134134
<DCC_RemoteDebug>false</DCC_RemoteDebug>
135+
<VerInfo_Locale>1033</VerInfo_Locale>
136+
<Manifest_File>(None)</Manifest_File>
137+
<DCC_UnitSearchPath>..\src;$(DCC_UnitSearchPath)</DCC_UnitSearchPath>
135138
</PropertyGroup>
136139
<PropertyGroup Condition="'$(Cfg_2)'!=''">
137140
<DCC_LocalDebugSymbols>false</DCC_LocalDebugSymbols>
@@ -163,6 +166,11 @@
163166
<Source>
164167
<Source Name="MainSource">samples.dpr</Source>
165168
</Source>
169+
<Excluded_Packages>
170+
<Excluded_Packages Name="$(BDSBIN)\dclDataSnapNativeServer260.bpl">Embarcadero DBExpress DataSnap Native Server Components</Excluded_Packages>
171+
<Excluded_Packages Name="$(BDSBIN)\dcloffice2k260.bpl">Microsoft Office 2000 Sample Automation Server Wrapper Components</Excluded_Packages>
172+
<Excluded_Packages Name="$(BDSBIN)\dclofficexp260.bpl">Microsoft Office XP Sample Automation Server Wrapper Components</Excluded_Packages>
173+
</Excluded_Packages>
166174
</Delphi.Personality>
167175
<Deployment Version="3">
168176
<DeployFile LocalName="$(BDS)\Redist\osx32\libcgunwind.1.0.dylib" Class="DependencyModule">

0 commit comments

Comments
 (0)