ox 1.8.3 → 1.8.4
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.
Potentially problematic release.
This version of ox might be problematic. Click here for more details.
- data/README.md +4 -0
- data/ext/ox/extconf.rb +1 -1
- data/ext/ox/sax.c +4 -1
- data/lib/ox/document.rb +1 -1
- data/lib/ox/element.rb +2 -2
- data/lib/ox/version.rb +1 -1
- metadata +2 -2
    
        data/README.md
    CHANGED
    
    | @@ -34,6 +34,10 @@ A fast XML parser and Object marshaller as a Ruby gem. | |
| 34 34 |  | 
| 35 35 | 
             
            ## <a name="release">Release Notes</a>
         | 
| 36 36 |  | 
| 37 | 
            +
            ### Release 1.8.4
         | 
| 38 | 
            +
             | 
| 39 | 
            +
             - Applied patch by mcarpenter to fix solaris issues with build and remaining undefined @nodes.
         | 
| 40 | 
            +
             | 
| 37 41 | 
             
            ### Release 1.8.3
         | 
| 38 42 |  | 
| 39 43 | 
             
             - Sax parser now honors encoding specification in the xml prolog correctly.
         | 
    
        data/ext/ox/extconf.rb
    CHANGED
    
    
    
        data/ext/ox/sax.c
    CHANGED
    
    | @@ -77,6 +77,9 @@ typedef struct _SaxDrive { | |
| 77 77 | 
             
            #endif
         | 
| 78 78 | 
             
            } *SaxDrive;
         | 
| 79 79 |  | 
| 80 | 
            +
            #ifdef NEEDS_STPCPY
         | 
| 81 | 
            +
            char *stpncpy(char *dest, const char *src, size_t n);
         | 
| 82 | 
            +
            #endif
         | 
| 80 83 | 
             
            static void		sax_drive_init(SaxDrive dr, VALUE handler, VALUE io, int convert);
         | 
| 81 84 | 
             
            static void		sax_drive_cleanup(SaxDrive dr);
         | 
| 82 85 | 
             
            static int		sax_drive_read(SaxDrive dr);
         | 
| @@ -106,7 +109,7 @@ static int		read_from_str(SaxDrive dr); | |
| 106 109 |  | 
| 107 110 | 
             
            static VALUE		sax_value_class;
         | 
| 108 111 |  | 
| 109 | 
            -
            /* This is only for CentOS 5.4 with Ruby 1.9.3-p0 and for OS X 10.6. */
         | 
| 112 | 
            +
            /* This is only for CentOS 5.4 with Ruby 1.9.3-p0 and for OS X 10.6 and Solaris 10. */
         | 
| 110 113 | 
             
            #ifdef NEEDS_STPCPY
         | 
| 111 114 | 
             
            char *stpncpy(char *dest, const char *src, size_t n) {
         | 
| 112 115 | 
             
                size_t	cnt = strlen(src) + 1;
         | 
    
        data/lib/ox/document.rb
    CHANGED
    
    
    
        data/lib/ox/element.rb
    CHANGED
    
    | @@ -79,7 +79,7 @@ module Ox | |
| 79 79 | 
             
                # Returns the first String in the elements nodes array or nil if there is
         | 
| 80 80 | 
             
                # no String node.
         | 
| 81 81 | 
             
                def text()
         | 
| 82 | 
            -
                   | 
| 82 | 
            +
                  nodes.each { |n| return n if n.is_a?(String) }
         | 
| 83 83 | 
             
                  nil
         | 
| 84 84 | 
             
                end
         | 
| 85 85 |  | 
| @@ -134,7 +134,7 @@ module Ox | |
| 134 134 | 
             
                def method_missing(id, *args, &block)
         | 
| 135 135 | 
             
                  ids = id.to_s
         | 
| 136 136 | 
             
                  i = args[0].to_i # will be 0 if no arg or parsing fails
         | 
| 137 | 
            -
                   | 
| 137 | 
            +
                  nodes.each do |n|
         | 
| 138 138 | 
             
                    if (n.is_a?(Element) || n.is_a?(Instruct)) && (n.value == id || n.value == ids)
         | 
| 139 139 | 
             
                      return n if 0 == i
         | 
| 140 140 | 
             
                      i -= 1
         | 
    
        data/lib/ox/version.rb
    CHANGED
    
    
    
        metadata
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: ox
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 1.8. | 
| 4 | 
            +
              version: 1.8.4
         | 
| 5 5 | 
             
              prerelease: 
         | 
| 6 6 | 
             
            platform: ruby
         | 
| 7 7 | 
             
            authors:
         | 
| @@ -9,7 +9,7 @@ authors: | |
| 9 9 | 
             
            autorequire: 
         | 
| 10 10 | 
             
            bindir: bin
         | 
| 11 11 | 
             
            cert_chain: []
         | 
| 12 | 
            -
            date: 2013-01- | 
| 12 | 
            +
            date: 2013-01-25 00:00:00.000000000 Z
         | 
| 13 13 | 
             
            dependencies: []
         | 
| 14 14 | 
             
            description: ! "A fast XML parser and object serializer that uses only standard C
         | 
| 15 15 | 
             
              lib.\n            \nOptimized XML (Ox), as the name implies was written to provide
         |