rufus-lua 1.1.3 → 1.1.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 66f3203af5eae5bcd81de0fdd24ebd96141dcc8b
4
+ data.tar.gz: dcb726a58e39d165741144c3537d3c15375f2f00
5
+ SHA512:
6
+ metadata.gz: 3c33733dc605b81902cde9796dd9260ea0a524f2a0eba4c7459c097b0495166cd9837ef1140478b532d4b4089afc0e2476c2e18108beef7445720a0f50711b5d
7
+ data.tar.gz: a216e7fea81a9819644467556e1c5a7aa99b29a01c7375f16e17b1dd542fbd0d2d8a370abc13e29c944f8051e1892896cecd4a67a3c0b75c390195b9fa2abe22
data/CHANGELOG.txt CHANGED
@@ -2,6 +2,11 @@
2
2
  = rufus-lua CHANGELOG.txt
3
3
 
4
4
 
5
+ == rufus-lua - 1.1.4 released 2018/03/15
6
+
7
+ - Replace deprecated Fixnum by Integer, gh-40
8
+
9
+
5
10
  == rufus-lua - 1.1.3 released 2016/08/21
6
11
 
7
12
  - respect non-ascii eval input sources (Andri Möll)
data/CREDITS.txt CHANGED
@@ -20,6 +20,7 @@ Nathanael Jones https://github.com/nathanaeljones
20
20
 
21
21
  == feedback
22
22
 
23
+ Chad Simmons https://github.com/polpak, gh-40
23
24
  Stas Ukolov https://github.com/ukoloff
24
25
 
25
26
 
data/LICENSE.txt CHANGED
@@ -1,5 +1,5 @@
1
1
 
2
- Copyright (c) 2009-2016, John Mettraux, Alain Hoang.
2
+ Copyright (c) 2009-2018, John Mettraux, Alain Hoang.
3
3
 
4
4
  Permission is hereby granted, free of charge, to any person obtaining a copy
5
5
  of this software and associated documentation files (the "Software"), to deal
@@ -19,3 +19,6 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
19
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
20
20
  THE SOFTWARE.
21
21
 
22
+
23
+ Made in Japan
24
+
data/README.md CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Lua embedded in Ruby, via Ruby FFI.
7
7
 
