weskit 0.3.3 → 0.3.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -3,7 +3,7 @@ Weskit
3
3
 
4
4
  [![Build Status](https://secure.travis-ci.org/f6p/weskit.png?branch=master)](http://travis-ci.org/f6p/weskit)
5
5
  [![Gem Version](https://badge.fury.io/rb/weskit.png)](http://badge.fury.io/rb/weskit)
6
- [![Code Climate](https://codeclimate.com/github/f6p/weskit.png)](https://codeclimate.com/github/f6p/weskit.png)
6
+ [![Code Climate](https://codeclimate.com/github/f6p/weskit.png)](https://codeclimate.com/github/f6p/weskit)
7
7
 
8
8
  Weskit gem consists of tools for interaction with Wesnoth Markup Langage and
9
9
  Wesnoth infrastructure. For more documentation check out ri pages and examples
@@ -1,3 +1,3 @@
1
1
  module Weskit
2
- VERSION = '0.3.3'
2
+ VERSION = '0.3.4'
3
3
  end
@@ -47,9 +47,9 @@ module Weskit::WML
47
47
  string = object.to_s.strip
48
48
 
49
49
  object = case string
50
- when %r{^nil|null$} then nil
51
- when %r{^true|yes$} then true
52
- when %r{^false|no$} then false
50
+ when %r{^(nil|null)$} then nil
51
+ when %r{^(true|yes)$} then true
52
+ when %r{^(false|no)$} then false
53
53
  when %r{^[0-9]*\.[0-9]+$} then Float string
54
54
  when %r{^[0-9]+$} then Integer string
55
55
  else string
@@ -58,4 +58,4 @@ module Weskit::WML
58
58
  object.attr = self ; object
59
59
  end
60
60
  end
61
- end
61
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: weskit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 0.3.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-03-21 00:00:00.000000000 Z
12
+ date: 2013-03-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: kpeg