iseq 0.0.2-x86-mswin32-1.9.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (9) hide show
  1. data/LICENSE +22 -0
  2. data/LICENSE.ja +19 -0
  3. data/README +15 -0
  4. data/README.ja +17 -0
  5. data/ext/extconf.rb +21 -0
  6. data/ext/iseq.c +33 -0
  7. data/files +7 -0
  8. data/lib/iseq.so +0 -0
  9. metadata +73 -0
data/LICENSE ADDED
@@ -0,0 +1,22 @@
1
+ The zlib/libpng License
2
+
3
+ Copyright (c) 2010 wanabe
4
+
5
+ This software is provided 'as-is', without any express or implied
6
+ warranty. In no event will the authors be held liable for any damages
7
+ arising from the use of this software.
8
+
9
+ Permission is granted to anyone to use this software for any purpose,
10
+ including commercial applications, and to alter it and redistribute it
11
+ freely, subject to the following restrictions:
12
+
13
+ 1. The origin of this software must not be misrepresented; you must not
14
+ claim that you wrote the original software. If you use this software
15
+ in a product, an acknowledgment in the product documentation would be
16
+ appreciated but is not required.
17
+
18
+ 2. Altered source versions must be plainly marked as such, and must not be
19
+ misrepresented as being the original software.
20
+
21
+ 3. This notice may not be removed or altered from any source
22
+ distribution.
data/LICENSE.ja ADDED
@@ -0,0 +1,19 @@
1
+ zlib/libpng ���C�Z���X ���I�a���
2
+ (���āF
3
+ http://sourceforge.jp/projects/opensource/wiki/licenses%2Fzlib_libpng_license )
4
+
5
+ Copyright (c) 2010 ���i�x
6
+
7
+ �{�\�t�g�E�F�A�́u����̂܂܁v�����I���ÖٓI�����킸�A���ۏ؂Œ񋟂���܂��B
8
+ �{�\�t�g�E�F�A�̎g�p�ɂ�邢���Ȃ鑹�Q�ɂ‚��Ă��A��҂͈�؂̐ӔC�𕉂��܂���B
9
+
10
+ �ȉ��̐����ɏ]������A���p�A�v���P�[�V�������܂߂āA�{�\�t�g�E�F�A��
11
+ �C�ӂ̖ړI�Ɏg�p���A���R�ɉ��ς��čĔЕz���邱�Ƃ����ׂĂ̐l�ɋ��‚��܂��B
12
+
13
+ 1. �{�\�t�g�E�F�A�̏o���ɂ‚��ċ��U�̕\�������Ă͂����܂���B
14
+ ���Ȃ����I���W�i���̃\�t�g�E�F�A���쐬�����Ǝ咣���Ă͂����܂���B
15
+ ���Ȃ����{�\�t�g�E�F�A�𐻕i���Ŏg�p����ꍇ�A
16
+ ���i�̕����Ɏӎ������Ă���������΍K���ł����A�K�{�ł͂���܂���B
17
+ 2. �\�[�X��ύX�����ꍇ�́A���̂��Ƃ𖾎�����K�v������܂��B
18
+ �I���W�i���̃\�t�g�E�F�A�ł���Ƃ������U�̕\�������Ă͂����܂���B
19
+ 3. �\�[�X�̔Еz���ɂ����āA���̕\�����폜�܂��͕ύX�����肵�Ă͂����܂���B
data/README ADDED
@@ -0,0 +1,15 @@
1
+ Description
2
+ This is a library, by the ISeq freaks, for the ISeq freaks, of the ISeq freaks.
3
+ (will be in the future)
4
+
5
+ RubyVM::InstructionSequence is too long name, so I aliased it as Object::ISeq.
6
+ please use ISeq easily.
7
+
8
+ I define RubyVM::InstructionSequence.load, it is hidden feature on Ruby level.
9
+
10
+ Other feature is under seeking. If you have a question, please contact me.
11
+ e-mail (s.wanabe AT gmail.com) or twitter (wannabe53) is welcome.
12
+
13
+ LICENCE
14
+ please follow LICENSE or LICENSE.ja.
15
+ Both is mostly same, but LICENSE.ja is for Japanase.
data/README.ja ADDED
@@ -0,0 +1,17 @@
1
+ ����
2
+ ISeq �t���[�N�X�ɂ�� ISeq �t���[�N�X�̂��߂� ISeq �t���[�N�X�̃��C�u�����ł��B
3
+ �i�ɂȂ�\��ł��j
4
+
5
+ RubyVM::InstructionSequence �Ƃ��������ɂ��������O���g�킹�Ȃ��C���X�Ȃ̂�
6
+ Object::ISeq �ɑ�����܂����B�C�y�� ISeq �ƎQ�Ƃ��Ă��������B
7
+
8
+ �ӂ��� Ruby ����͎g���Ȃ� RubyVM::InstructionSequence.load ���`���܂����B
9
+
10
+ ���̂ق��̋@�\�͍l�����ł��B�Ȃɂ�����܂����烏�i�x�܂ŁB
11
+ ���[���is.wanabe ������ gmail.com�j�܂��� twitter�iwannabe53�j�łǂ����B
12
+
13
+ ���C�Z���X
14
+ LICENSE �܂��� LICENSE.ja �����ꂩ�̃t�@�C���ɏ]���Ă��������B
15
+ �ǂ������{�I�ɓ������̂ł����A�p����ǂނ̂����ȕ��̂��߂̘a�� .ja �̕��ł��B
16
+ ��ɕs���������ĈႤ���̂ɂȂ��Ă���”\��������܂��B
17
+ ���̏ꍇ�A�����Ă���������Ə�����܂��B
data/ext/extconf.rb ADDED
@@ -0,0 +1,21 @@
1
+ require "mkmf"
2
+
3
+ # $defs = ["-D_MSC_VER=1200"]
4
+ # $LDFLAGS += " msvcrt_winxp.obj"
5
+
6
+ if RUBY_VERSION >= "1.9.0" &&
7
+ defined?(RUBY_ENGINE) &&
8
+ RUBY_ENGINE == "ruby"
9
+ #$defs ||= []
10
+ load_api = \
11
+ if RUBY_VERSION < "1.9.1"
12
+ $CFLAGS += " -DOLD_ISEQ_LOAD"
13
+ "rb_iseq_load"
14
+ elsif RUBY_VERSION < "1.9.2"
15
+ "ruby_iseq_load"
16
+ else
17
+ "rb_iseq_load"
18
+ end
19
+ $CFLAGS += " -DISEQ_LOAD=#{load_api}"
20
+ create_makefile("iseq")
21
+ end
data/ext/iseq.c ADDED
@@ -0,0 +1,33 @@
1
+ #include "ruby.h"
2
+ #ifndef ISEQ_LOAD
3
+ #define ISEQ_LOAD rb_iseq_load
4
+ #endif
5
+
6
+ RUBY_EXTERN VALUE rb_cISeq;
7
+
8
+ #ifdef OLD_ISEQ_LOAD
9
+ RUBY_EXTERN VALUE iseq_load(VALUE self, VALUE data, VALUE parent, VALUE opt);
10
+ static inline VALUE
11
+ ISEQ_LOAD(VALUE data, VALUE parent, VALUE opt)
12
+ {
13
+ iseq_load(rb_cISeq, data, parent, opt);
14
+ }
15
+ #else
16
+ RUBY_EXTERN VALUE ISEQ_LOAD(VALUE data, VALUE parent, VALUE opt);
17
+ #endif
18
+
19
+ static VALUE
20
+ iseq_s_load(int argc, VALUE *argv, VALUE self)
21
+ {
22
+ VALUE data, opt=Qnil;
23
+ rb_scan_args(argc, argv, "11", &data, &opt);
24
+
25
+ return ISEQ_LOAD(data, 0, opt);
26
+ }
27
+
28
+ void
29
+ Init_iseq(void)
30
+ {
31
+ rb_define_const(rb_cObject, "ISeq", rb_cISeq);
32
+ rb_define_singleton_method(rb_cISeq, "load", iseq_s_load, -1);
33
+ }
data/files ADDED
@@ -0,0 +1,7 @@
1
+ LICENSE
2
+ LICENSE.ja
3
+ README
4
+ README.ja
5
+ ext/extconf.rb
6
+ ext/iseq.c
7
+ files
data/lib/iseq.so ADDED
Binary file
metadata ADDED
@@ -0,0 +1,73 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: iseq
3
+ version: !ruby/object:Gem::Version
4
+ prerelease: false
5
+ segments:
6
+ - 0
7
+ - 0
8
+ - 2
9
+ version: 0.0.2
10
+ platform: x86-mswin32-1.9.1
11
+ authors:
12
+ - wanabe
13
+ autorequire:
14
+ bindir: bin
15
+ cert_chain: []
16
+
17
+ date: 2010-03-18 00:00:00 +09:00
18
+ default_executable:
19
+ dependencies: []
20
+
21
+ description: |
22
+ This is a library, by the ISeq freaks, for the ISeq freaks, of the ISeq freaks.
23
+ (will be in the future)
24
+
25
+ email: s.wanabe@gmail.com
26
+ executables: []
27
+
28
+ extensions: []
29
+
30
+ extra_rdoc_files: []
31
+
32
+ files:
33
+ - LICENSE
34
+ - LICENSE.ja
35
+ - README
36
+ - README.ja
37
+ - ext/extconf.rb
38
+ - ext/iseq.c
39
+ - files
40
+ - lib/iseq.so
41
+ has_rdoc: true
42
+ homepage: http://github.com/wanabe/iseq
43
+ licenses: []
44
+
45
+ post_install_message:
46
+ rdoc_options: []
47
+
48
+ require_paths:
49
+ - lib
50
+ required_ruby_version: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ segments:
55
+ - 1
56
+ - 9
57
+ version: "1.9"
58
+ required_rubygems_version: !ruby/object:Gem::Requirement
59
+ requirements:
60
+ - - ">="
61
+ - !ruby/object:Gem::Version
62
+ segments:
63
+ - 0
64
+ version: "0"
65
+ requirements: []
66
+
67
+ rubyforge_project: iseq
68
+ rubygems_version: 1.3.6
69
+ signing_key:
70
+ specification_version: 3
71
+ summary: a library for ISeq freaks
72
+ test_files: []
73
+