table2png 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/table2png/converter.rb +0 -5
- data/table2png.gemspec +3 -3
- metadata +1 -3
- data/lib/table2png/bin/wkhtmltoimage +0 -0
- data/lib/table2png/bin/wkhtmltoimage-amd64 +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8cfc7e720fc88f27deaa15a2f2b5ca1cfd2a3d3c
|
4
|
+
data.tar.gz: 0676e2a9460cfa352b3ec577d09a1db29d148441
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8322d111dde931e049e90a4a9a70c573c84fa59af1bb69dfbfd4500ad8fdcf8583dabf267380d0eb20e1e2aa7508d4f44d1ed702b379d01f3df1a374def9b9df
|
7
|
+
data.tar.gz: a52a315cd69a756dae0605bd107f0ba374ed5123997d62de80c8c269e39e2645c38e87b81edf7b78bf921be852876162a7a5f389f7e81a71757b75133115fd0d
|
data/lib/table2png/converter.rb
CHANGED
@@ -1,10 +1,5 @@
|
|
1
1
|
module Table2PNG
|
2
2
|
IMGKit.configure do |config|
|
3
|
-
binary_path = ENV['HEROKU'] ?
|
4
|
-
'bin/wkhtmltoimage-amd64' :
|
5
|
-
'bin/wkhtmltoimage'
|
6
|
-
|
7
|
-
config.wkhtmltoimage = File.join(File.dirname(__FILE__), binary_path)
|
8
3
|
config.default_options = { quality: 100, "disable-javascript" => true }
|
9
4
|
end
|
10
5
|
|
data/table2png.gemspec
CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
6
|
spec.name = "table2png"
|
7
|
-
spec.version = '0.0.
|
7
|
+
spec.version = '0.0.2'
|
8
8
|
spec.authors = ["Maiz Lulkin"]
|
9
9
|
spec.email = ["maiz@lulk.in"]
|
10
10
|
spec.description = %q{Generates a png based on an HTML table}
|
@@ -22,6 +22,6 @@ Gem::Specification.new do |spec|
|
|
22
22
|
spec.add_development_dependency "rake"
|
23
23
|
spec.add_development_dependency "rspec", "~>2.14"
|
24
24
|
|
25
|
-
spec.
|
26
|
-
spec.
|
25
|
+
spec.add_runtime_dependency 'chunky_png'
|
26
|
+
spec.add_runtime_dependency 'imgkit', '1.4.1'
|
27
27
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: table2png
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Maiz Lulkin
|
@@ -93,8 +93,6 @@ files:
|
|
93
93
|
- README.md
|
94
94
|
- Rakefile
|
95
95
|
- lib/table2png.rb
|
96
|
-
- lib/table2png/bin/wkhtmltoimage
|
97
|
-
- lib/table2png/bin/wkhtmltoimage-amd64
|
98
96
|
- lib/table2png/converter.rb
|
99
97
|
- lib/table2png/table.css
|
100
98
|
- spec/converter_spec.rb
|
Binary file
|
Binary file
|