php_vm 1.0.1 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in php_vm.gemspec
4
+ gemspec
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
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env rake
2
+ require "bundler/gem_tasks"
@@ -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.1
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
- - ext/extconf.rb
23
- - ext/php_vm.c
24
- - ext/php_vm.h
25
- - ext/php_vm_v2z.c
26
- - ext/php_vm_v2z.h
27
- - ext/php_vm_z2v.c
28
- - ext/php_vm_z2v.h
29
- - lib/php_vm.rb
30
- - lib/php_vm/version.rb
31
- homepage: ''
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: []
@@ -1,3 +0,0 @@
1
- module PHPVM
2
- VERSION = "1.0.1"
3
- end
data/lib/php_vm.rb DELETED
@@ -1,5 +0,0 @@
1
- require "php_vm/version"
2
-
3
- module PHPVM
4
- # Your code goes here...
5
- end
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes