fastruby 0.0.1

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.
@@ -0,0 +1,63 @@
1
+ require "fastruby"
2
+
3
+ describe FastRuby, "fastruby" do
4
+
5
+ class ::U1
6
+ fastruby "
7
+ def foo
8
+ $au1 = 88
9
+ end
10
+ "
11
+ end
12
+
13
+ it "should write global variables" do
14
+ ::U1.new.foo
15
+ $au1.should be == 88
16
+ end
17
+
18
+ class ::U2
19
+ fastruby "
20
+ def foo
21
+ $au2
22
+ end
23
+ "
24
+ end
25
+
26
+ it "should read global variables" do
27
+ $au2 = 88
28
+ ::U2.new.foo.should be == 88
29
+ end
30
+
31
+ class ::U3
32
+ attr_accessor :au3
33
+
34
+ fastruby "
35
+ def foo
36
+ @au3 = 88
37
+ end
38
+ "
39
+ end
40
+
41
+ it "should write instance variables" do
42
+ u3 = ::U3.new
43
+ u3.foo
44
+ u3.au3.should be == 88
45
+ end
46
+
47
+ class ::U4
48
+ attr_accessor :au4
49
+
50
+ fastruby "
51
+ def foo
52
+ @au4
53
+ end
54
+ "
55
+ end
56
+
57
+ it "should read instance variables" do
58
+ u4 = ::U4.new
59
+ u4.au4 = 88
60
+ u4.foo.should be == 88
61
+ end
62
+
63
+ end
metadata ADDED
@@ -0,0 +1,127 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: fastruby
3
+ version: !ruby/object:Gem::Version
4
+ hash: 29
5
+ prerelease: false
6
+ segments:
7
+ - 0
8
+ - 0
9
+ - 1
10
+ version: 0.0.1
11
+ platform: ruby
12
+ authors:
13
+ - Dario Seminara
14
+ autorequire:
15
+ bindir: bin
16
+ cert_chain: []
17
+
18
+ date: 2011-07-30 00:00:00 -03:00
19
+ default_executable:
20
+ dependencies:
21
+ - !ruby/object:Gem::Dependency
22
+ name: RubyInline
23
+ prerelease: false
24
+ requirement: &id001 !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - "="
28
+ - !ruby/object:Gem::Version
29
+ hash: 35
30
+ segments:
31
+ - 3
32
+ - 9
33
+ - 0
34
+ version: 3.9.0
35
+ type: :runtime
36
+ version_requirements: *id001
37
+ - !ruby/object:Gem::Dependency
38
+ name: ruby_parser
39
+ prerelease: false
40
+ requirement: &id002 !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - "="
44
+ - !ruby/object:Gem::Version
45
+ hash: 3
46
+ segments:
47
+ - 2
48
+ - 0
49
+ - 6
50
+ version: 2.0.6
51
+ type: :runtime
52
+ version_requirements: *id002
53
+ description:
54
+ email: robertodarioseminara@gmail.com
55
+ executables: []
56
+
57
+ extensions: []
58
+
59
+ extra_rdoc_files:
60
+ - README
61
+ files:
62
+ - benchmarks/benchmark5.rb
63
+ - benchmarks/benchmark2.rb
64
+ - benchmarks/benchmark4.rb
65
+ - benchmarks/benchmark6.rb
66
+ - benchmarks/benchmark3.rb
67
+ - benchmarks/benchmark.rb
68
+ - examples/example1.rb
69
+ - examples/example3.rb
70
+ - examples/example4.rb
71
+ - examples/example2.rb
72
+ - lib/fastruby/inline_extension.rb
73
+ - lib/fastruby/builder.rb
74
+ - lib/fastruby/logging.rb
75
+ - lib/fastruby/exceptions.rb
76
+ - lib/fastruby/getlocals.rb
77
+ - lib/fastruby/translator.rb
78
+ - lib/fastruby/object.rb
79
+ - lib/fastruby.rb
80
+ - spec/variable_spec.rb
81
+ - spec/control_spec.rb
82
+ - spec/expression_spec.rb
83
+ - spec/base_spec.rb
84
+ - spec/block_spec.rb
85
+ - spec/literal_spec.rb
86
+ - spec/integrity_spec.rb
87
+ - LICENSE
88
+ - AUTHORS
89
+ - README
90
+ - Rakefile
91
+ - TODO
92
+ has_rdoc: true
93
+ homepage: http://github.com/tario/fastruby
94
+ licenses: []
95
+
96
+ post_install_message:
97
+ rdoc_options: []
98
+
99
+ require_paths:
100
+ - lib
101
+ required_ruby_version: !ruby/object:Gem::Requirement
102
+ none: false
103
+ requirements:
104
+ - - ">="
105
+ - !ruby/object:Gem::Version
106
+ hash: 3
107
+ segments:
108
+ - 0
109
+ version: "0"
110
+ required_rubygems_version: !ruby/object:Gem::Requirement
111
+ none: false
112
+ requirements:
113
+ - - ">="
114
+ - !ruby/object:Gem::Version
115
+ hash: 3
116
+ segments:
117
+ - 0
118
+ version: "0"
119
+ requirements: []
120
+
121
+ rubyforge_project:
122
+ rubygems_version: 1.3.7
123
+ signing_key:
124
+ specification_version: 3
125
+ summary: fast execution of ruby code
126
+ test_files: []
127
+