8
- (Lua 5.1.x only, sorry).
8
+ (Lua 5.1.x only, [no luajit](https://github.com/jmettraux/rufus-lua/issues/37) out of the box).
9
9
 
10
10
 
11
11
  ## Lua
@@ -158,7 +158,7 @@ But this rufus-lua eval mimics the Ruby `eval` and lets one specify binding, fil
158
158
 
159
159
  (TODO) Binding hasn't yet been implemented. It'll probaby be with `setfenv` but nothing sure yet. Stick a `nil` to it for now.
160
160
 
161
- The string of Lua code may come from wild places, it may help to flag it with arbitrary filename and lineno.
161
+ The string of Lua code may come from wild places, it may help to flag it with an arbitrary filename and a lineno.
162
162
 
163
163
  ```ruby
164
164
  require 'rufus-lua'
data/lib/rufus/lua.rb CHANGED
@@ -1,26 +1,3 @@
1
- #--
2
- # Copyright (c) 2009-2016, John Mettraux, Alain Hoang.
3
- #
4
- # Permission is hereby granted, free of charge, to any person obtaining a copy
5
- # of this software and associated documentation files (the "Software"), to deal
6
- # in the Software without restriction, including without limitation the rights
7
- # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
- # copies of the Software, and to permit persons to whom the Software is
9
- # furnished to do so, subject to the following conditions:
10
- #
11
- # The above copyright notice and this permission notice shall be included in
12
- # all copies or substantial portions of the Software.
13
- #
14
- # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
- # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
- # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
- # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
- # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
- # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
20
- # THE SOFTWARE.
21
- #
22
- # Made in Japan.
23
- #++
24
1
 
25
2
  require 'rufus/lua/version'
26
3
 
@@ -1,27 +1,3 @@
1
- #--
2
- # Copyright (c) 2009-2016, John Mettraux, Alain Hoang.
3
- #
4
- # Permission is hereby granted, free of charge, to any person obtaining a copy
5
- # of this software and associated documentation files (the "Software"), to deal
6
- # in the Software without restriction, including without limitation the rights
7
- # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
- # copies of the Software, and to permit persons to whom the Software is
9
- # furnished to do so, subject to the following conditions:
10
- #
11
- # The above copyright notice and this permission notice shall be included in
12
- # all copies or substantial portions of the Software.
13
- #
14
- # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
- # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
- # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
- # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
- # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
- # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
20
- # THE SOFTWARE.
21
- #
22
- # Made in Japan.
23
- #++
24
-
25
1
 
26
2
  module Rufus::Lua
27
3
 
data/lib/rufus/lua/lib.rb CHANGED
@@ -1,27 +1,3 @@
1
- #--
2
- # Copyright (c) 2009-2016, John Mettraux, Alain Hoang.
3
- #
4
- # Permission is hereby granted, free of charge, to any person obtaining a copy
5
- # of this software and associated documentation files (the "Software"), to deal
6
- # in the Software without restriction, including without limitation the rights
7
- # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
- # copies of the Software, and to permit persons to whom the Software is
9
- # furnished to do so, subject to the following conditions:
10
- #
11
- # The above copyright notice and this permission notice shall be included in
12
- # all copies or substantial portions of the Software.
13
- #
14
- # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
- # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
- # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
- # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
- # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
- # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
20
- # THE SOFTWARE.
21
- #
22
- # Made in Japan.
23
- #++
24
-
25
1
 
26
2
  require 'ffi'
27
3
 
@@ -1,27 +1,3 @@
1
- #--
2
- # Copyright (c) 2009-2016, John Mettraux, Alain Hoang.
3
- #
4
- # Permission is hereby granted, free of charge, to any person obtaining a copy
5
- # of this software and associated documentation files (the "Software"), to deal
6
- # in the Software without restriction, including without limitation the rights
7
- # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
- # copies of the Software, and to permit persons to whom the Software is
9
- # furnished to do so, subject to the following conditions:
10
- #
11
- # The above copyright notice and this permission notice shall be included in
12
- # all copies or substantial portions of the Software.
13
- #
14
- # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
- # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
- # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
- # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
- # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
- # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
20
- # THE SOFTWARE.
21
- #
22
- # Made in Japan.
23
- #++
24
-
25
1
 
26
2
  module Rufus::Lua
27
3
 
@@ -1,27 +1,3 @@
1
- #--
2
- # Copyright (c) 2009-2016, John Mettraux, Alain Hoang.
3
- #
4
- # Permission is hereby granted, free of charge, to any person obtaining a copy
5
- # of this software and associated documentation files (the "Software"), to deal
6
- # in the Software without restriction, including without limitation the rights
7
- # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
- # copies of the Software, and to permit persons to whom the Software is
9
- # furnished to do so, subject to the following conditions:
10
- #
11
- # The above copyright notice and this permission notice shall be included in
12
- # all copies or substantial portions of the Software.
13
- #
14
- # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
- # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
- # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
- # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
- # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
- # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
20
- # THE SOFTWARE.
21
- #
22
- # Made in Japan.
23
- #++
24
-
25
1
 
26
2
  module Rufus::Lua
27
3
 
@@ -107,15 +83,16 @@ module Rufus::Lua
107
83
 
108
84
  type, tname = stack_type_at(i)
109
85
 
110
- val = if type == TSTRING
111
- "\"#{stack_fetch(i)}\""
112
- elsif SIMPLE_TYPES.include?(type)
113
- stack_fetch(i).to_s
114
- elsif type == TTABLE
115
- "(# is #{Lib.lua_objlen(@pointer, i)})"
116
- else
117
- ''
118
- end
86
+ val =
87
+ if type == TSTRING
88
+ "\"#{stack_fetch(i)}\""
89
+ elsif SIMPLE_TYPES.include?(type)
90
+ stack_fetch(i).to_s
91
+ elsif type == TTABLE
92
+ "(# is #{Lib.lua_objlen(@pointer, i)})"
93
+ else
94
+ ''
95
+ end
119
96
 
120
97
  a << "#{i} : #{tname} (#{type}) #{val}"
121
98
  a
@@ -164,23 +141,23 @@ module Rufus::Lua
164
141
 
165
142
  case type
166
143
 
167
- when TNIL then nil
144
+ when TNIL then nil
168
145
 
169
- when TSTRING then
170
- len = FFI::MemoryPointer.new(:size_t)
171
- ptr = Lib.lua_tolstring(@pointer, pos, len)
172
- ptr.read_string(len.read_long)
146
+ when TSTRING then
147
+ len = FFI::MemoryPointer.new(:size_t)
148
+ ptr = Lib.lua_tolstring(@pointer, pos, len)
149
+ ptr.read_string(len.read_long)
173
150
 
174
- when TBOOLEAN then (Lib.lua_toboolean(@pointer, pos) == 1)
175
- when TNUMBER then Lib.lua_tonumber(@pointer, pos)
151
+ when TBOOLEAN then (Lib.lua_toboolean(@pointer, pos) == 1)
152
+ when TNUMBER then Lib.lua_tonumber(@pointer, pos)
176
153
 
177
- when TTABLE then Table.new(@pointer)
178
- # warning : this pops up the item from the stack !
154
+ when TTABLE then Table.new(@pointer)
155
+ # warning : this pops up the item from the stack !
179
156
 
180
- when TFUNCTION then Function.new(@pointer)
181
- when TTHREAD then Coroutine.new(@pointer)
157
+ when TFUNCTION then Function.new(@pointer)
158
+ when TTHREAD then Coroutine.new(@pointer)
182
159
 
183
- else tname
160
+ else tname
184
161
  end
185
162
  end
186
163
 
@@ -216,23 +193,23 @@ module Rufus::Lua
216
193
 
217
194
  case o
218
195
 
219
- when NilClass then Lib.lua_pushnil(@pointer)
196
+ when NilClass then Lib.lua_pushnil(@pointer)
220
197
 
221
- when TrueClass then Lib.lua_pushboolean(@pointer, 1)
222
- when FalseClass then Lib.lua_pushboolean(@pointer, 0)
198
+ when TrueClass then Lib.lua_pushboolean(@pointer, 1)
199
+ when FalseClass then Lib.lua_pushboolean(@pointer, 0)
223
200
 
224
- when Fixnum then Lib.lua_pushinteger(@pointer, o)
225
- when Float then Lib.lua_pushnumber(@pointer, o)
201
+ when Integer then Lib.lua_pushinteger(@pointer, o)
202
+ when Float then Lib.lua_pushnumber(@pointer, o)
226
203
 
227
- when String then Lib.lua_pushlstring(@pointer, o, o.bytesize)
228
- when Symbol then Lib.lua_pushlstring(@pointer, o.to_s, o.to_s.bytesize)
204
+ when String then Lib.lua_pushlstring(@pointer, o, o.bytesize)
205
+ when Symbol then Lib.lua_pushlstring(@pointer, o.to_s, o.to_s.bytesize)
229
206
 
230
- when Hash then stack_push_hash(o)
231
- when Array then stack_push_array(o)
207
+ when Hash then stack_push_hash(o)
208
+ when Array then stack_push_array(o)
232
209
 
233
- else raise(
234
- ArgumentError.new(
235
- "don't know how to pass Ruby instance of #{o.class} to Lua"))
210
+ else raise(
211
+ ArgumentError.new(
212
+ "don't know how to pass Ruby instance of #{o.class} to Lua"))
236
213
  end
237
214
  end
238
215
 
@@ -524,66 +501,66 @@ module Rufus::Lua
524
501
 
525
502
  to_ruby = opts[:to_ruby]
526
503
 
527
- callback = Proc.new do |state|
504
+ callback =
505
+ Proc.new do |state|
528
506
 
529
- s = CallbackState.new(state)
530
- args = []
507
+ s = CallbackState.new(state)
508
+ args = []
531
509
 
532
- loop do
510
+ loop do
533
511
 
534
- break if s.stack_top == 0 # never touch stack[0] !!
512
+ break if s.stack_top == 0 # never touch stack[0] !!
535
513
 
536
- arg = s.stack_fetch
514
+ arg = s.stack_fetch
537
515
 
538
- args.unshift(arg)
516
+ args.unshift(arg)
539
517
 
540
- s.stack_unstack unless args.first.is_a?(Rufus::Lua::Ref)
541
- end
518
+ s.stack_unstack unless args.first.is_a?(Rufus::Lua::Ref)
519
+ end
542
520
 
543
- while args.size < block.arity
544
- args << nil
545
- end
546
-
547
- args = args.collect { |a| a.respond_to?(:to_ruby) ? a.to_ruby : a } \
548
- if to_ruby
521
+ while args.size < block.arity
522
+ args << nil
523
+ end
549
524
 
550
- result = block.call(*args)
525
+ args = args.collect { |a| a.respond_to?(:to_ruby) ? a.to_ruby : a } \
526
+ if to_ruby
551
527
 
552
- s.stack_push(result)
528
+ s.stack_push(block.call(*args))
553
529
 
554
- 1
555
- end
530
+ 1
531
+ end
556
532
 
557
533
  @callbacks << callback
558
534
  # preserving the callback from garbage collection
559
535
 
560
536
  name = name.to_s
561
537
 
562
- name, index = if ri = name.rindex('.')
563
- #
564
- # bind in the given table
538
+ name, index =
539
+ if ri = name.rindex('.')
540
+ #
541
+ # bind in the given table
565
542
 
566
- table_name = name[0..ri-1]
543
+ table_name = name[0..ri-1]
567
544
 
568
- t = self.eval("return #{table_name}") rescue nil
545
+ t = self.eval("return #{table_name}") rescue nil
569
546
 
570
- raise ArgumentError.new(
571
- "won't create automatically nested tables"
572
- ) if (not t) and table_name.index('.')
547
+ raise ArgumentError.new(
548
+ "won't create automatically nested tables"
549
+ ) if (not t) and table_name.index('.')
573
550
 
574
- t = self.eval("#{table_name} = {}; return #{table_name}") \
575
- unless t
551
+ t = self.eval("#{table_name} = {}; return #{table_name}") \
552
+ unless t
576
553
 
577
- t.send(:load_onto_stack)
554
+ t.send(:load_onto_stack)
578
555
 
579
- [ name[ri+1..-1], -2 ]
556
+ [ name[ri+1..-1], -2 ]
580
557
 
581
- else
582
- #
583
- # bind function at the global level
558
+ else
559
+ #
560
+ # bind function at the global level
584
561
 
585
- [ name, LUA_GLOBALSINDEX ]
586
- end
562
+ [ name, LUA_GLOBALSINDEX ]
563
+ end
587
564
 
588
565
  Lib.lua_pushcclosure(@pointer, callback, 0)
589
566
  Lib.lua_setfield(@pointer, index, name)
@@ -1,27 +1,3 @@
1
- #--
2
- # Copyright (c) 2009-2016, John Mettraux, Alain Hoang.
3
- #
4
- # Permission is hereby granted, free of charge, to any person obtaining a copy
5
- # of this software and associated documentation files (the "Software"), to deal
6
- # in the Software without restriction, including without limitation the rights
7
- # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
- # copies of the Software, and to permit persons to whom the Software is
9
- # furnished to do so, subject to the following conditions:
10
- #
11
- # The above copyright notice and this permission notice shall be included in
12
- # all copies or substantial portions of the Software.
13
- #
14
- # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
- # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
- # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
- # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
- # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
- # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
20
- # THE SOFTWARE.
21
- #
22
- # Made in Japan.
23
- #++
24
-
25
1
 
26
2
  module Rufus::Lua
27
3
 
@@ -43,20 +19,20 @@ module Rufus::Lua
43
19
 
44
20
  case o
45
21
 
46
- when String then o.inspect
47
- when Fixnum then o.to_s
48
- when Float then o.to_s
49
- when TrueClass then o.to_s
50
- when FalseClass then o.to_s
51
- when NilClass then 'nil'
22
+ when String then o.inspect
23
+ when Integer then o.to_s
24
+ when Float then o.to_s
25
+ when TrueClass then o.to_s
26
+ when FalseClass then o.to_s
27
+ when NilClass then 'nil'
52
28
 
53
- when Hash then to_lua_table_s(o)
54
- when Array then to_lua_table_s(o)
29
+ when Hash then to_lua_table_s(o)
30
+ when Array then to_lua_table_s(o)
55
31
 
56
- else raise(
57
- ArgumentError.new(
58
- "don't how to turning into a Lua string representation "+
59
- "Ruby instances of class '#{o.class}'"))
32
+ else fail(
33
+ ArgumentError.new(
34
+ "don't how to turning into a Lua string representation "+
35
+ "Ruby instances of class '#{o.class}'"))
60
36
  end
61
37
  end
62
38
 
@@ -1,32 +1,8 @@
1
- #--
2
- # Copyright (c) 2009-2016, John Mettraux, Alain Hoang.
3
- #
4
- # Permission is hereby granted, free of charge, to any person obtaining a copy
5
- # of this software and associated documentation files (the "Software"), to deal
6
- # in the Software without restriction, including without limitation the rights
7
- # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
- # copies of the Software, and to permit persons to whom the Software is
9
- # furnished to do so, subject to the following conditions:
10
- #
11
- # The above copyright notice and this permission notice shall be included in
12
- # all copies or substantial portions of the Software.
13
- #
14
- # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
- # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
- # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
- # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
- # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
- # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
20
- # THE SOFTWARE.
21
- #
22
- # Made in Japan.
23
- #++
24
-
25
1
 
26
2
  module Rufus
27
3
  module Lua
28
4
 
29
- VERSION = '1.1.3'
5
+ VERSION = '1.1.4'
30
6
  end
31
7
  end
32
8
 
metadata CHANGED
@@ -1,8 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rufus-lua
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.3
5
- prerelease:
4
+ version: 1.1.4
6
5
  platform: ruby
7
6
  authors:
8
7
  - John Mettraux
@@ -11,38 +10,34 @@ authors:
11
10
  autorequire:
12
11
  bindir: bin
13
12
  cert_chain: []
14
- date: 2016-08-21 00:00:00.000000000 Z
13
+ date: 2018-03-14 00:00:00.000000000 Z
15
14
  dependencies:
16
15
  - !ruby/object:Gem::Dependency
17
16
  name: ffi
18
17
  requirement: !ruby/object:Gem::Requirement
19
- none: false
20
18
  requirements:
21
- - - ~>
19
+ - - "~>"
22
20
  - !ruby/object:Gem::Version
23
21
  version: '1.9'
24
22
  type: :runtime
25
23
  prerelease: false
26
24
  version_requirements: !ruby/object:Gem::Requirement
27
- none: false
28
25
  requirements:
29
- - - ~>
26
+ - - "~>"
30
27
  - !ruby/object:Gem::Version
31
28
  version: '1.9'
32
29
  - !ruby/object:Gem::Dependency
33
30
  name: rspec
34
31
  requirement: !ruby/object:Gem::Requirement
35
- none: false
36
32
  requirements:
37
- - - ! '>='
33
+ - - ">="
38
34
  - !ruby/object:Gem::Version
39
35
  version: 2.13.0
40
36
  type: :development
41
37
  prerelease: false
42
38
  version_requirements: !ruby/object:Gem::Requirement
43
- none: false
44
39
  requirements:
45
- - - ! '>='
40
+ - - ">="
46
41
  - !ruby/object:Gem::Version
47
42
  version: 2.13.0
48
43
  description: ruby-ffi based bridge from Ruby to Lua
@@ -52,43 +47,42 @@ executables: []
52
47
  extensions: []
53
48
  extra_rdoc_files: []
54
49
  files:
50
+ - CHANGELOG.txt
51
+ - CREDITS.txt
52
+ - LICENSE.txt
53
+ - README.md
54
+ - TODO.txt
55
+ - lib/rufus-lua.rb
56
+ - lib/rufus/lua.rb
55
57
  - lib/rufus/lua/error.rb
56
58
  - lib/rufus/lua/lib.rb
57
59
  - lib/rufus/lua/objects.rb
58
60
  - lib/rufus/lua/state.rb
59
61
  - lib/rufus/lua/utils.rb
60
62
  - lib/rufus/lua/version.rb
61
- - lib/rufus/lua.rb
62
- - lib/rufus-lua.rb
63
63
  - rufus-lua.gemspec
64
- - CHANGELOG.txt
65
- - CREDITS.txt
66
- - LICENSE.txt
67
- - TODO.txt
68
- - README.md
69
64
  homepage: https://github.com/jmettraux/rufus-lua
70
65
  licenses:
71
66
  - MIT
67
+ metadata: {}
72
68
  post_install_message:
73
69
  rdoc_options: []
74
70
  require_paths:
75
71
  - lib
76
72
  required_ruby_version: !ruby/object:Gem::Requirement
77
- none: false
78
73
  requirements:
79
- - - ! '>='
74
+ - - ">="
80
75
  - !ruby/object:Gem::Version
81
76
  version: '0'
82
77
  required_rubygems_version: !ruby/object:Gem::Requirement
83
- none: false
84
78
  requirements:
85
- - - ! '>='
79
+ - - ">="
86
80
  - !ruby/object:Gem::Version
87
81
  version: '0'
88
82
  requirements: []
89
83
  rubyforge_project: rufus
90
- rubygems_version: 1.8.23.2
84
+ rubygems_version: 2.6.13
91
85
  signing_key:
92
- specification_version: 3
86
+ specification_version: 4
93
87
  summary: ruby-ffi based bridge from Ruby to Lua
94
88
  test_files: []