rubypython 0.2.8 → 0.2.9

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 (41) hide show
  1. data/History.txt +4 -1
  2. data/Manifest.txt +16 -1
  3. data/PostInstall.txt +1 -1
  4. data/README.txt +7 -2
  5. data/config/hoe.rb +12 -12
  6. data/ext/rubypython_bridge/cbridge.c +92 -90
  7. data/ext/rubypython_bridge/cbridge.h +6 -16
  8. data/ext/rubypython_bridge/ptor.c +110 -56
  9. data/ext/rubypython_bridge/ptor.h +9 -25
  10. data/ext/rubypython_bridge/rp_blankobject.c +42 -0
  11. data/ext/rubypython_bridge/rp_blankobject.h +10 -0
  12. data/ext/rubypython_bridge/rp_class.c +56 -0
  13. data/ext/rubypython_bridge/rp_class.h +6 -0
  14. data/ext/rubypython_bridge/rp_error.c +14 -4
  15. data/ext/rubypython_bridge/rp_error.h +3 -1
  16. data/ext/rubypython_bridge/rp_function.c +31 -0
  17. data/ext/rubypython_bridge/rp_function.h +6 -0
  18. data/ext/rubypython_bridge/rp_instance.c +165 -0
  19. data/ext/rubypython_bridge/rp_instance.h +6 -0
  20. data/ext/rubypython_bridge/rp_module.c +159 -0
  21. data/ext/rubypython_bridge/rp_module.h +7 -0
  22. data/ext/rubypython_bridge/rp_object.c +93 -427
  23. data/ext/rubypython_bridge/rp_object.h +8 -54
  24. data/ext/rubypython_bridge/rp_util.c +61 -0
  25. data/ext/rubypython_bridge/rp_util.h +11 -0
  26. data/ext/rubypython_bridge/rtop.c +103 -54
  27. data/ext/rubypython_bridge/rtop.h +11 -16
  28. data/ext/rubypython_bridge/rubypython_bridge.c +48 -20
  29. data/ext/rubypython_bridge/rubypython_bridge.h +5 -6
  30. data/lib/rubypython.rb +2 -2
  31. data/lib/rubypython/session.rb +4 -0
  32. data/lib/rubypython/version.rb +1 -1
  33. data/test/python_helpers/objects.py +12 -0
  34. data/test/python_helpers/objects.pyc +0 -0
  35. data/test/test_rubypython.rb +123 -19
  36. data/test/test_rubypython_bridge_extn.rb +52 -19
  37. data/test/test_session.rb +1 -1
  38. data/website/index.html +25 -9
  39. data/website/index.txt +26 -3
  40. metadata +20 -5
  41. data/.autotest +0 -9
@@ -1,6 +1,6 @@
1
1
  class TestSessionImport < Test::Unit::TestCase
2
2
  def test_session
3
3
  require 'rubypython/session'
4
- assert RubyPython.import "cPickle"
4
+ assert(RubyPython.import("cPickle"), "Import failed during session test.")
5
5
  end
6
6
  end
@@ -33,17 +33,31 @@
33
33
  <h1>rubypython</h1>
34
34
  <div id="version" class="clickable" onclick='document.location = "http://rubyforge.org/projects/rubypython"; return false'>
35
35
  <p>Get Version</p>
36
- <a href="http://rubyforge.org/projects/rubypython" class="numbers">0.2.6</a>
36
+ <a href="http://rubyforge.org/projects/rubypython" class="numbers">0.2.8</a>
37
37
  </div>
38
- <h2>What</h2>
39
- <p>RubyPython is a C bridge between Ruby and Python with a Ruby interface. It&#8217;s aim is to make the power of the Python&#8217;s great standard library available to Ruby programmers from within Ruby.<br />
40
- <br />
41
- h2. Installing</p>
38
+ <h2>Is it in active development?</h2>
39
+ The short answer: No. I started rubypython a couple of years
40
+ ago in connection with some work I was doing as part of a
41
+ summer research job. I actively worked on it a for a period of
42
+ a few months from that time onward. Since then I have moved on
43
+ to other things more closely related to my chosen field, although I do
44
+ still come back now and again to tinker with the project.
45
+
46
+ Nonetheless, I am always happy to help debug the code if a
47
+ problem should arise. So don&#8217;t hesitate to contact me if you
48
+ have trouble.
49
+ Also, should anyone wish to take on the main drive of the
50
+ project and move forward with it, send me an email and we&#8217;ll talk.
51
+ <h2>What</h2>
52
+ <p>RubyPython is a C bridge between Ruby and Python with a Ruby interface. It&#8217;s aim is to make the power of the Python&#8217;s great standard library available to Ruby programmers from within Ruby.</p>
53
+ <p></p>
54
+ <h3>Installing</h3>
55
+ To install execute the following:
42
56
  <p><pre class='syntax'><span class="ident">sudo</span> <span class="ident">gem</span> <span class="ident">install</span> <span class="ident">rubypython</span></pre></p>
