birch 0.0.8 → 0.1.0
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.
- checksums.yaml +7 -0
- data/ext/birch/native.c +4 -3
- data/lib/birch/version.rb +1 -1
- metadata +17 -23
    
        checksums.yaml
    ADDED
    
    | @@ -0,0 +1,7 @@ | |
| 1 | 
            +
            ---
         | 
| 2 | 
            +
            SHA1:
         | 
| 3 | 
            +
              metadata.gz: 960fbe341d95a64781521052701c80937652a55f
         | 
| 4 | 
            +
              data.tar.gz: 73883258fa7a7ba317ae9a0c94bd0278231dbc4c
         | 
| 5 | 
            +
            SHA512:
         | 
| 6 | 
            +
              metadata.gz: cda2bafd7ee217597dee9cdc6d9f63cf3e86313b3e1679ef358eec637143f507057a36e9dcb5c179076807648de28523122cb709ddde1fb4a18b94a909476eb5
         | 
| 7 | 
            +
              data.tar.gz: cae3d8dc6b1f8d72b0181647cc5bb02dd3117a3411dcde8225e9f4836bd291cf1c9b509a2e2ae12c731fab5c3952f224309fbc69265258bfdac420df1c96000b
         | 
    
        data/ext/birch/native.c
    CHANGED
    
    | @@ -1,4 +1,5 @@ | |
| 1 1 | 
             
            #include <ruby.h>
         | 
| 2 | 
            +
            #include <ruby/intern.h>
         | 
| 2 3 |  | 
| 3 4 | 
             
            static VALUE birch;
         | 
| 4 5 | 
             
            static VALUE birch_tree;
         | 
