Skip to content

Commit a363143

Browse files
committed
Bugfix and export from specs by default
1 parent e1defd2 commit a363143

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

build/export.vbs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ Set Args = Wscript.Arguments
1818
If Args.Length > 0 Then
1919
WBPath = Args(0)
2020
OutputPath = Args(1)
21+
Else
22+
WBPath = "specs\Excel-REST - Specs.xlsm"
23+
OutputPath = "src\"
2124
End If
2225

2326
' Setup modules to export

specs/Excel-REST - Specs.xlsm

10.1 KB
Binary file not shown.

src/RestClientBase.bas

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,15 @@ Attribute VB_Name = "RestClientBase"
1616
Option Explicit
1717

1818
' > Customize with BaseUrl
19-
Private Const BaseUrl As String = ""
19+
Private Const DefaultBaseUrl As String = ""
2020
Private Const TimeoutMS As Integer = 5000
2121
Private Initialized As Boolean
2222

2323
' --------------------------------------------- '
2424
' Properties
2525
' --------------------------------------------- '
2626

27+
Public BaseUrl As String
2728
Public ProxyServer As String
2829
Public ProxyUsername As String
2930
Public ProxyPassword As String
@@ -51,8 +52,12 @@ End Sub
5152

5253

5354
Private Sub Initialize()
55+
If BaseUrl = "" Then
56+
BaseUrl = DefaultBaseUrl
57+
End If
58+
5459
' > Customize with any properties
55-
60+
5661
Initialized = True
5762
End Sub
5863

0 commit comments

Comments
 (0)