Skip to content

Commit

Permalink
v4.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
timhall committed Jun 10, 2016
1 parent 57735ec commit 189ca7a
Show file tree
Hide file tree
Showing 13 changed files with 15 additions and 14 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
- `UrlEncodingMode.CookieUrlEncoding` uses [RFC 6265](https://tools.ietf.org/html/rfc6265)
- `UrlEncodingMode.PathUrlEncoding` uses "pchar" from [RFC 3986](https://tools.ietf.org/html/rfc3986) and is the default
- Update VBA-JSON to v2.2.2
- __4.1.1__ Adjust `CookieUrlEncoding` mode to match value encoding in RFC 6265 (rather than name encoding)

# 4.0.0

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ VBA-Web (formerly Excel-REST) makes working with complex webservices and APIs ea
Getting started
---------------

- Download the [latest release (v4.1.0)](https://github.com/VBA-tools/VBA-Web/releases)
- Download the [latest release (v4.1.1)](https://github.com/VBA-tools/VBA-Web/releases)
- To install/upgrade in an existing file, use `VBA-Web - Installer.xlsm`
- To start from scratch in Excel, `VBA-Web - Blank.xlsm` has everything setup and ready to go

Expand Down
Binary file modified VBA-Web - Blank.xlsm
Binary file not shown.
Binary file modified VBA-Web - Installer.xlsm
Binary file not shown.
Binary file modified examples/VBA-Web - Example.xlsm
Binary file not shown.
Binary file modified specs/VBA-Web - Specs - Async.xlsm
Binary file not shown.
Binary file modified specs/VBA-Web - Specs.xlsm
Binary file not shown.
2 changes: 1 addition & 1 deletion src/IWebAuthenticator.cls
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Attribute VB_Creatable = False
Attribute VB_PredeclaredId = False
Attribute VB_Exposed = True
''
' IWebAuthenticator v4.1.0
' IWebAuthenticator v4.1.1
' (c) Tim Hall - https://github.com/VBA-tools/VBA-Web
'
' Interface for creating authenticators for rest client
Expand Down
2 changes: 1 addition & 1 deletion src/WebAsyncWrapper.cls
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Attribute VB_Creatable = False
Attribute VB_PredeclaredId = False
Attribute VB_Exposed = True
''
' WebAsyncWrapper v4.1.0
' WebAsyncWrapper v4.1.1
' (c) Tim Hall - https://github.com/VBA-tools/VBA-Web
'
' Wrapper WebClient and WebRequest that enables callback-style async requests
Expand Down
2 changes: 1 addition & 1 deletion src/WebClient.cls
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Attribute VB_Creatable = False
Attribute VB_PredeclaredId = False
Attribute VB_Exposed = True
''
' WebClient v4.1.0
' WebClient v4.1.1
' (c) Tim Hall - https://github.com/VBA-tools/VBA-Web
'
' `WebClient` executes requests and handles response and is responsible for functionality shared between requests,
Expand Down
12 changes: 6 additions & 6 deletions src/WebHelpers.bas
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Attribute VB_Name = "WebHelpers"
''
' WebHelpers v4.1.0
' WebHelpers v4.1.1
' (c) Tim Hall - https://github.com/VBA-tools/VBA-Web
'
' Contains general-purpose helpers that are used throughout VBA-Web. Includes:
Expand Down Expand Up @@ -243,7 +243,7 @@ Private Declare Function web_fread Lib "libc.dylib" Alias "fread" (ByVal outStr
Private Declare Function web_feof Lib "libc.dylib" Alias "feof" (ByVal File As Long) As Long
#End If

Public Const WebUserAgent As String = "VBA-Web v4.1.0 (https://github.com/VBA-tools/VBA-Web)"
Public Const WebUserAgent As String = "VBA-Web v4.1.1 (https://github.com/VBA-tools/VBA-Web)"

' @internal
Public Type ShellResult
Expand Down Expand Up @@ -920,7 +920,7 @@ Public Function UrlEncode(Text As Variant, _
Else
web_Result(web_i) = "%" & VBA.Hex(web_CharCode)
End If

Case 35, 45, 46, 47, 60, 62, 63, 91, 93, 94, 95, 96, 123, 124, 125
' "#" / "-" / "." / "/" / "<" / ">" / "?" / "[" / "]" / "^" / "_" / "`" / "{" / "|" / "}"
' CookieUrlEncoding -> Unencoded
Expand All @@ -930,7 +930,7 @@ Public Function UrlEncode(Text As Variant, _
Else
web_Result(web_i) = "%" & VBA.Hex(web_CharCode)
End If

Case 42
' "*"
' FormUrlEncoding, PathUrlEncoding, CookieUrlEncoding -> "*"
Expand All @@ -943,7 +943,7 @@ Public Function UrlEncode(Text As Variant, _
Else
web_Result(web_i) = "%" & VBA.Hex(web_CharCode)
End If

Case 44, 59
' "," / ";"
' PathUrlEncoding -> Unencoded
Expand All @@ -963,7 +963,7 @@ Public Function UrlEncode(Text As Variant, _
Else
web_Result(web_i) = web_Char
End If

Case 0 To 15
web_Result(web_i) = "%0" & VBA.Hex(web_CharCode)
Case Else
Expand Down
6 changes: 3 additions & 3 deletions src/WebRequest.cls
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Attribute VB_Creatable = False
Attribute VB_PredeclaredId = False
Attribute VB_Exposed = True
''
' WebRequest v4.1.0
' WebRequest v4.1.1
' (c) Tim Hall - https://github.com/VBA-tools/VBA-Web
'
' `WebRequest` is used to create detailed requests
Expand Down Expand Up @@ -847,14 +847,14 @@ Private Function web_EncodeCookieName(web_CookieName As Variant) As String
Case 33, 35, 36, 38, 39, 42, 43, 45, 46, 94, 95, 96, 124, 126
' "!" / "#" / "$" / "&" / "'" / "*" / "+" / "-" / "." / "^" / "_" / "`" / "|" / "~"
web_Result(web_i) = web_Char

Case 0 To 15
web_Result(web_i) = "%0" & VBA.Hex(web_CharCode)
Case Else
web_Result(web_i) = "%" & VBA.Hex(web_CharCode)
End Select
Next web_i

web_EncodeCookieName = VBA.Join$(web_Result, "")
End If
End Function
Expand Down
2 changes: 1 addition & 1 deletion src/WebResponse.cls
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Attribute VB_Creatable = False
Attribute VB_PredeclaredId = False
Attribute VB_Exposed = True
''
' WebResponse v4.1.0
' WebResponse v4.1.1
' (c) Tim Hall - https://github.com/VBA-tools/VBA-Web
'
' Wrapper for http/cURL responses that includes parsed Data based on WebRequest.ResponseFormat.
Expand Down

0 comments on commit 189ca7a

Please sign in to comment.