43
57
  <p>Don&#8217;t worry if you got some ugly output from <span class="caps">RDOC</span> and RI.</p>
44
- <h2>The basics</h2>
58
+ <h2>The Basics</h2>
45
59
  <p>Check out the <span class="caps">RDOC</span> pages at <a href="http://rubypython.rubyforge.org/rdoc">http://rubypython.rubyforge.org/rdoc</a></p>
46
- <p>I have only tested this on Mac OS 10.5 with Python 2.5. If anyone has issues with another setup let me know and I&#8217;ll do what I can.</p>
60
+ <p>I have test the system on Mac OS 10.5 and Ubuntu Jaunty 9.04. If anyone has issues with another setup let me know and I&#8217;ll do what I can.</p>
47
61
  <h2>Forum</h2>
48
62
  <p><a href="http://groups.google.com/group/rubypython">http://groups.google.com/group/rubypython</a></p>
49
63
  <h2>How to submit patches</h2>
@@ -51,6 +65,8 @@ h2. Installing</p>
51
65
  <p>You can fetch the source from:</p>
52
66
  <p><a href="http://rubyforge.org/scm/?group_id=6737">http://rubyforge.org/scm/?group_id=6737</a></p>
53
67
  <pre>git clone git://rubyforge.org/rubypython.git</pre>
