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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a1f640ed1d4efd1ddce15e9cad71409d881b573cbd7f4f5c2bcebe1a1ae9858b
4
- data.tar.gz: d1e054a27279e09afcb2ee911a952491f66a60807ee2d73a84fef80765652867
3
+ metadata.gz: 440b0c81f31b5c145c9c8d273a69b095010f55eebf3ca1c4b85933112a97a7ad
4
+ data.tar.gz: df1fb5945cb784e3c472818b984bc740d42ddefe92f70c0d38363e5aaba6da6b
5
5
  SHA512:
6
- metadata.gz: 0605e4ce1ea180a02c6c38214f52b73e3d365e15eaf35831171a9164bffe034f662d95890f5803087f7d76f48c4e10aae1d77a8cfb241baa16e3698be02d2791
7
- data.tar.gz: aa3ed4456b1b790aea5f2d3af44ef3421a1799865c81d35a65152ee55c780e9229ac297aafb9350551f2399a0ba63e9a1fc7e49b2bf2848fa28be427c526c519
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-2020 Alexandre ZANNI
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
- pp args if args['--debug']
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] = if /,/.match?(args['--scale']) # dimensions
66
- args['--scale'].split(',').map(&:to_i)
67
- else # ratio
68
- args['--scale'].to_f
69
- end
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)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Version
4
- VERSION = '1.1.0'
4
+ VERSION = '1.3.0'
5
5
  end
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.1.0
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: 2022-01-31 00:00:00.000000000 Z
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.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.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: '4.1'
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: '4.1'
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.0'
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.0'
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: 2.7.0
98
+ version: 3.1.0
100
99
  - - "<"
101
100
  - !ruby/object:Gem::Version
102
- version: '3.2'
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.3.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: []