slim2pdf 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: ad7879217ee023a3ff06d7208b619731845d7ec4
4
- data.tar.gz: d3bb6fa0e2096905b2491459863a5c96ff99eb76
2
+ SHA256:
3
+ metadata.gz: ef8e004d2f50a7b474c91fd8f762e128db4c50f08dca5cbe9bc14bb5b80e71f0
4
+ data.tar.gz: 954e640d1f1a67be96c12a51c7a1f3333ecb1cc4a871f79888b830147dd8f64f
5
5
  SHA512:
6
- metadata.gz: 397c739e476815948d51492d2a5a41cea5f4bd3ebcf69e269b872a91d5af9119d4d2f30759ae35a5d485fb68b35c050aa3ae3d050c914737a1a750cf73cfc17d
7
- data.tar.gz: e6982e87e92cdae9581e0a6fb070677a5356dace3ba1e216d434c3d79c53fa6fb5c8bda446ffc350d102952c3541981b57c66c908f95ca4b7317aa88a753330a
6
+ metadata.gz: e8d3438a077f40ca8b711681958df0685c5a6944e2ff5067c875dc6315ed28f8c8b67b10d5c1f50423b937267878ae6f5c00ebb067553a25c4c282f3fa72586f
7
+ data.tar.gz: 15eae9440f3f54004176d2c78cf8fe7cffef55ae2f813c2027e95ef552bfd95de7b4750509175c721814a2464439a12f8db1cc5644c52f88a87a223310812354
@@ -1,3 +1,5 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 2.1.10
3
+ - 2.4.6
4
+ - 2.5.5
5
+ - 2.6.3
@@ -1,3 +1,3 @@
1
1
  module Slim2pdf
2
- VERSION = '0.0.5'.freeze
2
+ VERSION = '0.0.6'.freeze
3
3
  end
@@ -41,6 +41,8 @@ module Slim2pdf
41
41
 
42
42
  def logger
43
43
  @logger ||= defined?(Rails) ? Rails.logger : nil
44
+ rescue NoMethodError
45
+ nil
44
46
  end
45
47
 
46
48
  private
@@ -20,8 +20,9 @@ Gem::Specification.new do |spec|
20
20
 
21
21
  spec.add_development_dependency "bundler"
22
22
  spec.add_development_dependency "rake"
23
+ spec.add_development_dependency "minitest"
23
24
  spec.add_development_dependency "simplecov"
24
25
 
25
- spec.add_dependency 'slim', '~> 3.0.7'
26
- spec.add_dependency "wkhtmltopdf-binary", "~> 0.12.3"
26
+ spec.add_dependency 'slim', '~> 4.0.1'
27
+ spec.add_dependency "wkhtmltopdf-binary", "~> 0.12.4"
27
28
  end
@@ -3,7 +3,7 @@ require 'logger'
3
3
  require 'stringio'
4
4
 
5
5
  module Slim2pdf
6
- class WriterTest < MiniTest::Unit::TestCase
6
+ class WriterTest < Minitest::Test
7
7
  def setup
8
8
  @data = { title: 'Slim2pdf', content: 'Slim to PDF conversion gem' }
9
9
  @template = File.expand_path('../tpl/test.slim', __FILE__)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: slim2pdf
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Piotr Macuk
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-09-08 00:00:00.000000000 Z
11
+ date: 2019-05-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -38,6 +38,20 @@ dependencies:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: minitest
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
41
55
  - !ruby/object:Gem::Dependency
42
56
  name: simplecov
43
57
  requirement: !ruby/object:Gem::Requirement
@@ -58,28 +72,28 @@ dependencies:
58
72
  requirements:
59
73
  - - "~>"
60
74
  - !ruby/object:Gem::Version
61
- version: 3.0.7
75
+ version: 4.0.1
62
76
  type: :runtime
63
77
  prerelease: false
64
78
  version_requirements: !ruby/object:Gem::Requirement
65
79
  requirements:
66
80
  - - "~>"
67
81
  - !ruby/object:Gem::Version
68
- version: 3.0.7
82
+ version: 4.0.1
69
83
  - !ruby/object:Gem::Dependency
70
84
  name: wkhtmltopdf-binary
71
85
  requirement: !ruby/object:Gem::Requirement
72
86
  requirements:
73
87
  - - "~>"
74
88
  - !ruby/object:Gem::Version
75
- version: 0.12.3
89
+ version: 0.12.4
76
90
  type: :runtime
77
91
  prerelease: false
78
92
  version_requirements: !ruby/object:Gem::Requirement
79
93
  requirements:
80
94
  - - "~>"
81
95
  - !ruby/object:Gem::Version
82
- version: 0.12.3
96
+ version: 0.12.4
83
97
  description: Slim2pdf renders slim template with data hash and save the results as
84
98
  pdf file.
85
99
  email:
@@ -132,8 +146,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
132
146
  - !ruby/object:Gem::Version
133
147
  version: '0'
134
148
  requirements: []
135
- rubyforge_project:
136
- rubygems_version: 2.4.8
149
+ rubygems_version: 3.0.3
137
150
  signing_key:
138
151
  specification_version: 4
139
152
  summary: Slim template to pdf file conversion tool.