68
+ <p>or pick it up from github (it&#8217;s a mirror)</p>
69
+ <pre> git clone git://github.org/sentient6/rubypython.git</pre>
54
70
  <h3>Build and test instructions</h3>
55
71
  <pre>cd rubypython
56
72
  rake test
@@ -58,9 +74,9 @@ rake install_gem</pre>
58
74
  <h2>License</h2>
59
75
  <p>This code is free to use under the terms of the <span class="caps">MIT</span> license.</p>
60
76
  <h2>Contact</h2>
61
- <p>Comments are welcome. Send an email to <a href="mailto:achatesavc+rubypython@gmail.com">Zach Raines</a> email via the <a href="http://groups.google.com/group/rubypython">forum</a></p>
77
+ <p>Comments are welcome. Send an email to <a href="mailto:raineszm+rubypython@gmail.com">Zach Raines</a> email via the <a href="http://groups.google.com/group/rubypython">forum</a></p>
62
78
  <p class="coda">
63
- <a href="mailto:achatesavc+rubypython@gmail.com">Zach Raines</a>, 7th August 2008<br>
79
+ <a href="mailto:achatesavc+rubypython@gmail.com">Zach Raines</a>, 8th October 2009<br>
64
80
  Theme extended from <a href="http://rb2js.rubyforge.org/">Paul Battley</a>
65
81
  </p>
66
82
  </div>
@@ -1,11 +1,30 @@
1
1
  h1. rubypython
2
2
 
3
+ h2. Is it in active development?
4
+
5
+ The short answer: No. I started rubypython a couple of years
6
+ ago in connection with some work I was doing as part of a
7
+ summer research job. I actively worked on it a for a period of
8
+ a few months from that time onward. Since then I have moved on
9
+ to other things more closely related to my chosen field, although I do
10
+ still come back now and again to tinker with the project.
11
+
12
+ Nonetheless, I am always happy to help debug the code if a
13
+ problem should arise. So don't hesitate to contact me if you
14
+ have trouble.
15
+
16
+ Also, should anyone wish to take on the main drive of the
17
+ project and move forward with it, send me an email and we'll talk.
3
18
 
4
19
  h2. What
5
20
 
6
21
  RubyPython is a C bridge between Ruby and Python with a Ruby interface. It's aim is to make the power of the Python's great standard library available to Ruby programmers from within Ruby.
7
22
 
8
- h2. Installing
23
+
24
+
25
+ h3. Installing
26
+
27
+ To install execute the following:
9
28
 
10
29
  <pre syntax="ruby">sudo gem install rubypython</pre>
11
30
 
@@ -15,7 +34,7 @@ h2. The Basics
15
34
 
16
35
  Check out the RDOC pages at "http://rubypython.rubyforge.org/rdoc":http://rubypython.rubyforge.org/rdoc
17
36
 
18
- I have only tested this on Mac OS 10.5 with Python 2.5. If anyone has issues with another setup let me know and I'll do what I can.
37
+ I have test the system on Mac OS 10.5 and Ubuntu Jaunty 9.04. If anyone has issues with another setup let me know and I'll do what I can.
19
38
 
20
39
 
21
40
  h2. Forum
@@ -32,6 +51,10 @@ You can fetch the source from:
32
51
 
33
52
  <pre>git clone git://rubyforge.org/rubypython.git</pre>
34
53
 
54
+ or pick it up from github (it's a mirror)
55
+
56
+ <pre> git clone git://github.org/sentient6/rubypython.git</pre>
57
+
35
58
 
36
59
  h3. Build and test instructions
37
60
 
@@ -46,5 +69,5 @@ This code is free to use under the terms of the MIT license.
46
69
 
47
70
  h2. Contact
48
71
 
49
- Comments are welcome. Send an email to "Zach Raines":mailto:achatesavc+rubypython@gmail.com email via the "forum":http://groups.google.com/group/rubypython
72
+ Comments are welcome. Send an email to "Zach Raines":mailto:raineszm+rubypython@gmail.com email via the "forum":http://groups.google.com/group/rubypython
50
73
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubypython
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.8
4
+ version: 0.2.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zach Raines
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-10-05 00:00:00 -04:00
12
+ date: 2009-10-19 00:00:00 -04:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -20,7 +20,7 @@ dependencies:
20
20
  requirements:
21
21
  - - ">="
22
22
  - !ruby/object:Gem::Version
23
- version: 2.3.2
23
+ version: 2.3.3
24
24
  version:
25
25
  description: A bridge between ruby and python
26
26
  email:
@@ -37,7 +37,6 @@ extra_rdoc_files:
37
37
  - README.txt
38
38
  - website/index.txt
39
39
  files:
40
- - .autotest
41
40
  - History.txt
42
41
  - License.txt
43
42
  - Manifest.txt
@@ -52,15 +51,28 @@ files:
52
51
  - ext/rubypython_bridge/extconf.rb
53
52
  - ext/rubypython_bridge/ptor.c
54
53
  - ext/rubypython_bridge/ptor.h
54
+ - ext/rubypython_bridge/rp_blankobject.c
55
+ - ext/rubypython_bridge/rp_blankobject.h
56
+ - ext/rubypython_bridge/rp_class.c
57
+ - ext/rubypython_bridge/rp_class.h
55
58
  - ext/rubypython_bridge/rp_error.c
56
59
  - ext/rubypython_bridge/rp_error.h
60
+ - ext/rubypython_bridge/rp_function.c
61
+ - ext/rubypython_bridge/rp_function.h
62
+ - ext/rubypython_bridge/rp_instance.c
63
+ - ext/rubypython_bridge/rp_instance.h
64
+ - ext/rubypython_bridge/rp_module.c
65
+ - ext/rubypython_bridge/rp_module.h
57
66
  - ext/rubypython_bridge/rp_object.c
58
67
  - ext/rubypython_bridge/rp_object.h
68
+ - ext/rubypython_bridge/rp_util.c
69
+ - ext/rubypython_bridge/rp_util.h
59
70
  - ext/rubypython_bridge/rtop.c
60
71
  - ext/rubypython_bridge/rtop.h
61
72
  - ext/rubypython_bridge/rubypython_bridge.c
62
73
  - ext/rubypython_bridge/rubypython_bridge.h
63
74
  - lib/rubypython.rb
75
+ - lib/rubypython/session.rb
64
76
  - lib/rubypython/version.rb
65
77
  - lib/rubypython/wrapper_extensions.rb
66
78
  - script/console
@@ -73,10 +85,13 @@ files:
73
85
  - tasks/extconf.rake
74
86
  - tasks/extconf/rubypython_bridge.rake
75
87
  - tasks/website.rake
88
+ - test/python_helpers/objects.py
89
+ - test/python_helpers/objects.pyc
76
90
  - test/test.wav
77
91
  - test/test_helper.rb
78
92
  - test/test_rubypython.rb
79
93
  - test/test_rubypython_bridge_extn.rb
94
+ - test/test_session.rb
80
95
  - website/index.html
81
96
  - website/index.txt
82
97
  - website/javascripts/rounded_corners_lite.inc.js
@@ -88,7 +103,7 @@ post_install_message: |+
88
103
 
89
104
  For more information on RubyPython, see http://rubypython.rubyforge.org
90
105
 
91
- If you find a bug, or have any suggestions, email me at: achatesavc+rubypython@gmail.com
106
+ If you find a bug, or have any suggestions, email me at: raineszm+rubypython@gmail.com
92
107
 
93
108
  If you would like to help develop RubyPython, also send me an email.
94
109
 
data/.autotest DELETED
@@ -1,9 +0,0 @@
1
- Autotest.add_hook :initialize do |at|
2
- at.add_mapping(/ext\/.*\/(.*)\.[ch]/) do |_, m|
3
- ["test/test_#{m[1]}_extn.rb"]
4
- end
5
- end
6
-
7
- Autotest.add_hook :run_command do |at|
8
- system "rake compile"
9
- end