ruby-perl 04.01.2011.1 → 04.01.2011.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/README.md +13 -2
 - data/lib/perl/ffi_lib.rb +7 -2
 - metadata +3 -5
 
    
        data/README.md
    CHANGED
    
    | 
         @@ -16,6 +16,11 @@ For perlists: 
     | 
|
| 
       16 
16 
     | 
    
         
             
            Run your Perl application over industry-standard, enterprise-grade MRI Ruby,
         
     | 
| 
       17 
17 
     | 
    
         
             
            Rack and Passenger!
         
     | 
| 
       18 
18 
     | 
    
         | 
| 
      
 19 
     | 
    
         
            +
            Background story
         
     | 
| 
      
 20 
     | 
    
         
            +
            ----------------
         
     | 
| 
      
 21 
     | 
    
         
            +
             
     | 
| 
      
 22 
     | 
    
         
            +
            Check out our announce [blog post](http://blog.zephirworks.com/47768566) for the story behind this.
         
     | 
| 
      
 23 
     | 
    
         
            +
             
     | 
| 
       19 
24 
     | 
    
         
             
            Getting started
         
     | 
| 
       20 
25 
     | 
    
         
             
            ===============
         
     | 
| 
       21 
26 
     | 
    
         | 
| 
         @@ -122,15 +127,21 @@ the `@func` instance variable; we then call it passing a String. For all 
     | 
|
| 
       122 
127 
     | 
    
         
             
            intents and purposes, `@func` is now a lambda you can pass around and call,
         
     | 
| 
       123 
128 
     | 
    
         
             
            only it's implemented in Perl.
         
     | 
| 
       124 
129 
     | 
    
         | 
| 
      
 130 
     | 
    
         
            +
            Contributors
         
     | 
| 
      
 131 
     | 
    
         
            +
            ============
         
     | 
| 
      
 132 
     | 
    
         
            +
             
     | 
| 
      
 133 
     | 
    
         
            +
            * Andrea Campi (@andreacampi)
         
     | 
| 
      
 134 
     | 
    
         
            +
            * Chris Weyl (@RsrchBoy)
         
     | 
| 
      
 135 
     | 
    
         
            +
             
     | 
| 
       125 
136 
     | 
    
         
             
            Bug reports
         
     | 
| 
       126 
     | 
    
         
            -
             
     | 
| 
      
 137 
     | 
    
         
            +
            ===========
         
     | 
| 
       127 
138 
     | 
    
         | 
| 
       128 
139 
     | 
    
         
             
            ruby-perl is rather well test with RSpec, however you may still find a few
         
     | 
| 
       129 
140 
     | 
    
         
             
            bugs. Please report them any [issue](https://github.com/zephirworks/ruby-perl/issues)
         
     | 
| 
       130 
141 
     | 
    
         
             
            you may find.
         
     | 
| 
       131 
142 
     | 
    
         | 
| 
       132 
143 
     | 
    
         
             
            Copyright and license
         
     | 
| 
       133 
     | 
    
         
            -
             
     | 
| 
      
 144 
     | 
    
         
            +
            =====================
         
     | 
| 
       134 
145 
     | 
    
         | 
| 
       135 
146 
     | 
    
         
             
            Copyright (c) 2011 ZephirWorks.
         
     | 
| 
       136 
147 
     | 
    
         
             
            This code is released under the MIT license.
         
     | 
    
        data/lib/perl/ffi_lib.rb
    CHANGED
    
    | 
         @@ -67,7 +67,7 @@ module Perl 
     | 
|
| 
       67 
67 
     | 
    
         
             
                  begin
         
     | 
| 
       68 
68 
     | 
    
         
             
                    klass.ffi_lib Perl::FFILib::shlib
         
     | 
| 
       69 
69 
     | 
    
         
             
                  rescue Exception
         
     | 
| 
       70 
     | 
    
         
            -
                    klass.ffi_lib "/usr/lib 
     | 
| 
      
 70 
     | 
    
         
            +
                    klass.ffi_lib "/usr/lib/#{libperl}"
         
     | 
| 
       71 
71 
     | 
    
         
             
                  end
         
     | 
| 
       72 
72 
     | 
    
         
             
                end
         
     | 
| 
       73 
73 
     | 
    
         | 
| 
         @@ -79,8 +79,13 @@ module Perl 
     | 
|
| 
       79 
79 
     | 
    
         
             
                  `perl -MConfig -e 'print $Config{so}'`
         
     | 
| 
       80 
80 
     | 
    
         
             
                end
         
     | 
| 
       81 
81 
     | 
    
         | 
| 
      
 82 
     | 
    
         
            +
                def self.libperl
         
     | 
| 
      
 83 
     | 
    
         
            +
                  `perl -MConfig -e 'print $Config{libperl}'`
         
     | 
| 
      
 84 
     | 
    
         
            +
                end
         
     | 
| 
      
 85 
     | 
    
         
            +
             
     | 
| 
       82 
86 
     | 
    
         
             
                def self.shlib
         
     | 
| 
       83 
     | 
    
         
            -
                  "#{archlib}/CORE 
     | 
| 
      
 87 
     | 
    
         
            +
                  "#{archlib}/CORE/#{libperl}"
         
     | 
| 
       84 
88 
     | 
    
         
             
                end
         
     | 
| 
      
 89 
     | 
    
         
            +
             
     | 
| 
       85 
90 
     | 
    
         
             
              end
         
     | 
| 
       86 
91 
     | 
    
         
             
            end
         
     | 
    
        metadata
    CHANGED
    
    | 
         @@ -2,7 +2,7 @@ 
     | 
|
| 
       2 
2 
     | 
    
         
             
            name: ruby-perl
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version 
         
     | 
| 
       4 
4 
     | 
    
         
             
              prerelease: 
         
     | 
| 
       5 
     | 
    
         
            -
              version: 04.01.2011. 
     | 
| 
      
 5 
     | 
    
         
            +
              version: 04.01.2011.2
         
     | 
| 
       6 
6 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       7 
7 
     | 
    
         
             
            authors: 
         
     | 
| 
       8 
8 
     | 
    
         
             
            - Andrea Campi
         
     | 
| 
         @@ -10,8 +10,7 @@ autorequire: 
     | 
|
| 
       10 
10 
     | 
    
         
             
            bindir: bin
         
     | 
| 
       11 
11 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       12 
12 
     | 
    
         | 
| 
       13 
     | 
    
         
            -
            date: 2011-04-01 00:00:00  
     | 
| 
       14 
     | 
    
         
            -
            default_executable: 
         
     | 
| 
      
 13 
     | 
    
         
            +
            date: 2011-04-01 00:00:00 Z
         
     | 
| 
       15 
14 
     | 
    
         
             
            dependencies: 
         
     | 
| 
       16 
15 
     | 
    
         
             
            - !ruby/object:Gem::Dependency 
         
     | 
| 
       17 
16 
     | 
    
         
             
              name: ffi
         
     | 
| 
         @@ -77,7 +76,6 @@ files: 
     | 
|
| 
       77 
76 
     | 
    
         
             
            - spec/scalar_value_spec.rb
         
     | 
| 
       78 
77 
     | 
    
         
             
            - spec/spec_helper.rb
         
     | 
| 
       79 
78 
     | 
    
         
             
            - spec/support/perl_value_helpers.rb
         
     | 
| 
       80 
     | 
    
         
            -
            has_rdoc: true
         
     | 
| 
       81 
79 
     | 
    
         
             
            homepage: http://github.com/zephirworks/ruby-perl
         
     | 
| 
       82 
80 
     | 
    
         
             
            licenses: []
         
     | 
| 
       83 
81 
     | 
    
         | 
| 
         @@ -101,7 +99,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement 
     | 
|
| 
       101 
99 
     | 
    
         
             
            requirements: []
         
     | 
| 
       102 
100 
     | 
    
         | 
| 
       103 
101 
     | 
    
         
             
            rubyforge_project: ruby-perl
         
     | 
| 
       104 
     | 
    
         
            -
            rubygems_version: 1. 
     | 
| 
      
 102 
     | 
    
         
            +
            rubygems_version: 1.7.1
         
     | 
| 
       105 
103 
     | 
    
         
             
            signing_key: 
         
     | 
| 
       106 
104 
     | 
    
         
             
            specification_version: 3
         
     | 
| 
       107 
105 
     | 
    
         
             
            summary: Run Perl code from any Ruby application.
         
     |