image-charts 6.0.1 → 6.1.2
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/image-charts.rb +7 -3
- metadata +8 -9
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8ab41b1a1259c12d7f61d1afdaf2fa27a03c585611c92ae302292c503845bea7
|
|
4
|
+
data.tar.gz: a43d554c422a5b0248c6b638131ccc3f8f77b11db6603bf99b6f6ee2c26725f2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: cdabff37ddd2377d122f19273d829b44cb49c0cb54acfc8f6abde0593f65a06294cfd8fe0bb87c0959b7e756247f684499ef794daadc5c18ea654c02d73890bf
|
|
7
|
+
data.tar.gz: fb3759e1a4b58044dd9714fdbc6885e97c8e5a1a7ec1ba138476081695d79fde3f830c14da06c0519055eb5e8425f74b12cd9631e8ca67966f4399373bba95ae
|
data/image-charts.rb
CHANGED
|
@@ -66,13 +66,13 @@ class ImageCharts
|
|
|
66
66
|
|
|
67
67
|
message = if validation_message && validation_message.length > 0 then
|
|
68
68
|
JSON.parse(validation_message).map {|x| x['message']}.join("\n")
|
|
69
|
-
elsif validation_code.length > 0 then
|
|
69
|
+
elsif validation_code && validation_code.length > 0 then
|
|
70
70
|
validation_code
|
|
71
71
|
else
|
|
72
72
|
res.code.to_s
|
|
73
73
|
end
|
|
74
74
|
|
|
75
|
-
raise ImageChartsError.new(message, (validation_code || res.
|
|
75
|
+
raise ImageChartsError.new(message, (validation_code || "HTTP_#{res.code}"), res.code)
|
|
76
76
|
end
|
|
77
77
|
|
|
78
78
|
#
|
|
@@ -561,5 +561,9 @@ end
|
|
|
561
561
|
|
|
562
562
|
|
|
563
563
|
def ImageCharts(*args)
|
|
564
|
-
|
|
564
|
+
if RUBY_VERSION.to_i >= 3
|
|
565
|
+
args.any? ? ImageCharts.new(**args[0]) : ImageCharts.new(*args)
|
|
566
|
+
else
|
|
567
|
+
ImageCharts.new(*args)
|
|
568
|
+
end
|
|
565
569
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: image-charts
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 6.
|
|
4
|
+
version: 6.1.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Francois-Guillaume Ribreau
|
|
8
|
-
autorequire:
|
|
8
|
+
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2025-12-26 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: minitest
|
|
@@ -16,14 +16,14 @@ dependencies:
|
|
|
16
16
|
requirements:
|
|
17
17
|
- - "~>"
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
|
-
version: '5.
|
|
19
|
+
version: '5.25'
|
|
20
20
|
type: :development
|
|
21
21
|
prerelease: false
|
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
23
|
requirements:
|
|
24
24
|
- - "~>"
|
|
25
25
|
- !ruby/object:Gem::Version
|
|
26
|
-
version: '5.
|
|
26
|
+
version: '5.25'
|
|
27
27
|
description: Generate static image charts and embed them into emails, pdf reports,
|
|
28
28
|
blog posts...
|
|
29
29
|
email:
|
|
@@ -41,7 +41,7 @@ metadata:
|
|
|
41
41
|
documentation_uri: https://github.com/image-charts/ruby/README.md
|
|
42
42
|
homepage_uri: https://www.image-charts.com
|
|
43
43
|
source_code_uri: https://github.com/image-charts/ruby/
|
|
44
|
-
post_install_message:
|
|
44
|
+
post_install_message:
|
|
45
45
|
rdoc_options: []
|
|
46
46
|
require_paths:
|
|
47
47
|
- "."
|
|
@@ -56,9 +56,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
56
56
|
- !ruby/object:Gem::Version
|
|
57
57
|
version: '0'
|
|
58
58
|
requirements: []
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
signing_key:
|
|
59
|
+
rubygems_version: 3.5.11
|
|
60
|
+
signing_key:
|
|
62
61
|
specification_version: 4
|
|
63
62
|
summary: Official Image-Charts.com API client library
|
|
64
63
|
test_files: []
|