pixelchart 1.3.0 → 1.4.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: 440b0c81f31b5c145c9c8d273a69b095010f55eebf3ca1c4b85933112a97a7ad
4
- data.tar.gz: df1fb5945cb784e3c472818b984bc740d42ddefe92f70c0d38363e5aaba6da6b
3
+ metadata.gz: 5cb80a429c7f8ec7addec5ecfc3fa0630455de858568f8ba6a3cbf8aaabeb464
4
+ data.tar.gz: 66b6c19d54172257f062d071716c6a1fc28c071ff2800d1464c04466d15da700
5
5
  SHA512:
6
- metadata.gz: ebca2e204052cadfef19f9bcee9a76179781c9b5303346bc9fe8584574d84a21e703177b1b89229162cd13ba3dced9eea2ca13e8b3a936b5cbdced9b0520dceb
7
- data.tar.gz: 30716436d69b3651e72c653c27b8b5c35a553dedd85d06a8d30d0a2ad90db05a1616e71dd0564b3ac648b48a3d819575c17b937f8cd1b621bfdd6ef4ef3ad9fc
6
+ metadata.gz: 6e59fe96eb1f7de4321300173512fd2963acaddd4f837f9809dc4348a2f24ca6ec882f2edde9fc4ce7a8dccb2797c2ba4c615fea9e0396781ead119a2e123e6d
7
+ data.tar.gz: 855561d40800c3ec233ce18186e57576db361702fcae4370690e4a003a2dbf3d443c57ba81c68e4a4a79f5b44a24c74c1e4e0897ee1fb3834d5434c5db5e8fc8
data/LICENSE.txt CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2019-2025 Alexandre ZANNI
3
+ Copyright (c) 2019-2026 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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Version
4
- VERSION = '1.3.0'
4
+ VERSION = '1.4.0'
5
5
  end
data/lib/pixelchart.rb CHANGED
@@ -1,7 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  # Ruby internal
4
- require 'set'
5
4
  # Project internal
6
5
  require 'pixelchart/version'
7
6
  # External
@@ -77,7 +76,8 @@ class PixelChart
77
76
  # be 0, 1, true, false and separated by commas.
78
77
  # @return [Array<Integer>] Array of 0, 1. Can be directly passed to initialize
79
78
  def self.load_file(filename)
80
- content = File.read(filename).gsub(/\s+/, '')
79
+ # inline multi-lines CSV and strip all spaces
80
+ content = File.read(filename).gsub("\n", ',').gsub(/\s+/, '')
81
81
  data = content.split(',')
82
82
  data.each_with_index do |x, i|
83
83
  data[i] = 0 if x == '0' || x.downcase == 'false'
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pixelchart
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexandre ZANNI
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-03-30 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: docopt
@@ -95,17 +95,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
95
95
  requirements:
96
96
  - - ">="
97
97
  - !ruby/object:Gem::Version
98
- version: 3.1.0
98
+ version: 3.2.0
99
99
  - - "<"
100
100
  - !ruby/object:Gem::Version
101
- version: '4.0'
101
+ version: '5.0'
102
102
  required_rubygems_version: !ruby/object:Gem::Requirement
103
103
  requirements:
104
104
  - - ">="
105
105
  - !ruby/object:Gem::Version
106
106
  version: '0'
107
107
  requirements: []
108
- rubygems_version: 3.6.2
108
+ rubygems_version: 4.0.3
109
109
  specification_version: 4
110
110
  summary: Create a binary pixel map
111
111
  test_files: []