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 +4 -4
- data/LICENSE.txt +1 -1
- data/lib/pixelchart/version.rb +1 -1
- data/lib/pixelchart.rb +2 -2
- metadata +5 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5cb80a429c7f8ec7addec5ecfc3fa0630455de858568f8ba6a3cbf8aaabeb464
|
|
4
|
+
data.tar.gz: 66b6c19d54172257f062d071716c6a1fc28c071ff2800d1464c04466d15da700
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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-
|
|
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
|
data/lib/pixelchart/version.rb
CHANGED
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
|
-
|
|
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.
|
|
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:
|
|
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.
|
|
98
|
+
version: 3.2.0
|
|
99
99
|
- - "<"
|
|
100
100
|
- !ruby/object:Gem::Version
|
|
101
|
-
version: '
|
|
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:
|
|
108
|
+
rubygems_version: 4.0.3
|
|
109
109
|
specification_version: 4
|
|
110
110
|
summary: Create a binary pixel map
|
|
111
111
|
test_files: []
|