docsplit 0.8.0.alpha → 0.8.0.alpha1

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
2
  SHA1:
3
- metadata.gz: 74386527dc285350f68f32adc8ff00d8386fceb6
4
- data.tar.gz: 9af1f5b45c5f684393732ab7e25a8c30c0ab357a
3
+ metadata.gz: bed114c04083be64c6f974b342c55f3f7d89dd49
4
+ data.tar.gz: 825bec63f5b3cc100cc311e074da74a7a37b0842
5
5
  SHA512:
6
- metadata.gz: 42fe34c591dec03a4392bb2b0c43b1c224062f1ffdb5608bf8671487c3441ac703871e1da48d05428a90f7abb11b191ecfa4eb5d2778b8e886827523250f1561
7
- data.tar.gz: de4a3bc034585d2dbcc952fd5276c41d00710f8171671b818bc540032309c1e9c9a0914657cae08f478112366d86f1fc68f4df2f0ae085f132927b74fb1f45bd
6
+ metadata.gz: 4d3cd23ad334f70930f044b88a838aa173d48f2997b96c9b401709225451bb53c00ee6a39ccdac2f6c0bcd1dbe4fa7a536ad2da0ebea25c6d2423ccc3c80b685
7
+ data.tar.gz: 40f1dcad7121920a233d062761ac795d02ccb15c2ffa09a4208e3ef56ca0ef436aaea8c08d1097300f6954f40ea25f1b31977a66a426c0ce1443ddcaf611289d
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'docsplit'
3
- s.version = '0.8.0.alpha' # Keep version in sync with docsplit.rb
3
+ s.version = '0.8.0.alpha1' # Keep version in sync with docsplit.rb
4
4
  s.date = '2014-11-17'
5
5
 
6
6
  s.homepage = "http://documentcloud.github.com/docsplit/"
@@ -21,9 +21,10 @@ module Docsplit
21
21
  pdf_name = File.basename(pdf_path, File.extname(pdf_path))
22
22
  filename = "#{pdf_name}_#{page.number}.#{format}"
23
23
  destination = File.join(directory, filename)
24
- FileUtils.mkdir_p ESCAPE[directory]
24
+ FileUtils.mkdir_p directory
25
25
 
26
26
  dimensions = page.extract_dimensions_from_gm_geometry_string(size_string)
27
+ puts "Page: #{page.inspect}\ndestination: #{destination.inspect}\ndimensions: #{dimensions.inspect}"
27
28
  page.render(destination, dimensions)
28
29
  end
29
30
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: docsplit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0.alpha
4
+ version: 0.8.0.alpha1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeremy Ashkenas