opener-tokenizer 1.0.5 → 1.0.6

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: 259f9f7da87e873c485215008ca513bc21910cb2
4
- data.tar.gz: 6ec262351df98470e51f583a9b7fcbf4231c6c81
3
+ metadata.gz: 8068efdaddd2e39be5e79f112fe510642b897108
4
+ data.tar.gz: bd2f22620b4a8c113f90862ad8343a7cef975e26
5
5
  SHA512:
6
- metadata.gz: 17675877f3707ab2d2d50864984fad3389465380aa5a97318738d32ffbb8c791a1e7638234196d42fffd40b92dcc7052665e773357cf18eb66624a219592bc68
7
- data.tar.gz: ea02e3831d19284129310bb0420550738bd4c49803776eee8fd788a1126f4a6e3fcf37a4b0a544239b352baef0d0dbbe1f4e945ad059941658e7f444fe4835a2
6
+ metadata.gz: b99b7903356298ffc99277e8baa8fef0fcba90fcc9532215a68165c7c2fcfdc1c6d6e1a866e57c81bd093f67eed95e6debb9daf5978906e2f782c76794374e0c
7
+ data.tar.gz: 58aaeade92a450c148530ef56cbc48f73fea4507be4180686cac18578863d07409a972812b354fefb55bd88a8bc8461ad1e080cce0c4518f235cc8ba77f714d6
@@ -1,5 +1,5 @@
1
1
  module Opener
2
2
  class Tokenizer
3
- VERSION = "1.0.5"
3
+ VERSION = "1.0.6"
4
4
  end
5
5
  end
@@ -64,7 +64,11 @@ module Opener
64
64
  else
65
65
  language = options[:language]
66
66
  end
67
-
67
+
68
+ unless valid_language?(language)
69
+ raise ArgumentError, "The specified language (#{language}) is invalid"
70
+ end
71
+
68
72
  kernel = language_constant(language).new(:args => options[:args])
69
73
 
70
74
  return Open3.capture3(*kernel.command.split(" "), :stdin_data => input)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opener-tokenizer
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.5
4
+ version: 1.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - development@olery.com