pixelchart 1.1.0 → 1.3.0
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/LICENSE.txt +1 -1
- data/bin/pixelchart +6 -7
- data/lib/pixelchart/version.rb +1 -1
- data/lib/pixelchart.rb +1 -1
- metadata +12 -14
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 440b0c81f31b5c145c9c8d273a69b095010f55eebf3ca1c4b85933112a97a7ad
|
4
|
+
data.tar.gz: df1fb5945cb784e3c472818b984bc740d42ddefe92f70c0d38363e5aaba6da6b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ebca2e204052cadfef19f9bcee9a76179781c9b5303346bc9fe8584574d84a21e703177b1b89229162cd13ba3dced9eea2ca13e8b3a936b5cbdced9b0520dceb
|
7
|
+
data.tar.gz: 30716436d69b3651e72c653c27b8b5c35a553dedd85d06a8d30d0a2ad90db05a1616e71dd0564b3ac648b48a3d819575c17b937f8cd1b621bfdd6ef4ef3ad9fc
|
data/LICENSE.txt
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
The MIT License (MIT)
|
2
2
|
|
3
|
-
Copyright (c) 2019-
|
3
|
+
Copyright (c) 2019-2025 Alexandre ZANNI
|
4
4
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
data/bin/pixelchart
CHANGED
@@ -2,7 +2,6 @@
|
|
2
2
|
# frozen_string_literal: true
|
3
3
|
|
4
4
|
# Ruby internal
|
5
|
-
require 'pp'
|
6
5
|
# Project internal
|
7
6
|
require 'pixelchart'
|
8
7
|
# External
|
@@ -41,7 +40,7 @@ DOCOPT
|
|
41
40
|
|
42
41
|
begin
|
43
42
|
args = Docopt.docopt(doc, version: PixelChart::VERSION)
|
44
|
-
|
43
|
+
puts args if args['--debug']
|
45
44
|
Paint.mode = 0 if args['--no-color']
|
46
45
|
if args['draw']
|
47
46
|
data = PixelChart.load_file(args['<input>'])
|
@@ -62,11 +61,11 @@ begin
|
|
62
61
|
end
|
63
62
|
opts[:backend] = args['--backend'].to_sym if args['--backend']
|
64
63
|
if args['--scale']
|
65
|
-
opts[:scale] =
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
64
|
+
opts[:scale] = if /,/.match?(args['--scale']) # dimensions
|
65
|
+
args['--scale'].split(',').map(&:to_i)
|
66
|
+
else # ratio
|
67
|
+
args['--scale'].to_f
|
68
|
+
end
|
70
69
|
end
|
71
70
|
pc = PixelChart.new(data, width, height, opts)
|
72
71
|
pc.draw(filename, opts)
|
data/lib/pixelchart/version.rb
CHANGED
data/lib/pixelchart.rb
CHANGED
@@ -131,7 +131,7 @@ class PixelChart
|
|
131
131
|
opts = { kernel: :nearest }
|
132
132
|
im = im.resize(@scale, **opts)
|
133
133
|
end
|
134
|
-
im.write_to_file(filename, compression: 9, palette: true, colours: 2, Q: 0)
|
134
|
+
im.write_to_file(filename, compression: 9, palette: true, colours: 2, Q: 0, bitdepth: 1)
|
135
135
|
end
|
136
136
|
|
137
137
|
# Check if the argument is an integer else raise an error
|
metadata
CHANGED
@@ -1,14 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pixelchart
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alexandre ZANNI
|
8
|
-
autorequire:
|
9
8
|
bindir: bin
|
10
9
|
cert_chain: []
|
11
|
-
date:
|
10
|
+
date: 2025-03-30 00:00:00.000000000 Z
|
12
11
|
dependencies:
|
13
12
|
- !ruby/object:Gem::Dependency
|
14
13
|
name: docopt
|
@@ -30,42 +29,42 @@ dependencies:
|
|
30
29
|
requirements:
|
31
30
|
- - "~>"
|
32
31
|
- !ruby/object:Gem::Version
|
33
|
-
version: '2.
|
32
|
+
version: '2.3'
|
34
33
|
type: :runtime
|
35
34
|
prerelease: false
|
36
35
|
version_requirements: !ruby/object:Gem::Requirement
|
37
36
|
requirements:
|
38
37
|
- - "~>"
|
39
38
|
- !ruby/object:Gem::Version
|
40
|
-
version: '2.
|
39
|
+
version: '2.3'
|
41
40
|
- !ruby/object:Gem::Dependency
|
42
41
|
name: rmagick
|
43
42
|
requirement: !ruby/object:Gem::Requirement
|
44
43
|
requirements:
|
45
44
|
- - "~>"
|
46
45
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
46
|
+
version: '6.0'
|
48
47
|
type: :runtime
|
49
48
|
prerelease: false
|
50
49
|
version_requirements: !ruby/object:Gem::Requirement
|
51
50
|
requirements:
|
52
51
|
- - "~>"
|
53
52
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
53
|
+
version: '6.0'
|
55
54
|
- !ruby/object:Gem::Dependency
|
56
55
|
name: ruby-vips
|
57
56
|
requirement: !ruby/object:Gem::Requirement
|
58
57
|
requirements:
|
59
58
|
- - "~>"
|
60
59
|
- !ruby/object:Gem::Version
|
61
|
-
version: '2.
|
60
|
+
version: '2.2'
|
62
61
|
type: :runtime
|
63
62
|
prerelease: false
|
64
63
|
version_requirements: !ruby/object:Gem::Requirement
|
65
64
|
requirements:
|
66
65
|
- - "~>"
|
67
66
|
- !ruby/object:Gem::Version
|
68
|
-
version: '2.
|
67
|
+
version: '2.2'
|
69
68
|
description: Create a binary pixel map
|
70
69
|
email: alexandre.zanni@engineer.com
|
71
70
|
executables:
|
@@ -87,8 +86,8 @@ metadata:
|
|
87
86
|
documentation_uri: https://noraj.github.io/PixelChart/yard/
|
88
87
|
homepage_uri: https://noraj.github.io/PixelChart/
|
89
88
|
source_code_uri: https://github.com/noraj/PixelChart
|
89
|
+
funding_uri: https://github.com/sponsors/noraj
|
90
90
|
rubygems_mfa_required: 'true'
|
91
|
-
post_install_message:
|
92
91
|
rdoc_options: []
|
93
92
|
require_paths:
|
94
93
|
- lib
|
@@ -96,18 +95,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
96
95
|
requirements:
|
97
96
|
- - ">="
|
98
97
|
- !ruby/object:Gem::Version
|
99
|
-
version:
|
98
|
+
version: 3.1.0
|
100
99
|
- - "<"
|
101
100
|
- !ruby/object:Gem::Version
|
102
|
-
version: '
|
101
|
+
version: '4.0'
|
103
102
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
104
103
|
requirements:
|
105
104
|
- - ">="
|
106
105
|
- !ruby/object:Gem::Version
|
107
106
|
version: '0'
|
108
107
|
requirements: []
|
109
|
-
rubygems_version: 3.
|
110
|
-
signing_key:
|
108
|
+
rubygems_version: 3.6.2
|
111
109
|
specification_version: 4
|
112
110
|
summary: Create a binary pixel map
|
113
111
|
test_files: []
|