png_stitcher 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: ba2f50303712bbb5f03427d6bd5013086aec3312f5841b2c16ffd99a8c6618f2
4
+ data.tar.gz: bed853c335b5b058404ecb8ba342ed4e746cd7eb8283fa45c3bfdd5d2aef91fd
5
+ SHA512:
6
+ metadata.gz: 47163e007504c3ee3a466d0b5e2ed5a71369fddb23ab99a9a683f46a50cff086cce06e98a12052e9d33374bd564825fd6eebee0f06e5864feaab281e6cf43789
7
+ data.tar.gz: 682c0259a3d871a786cda7e4696802137558a177c3c462db5d4a6e786133acae2eb2b1e3a5ca9e524d649d2491a5018268bbbe0b1e72fa1c009dbe61d12627a5
data/.gitignore ADDED
@@ -0,0 +1,17 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
9
+
10
+ Makefile
11
+ *.bundle
12
+ *.o
13
+ *.rbc
14
+ /.bundle/
15
+ Gemfile.lock
16
+ .DS_Store
17
+ .ruby-version
data/.travis.yml ADDED
@@ -0,0 +1,5 @@
1
+ sudo: false
2
+ language: ruby
3
+ rvm:
4
+ - 2.3.1
5
+ before_install: gem install bundler -v 1.16.1
data/Gemfile ADDED
@@ -0,0 +1,6 @@
1
+ source "https://rubygems.org"
2
+
3
+ git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
4
+
5
+ # Specify your gem's dependencies in png_stitcher.gemspec
6
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2018 Bob Lail
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,48 @@
1
+ # PngStitcher
2
+
3
+ [![Build Status](https://travis-ci.org/cph/png_stitcher.svg)](https://travis-ci.org/cph/png_stitcher)
4
+
5
+ An optimized way to stack an arbitrary number of PNGs with the same width.
6
+
7
+ ## Installation
8
+
9
+ Add this line to your application's Gemfile:
10
+
11
+ ```ruby
12
+ gem "png_stitcher"
13
+ ```
14
+
15
+ And then execute:
16
+
17
+ $ bundle
18
+
19
+ Or install it yourself as:
20
+
21
+ $ gem install png_stitcher
22
+
23
+ ## Usage
24
+
25
+ ```ruby
26
+ require "png_stitcher"
27
+
28
+ a = File.binread("/path/to/a.png")
29
+ b = File.binread("/path/to/b.png")
30
+ c = PngStitcher.stitch([a, b])
31
+ File.open("/path/to/c.png", "wb") { |f| f.write(c) }
32
+
33
+ # c.png now contains a.png + b.png
34
+ ```
35
+
36
+ ## Development
37
+
38
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
39
+
40
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
41
+
42
+ ## Contributing
43
+
44
+ Bug reports and pull requests are welcome on GitHub at https://github.com/cph/png_stitcher.
45
+
46
+ ## License
47
+
48
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
data/Rakefile ADDED
@@ -0,0 +1,18 @@
1
+ require "bundler/gem_tasks"
2
+ require "rake/testtask"
3
+ require "rake/extensiontask"
4
+
5
+ Rake::ExtensionTask.new("png_stitcher") do |ext|
6
+ ext.lib_dir = File.join("lib", "png_stitcher")
7
+ ext.config_options = '--with-cflags="-std=c99"'
8
+ end
9
+
10
+ Rake::TestTask.new(:test) do |t|
11
+ t.libs << "test"
12
+ t.libs << "lib"
13
+ t.test_files = FileList["test/**/*_test.rb"]
14
+ end
15
+
16
+ Rake::Task[:test].prerequisites << :compile
17
+
18
+ task :default => :test
data/bin/console ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "png_stitcher"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start(__FILE__)
data/bin/setup ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,60 @@
1
+ #include "copied_from_oily_png.h"
2
+
3
+
4
+ // https://github.com/wvanbergen/oily_png/blob/v1.2.1/ext/oily_png/png_decoding.c#L10-L15
5
+ void oily_png_decode_filter_sub(BYTE* bytes, long pos, long line_length, char pixel_size) {
6
+ long i;
7
+ for (i = 1 + pixel_size; i < line_length; i++) {
8
+ UNFILTER_BYTE(bytes[pos + i], bytes[pos + i - pixel_size]);
9
+ }
10
+ }
11
+
12
+
13
+ // https://github.com/wvanbergen/oily_png/blob/v1.2.1/ext/oily_png/png_decoding.c#L18-L26
14
+ void oily_png_decode_filter_up(BYTE* bytes, long pos, long line_size, char pixel_size) {
15
+ UNUSED_PARAMETER(pixel_size);
16
+ long i;
17
+ if (pos >= line_size) { // The first line is not filtered because there is no previous line
18
+ for (i = 1; i < line_size; i++) {
19
+ UNFILTER_BYTE(bytes[pos + i], bytes[pos + i - line_size]);
20
+ }
21
+ }
22
+ }
23
+
24
+
25
+ // https://github.com/wvanbergen/oily_png/blob/v1.2.1/ext/oily_png/png_decoding.c#L29-L37
26
+ void oily_png_decode_filter_average(BYTE* bytes, long pos, long line_size, char pixel_size) {
27
+ long i;
28
+ BYTE a, b;
29
+ for (i = 1; i < line_size; i++) {
30
+ a = (i > pixel_size) ? bytes[pos + i - pixel_size] : 0;
31
+ b = (pos >= line_size) ? bytes[pos + i - line_size] : 0;
32
+ UNFILTER_BYTE(bytes[pos + i], (a + b) >> 1);
33
+ }
34
+ }
35
+
36
+
37
+ // https://github.com/wvanbergen/oily_png/blob/v1.2.1/ext/oily_png/png_decoding.c#L40-L54
38
+ void oily_png_decode_filter_paeth(BYTE* bytes, long pos, long line_size, char pixel_size) {
39
+ BYTE a, b, c, pr;
40
+ long i, p, pa, pb, pc;
41
+ for (i = 1; i < line_size; i++) {
42
+ a = (i > pixel_size) ? bytes[pos + i - pixel_size] : 0;
43
+ b = (pos >= line_size) ? bytes[pos + i - line_size] : 0;
44
+ c = (pos >= line_size && i > pixel_size) ? bytes[pos + i - line_size - pixel_size] : 0;
45
+ p = a + b - c;
46
+ pa = (p > a) ? p - a : a - p;
47
+ pb = (p > b) ? p - b : b - p;
48
+ pc = (p > c) ? p - c : c - p;
49
+ pr = (pa <= pb) ? (pa <= pc ? a : c) : (pb <= pc ? b : c);
50
+ UNFILTER_BYTE(bytes[pos + i], pr);
51
+ }
52
+ }
53
+
54
+
55
+ // https://github.com/wvanbergen/oily_png/blob/v1.2.1/ext/oily_png/png_decoding.c#L61-L65
56
+ BYTE oily_png_extract_1bit_element(BYTE* bytes, long start, long x) {
57
+ BYTE byte = bytes[start + 1 + (x >> 3)];
58
+ char bitshift = 7 - (x & (BYTE) 0x07);
59
+ return (byte & (0x01 << bitshift)) >> bitshift;
60
+ }
@@ -0,0 +1,29 @@
1
+ #ifndef PNG_STITCHER_COPIED_FROM_OILY_PNG_EXT
2
+ #define PNG_STITCHER_COPIED_FROM_OILY_PNG_EXT
3
+
4
+ #define RSTRING_NOT_MODIFIED
5
+
6
+ // PNG filter constants
7
+ #define OILY_PNG_FILTER_NONE 0
8
+ #define OILY_PNG_FILTER_SUB 1
9
+ #define OILY_PNG_FILTER_UP 2
10
+ #define OILY_PNG_FILTER_AVERAGE 3
11
+ #define OILY_PNG_FILTER_PAETH 4
12
+
13
+ // Macro to suppress warnings about unused parameters.
14
+ #define UNUSED_PARAMETER(param) (void) param
15
+
16
+ //
17
+ #define UNFILTER_BYTE(byte, adjustment) byte = (BYTE) (((byte) + (adjustment)) & 0x000000ff)
18
+
19
+ // Type definitions
20
+ typedef unsigned char BYTE; // Bytes use 8 bits unsigned integers
21
+
22
+ void oily_png_decode_filter_sub(BYTE* bytes, long pos, long line_length, char pixel_size);
23
+ void oily_png_decode_filter_up(BYTE* bytes, long pos, long line_size, char pixel_size);
24
+ void oily_png_decode_filter_average(BYTE* bytes, long pos, long line_size, char pixel_size);
25
+ void oily_png_decode_filter_paeth(BYTE* bytes, long pos, long line_size, char pixel_size);
26
+
27
+ BYTE oily_png_extract_1bit_element(BYTE* bytes, long start, long x);
28
+
29
+ #endif
@@ -0,0 +1,11 @@
1
+ require "mkmf"
2
+
3
+ # Give it a name
4
+ extension_name = 'png_stitcher'
5
+
6
+ # The destination
7
+ dir_config(extension_name)
8
+
9
+ $CFLAGS << " -Wall"
10
+
11
+ create_makefile("png_stitcher/png_stitcher")
@@ -0,0 +1,112 @@
1
+ #include "png_stitcher.h"
2
+
3
+ // Defined below
4
+ void encode_scanline_indexed_1bit(BYTE* bytes, BYTE* pixels, long y, long width);
5
+ VALUE method_stitch(VALUE self, VALUE datastreams, VALUE width, VALUE height);
6
+
7
+ // Entry point
8
+ void Init_png_stitcher() {
9
+ VALUE PngStitcher = rb_define_module("PngStitcher");
10
+ VALUE PngStitcherExt = rb_define_module_under(PngStitcher, "Ext");
11
+ rb_define_method(PngStitcherExt, "_stitch", method_stitch, 3);
12
+ }
13
+
14
+ // Adapted from OilyPng's methods for decoding and reencoding a PNG.
15
+ // See:
16
+ //
17
+ // https://github.com/wvanbergen/oily_png/blob/v1.2.1/ext/oily_png/png_decoding.c#L318-L374
18
+ // https://github.com/wvanbergen/oily_png/blob/v1.2.1/ext/oily_png/png_encoding.c#L242-L303
19
+ //
20
+ VALUE method_stitch(VALUE self, VALUE datastreams, VALUE rb_width, VALUE rb_height) {
21
+ long i;
22
+ long length = RARRAY_LEN(datastreams);
23
+ VALUE datastream, header, imagedata;
24
+ long width = FIX2LONG(rb_width);
25
+ long height = FIX2LONG(rb_height);
26
+ long line_size = (8 + (width + 7)) >> 3;
27
+ long part_height, pass_size, y, line_start, x;
28
+ long p = 0;
29
+
30
+ BYTE* pixels = ALLOC_N(BYTE, (width * height));
31
+
32
+ for (i = 0; i < length; i++) {
33
+ datastream = rb_ary_entry(datastreams, i);
34
+ header = rb_funcall(datastream, rb_intern("header_chunk"), 0);
35
+ imagedata = rb_funcall(datastream, rb_intern("imagedata"), 0);
36
+ part_height = FIX2LONG(rb_funcall(header, rb_intern("height"), 0));
37
+ pass_size = line_size * part_height;
38
+
39
+ // Make sure that the stream is large enough to contain our pass.
40
+ if (RSTRING_LEN(imagedata) < pass_size) {
41
+ rb_raise(rb_eRuntimeError, "The length of the stream is too short to contain the image!");
42
+ }
43
+
44
+ // Copy the bytes for this pass from the stream to a separate location
45
+ // so we can work on this byte array directly.
46
+ BYTE* bytes = ALLOC_N(BYTE, pass_size);
47
+ memcpy(bytes, RSTRING_PTR(imagedata), pass_size);
48
+
49
+ for (y = 0; y < part_height; y++) {
50
+ line_start = y * line_size;
51
+
52
+ // Apply filering to the line
53
+ switch (bytes[line_start]) {
54
+ case OILY_PNG_FILTER_NONE: break;
55
+ case OILY_PNG_FILTER_SUB: oily_png_decode_filter_sub( bytes, line_start, line_size, 1); break;
56
+ case OILY_PNG_FILTER_UP: oily_png_decode_filter_up( bytes, line_start, line_size, 1); break;
57
+ case OILY_PNG_FILTER_AVERAGE: oily_png_decode_filter_average( bytes, line_start, line_size, 1); break;
58
+ case OILY_PNG_FILTER_PAETH: oily_png_decode_filter_paeth( bytes, line_start, line_size, 1); break;
59
+ default: rb_raise(rb_eRuntimeError, "Filter type not supported: %d", bytes[line_start]);
60
+ }
61
+
62
+ // Set the filter byte to 0 because the bytearray is now unfiltered.
63
+ bytes[line_start] = (BYTE) 0;
64
+
65
+ for (x = 0; x < width; x++) {
66
+ pixels[p] = oily_png_extract_1bit_element(bytes, line_start, x);
67
+ p++;
68
+ }
69
+ }
70
+
71
+ xfree(bytes);
72
+ }
73
+
74
+ pass_size = line_size * height;
75
+
76
+ // Allocate memory for the byte array.
77
+ BYTE* bytes = ALLOC_N(BYTE, pass_size);
78
+
79
+ for (y = height - 1; y >= 0; y--) {
80
+ line_start = y * line_size;
81
+ bytes[line_start] = (BYTE) 0; // no filtering
82
+ encode_scanline_indexed_1bit(bytes + line_start + 1, pixels, y, width);
83
+ }
84
+
85
+ xfree(pixels);
86
+
87
+ VALUE result = rb_str_new((char*) bytes, pass_size);
88
+ xfree(bytes);
89
+ return result;
90
+ }
91
+
92
+
93
+ // https://github.com/wvanbergen/oily_png/blob/v1.2.1/ext/oily_png/png_encoding.c#L144-L157
94
+ //
95
+ // MODIFIED to accept `pixels` as a C array of index positions
96
+ // instead of a Ruby array of pixel values.
97
+ //
98
+ void encode_scanline_indexed_1bit(BYTE* bytes, BYTE* pixels, long y, long width) {
99
+ long x; BYTE p1, p2, p3, p4, p5, p6, p7, p8;
100
+ long pos = y * width;
101
+ for (x = 0; x < width; x += 8) {
102
+ p1 = (x + 0) < width ? pixels[pos + x + 0] : 0;
103
+ p2 = (x + 1) < width ? pixels[pos + x + 1] : 0;
104
+ p3 = (x + 2) < width ? pixels[pos + x + 2] : 0;
105
+ p4 = (x + 3) < width ? pixels[pos + x + 3] : 0;
106
+ p5 = (x + 4) < width ? pixels[pos + x + 4] : 0;
107
+ p6 = (x + 5) < width ? pixels[pos + x + 5] : 0;
108
+ p7 = (x + 6) < width ? pixels[pos + x + 6] : 0;
109
+ p8 = (x + 7) < width ? pixels[pos + x + 7] : 0;
110
+ bytes[x >> 3] = (BYTE) ((p1 << 7) | (p2 << 6) | (p3 << 5) | (p4 << 4) | (p5 << 3) | (p6 << 2) | (p7 << 1) | (p8));
111
+ }
112
+ }
@@ -0,0 +1,9 @@
1
+ #ifndef PNG_STITCHER_PNG_STITCHER_EXT
2
+ #define PNG_STITCHER_PNG_STITCHER_EXT
3
+
4
+ #include "ruby.h"
5
+ #include "copied_from_oily_png.h"
6
+
7
+ void Init_png_stitcher();
8
+
9
+ #endif
@@ -0,0 +1,49 @@
1
+ require "png_stitcher/version"
2
+ require "png_stitcher/png_stitcher"
3
+ require "chunky_png"
4
+
5
+ module PngStitcher
6
+ class << self
7
+ include PngStitcher::Ext
8
+
9
+ def stitch(blobs)
10
+ streams = []
11
+ height = 0
12
+ width = nil
13
+ palette = nil
14
+
15
+ blobs.each do |blob|
16
+ stream = ChunkyPNG::Datastream.from_blob(blob)
17
+ palette ||= ChunkyPNG::Palette.from_chunks(stream.palette_chunk, stream.transparency_chunk)
18
+ header = stream.header_chunk
19
+ width ||= header.width
20
+ height += header.height
21
+
22
+ raise ArgumentError, "Color Mode must be Indexed" unless header.color == ChunkyPNG::COLOR_INDEXED
23
+ raise ArgumentError, "Pixel Depth must be 1 bit per pixel" unless header.depth == 1
24
+ raise ArgumentError, "Interlacing must be disabled" unless header.interlace == ChunkyPNG::INTERLACING_NONE
25
+ raise ArgumentError, "All of the images must be the same width" unless header.width == width
26
+ raise ArgumentError, "All of the images must have the same palette" unless palette == ChunkyPNG::Palette.from_chunks(stream.palette_chunk, stream.transparency_chunk)
27
+
28
+ streams << stream
29
+ end
30
+
31
+ data = _stitch(streams, width, height)
32
+
33
+ stream = ChunkyPNG::Datastream.new
34
+ stream.header_chunk = ChunkyPNG::Chunk::Header.new(
35
+ width: width,
36
+ height: height,
37
+ color: ChunkyPNG::COLOR_INDEXED,
38
+ depth: 1,
39
+ interlace: 0)
40
+ stream.palette_chunk = palette.to_plte_chunk
41
+ stream.transparency_chunk = palette.to_trns_chunk unless palette.opaque?
42
+
43
+ stream.data_chunks = ChunkyPNG::Chunk::ImageData.split_in_chunks(data)
44
+ stream.end_chunk = ChunkyPNG::Chunk::End.new
45
+ stream.to_blob
46
+ end
47
+
48
+ end
49
+ end
@@ -0,0 +1,3 @@
1
+ module PngStitcher
2
+ VERSION = "0.1.0"
3
+ end
@@ -0,0 +1,35 @@
1
+
2
+ lib = File.expand_path("../lib", __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require "png_stitcher/version"
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "png_stitcher"
8
+ spec.version = PngStitcher::VERSION
9
+ spec.authors = ["Bob Lail"]
10
+ spec.email = ["bob.lailfamily@gmail.com"]
11
+
12
+ spec.summary = %q{Stitches an array of PNG blogs into one}
13
+ spec.homepage = "https://github.com/cph/png_stitcher"
14
+ spec.license = "MIT"
15
+
16
+ spec.files = `git ls-files -z`.split("\x0").reject do |f|
17
+ f.match(%r{^(test|spec|features)/})
18
+ end
19
+ spec.bindir = "exe"
20
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
21
+ spec.extensions = ["ext/png_stitcher/extconf.rb"]
22
+ spec.require_paths = ["lib", "ext"]
23
+
24
+ spec.add_runtime_dependency "chunky_png"
25
+
26
+ spec.add_development_dependency "bundler", "~> 1.16"
27
+ spec.add_development_dependency "rake", "~> 10.0"
28
+ spec.add_development_dependency "rake-compiler"
29
+ spec.add_development_dependency "minitest-reporters-turn_reporter"
30
+ spec.add_development_dependency "minitest-reporters"
31
+ spec.add_development_dependency "minitest", "~> 5.0"
32
+ spec.add_development_dependency "oily_png"
33
+ spec.add_development_dependency "pry"
34
+ spec.add_development_dependency "shoulda-context"
35
+ end
metadata ADDED
@@ -0,0 +1,202 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: png_stitcher
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Bob Lail
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2018-09-20 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: chunky_png
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: bundler
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '1.16'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '1.16'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rake
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '10.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '10.0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rake-compiler
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: minitest-reporters-turn_reporter
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: minitest-reporters
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: minitest
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: '5.0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: '5.0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: oily_png
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ - !ruby/object:Gem::Dependency
126
+ name: pry
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
139
+ - !ruby/object:Gem::Dependency
140
+ name: shoulda-context
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - ">="
144
+ - !ruby/object:Gem::Version
145
+ version: '0'
146
+ type: :development
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - ">="
151
+ - !ruby/object:Gem::Version
152
+ version: '0'
153
+ description:
154
+ email:
155
+ - bob.lailfamily@gmail.com
156
+ executables: []
157
+ extensions:
158
+ - ext/png_stitcher/extconf.rb
159
+ extra_rdoc_files: []
160
+ files:
161
+ - ".gitignore"
162
+ - ".travis.yml"
163
+ - Gemfile
164
+ - LICENSE.txt
165
+ - README.md
166
+ - Rakefile
167
+ - bin/console
168
+ - bin/setup
169
+ - ext/png_stitcher/copied_from_oily_png.c
170
+ - ext/png_stitcher/copied_from_oily_png.h
171
+ - ext/png_stitcher/extconf.rb
172
+ - ext/png_stitcher/png_stitcher.c
173
+ - ext/png_stitcher/png_stitcher.h
174
+ - lib/png_stitcher.rb
175
+ - lib/png_stitcher/version.rb
176
+ - png_stitcher.gemspec
177
+ homepage: https://github.com/cph/png_stitcher
178
+ licenses:
179
+ - MIT
180
+ metadata: {}
181
+ post_install_message:
182
+ rdoc_options: []
183
+ require_paths:
184
+ - lib
185
+ - ext
186
+ required_ruby_version: !ruby/object:Gem::Requirement
187
+ requirements:
188
+ - - ">="
189
+ - !ruby/object:Gem::Version
190
+ version: '0'
191
+ required_rubygems_version: !ruby/object:Gem::Requirement
192
+ requirements:
193
+ - - ">="
194
+ - !ruby/object:Gem::Version
195
+ version: '0'
196
+ requirements: []
197
+ rubyforge_project:
198
+ rubygems_version: 2.7.3
199
+ signing_key:
200
+ specification_version: 4
201
+ summary: Stitches an array of PNG blogs into one
202
+ test_files: []