imageparser 0.0.4 → 0.0.5

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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/imageparser.rb +1 -21
  3. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9a1b5a6df5b0fc38d8d29d0a6e6158d27dc06b4f
4
- data.tar.gz: 5e234d10606d74c6670d2be699c2b838f2aab8aa
3
+ metadata.gz: 269f952e1e36cd7a26289576fa2401a2406ac4f7
4
+ data.tar.gz: 3e327777fcf4928841d2158b341e89c85f059718
5
5
  SHA512:
6
- metadata.gz: b2fe83421c08af9db6bdf6b7b7699b0ee5e5aafe9fe45936b542a433527d41f47677c30c77fbf21a1441b4ebcb1299292eeffd34a0a5553443c970c1328d886d
7
- data.tar.gz: 2d4bae27e06e34e6751305c9652749aadd70902e6cbab64aee892e838c1b4d49356df7bd25d18b1a1ca427e7051e58935790670d2b01e002156ae11bfa0dcbc0
6
+ metadata.gz: 814d4a70759b32fedfc4c92defcf872a9b57ca7d0efdcd1173f88f22d62eb44cee913acc7bfd55ae715c552dbf44fcc5b5811edc34b34d7748c1d1eb0355f3fc
7
+ data.tar.gz: 305bdf3bf1b1f03ee4472a6cc6321cb6bed0b5b72dad6c7fd6195d27819d1b4f8bca7bd97b22ec3d863c11b033ef0a4e93bdbdc5fcbd7688c083cb2cc2ac8c6d
data/lib/imageparser.rb CHANGED
@@ -18,20 +18,6 @@ class ImageParser
18
18
  # Add parsed results into the hash `info`.
19
19
  #
20
20
  # These results are, the header, the width, the height, the RGB max value, the raster and the raster grid.
21
- #
22
- # Example: parse_ppm(hash)
23
- #
24
- # hash, :header = "P6"
25
- #
26
- # hash, :width = 4
27
- #
28
- # hash, :height = 4
29
- #
30
- # hash, :rgb = 255
31
- #
32
- # hash, :raster = [255, 42, 55, ..]
33
- #
34
- # hash, :raster_grid = [[34, 43, 55], ..]
35
21
  def parse_ppm(info)
36
22
  info[:header] = @con.split(" ")[0] if @con.split(" ")[0] == "P6"
37
23
  info[:width] = @con.split(" ")[1].to_i if @con.split(" ")[1].to_i > 0
@@ -45,13 +31,7 @@ class ImageParser
45
31
  #
46
32
  # Add parsed results into hash `info`.
47
33
  #
48
- # These results are, the header and the color information.
49
- #
50
- # Example: parse_ptf(hash)
51
- #
52
- # hash, :header = "PTF1"
53
- #
54
- # hash, :color_info = [3, 2, 33, 3]
34
+ # These results are, the header and the color information.
55
35
  def parse_ptf(info)
56
36
  info[:header] = @con.split(" ")[0] if @con.split(" ")[0] == "PTF1"
57
37
  info[:color_info] = @con.split(",")[1..-1].map {|s| s.delete ' '}
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: imageparser
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Himpon
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-07 00:00:00.000000000 Z
11
+ date: 2015-03-08 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Image Parsing Gem for PPM and PTF files.
14
14
  email: synattack@hotmail.com
@@ -40,5 +40,5 @@ rubyforge_project:
40
40
  rubygems_version: 2.4.6
41
41
  signing_key:
42
42
  specification_version: 4
43
- summary: Image Parsing
43
+ summary: Better Documentation
44
44
  test_files: []