lokeshh_rubypython 0.7

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.
Files changed (48) hide show
  1. checksums.yaml +7 -0
  2. data/.autotest +3 -0
  3. data/.gitignore +18 -0
  4. data/.hgignore +20 -0
  5. data/.hgtags +12 -0
  6. data/.rspec +2 -0
  7. data/Contributors.rdoc +11 -0
  8. data/History.rdoc +214 -0
  9. data/License.rdoc +26 -0
  10. data/Manifest.txt +46 -0
  11. data/PostInstall.txt +16 -0
  12. data/README.rdoc +272 -0
  13. data/Rakefile +118 -0
  14. data/autotest/discover.rb +1 -0
  15. data/lib/rubypython/blankobject.rb +23 -0
  16. data/lib/rubypython/conversion.rb +332 -0
  17. data/lib/rubypython/interpreter.rb +262 -0
  18. data/lib/rubypython/macros.rb +56 -0
  19. data/lib/rubypython/operators.rb +120 -0
  20. data/lib/rubypython/pygenerator.rb +61 -0
  21. data/lib/rubypython/pymainclass.rb +80 -0
  22. data/lib/rubypython/pyobject.rb +189 -0
  23. data/lib/rubypython/python.rb +199 -0
  24. data/lib/rubypython/pythonerror.rb +80 -0
  25. data/lib/rubypython/rubypyproxy.rb +328 -0
  26. data/lib/rubypython/tuple.rb +10 -0
  27. data/lib/rubypython/type.rb +20 -0
  28. data/lib/rubypython.rb +229 -0
  29. data/spec/basic_spec.rb +50 -0
  30. data/spec/callback_spec.rb +53 -0
  31. data/spec/conversion_spec.rb +68 -0
  32. data/spec/pymainclass_spec.rb +24 -0
  33. data/spec/pyobject_spec.rb +202 -0
  34. data/spec/python_helpers/basics.py +23 -0
  35. data/spec/python_helpers/errors.py +2 -0
  36. data/spec/python_helpers/objects.py +48 -0
  37. data/spec/pythonerror_spec.rb +52 -0
  38. data/spec/refcnt_spec.rb +98 -0
  39. data/spec/rubypyclass_spec.rb +10 -0
  40. data/spec/rubypyproxy_spec.rb +261 -0
  41. data/spec/rubypython_spec.rb +59 -0
  42. data/spec/spec_helper.rb +71 -0
  43. data/website/index.rhtml +36 -0
  44. data/website/robots.txt +5 -0
  45. data/website/stylesheets/960.css +549 -0
  46. data/website/stylesheets/border-radius.htc +143 -0
  47. data/website/stylesheets/screen.css +132 -0
  48. metadata +297 -0
