php_vm 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +4 -0
- data/LICENSE +22 -0
- data/Rakefile +2 -0
- data/ext/{php_vm.c → php_vm/php_vm.c} +2 -0
- data/php_vm.gemspec +23 -0
- metadata +14 -12
- data/lib/php_vm/version.rb +0 -3
- data/lib/php_vm.rb +0 -5
- /data/ext/{extconf.rb → php_vm/extconf.rb} +0 -0
- /data/ext/{php_vm.h → php_vm/php_vm.h} +0 -0
- /data/ext/{php_vm_v2z.c → php_vm/php_vm_v2z.c} +0 -0
- /data/ext/{php_vm_v2z.h → php_vm/php_vm_v2z.h} +0 -0
- /data/ext/{php_vm_z2v.c → php_vm/php_vm_z2v.c} +0 -0
- /data/ext/{php_vm_z2v.h → php_vm/php_vm_z2v.h} +0 -0
data/Gemfile
ADDED
data/LICENSE
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2012 Yoshida Tetsuya
|
2
|
+
|
3
|
+
MIT License
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
a copy of this software and associated documentation files (the
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be
|
14
|
+
included in all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/Rakefile
ADDED
@@ -538,6 +538,8 @@ void Init_php_vm()
|
|
538
538
|
rb_define_singleton_method(rb_mPHPVM, "exec", rb_php_vm_exec, 1);
|
539
539
|
rb_define_singleton_method(rb_mPHPVM, "getClass", rb_php_vm_getClass, 1);
|
540
540
|
|
541
|
+
rb_define_const(rb_mPHPVM, "VERSION", rb_str_new2("1.0.2"));
|
542
|
+
|
541
543
|
// class PHPVM::PHPClass
|
542
544
|
rb_cPHPClass = rb_define_class_under(rb_mPHPVM, "PHPClass", rb_cObject);
|
543
545
|
rb_define_class_variable(rb_cPHPClass, "@@classes", rb_obj_alloc(rb_cHash));
|
data/php_vm.gemspec
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
|
3
|
+
Gem::Specification.new do |gem|
|
4
|
+
gem.authors = ["Yoshida Tetsuya"]
|
5
|
+
gem.email = ["yoshida.eth0@gmail.com"]
|
6
|
+
gem.description = %q{php_vm is a native bridge between Ruby and PHP.}
|
7
|
+
gem.summary = %q{php_vm is a native bridge between Ruby and PHP.}
|
8
|
+
gem.homepage = %q{https://github.com/yoshida-eth0/ruby-php_vm}
|
9
|
+
|
10
|
+
gem.files = `git ls-files`.split($\).delete_if{|x| x.match(/^sample/)}
|
11
|
+
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
12
|
+
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
13
|
+
gem.name = "php_vm"
|
14
|
+
gem.require_paths = ["lib"]
|
15
|
+
gem.extensions = ["ext/php_vm/extconf.rb"]
|
16
|
+
gem.version = Proc.new {
|
17
|
+
version = nil
|
18
|
+
txt = open(File.expand_path("../ext/php_vm/php_vm.c", __FILE__)) {|f| f.read}
|
19
|
+
m = txt.match(/rb_define_const\(rb_mPHPVM, "VERSION", rb_str_new2\("([^"]+)"\)\)/)
|
20
|
+
version = m[1] if m
|
21
|
+
version
|
22
|
+
}.call
|
23
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: php_vm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -16,19 +16,21 @@ email:
|
|
16
16
|
- yoshida.eth0@gmail.com
|
17
17
|
executables: []
|
18
18
|
extensions:
|
19
|
-
- ext/extconf.rb
|
19
|
+
- ext/php_vm/extconf.rb
|
20
20
|
extra_rdoc_files: []
|
21
21
|
files:
|
22
|
-
-
|
23
|
-
-
|
24
|
-
-
|
25
|
-
- ext/
|
26
|
-
- ext/
|
27
|
-
- ext/
|
28
|
-
- ext/
|
29
|
-
-
|
30
|
-
-
|
31
|
-
|
22
|
+
- Gemfile
|
23
|
+
- LICENSE
|
24
|
+
- Rakefile
|
25
|
+
- ext/php_vm/extconf.rb
|
26
|
+
- ext/php_vm/php_vm.c
|
27
|
+
- ext/php_vm/php_vm.h
|
28
|
+
- ext/php_vm/php_vm_v2z.c
|
29
|
+
- ext/php_vm/php_vm_v2z.h
|
30
|
+
- ext/php_vm/php_vm_z2v.c
|
31
|
+
- ext/php_vm/php_vm_z2v.h
|
32
|
+
- php_vm.gemspec
|
33
|
+
homepage: https://github.com/yoshida-eth0/ruby-php_vm
|
32
34
|
licenses: []
|
33
35
|
post_install_message:
|
34
36
|
rdoc_options: []
|
data/lib/php_vm/version.rb
DELETED
data/lib/php_vm.rb
DELETED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|