| @@ -52,7 +53,7 @@ static VALUE birch_edge_initialize(int argc, VALUE* argv, VALUE self) { | |
| 52 53 | 
             
            	if (argc == 4) {
         | 
| 53 54 | 
             
            		rb_iv_set(self, "@direction", argv[3]);
         | 
| 54 55 | 
             
            	} else {
         | 
| 55 | 
            -
            		rb_iv_set(self, "@direction",  | 
| 56 | 
            +
            		rb_iv_set(self, "@direction", INT2NUM(0));
         | 
| 56 57 | 
             
            	}
         | 
| 57 58 |  | 
| 58 59 | 
             
            }
         | 
| @@ -269,7 +270,7 @@ static VALUE birch_has_feature(VALUE self, VALUE feature) { | |
| 269 270 | 
             
            static VALUE birch_has_features(VALUE self) {
         | 
| 270 271 | 
             
            	VALUE features;
         | 
| 271 272 | 
             
            	features = rb_iv_get(self, "@features");
         | 
| 272 | 
            -
              if ( | 
| 273 | 
            +
              if (RHASH_SIZE(features) == 0) {
         | 
| 273 274 | 
             
            		return Qfalse;
         | 
| 274 275 | 
             
            	} else { return Qtrue; }
         | 
| 275 276 | 
             
            }
         | 
| @@ -424,4 +425,4 @@ void Init_native(void) { | |
| 424 425 |  | 
| 425 426 | 
             
            	rb_define_method(birch_edge, "initialize", birch_edge_initialize, -1);
         | 
| 426 427 |  | 
| 427 | 
            -
            }
         | 
| 428 | 
            +
            }
         | 
    
        data/lib/birch/version.rb
    CHANGED
    
    
    
        metadata
    CHANGED
    
    | @@ -1,8 +1,7 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: birch
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 0.0 | 
| 5 | 
            -
              prerelease: 
         | 
| 4 | 
            +
              version: 0.1.0
         | 
| 6 5 | 
             
            platform: ruby
         | 
| 7 6 | 
             
            authors:
         | 
| 8 7 | 
             
            - Louis Mullie
         | 
| @@ -10,41 +9,37 @@ authors: | |
| 10 9 | 
             
            autorequire: 
         | 
| 11 10 | 
             
            bindir: bin
         | 
| 12 11 | 
             
            cert_chain: []
         | 
| 13 | 
            -
            date:  | 
| 12 | 
            +
            date: 2017-04-22 00:00:00.000000000 Z
         | 
| 14 13 | 
             
            dependencies:
         | 
| 15 14 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 16 15 | 
             
              name: rspec
         | 
| 17 16 | 
             
              requirement: !ruby/object:Gem::Requirement
         | 
| 18 | 
            -
                none: false
         | 
| 19 17 | 
             
                requirements:
         | 
| 20 | 
            -
                - -  | 
| 18 | 
            +
                - - '='
         | 
| 21 19 | 
             
                  - !ruby/object:Gem::Version
         | 
| 22 20 | 
             
                    version: 2.12.0
         | 
| 23 21 | 
             
              type: :development
         | 
| 24 22 | 
             
              prerelease: false
         | 
| 25 23 | 
             
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 26 | 
            -
                none: false
         | 
| 27 24 | 
             
                requirements:
         | 
| 28 | 
            -
                - -  | 
| 25 | 
            +
                - - '='
         | 
| 29 26 | 
             
                  - !ruby/object:Gem::Version
         | 
| 30 27 | 
             
                    version: 2.12.0
         | 
| 31 28 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 32 29 | 
             
              name: rake
         | 
| 33 30 | 
             
              requirement: !ruby/object:Gem::Requirement
         | 
| 34 | 
            -
                none: false
         | 
| 35 31 | 
             
                requirements:
         | 
| 36 | 
            -
                - -  | 
| 32 | 
            +
                - - '='
         | 
| 37 33 | 
             
                  - !ruby/object:Gem::Version
         | 
| 38 | 
            -
                    version:  | 
| 34 | 
            +
                    version: 3.5.0
         | 
| 39 35 | 
             
              type: :development
         | 
| 40 36 | 
             
              prerelease: false
         | 
| 41 37 | 
             
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 42 | 
            -
                none: false
         | 
| 43 38 | 
             
                requirements:
         | 
| 44 | 
            -
                - -  | 
| 39 | 
            +
                - - '='
         | 
| 45 40 | 
             
                  - !ruby/object:Gem::Version
         | 
| 46 | 
            -
                    version:  | 
| 47 | 
            -
            description:  | 
| 41 | 
            +
                    version: 3.5.0
         | 
| 42 | 
            +
            description: " "
         | 
| 48 43 | 
             
            email:
         | 
| 49 44 | 
             
            - louis.mullie@gmail.com
         | 
| 50 45 | 
             
            - colin.surprenant@gmail.com
         | 
| @@ -53,33 +48,32 @@ extensions: | |
| 53 48 | 
             
            - ext/birch/extconf.rb
         | 
| 54 49 | 
             
            extra_rdoc_files: []
         | 
| 55 50 | 
             
            files:
         | 
| 51 | 
            +
            - ext/birch/extconf.rb
         | 
| 52 | 
            +
            - ext/birch/native.c
         | 
| 53 | 
            +
            - lib/birch.rb
         | 
| 56 54 | 
             
            - lib/birch/pure.rb
         | 
| 57 55 | 
             
            - lib/birch/version.rb
         | 
| 58 | 
            -
            - lib/birch.rb
         | 
| 59 | 
            -
            - ext/birch/native.c
         | 
| 60 | 
            -
            - ext/birch/extconf.rb
         | 
| 61 56 | 
             
            homepage: https://github.com/louismullie/birch
         | 
| 62 57 | 
             
            licenses: []
         | 
| 58 | 
            +
            metadata: {}
         | 
| 63 59 | 
             
            post_install_message: 
         | 
| 64 60 | 
             
            rdoc_options: []
         | 
| 65 61 | 
             
            require_paths:
         | 
| 66 62 | 
             
            - lib
         | 
| 67 63 | 
             
            required_ruby_version: !ruby/object:Gem::Requirement
         | 
| 68 | 
            -
              none: false
         | 
| 69 64 | 
             
              requirements:
         | 
| 70 | 
            -
              - -  | 
| 65 | 
            +
              - - ">="
         | 
| 71 66 | 
             
                - !ruby/object:Gem::Version
         | 
| 72 67 | 
             
                  version: '0'
         | 
| 73 68 | 
             
            required_rubygems_version: !ruby/object:Gem::Requirement
         | 
| 74 | 
            -
              none: false
         | 
| 75 69 | 
             
              requirements:
         | 
| 76 | 
            -
              - -  | 
| 70 | 
            +
              - - ">="
         | 
| 77 71 | 
             
                - !ruby/object:Gem::Version
         | 
| 78 72 | 
             
                  version: '0'
         | 
| 79 73 | 
             
            requirements: []
         | 
| 80 74 | 
             
            rubyforge_project: 
         | 
| 81 | 
            -
            rubygems_version:  | 
| 75 | 
            +
            rubygems_version: 2.4.8
         | 
| 82 76 | 
             
            signing_key: 
         | 
| 83 | 
            -
            specification_version:  | 
| 77 | 
            +
            specification_version: 4
         | 
| 84 78 | 
             
            summary: A basic Ruby tree implementation with an optional C extension for speed.
         | 
| 85 79 | 
             
            test_files: []
         |