elegant 1.2.0 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/README.md +6 -6
- data/elegant.gemspec +1 -1
- data/lib/elegant/header.rb +1 -1
- data/lib/elegant/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ebad26d71b81a671c0fce9e6a2f3ffd39e0a7212
|
4
|
+
data.tar.gz: 6783d9d82cdcf92fc203171202dff580ea2d6b7d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9fa38c1aad362ee772386b6f5fd0f33a78cf3bd48f0a6769085e82d930457e9d291fd2b3443bba37333090ef70e4cf7f26a4d54149706538b20b086a5f10d344
|
7
|
+
data.tar.gz: be697ed20f5b1f7dabd962af754cf175fcc7e3b5b39df0ecf1dcf26f52f494a81c22637d19a2cb5780779f40a6421457dd064c1f9ec130aeb56536e315334ad5
|
data/CHANGELOG.md
CHANGED
@@ -6,6 +6,11 @@ For more information about changelogs, check
|
|
6
6
|
[Keep a Changelog](http://keepachangelog.com) and
|
7
7
|
[Vandamme](http://tech-angels.github.io/vandamme).
|
8
8
|
|
9
|
+
## 1.2.1 - 2016.02.22
|
10
|
+
|
11
|
+
* [BUGFIX] Don’t try to render GIF images in PDF files since Prawn does not support them.
|
12
|
+
* [ENHANCEMENT] Update homepage on rubygems.org.
|
13
|
+
|
9
14
|
## 1.2.0 - 2016.01.21
|
10
15
|
|
11
16
|
* [ENHANCEMENT] White background below the logo
|
data/README.md
CHANGED
@@ -3,13 +3,13 @@ Elegant
|
|
3
3
|
|
4
4
|
Elegant provides a nice layout for PDF reports generated in Ruby.
|
5
5
|
|
6
|
-
The **source code** is available on [GitHub](https://github.com/
|
6
|
+
The **source code** is available on [GitHub](https://github.com/claudiob/elegant) and the **documentation** on [RubyDoc](http://www.rubydoc.info/github/claudiob/elegant/master/Elegant/Interface).
|
7
7
|
|
8
|
-
[![Build Status](http://img.shields.io/travis/
|
9
|
-
[![Coverage Status](http://img.shields.io/coveralls/
|
10
|
-
[![Dependency Status](http://img.shields.io/gemnasium/
|
11
|
-
[![Code Climate](http://img.shields.io/codeclimate/github/
|
12
|
-
[![Online docs](http://img.shields.io/badge/docs-✓-green.svg)](http://www.rubydoc.info/github/
|
8
|
+
[![Build Status](http://img.shields.io/travis/claudiob/elegant/master.svg)](https://travis-ci.org/claudiob/elegant)
|
9
|
+
[![Coverage Status](http://img.shields.io/coveralls/claudiob/elegant/master.svg)](https://coveralls.io/r/claudiob/elegant)
|
10
|
+
[![Dependency Status](http://img.shields.io/gemnasium/claudiob/elegant.svg)](https://gemnasium.com/claudiob/elegant)
|
11
|
+
[![Code Climate](http://img.shields.io/codeclimate/github/claudiob/elegant.svg)](https://codeclimate.com/github/claudiob/elegant)
|
12
|
+
[![Online docs](http://img.shields.io/badge/docs-✓-green.svg)](http://www.rubydoc.info/github/claudiob/elegant/master/Elegant)
|
13
13
|
[![Gem Version](http://img.shields.io/gem/v/elegant.svg)](http://rubygems.org/gems/elegant)
|
14
14
|
|
15
15
|
Elegant is a library built on top of [Prawn](http://prawnpdf.org) to generate PDF files in Ruby.
|
data/elegant.gemspec
CHANGED
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
|
|
10
10
|
|
11
11
|
spec.summary = %q{An elegant layout for PDF reports generated in Ruby.}
|
12
12
|
spec.description = %q{Elegant expands Prawn providing a new class to generate new pages with an elegant layout.}
|
13
|
-
spec.homepage = 'https://github.com/
|
13
|
+
spec.homepage = 'https://github.com/claudiob/elegant'
|
14
14
|
spec.license = 'MIT'
|
15
15
|
|
16
16
|
spec.required_ruby_version = '>= 2.1' # 2.0 does not have Array#to_h
|
data/lib/elegant/header.rb
CHANGED
@@ -69,7 +69,7 @@ module Elegant
|
|
69
69
|
top = bounds.top + @logo_height / 2
|
70
70
|
options = {width: @logo_width, height: @logo_height, at: [left, top]}
|
71
71
|
image open(@logo[:url]), options
|
72
|
-
rescue OpenURI::HTTPError, OpenSSL::SSL::SSLError, SocketError
|
72
|
+
rescue OpenURI::HTTPError, OpenSSL::SSL::SSLError, SocketError, Prawn::Errors::UnsupportedImageType
|
73
73
|
end
|
74
74
|
|
75
75
|
# Writes the heading for the document in the top-right corner of each page,
|
data/lib/elegant/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: elegant
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- claudiob
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-02-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: prawn
|
@@ -139,7 +139,7 @@ files:
|
|
139
139
|
- lib/elegant/images/default_watermark.png
|
140
140
|
- lib/elegant/typography.rb
|
141
141
|
- lib/elegant/version.rb
|
142
|
-
homepage: https://github.com/
|
142
|
+
homepage: https://github.com/claudiob/elegant
|
143
143
|
licenses:
|
144
144
|
- MIT
|
145
145
|
metadata: {}
|