pixelchart 1.2.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: 9129a6e4edfeeaeef2f80c67cdf5c7e5d35a30e425f432a4a62a68b9cdd4943d
4
- data.tar.gz: 6f9411731b1b14fc0d55978f6903daaaa0cd74d2b897d030782c287ec73d6a28
3
+ metadata.gz: 5cb80a429c7f8ec7addec5ecfc3fa0630455de858568f8ba6a3cbf8aaabeb464
4
+ data.tar.gz: 66b6c19d54172257f062d071716c6a1fc28c071ff2800d1464c04466d15da700
5
5
  SHA512:
6
- metadata.gz: 6374a49217570f9aea5f4a6e43e91f48486c33c5398d4dc507ec5ef8921363ff70c22bb0d132e3e7c8662ca61d5582094f6f34cda889be7a1ea5add11c57082a
7
- data.tar.gz: ef7b0d1b87451cb90b536a5c6a509bab1cade6227f8e77b296fc40a6e60402914e3bb3c5cfd5451b546747f5df52f35a93681dad79b1f592ed8b419a016713e1
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-2023 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.2.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,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pixelchart
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexandre ZANNI
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2023-12-19 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: docopt
@@ -30,32 +29,26 @@ 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
- - - ">="
46
- - !ruby/object:Gem::Version
47
- version: '4.1'
48
- - - "<"
44
+ - - "~>"
49
45
  - !ruby/object:Gem::Version
50
46
  version: '6.0'
51
47
  type: :runtime
52
48
  prerelease: false
53
49
  version_requirements: !ruby/object:Gem::Requirement
54
50
  requirements:
55
- - - ">="
56
- - !ruby/object:Gem::Version
57
- version: '4.1'
58
- - - "<"
51
+ - - "~>"
59
52
  - !ruby/object:Gem::Version
60
53
  version: '6.0'
61
54
  - !ruby/object:Gem::Dependency
@@ -64,14 +57,14 @@ dependencies:
64
57
  requirements:
65
58
  - - "~>"
66
59
  - !ruby/object:Gem::Version
67
- version: '2.0'
60
+ version: '2.2'
68
61
  type: :runtime
69
62
  prerelease: false
70
63
  version_requirements: !ruby/object:Gem::Requirement
71
64
  requirements:
72
65
  - - "~>"
73
66
  - !ruby/object:Gem::Version
74
- version: '2.0'
67
+ version: '2.2'
75
68
  description: Create a binary pixel map
76
69
  email: alexandre.zanni@engineer.com
77
70
  executables:
@@ -93,8 +86,8 @@ metadata:
93
86
  documentation_uri: https://noraj.github.io/PixelChart/yard/
94
87
  homepage_uri: https://noraj.github.io/PixelChart/
95
88
  source_code_uri: https://github.com/noraj/PixelChart
89
+ funding_uri: https://github.com/sponsors/noraj
96
90
  rubygems_mfa_required: 'true'
97
- post_install_message:
98
91
  rdoc_options: []
99
92
  require_paths:
100
93
  - lib
@@ -102,18 +95,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
102
95
  requirements:
103
96
  - - ">="
104
97
  - !ruby/object:Gem::Version
105
- version: 3.0.0
98
+ version: 3.2.0
106
99
  - - "<"
107
100
  - !ruby/object:Gem::Version
108
- version: '4.0'
101
+ version: '5.0'
109
102
  required_rubygems_version: !ruby/object:Gem::Requirement
110
103
  requirements:
111
104
  - - ">="
112
105
  - !ruby/object:Gem::Version
113
106
  version: '0'
114
107
  requirements: []
115
- rubygems_version: 3.4.10
116
- signing_key:
108
+ rubygems_version: 4.0.3
117
109
  specification_version: 4
118
110
  summary: Create a binary pixel map
119
111
  test_files: []