pnm 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +5 -4
- data/Rakefile +1 -1
- data/benchmark/bm_converter.rb +1 -1
- data/lib/pnm.rb +2 -2
- data/lib/pnm/image.rb +1 -0
- data/lib/pnm/version.rb +2 -2
- data/pnm.gemspec +3 -2
- data/test/test_converter.rb +1 -1
- data/test/test_exceptions.rb +6 -1
- data/test/test_image.rb +1 -1
- data/test/test_parser.rb +1 -1
- data/test/test_pnm.rb +1 -1
- metadata +18 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c8d01685f2bc40a0f3f6a862f25e2c6001d8f6a3
|
4
|
+
data.tar.gz: 2817af37b0e92b2daa766334fa9363c8ca953315
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1dd632513336784b890a6d7c2c81717bcabf12f511f0cdff8b9d93ee38bfbf3ffd1e5cd29463830ea4e190973d147bddc5d9bd297c6aec7dec4ffef670efbea9
|
7
|
+
data.tar.gz: 9051a2ec9005e3100f56b2363c311d4fef8626458b1d0a99c0cd0d3c3c22b1417725ec3cbe34a7f802118f5665582c594deae2b3c4194d6da4fb124eb59a8c98
|
data/README.md
CHANGED
@@ -91,10 +91,11 @@ Requirements
|
|
91
91
|
|
92
92
|
- PNM has been tested with
|
93
93
|
|
94
|
-
- Ruby 2.
|
95
|
-
- Ruby 2.
|
94
|
+
- Ruby 2.2,
|
95
|
+
- Ruby 2.1,
|
96
|
+
- Ruby 2.0.0,
|
96
97
|
- Ruby 1.9.3,
|
97
|
-
- JRuby 1.7.
|
98
|
+
- JRuby 1.7.18,
|
98
99
|
- Rubinius 2.2.10.
|
99
100
|
|
100
101
|
Documentation
|
@@ -110,7 +111,7 @@ Report bugs on the PNM home page: <https://github.com/stomar/pnm/>
|
|
110
111
|
License
|
111
112
|
-------
|
112
113
|
|
113
|
-
Copyright © 2013-
|
114
|
+
Copyright © 2013-2015 Marcus Stollsteimer
|
114
115
|
|
115
116
|
`PNM` is free software: you can redistribute it and/or modify
|
116
117
|
it under the terms of the GNU General Public License version 3 or later (GPLv3+),
|
data/Rakefile
CHANGED
data/benchmark/bm_converter.rb
CHANGED
data/lib/pnm.rb
CHANGED
@@ -80,7 +80,7 @@ require_relative 'pnm/exceptions'
|
|
80
80
|
#
|
81
81
|
# == Author
|
82
82
|
#
|
83
|
-
# Copyright (C) 2013-
|
83
|
+
# Copyright (C) 2013-2015 Marcus Stollsteimer
|
84
84
|
#
|
85
85
|
# License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
|
86
86
|
#
|
@@ -91,7 +91,7 @@ module PNM
|
|
91
91
|
TAGLINE = 'create/read/write PNM image files (PBM, PGM, PPM)'
|
92
92
|
|
93
93
|
COPYRIGHT = <<-copyright.gsub(/^ +/, '')
|
94
|
-
Copyright (C) 2013-
|
94
|
+
Copyright (C) 2013-2015 Marcus Stollsteimer.
|
95
95
|
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
|
96
96
|
This is free software: you are free to change and redistribute it.
|
97
97
|
There is NO WARRANTY, to the extent permitted by law.
|
data/lib/pnm/image.rb
CHANGED
data/lib/pnm/version.rb
CHANGED
data/pnm.gemspec
CHANGED
@@ -23,9 +23,10 @@ Gem::Specification.new do |s|
|
|
23
23
|
|
24
24
|
s.license = 'GPL-3'
|
25
25
|
|
26
|
-
s.required_ruby_version = '>=1.9.3'
|
26
|
+
s.required_ruby_version = '>= 1.9.3'
|
27
27
|
|
28
|
-
s.add_development_dependency
|
28
|
+
s.add_development_dependency 'rake', '>= 10.0'
|
29
|
+
s.add_development_dependency 'minitest', '>= 5.0'
|
29
30
|
|
30
31
|
s.require_path = 'lib'
|
31
32
|
|
data/test/test_converter.rb
CHANGED
data/test/test_exceptions.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# test_exceptions.rb: Unit tests for the PNM library.
|
2
2
|
#
|
3
|
-
# Copyright (C) 2013-
|
3
|
+
# Copyright (C) 2013-2015 Marcus Stollsteimer
|
4
4
|
|
5
5
|
require 'minitest/autorun'
|
6
6
|
require 'stringio'
|
@@ -94,6 +94,11 @@ describe 'PNM.create' do
|
|
94
94
|
lambda { PNM.create(data) }.must_raise PNM::DataError
|
95
95
|
end
|
96
96
|
|
97
|
+
it 'raises an exception for an empty array' do
|
98
|
+
data = [[]]
|
99
|
+
lambda { PNM.create(data) }.must_raise PNM::DataError
|
100
|
+
end
|
101
|
+
|
97
102
|
it 'raises an exception for invalid PBM data (> 1)' do
|
98
103
|
data = [[0, 0], [2, 0]]
|
99
104
|
lambda { PNM.create(data, :type => :pbm) }.must_raise PNM::DataError
|
data/test/test_image.rb
CHANGED
data/test/test_parser.rb
CHANGED
data/test/test_pnm.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pnm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Marcus Stollsteimer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-01-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -16,14 +16,28 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0'
|
19
|
+
version: '10.0'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '0'
|
26
|
+
version: '10.0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: minitest
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '5.0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '5.0'
|
27
41
|
description: 'PNM is a pure Ruby library for creating, reading, and writing of PNM
|
28
42
|
image files (Portable Anymap): PBM (Portable Bitmap), PGM (Portable Graymap), and
|
29
43
|
PPM (Portable Pixmap).'
|