to_lua 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/to_lua/helpers.rb +3 -5
  3. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 62072c4e042598c081315d2b4a8205f5f5e27cdd
4
- data.tar.gz: 09482878204c938bd03716697b8cefcaeb45491b
3
+ metadata.gz: 15be565790a2fa1be41d98d4257b1d5c817affe7
4
+ data.tar.gz: bbb2f0f2f13a68cf19d148e18ff76d6e7a8ad07f
5
5
  SHA512:
6
- metadata.gz: d739faa3ee8539b53f42bb9710cf8eea5a217e8307d9bbacb03734dc9a3644a15e46b3414fb79aa11736fae8ce2e8ff01648d5f5d54120e1f246fb65289f8dba
7
- data.tar.gz: dd48b005f845439ff4bc086fc38cbc0597091eea6ef9dbb66fe54be992f6f12e59f9f813a02fbb9e738800925165fbc73b481439386ce67ba7d97a8446a5543c
6
+ metadata.gz: 0eb7c5c0261499466a921b5c6cec676701bdd8fa4030cfb25f881c3b399c03191cd098ef75873167deeb3ce576e04e8de0b3951657805ae0567c068d4a1884c8
7
+ data.tar.gz: 7450544ec1c27f4368ffde9444313d611ede5bd98daff3b20f02515e3af896e32265f82fee8a24a76084744fe30cde75f0462a4219e9a80d438eb1f952cfdf37
@@ -10,11 +10,9 @@ module ToLua
10
10
  "\v" => "\\v",
11
11
  "\\" => "\\\\",
12
12
  "\"" => "\\\"",
13
- "'" => "\\'",
14
- "[" => "\\[",
15
- "]" => "\\]"
13
+ "'" => "\\'"
16
14
  }.freeze
17
-
15
+
18
16
  LUA_RESERVED_KEYWORDS = %w(
19
17
  and break do else elseif end false for function if in local nil not or
20
18
  repeat return then true until while
@@ -38,7 +36,7 @@ module ToLua
38
36
 
39
37
  encoded.join
40
38
  end
41
-
39
+
42
40
  def self.valid_identifier?(identifier)
43
41
  valid_identifier_characters?(identifier) && !reserved_keyword?(identifier)
44
42
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: to_lua
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mantas Norvaiša
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-05-16 00:00:00.000000000 Z
11
+ date: 2016-08-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -67,7 +67,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
67
67
  version: '0'
68
68
  requirements: []
69
69
  rubyforge_project:
70
- rubygems_version: 2.4.6
70
+ rubygems_version: 2.5.1
71
71
  signing_key:
72
72
  specification_version: 4
73
73
  summary: Serialize Ruby objects to lua tables