@@ -0,0 +1,132 @@
1
+ body {
2
+ background-color: #E1D1F1;
3
+ font-family: "Georgia", sans-serif;
4
+ font-size: 16px;
5
+ line-height: 1.6em;
6
+ padding: 1.6em 0 0 0;
7
+ color: #333;
8
+ }
9
+
10
+ h1, h2, h3, h4, h5, h6 {
11
+ font-family: 'Cabin', sans-serif;
12
+ color: #444;
13
+ }
14
+
15
+ #header h1 {
16
+ font-weight: normal;
17
+ font-size: 4em;
18
+ line-height: 0.8em;
19
+ letter-spacing: -0.05em;
20
+ margin: 5px;
21
+ }
22
+
23
+ #toc {
24
+ line-height: 1.2em;
25
+ font-size: 0.9em;
26
+ }
27
+
28
+ #toc li {
29
+ line-height: 1.15em;
30
+ }
31
+
32
+ ul {
33
+ list-style-type: square;
34
+ }
35
+
36
+ li {
37
+ padding: 0;
38
+ margin: 0;
39
+ }
40
+
41
+ a {
42
+ color: #5E5AFF;
43
+ font-weight: normal;
44
+ text-decoration: underline;
45
+ }
46
+
47
+ .coda {
48
+ text-align: right;
49
+ color: #77f;
50
+ font-size: smaller;
51
+ }
52
+
53
+ pre, code {
54
+ font-family: 'Inconsolata', monospace;
55
+ font-size: 90%;
56
+ line-height: 1.4em;
57
+ color: #ff8;
58
+ background-color: #111;
59
+ padding: 2px 10px 2px 10px;
60
+ }
61
+
62
+ .teardrop-corners {
63
+ behavior: url(stylesheets/border-radius.htc);
64
+ /*
65
+ * -moz-border-radius: 10px;
66
+ * -webkit-border-radius: 10px;
67
+ * -khtml-border-radius: 10px;
68
+ * border-radius: 10px;
69
+ */
70
+ -webkit-border-top-left-radius: 50px;
71
+ -webkit-border-bottom-right-radius: 50px;
72
+ -moz-border-radius-topleft: 50px;
73
+ -moz-border-radius-bottomright: 50px;
74
+ border-top-left-radius: 50px;
75
+ border-bottom-right-radius: 50px;
76
+ }
77
+
78
+ #toc {
79
+ border: 3px solid #141331;
80
+ line-height: 1.2em !important;
81
+ font-size: 0.8em !important;
82
+ padding: 0;
83
+ }
84
+
85
+ #toc h1 {
86
+ margin-left: 1em;
87
+ }
88
+
89
+ #toc li {
90
+ line-height: 1.2em;
91
+ }
92
+
93
+ #version {
94
+ text-align: right;
95
+ font-family: 'Cabin', sans-serif;
96
+ font-weight: normal;
97
+ background-color: #B3ABFF;
98
+ color: #141331;
99
+ padding: 10px 20px 10px 20px;
100
+ margin: 0 auto;
101
+ margin-top: 15px;
102
+ margin-bottom: 15px;
103
+ border: 3px solid #141331;
104
+ }
105
+
106
+ #version .numbers {
107
+ display: block;
108
+ font-size: 4em;
109
+ line-height: 0.8em;
110
+ letter-spacing: -0.2ex;
111
+ margin-bottom: 15px;
112
+ }
113
+
114
+ #version p {
115
+ text-decoration: none;
116
+ color: #141331;
117
+ background-color: #B3ABFF;
118
+ margin: 0;
119
+ padding: 0;
120
+ }
121
+
122
+ #version a {
123
+ text-decoration: none;
124
+ color: #141331;
125
+ background-color: #B3ABFF;
126
+ }
127
+
128
+ .clickable {
129
+ cursor: pointer;
130
+ cursor: hand;
131
+ }
132
+
metadata ADDED
@@ -0,0 +1,297 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: lokeshh_rubypython
3
+ version: !ruby/object:Gem::Version
4
+ version: '0.7'
5
+ platform: ruby
6
+ authors:
7
+ - Steeve Morin
8
+ - Austin Ziegler
9
+ - Zach Raines
10
+ autorequire:
11
+ bindir: bin
12
+ cert_chain: []
13
+ date: 2014-02-04 00:00:00.000000000 Z
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: ffi
17
+ requirement: !ruby/object:Gem::Requirement
18
+ requirements:
19
+ - - "~>"
20
+ - !ruby/object:Gem::Version
21
+ version: 1.0.7
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ requirements:
26
+ - - "~>"
27
+ - !ruby/object:Gem::Version
28
+ version: 1.0.7
29
+ - !ruby/object:Gem::Dependency
30
+ name: blankslate
31
+ requirement: !ruby/object:Gem::Requirement
32
+ requirements:
33
+ - - ">="
34
+ - !ruby/object:Gem::Version
35
+ version: 2.1.2.3
36
+ type: :runtime
37
+ prerelease: false
38
+ version_requirements: !ruby/object:Gem::Requirement
39
+ requirements:
40
+ - - ">="
41
+ - !ruby/object:Gem::Version
42
+ version: 2.1.2.3
43
+ - !ruby/object:Gem::Dependency
44
+ name: rubyforge
45
+ requirement: !ruby/object:Gem::Requirement
46
+ requirements:
47
+ - - ">="
48
+ - !ruby/object:Gem::Version
49
+ version: 2.0.4
50
+ type: :development
51
+ prerelease: false
52
+ version_requirements: !ruby/object:Gem::Requirement
53
+ requirements:
54
+ - - ">="
55
+ - !ruby/object:Gem::Version
56
+ version: 2.0.4
57
+ - !ruby/object:Gem::Dependency
58
+ name: rdoc
59
+ requirement: !ruby/object:Gem::Requirement
60
+ requirements:
61
+ - - "~>"
62
+ - !ruby/object:Gem::Version
63
+ version: '4.0'
64
+ type: :development
65
+ prerelease: false
66
+ version_requirements: !ruby/object:Gem::Requirement
67
+ requirements:
68
+ - - "~>"
69
+ - !ruby/object:Gem::Version
70
+ version: '4.0'
71
+ - !ruby/object:Gem::Dependency
72
+ name: hoe-doofus
73
+ requirement: !ruby/object:Gem::Requirement
74
+ requirements:
75
+ - - "~>"
76
+ - !ruby/object:Gem::Version
77
+ version: '1.0'
78
+ type: :development
79
+ prerelease: false
80
+ version_requirements: !ruby/object:Gem::Requirement
81
+ requirements:
82
+ - - "~>"
83
+ - !ruby/object:Gem::Version
84
+ version: '1.0'
85
+ - !ruby/object:Gem::Dependency
86
+ name: hoe-gemspec2
87
+ requirement: !ruby/object:Gem::Requirement
88
+ requirements:
89
+ - - "~>"
90
+ - !ruby/object:Gem::Version
91
+ version: '1.1'
92
+ type: :development
93
+ prerelease: false
94
+ version_requirements: !ruby/object:Gem::Requirement
95
+ requirements:
96
+ - - "~>"
97
+ - !ruby/object:Gem::Version
98
+ version: '1.1'
99
+ - !ruby/object:Gem::Dependency
100
+ name: hoe-git
101
+ requirement: !ruby/object:Gem::Requirement
102
+ requirements:
103
+ - - "~>"
104
+ - !ruby/object:Gem::Version
105
+ version: '1.5'
106
+ type: :development
107
+ prerelease: false
108
+ version_requirements: !ruby/object:Gem::Requirement
109
+ requirements:
110
+ - - "~>"
111
+ - !ruby/object:Gem::Version
112
+ version: '1.5'
113
+ - !ruby/object:Gem::Dependency
114
+ name: hoe-hg
115
+ requirement: !ruby/object:Gem::Requirement
116
+ requirements:
117
+ - - "~>"
118
+ - !ruby/object:Gem::Version
119
+ version: '1.0'
120
+ type: :development
121
+ prerelease: false
122
+ version_requirements: !ruby/object:Gem::Requirement
123
+ requirements:
124
+ - - "~>"
125
+ - !ruby/object:Gem::Version
126
+ version: '1.0'
127
+ - !ruby/object:Gem::Dependency
128
+ name: hoe-rubygems
129
+ requirement: !ruby/object:Gem::Requirement
130
+ requirements:
131
+ - - "~>"
132
+ - !ruby/object:Gem::Version
133
+ version: '1.0'
134
+ type: :development
135
+ prerelease: false
136
+ version_requirements: !ruby/object:Gem::Requirement
137
+ requirements:
138
+ - - "~>"
139
+ - !ruby/object:Gem::Version
140
+ version: '1.0'
141
+ - !ruby/object:Gem::Dependency
142
+ name: hoe-travis
143
+ requirement: !ruby/object:Gem::Requirement
144
+ requirements:
145
+ - - "~>"
146
+ - !ruby/object:Gem::Version
147
+ version: '1.2'
148
+ type: :development
149
+ prerelease: false
150
+ version_requirements: !ruby/object:Gem::Requirement
151
+ requirements:
152
+ - - "~>"
153
+ - !ruby/object:Gem::Version
154
+ version: '1.2'
155
+ - !ruby/object:Gem::Dependency
156
+ name: rspec
157
+ requirement: !ruby/object:Gem::Requirement
158
+ requirements:
159
+ - - "~>"
160
+ - !ruby/object:Gem::Version
161
+ version: '2.0'
162
+ type: :development
163
+ prerelease: false
164
+ version_requirements: !ruby/object:Gem::Requirement
165
+ requirements:
166
+ - - "~>"
167
+ - !ruby/object:Gem::Version
168
+ version: '2.0'
169
+ - !ruby/object:Gem::Dependency
170
+ name: tilt
171
+ requirement: !ruby/object:Gem::Requirement
172
+ requirements:
173
+ - - "~>"
174
+ - !ruby/object:Gem::Version
175
+ version: '1.0'
176
+ type: :development
177
+ prerelease: false
178
+ version_requirements: !ruby/object:Gem::Requirement
179
+ requirements:
180
+ - - "~>"
181
+ - !ruby/object:Gem::Version
182
+ version: '1.0'
183
+ - !ruby/object:Gem::Dependency
184
+ name: hoe
185
+ requirement: !ruby/object:Gem::Requirement
186
+ requirements:
187
+ - - "~>"
188
+ - !ruby/object:Gem::Version
189
+ version: '3.8'
190
+ type: :development
191
+ prerelease: false
192
+ version_requirements: !ruby/object:Gem::Requirement
193
+ requirements:
194
+ - - "~>"
195
+ - !ruby/object:Gem::Version
196
+ version: '3.8'
197
+ description: |-
198
+ RubyPython is a bridge between the Ruby and Python interpreters. It embeds a
199
+ running Python interpreter in the Ruby application's process using FFI and
200
+ provides a means for wrapping, converting, and calling Python objects and
201
+ methods.
202
+
203
+ RubyPython uses FFI to marshal the data between the Ruby and Python VMs and
204
+ make Python calls. You can:
205
+
206
+ * Inherit from Python classes.
207
+ * Configure callbacks from Python.
208
+ * Run Python generators (on Ruby 1.9.2 or later).
209
+ email:
210
+ - swiuzzz+rubypython@gmail.com
211
+ - austin@rubyforge.org
212
+ - raineszm+rubypython@gmail.com
213
+ executables: []
214
+ extensions: []
215
+ extra_rdoc_files:
216
+ - Contributors.rdoc
217
+ - History.rdoc
218
+ - License.rdoc
219
+ - Manifest.txt
220
+ - PostInstall.txt
221
+ - README.rdoc
222
+ - website/robots.txt
223
+ files:
224
+ - ".autotest"
225
+ - ".gitignore"
226
+ - ".hgignore"
227
+ - ".hgtags"
228
+ - ".rspec"
229
+ - Contributors.rdoc
230
+ - History.rdoc
231
+ - License.rdoc
232
+ - Manifest.txt
233
+ - PostInstall.txt
234
+ - README.rdoc
235
+ - Rakefile
236
+ - autotest/discover.rb
237
+ - lib/rubypython.rb
238
+ - lib/rubypython/blankobject.rb
239
+ - lib/rubypython/conversion.rb
240
+ - lib/rubypython/interpreter.rb
241
+ - lib/rubypython/macros.rb
242
+ - lib/rubypython/operators.rb
243
+ - lib/rubypython/pygenerator.rb
244
+ - lib/rubypython/pymainclass.rb
245
+ - lib/rubypython/pyobject.rb
246
+ - lib/rubypython/python.rb
247
+ - lib/rubypython/pythonerror.rb
248
+ - lib/rubypython/rubypyproxy.rb
249
+ - lib/rubypython/tuple.rb
250
+ - lib/rubypython/type.rb
251
+ - spec/basic_spec.rb
252
+ - spec/callback_spec.rb
253
+ - spec/conversion_spec.rb
254
+ - spec/pymainclass_spec.rb
255
+ - spec/pyobject_spec.rb
256
+ - spec/python_helpers/basics.py
257
+ - spec/python_helpers/errors.py
258
+ - spec/python_helpers/objects.py
259
+ - spec/pythonerror_spec.rb
260
+ - spec/refcnt_spec.rb
261
+ - spec/rubypyclass_spec.rb
262
+ - spec/rubypyproxy_spec.rb
263
+ - spec/rubypython_spec.rb
264
+ - spec/spec_helper.rb
265
+ - website/index.rhtml
266
+ - website/robots.txt
267
+ - website/stylesheets/960.css
268
+ - website/stylesheets/border-radius.htc
269
+ - website/stylesheets/screen.css
270
+ homepage:
271
+ licenses:
272
+ - MIT
273
+ metadata: {}
274
+ post_install_message:
275
+ rdoc_options:
276
+ - "--main"
277
+ - README.rdoc
278
+ require_paths:
279
+ - lib
280
+ required_ruby_version: !ruby/object:Gem::Requirement
281
+ requirements:
282
+ - - ">="
283
+ - !ruby/object:Gem::Version
284
+ version: '0'
285
+ required_rubygems_version: !ruby/object:Gem::Requirement
286
+ requirements:
287
+ - - ">="
288
+ - !ruby/object:Gem::Version
289
+ version: '0'
290
+ requirements:
291
+ - Python, ~> 2.4
292
+ rubyforge_project: rubypython
293
+ rubygems_version: 2.6.14
294
+ signing_key:
295
+ specification_version: 4
296
+ summary: RubyPython is a bridge between the Ruby and Python interpreters
297
+ test_files: []