pdftohtmlr 0.4.1 → 0.4.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: aecb1efa4b850ea2128463ad49acd570b73059df
4
+ data.tar.gz: 3c52cc3a3a5ec1e2b87badd812b98575546dfc34
5
+ SHA512:
6
+ metadata.gz: dfd80b936180feae9ec6ab696dd95cbef60d169d31fd546f5384f6dfdbc9f1c6db8730c9f79d430912f487923247d30a59b6865cef0d590eb6ca85b71a05e9e9
7
+ data.tar.gz: ba1307fc2713441b9a78e30c7649be4968123bb3dc1a2e3c6ffe7bcf464f37533bd6f2a7bbc0a864d746d5694b8acc5e50534aed1b01d89767d6b87f6f6f4c2b
@@ -1,4 +1,4 @@
1
- Copyright (c) 2009 kitplummer@gmail.com
1
+ Copyright (c) 2009-2010 kitplummer@gmail.com
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
@@ -4,21 +4,29 @@ Wrapper around the command line tool pdftohtml which converts PDF to HTML, go fi
4
4
 
5
5
  This gem was inspired by the MiniMagick gem - which does the same thing for ImageMagick (thanks Corey).
6
6
 
7
- h1. requirements
7
+ h1. Requirements
8
8
 
9
9
  Just pdftohtml and Ruby (1.8.6+ as far as I know).
10
10
 
11
- h1. install
11
+ On Mac:
12
+ <pre><code>brew install pdftohtml</code></pre>
13
+
14
+ On Ubuntu:
15
+ It should be installed by default with the 'poppler-utils' package.
16
+
17
+ h1. Install
12
18
 
13
19
  "http://gemcutter.org/gems/pdftohtmlr":http://gemcutter.org/gems/pdftohtmlr
14
20
 
15
21
  <pre><code>gem install pdftohtmlr</code></pre>
16
22
 
17
- h1. using
23
+ h1. Using
24
+
18
25
  "gist examples":http://gist.github.com/254556
19
26
 
20
27
  <pre><code lang="ruby">require 'pdftohtmlr'
21
28
  require 'nokogiri'
29
+ include PDFToHTMLR
22
30
  file = PdfFilePath.new([Path to Source PDF])
23
31
  string = file.convert
24
32
  doc = file.convert_to_document()</code></pre>
@@ -20,7 +20,7 @@ module PDFToHTMLR
20
20
  # Simple local error abstraction
21
21
  class PDFToHTMLRError < RuntimeError; end
22
22
 
23
- VERSION = '0.4.1'
23
+ VERSION = '0.4.2'
24
24
 
25
25
  # Provides facilities for converting PDFs to HTML from Ruby code.
26
26
  class PdfFile
@@ -10,9 +10,9 @@ class PdfFileTest < Test::Unit::TestCase
10
10
  TEST_BAD_PATH = "blah.pdf"
11
11
  TEST_NON_PDF = CURRENT_DIR + "pdftohtmlr_test.rb"
12
12
  TEST_URL_PDF =
13
- "http://github.com/kitplummer/pdftohtmlr/raw/master/test/test.pdf"
13
+ "https://s3.amazonaws.com/pdf2htmlr/test.pdf"
14
14
  TEST_URL_NON_PDF =
15
- "http://github.com/kitplummer/pdftohtmlr/raw/master/test/pdftohtmlr_test.rb"
15
+ "https://s3.amazonaws.com/pdf2htmlr/pdftohtmlr_test.rb"
16
16
  def test_pdffile_new
17
17
  file = PdfFilePath.new(TEST_PDF_PATH, ".", nil, nil)
18
18
  assert file
@@ -88,7 +88,7 @@ class PdfFileTest < Test::Unit::TestCase
88
88
 
89
89
  def test_invalid_URL_resource_pdffile
90
90
  e = assert_raise PDFToHTMLRError do
91
- file = PdfFileUrl.new("http://github.com/kitplummer/blah", ".", nil, nil)
91
+ file = PdfFileUrl.new("http://zyx.com/kitplummer/blah", ".", nil, nil)
92
92
  end
93
93
  assert_equal "404 Not Found", e.to_s
94
94
  end
metadata CHANGED
@@ -1,36 +1,35 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: pdftohtmlr
3
- version: !ruby/object:Gem::Version
4
- version: 0.4.1
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.4.2
5
5
  platform: ruby
6
- authors:
6
+ authors:
7
7
  - Kit Plummer
8
8
  autorequire: pdftohtml
9
9
  bindir: bin
10
10
  cert_chain: []
11
-
12
- date: 2009-12-18 00:00:00 -07:00
13
- default_executable:
14
- dependencies:
15
- - !ruby/object:Gem::Dependency
11
+ date: 2013-12-25 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
16
14
  name: nokogiri
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - '>='
18
+ - !ruby/object:Gem::Version
19
+ version: 1.3.3
17
20
  type: :runtime
18
- version_requirement:
19
- version_requirements: !ruby/object:Gem::Requirement
20
- requirements:
21
- - - ">="
22
- - !ruby/object:Gem::Version
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - '>='
25
+ - !ruby/object:Gem::Version
23
26
  version: 1.3.3
24
- version:
25
27
  description: Uses command-line pdftohtml tools to convert PDF files to HTML.
26
28
  email: kitplummer@gmail.com
27
29
  executables: []
28
-
29
30
  extensions: []
30
-
31
31
  extra_rdoc_files: []
32
-
33
- files:
32
+ files:
34
33
  - Rakefile
35
34
  - README.textile
36
35
  - MIT-LICENSE
@@ -38,33 +37,28 @@ files:
38
37
  - test/pdftohtmlr_test.rb
39
38
  - test/test.pdf
40
39
  - test/test_pw.pdf
41
- has_rdoc: true
42
40
  homepage: http://github.com/kitplummer/pdftohtmlr
43
41
  licenses: []
44
-
42
+ metadata: {}
45
43
  post_install_message:
46
44
  rdoc_options: []
47
-
48
- require_paths:
45
+ require_paths:
49
46
  - lib
50
- required_ruby_version: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - ">="
53
- - !ruby/object:Gem::Version
54
- version: "0"
55
- version:
56
- required_rubygems_version: !ruby/object:Gem::Requirement
57
- requirements:
58
- - - ">="
59
- - !ruby/object:Gem::Version
60
- version: "0"
61
- version:
62
- requirements:
47
+ required_ruby_version: !ruby/object:Gem::Requirement
48
+ requirements:
49
+ - - '>='
50
+ - !ruby/object:Gem::Version
51
+ version: '0'
52
+ required_rubygems_version: !ruby/object:Gem::Requirement
53
+ requirements:
54
+ - - '>='
55
+ - !ruby/object:Gem::Version
56
+ version: '0'
57
+ requirements:
63
58
  - none
64
59
  rubyforge_project: pdftohtmlr
65
- rubygems_version: 1.3.5
60
+ rubygems_version: 2.0.14
66
61
  signing_key:
67
- specification_version: 3
62
+ specification_version: 4
68
63
  summary: Convert PDF documents to HTML.
69
64
  test_files: []
70
-