coloration 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -7,7 +7,11 @@ module Coloration
7
7
  class InvalidThemeError < RuntimeError; end
8
8
 
9
9
  def parse_input
10
- tm_theme = Plist.parse_xml(input.gsub("ustring", "string"))
10
+ begin
11
+ tm_theme = Plist.parse_xml(input.gsub("ustring", "string"))
12
+ rescue
13
+ raise InvalidThemeError
14
+ end
11
15
  raise InvalidThemeError if tm_theme.nil?
12
16
  self.name = tm_theme["name"]
13
17
  settings = tm_theme["settings"]
@@ -1,3 +1,3 @@
1
1
  module Coloration
2
- VERSION = "0.2.2".freeze
2
+ VERSION = "0.2.3".freeze
3
3
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 2
8
- - 2
9
- version: 0.2.2
8
+ - 3
9
+ version: 0.2.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - Marcin Kulik
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-07-22 00:00:00 +02:00
17
+ date: 2010-07-29 00:00:00 +02:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency