Skip to content

Commit f15a1aa

Browse files
committed
Addressable template.generate is deprecated, swap to using expand
1 parent 199791a commit f15a1aa

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

.ruby-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.6.5
1+
3.1.3

Gemfile.lock

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
PATH
22
remote: .
33
specs:
4-
htmlcsstoimage-api (0.1.1)
4+
htmlcsstoimage-api (0.1.3)
5+
addressable (> 2.5.0)
56
httparty (> 0.10)
67

78
GEM
@@ -21,7 +22,7 @@ GEM
2122
method_source (1.0.0)
2223
mime-types (3.3.1)
2324
mime-types-data (~> 3.2015)
24-
mime-types-data (3.2020.0512)
25+
mime-types-data (3.2021.0212)
2526
multi_xml (0.6.0)
2627
pry (0.13.1)
2728
coderay (~> 1.1)

lib/htmlcsstoimage.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ def create_image_from_template(template_id, template_values = {}, params = {})
8989
query: template_values
9090
})
9191

92-
query = Addressable::URI.parse(template.generate).query
92+
query = Addressable::URI.parse(template.expand(signed_token: nil).to_s).query
9393
digest = OpenSSL::Digest.new('sha256')
9494
signed_token = OpenSSL::HMAC.hexdigest(digest, @auth[:password], CGI.unescape(query))
9595

lib/htmlcsstoimage/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
class HTMLCSSToImage
2-
VERSION = "0.1.2"
2+
VERSION = "0.1.3"
33
end

0 commit comments

Comments
 (0)