-
Notifications
You must be signed in to change notification settings - Fork 101
/
chunky_png.gemspec
55 lines (43 loc) · 2.28 KB
/
chunky_png.gemspec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# frozen-string-literal: true
lib = File.expand_path("../lib", __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require "chunky_png/version"
Gem::Specification.new do |s|
s.name = "chunky_png"
# Do not change the version and date fields by hand. This will be done
# automatically by the gem release script.
s.version = ChunkyPNG::VERSION
s.summary = "Pure ruby library for read/write, chunk-level access to PNG files"
s.description = <<-EOT
This pure Ruby library can read and write PNG images without depending on an external
image library, like RMagick. It tries to be memory efficient and reasonably fast.
It supports reading and writing all PNG variants that are defined in the specification,
with one limitation: only 8-bit color depth is supported. It supports all transparency,
interlacing and filtering options the PNG specifications allows. It can also read and
write textual metadata from PNG files. Low-level read/write access to PNG chunks is
also possible.
This library supports simple drawing on the image canvas and simple operations like
alpha composition and cropping. Finally, it can import from and export to RMagick for
interoperability.
Also, have a look at OilyPNG at https://github.com/wvanbergen/oily_png. OilyPNG is a
drop in mixin module that implements some of the ChunkyPNG algorithms in C, which
provides a massive speed boost to encoding and decoding.
EOT
s.authors = ["Willem van Bergen"]
s.email = ["willem@railsdoctors.com"]
s.homepage = "https://github.com/wvanbergen/chunky_png/wiki"
s.license = "MIT"
s.metadata = {
"source_code_uri" => "https://github.com/wvanbergen/chunky_png",
"wiki_uri" => "https://github.com/wvanbergen/chunky_png/wiki",
}
s.add_development_dependency("rake")
s.add_development_dependency("standard")
s.add_development_dependency("yard", "~> 0.9")
s.add_development_dependency("rspec", "~> 3")
s.rdoc_options << "--title" << s.name << "--main" << "README.rdoc" << "--line-numbers" << "--inline-source"
s.extra_rdoc_files = ["README.md", "BENCHMARKING.rdoc", "CONTRIBUTING.rdoc", "CHANGELOG.rdoc"]
s.files = `git ls-files`.split($/)
s.test_files = s.files.grep(%r{^(test|spec|features)/})
s.required_ruby_version = ">= 2.0"
end