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.
- checksums.yaml +4 -4
- data/lib/to_lua/helpers.rb +3 -5
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 15be565790a2fa1be41d98d4257b1d5c817affe7
|
4
|
+
data.tar.gz: bbb2f0f2f13a68cf19d148e18ff76d6e7a8ad07f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0eb7c5c0261499466a921b5c6cec676701bdd8fa4030cfb25f881c3b399c03191cd098ef75873167deeb3ce576e04e8de0b3951657805ae0567c068d4a1884c8
|
7
|
+
data.tar.gz: 7450544ec1c27f4368ffde9444313d611ede5bd98daff3b20f02515e3af896e32265f82fee8a24a76084744fe30cde75f0462a4219e9a80d438eb1f952cfdf37
|
data/lib/to_lua/helpers.rb
CHANGED
@@ -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.
|
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:
|
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.
|
70
|
+
rubygems_version: 2.5.1
|
71
71
|
signing_key:
|
72
72
|
specification_version: 4
|
73
73
|
summary: Serialize Ruby objects to lua tables
|