pragmatic_tokenizer 0.3.4 → 0.4.0

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: 7bfc15f5e19157e3d4f5aba7f781dc4ce11ab73a
4
- data.tar.gz: 8416accd1749a6f51868bfc59060a7bc3f30c708
3
+ metadata.gz: 2f8b5c190992003a3b48fc266d801c818d02d928
4
+ data.tar.gz: d8782feae2c911fc4fb8495f04aff32bd95ac45a
5
5
  SHA512:
6
- metadata.gz: 4d3a59c05e2e526d619f70bfdcb12bc9bf5299897c4fff026883d5a23a849274fa9966d4cf47cff7aeb07639cf70a5ced4015e5974326b00f631c5815753088e
7
- data.tar.gz: a82349e9152127ed195a800803e1ee828459e286a0910147d53e5331c8b16f66516521f4d53b6a6bc3b80afb8d6995f4ec1ff290d46d59d50728eb1f46391d19
6
+ metadata.gz: 28dcbe0dcfddb462fd2273bbb41d3e3a9c89e6ed74aeafda8e2776e5ac7ba6b4d94d958b6c38f7738779e7ffc99568fdb46df9b7c664dbef4fb750e427d96af4
7
+ data.tar.gz: 8c3954220a4f35efbf883bf82338e1e67b4f1eb2fe574c7f9f3c825a46e8ef542d552172da3c09224360903673660d5cbd5282611475510dbf5a58a72c74af66
@@ -25,7 +25,8 @@ module PragmaticTokenizer
25
25
  # Punctuation 'only': Removes everything except punctuation. The
26
26
  # returned result is an array of only the punctuation.
27
27
  end
28
- @text = CGI.unescapeHTML(text.to_s)
28
+ raise "In Pragmatic Tokenizer text must be a String" unless text.class == String
29
+ @text = CGI.unescapeHTML(text)
29
30
  @language = language.to_s
30
31
  @language_module = Languages.get_language_by_code(language.to_s)
31
32
  @punctuation = punctuation.to_s
@@ -1,3 +1,3 @@
1
1
  module PragmaticTokenizer
2
- VERSION = "0.3.4"
2
+ VERSION = "0.4.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pragmatic_tokenizer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.4
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin S. Dias