jst-parser 0.0.1 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +8 -8
  2. data/lib/jst.rb +7 -1
  3. data/lib/jst/version.rb +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- Y2IyNDAwNGQzZTVlODFhNWJhZGFlYmZlZmQ0ZmQ1YjljYmI5YmFiYQ==
4
+ YWM5MzYzYmZkMmU0ZDY1YzZkMmY4NmE0YmM2MjE3MTlhYWQ2MzYzOA==
5
5
  data.tar.gz: !binary |-
6
- ZDMwZWYzYTMzY2JjMzUyYWJiN2IzZWUxNTAyOWJhOTZmZDNlMzkwZg==
6
+ ZjE0Yjc2YTNmMGQxZjNiNGYzOGQxMzk5OWY1ZDZjZmE4NGY1NjQ2Mw==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- MjAyNjc0ODE2YmZhNGM2NGIzODQwOGE2MjAyNWQyNjM0MTY0YWE3NjM4YWVi
10
- NDkwOGQ5NjY4MWRiMmVhMjcwODgwZmM2MTMyNDZkMDY3OWY3ZmE4MmNmNzM1
11
- NDk4MTY0NTRjNTYwYTNkYzM5ZDg3MzAzYzBjMTA5YWQ4OTc2MDc=
9
+ MWNjMGQzYzQ4ZmZmYjcyNjM5ZTJkMzdiMmEzMGZmNGJmMzUwZWM3NzM0MWMx
10
+ YTMzZWUyNmI5ODI5NzU1ZjM3MmMxNGNhNjU2YjgyYTg2NWM3OWU5MjI1NTVm
11
+ Njc5MWM2YWFmYjA5ZjhkNjdkZDYzNzJjNjZlNTI3NGFkOTYwYmY=
12
12
  data.tar.gz: !binary |-
13
- ODYxMTdjNGNjMzBmNjQ0M2ZlZmE0YWIwNjNhYTA2MTQxMTJjOTM1YTBjNTRh
14
- YjlhNTViMDEwYzU1YTAyNGRiMTEwMWNlMzNkMWRlZmIwMTYxMDdiNGUxNDRj
15
- MDQ0M2IzNzUzNTQ0NGM2MjI5NjkyNGFlMGM3ZGEzMWMzYTZmYTU=
13
+ NDUyNDNmMDVlOTBjYmYyYWMzZWNmMDg2NDgwMzIyMjgzYWVjMjk1ZWQ0MDVk
14
+ MjBjY2UwM2NiZTZhOTc2MTEwMzQ3M2IyMWVjODRmNTk0MDhkYWY3ODJmNjAy
15
+ NzgwZjI3NjA1MjI1MzgyOTdhZTg1MzkxYTAzMzdjNzQzOTEwNzk=
data/lib/jst.rb CHANGED
@@ -45,7 +45,13 @@ module JST
45
45
 
46
46
  return @jst_response
47
47
  rescue PDF::Reader::MalformedPDFError
48
- raise JST::Parser::BadPDFError, "Could not parse JST."
48
+ raise BadPDFError, "Could not parse JST."
49
+ rescue ArgumentError
50
+ raise BadPDFError, "PDF text parsing exception."
51
+ rescue PDF::Reader::UnknownGlyphWidthError
52
+ # Waiting for this exception to be commited from the following pull request:
53
+ # https://github.com/yob/pdf-reader/pull/105
54
+ raise BadPDFError, "PDF text parsing exception."
49
55
  end
50
56
  end
51
57
  end
@@ -1,3 +1,3 @@
1
1
  module JST
2
- VERSION = "0.0.1"
2
+ VERSION = "0.1.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jst-parser
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Little