quickchart 1.2.0 → 1.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/quickchart.rb +3 -3
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c6d40f6f312576fa49ba05d6b4a4ab73da589536b8c66a17fd0c88f478b361c5
|
|
4
|
+
data.tar.gz: bf36204e877de4c0c34204c61e897e78305d8e08d77a96dfc3556e2cdaf22b54
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 407e9c83b4299e4fb03440eaa7982db594c71c488afe393c751d50b69a1e1d4e3fe43eb395933f723d20e519a5e65950716e5c317045d78d1e17d03356394131
|
|
7
|
+
data.tar.gz: cc2fcff80ac5f32da6a19dbb0d756e000f5e5f0e29361257e19f5a7b86d0b95404dedb324424447eed97744cbde3e0754cd71c6fde9d6c377e778ea6ef0edf2c
|
data/lib/quickchart.rb
CHANGED
|
@@ -69,12 +69,12 @@ class QuickChart
|
|
|
69
69
|
params['v'] = @version if @version
|
|
70
70
|
|
|
71
71
|
uri = URI("#{@base_url}#{path}")
|
|
72
|
-
|
|
73
|
-
|
|
72
|
+
http = Net::HTTP.new(uri.host, uri.port)
|
|
73
|
+
http.use_ssl = true if uri.instance_of? URI::HTTPS
|
|
74
74
|
req = Net::HTTP::Post.new(uri.path, 'Content-Type' => 'application/json')
|
|
75
75
|
req.body = params.to_json
|
|
76
76
|
|
|
77
|
-
|
|
77
|
+
http.request(req)
|
|
78
78
|
end
|
|
79
79
|
|
|
80
80
|
def get_short_url
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: quickchart
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.2.
|
|
4
|
+
version: 1.2.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ian Webster
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2023-04-27 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: Create chart images and embed them in emails, reports, and elsewhere.
|
|
14
14
|
email:
|
|
@@ -41,7 +41,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
41
41
|
- !ruby/object:Gem::Version
|
|
42
42
|
version: '0'
|
|
43
43
|
requirements: []
|
|
44
|
-
rubygems_version: 3.
|
|
44
|
+
rubygems_version: 3.4.10
|
|
45
45
|
signing_key:
|
|
46
46
|
specification_version: 4
|
|
47
47
|
summary: Official QuickChart API client library
|