neo4j-core 8.0.0 → 8.0.1
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 +4 -4
- data/README.md +5 -2
- data/lib/neo4j-core/version.rb +1 -1
- data/lib/neo4j/core/cypher_session/adaptors/bolt.rb +5 -1
- metadata +2 -2
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA1:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: fc3a6aa69ac1c273a9e39943fb7be6110449a09c
         | 
| 4 | 
            +
              data.tar.gz: 24d87bca2e72ab8d64d306e3d2f9a5031d7a15e3
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: 9394b771b7f5e28b6dc8bee392b2073aa2952a80369fe76e4ad18e4f9fd4b279a1923c17b4c810ea3554f22504ca0c8bced0edf470440925ba3dc7a3e609ca2a
         | 
| 7 | 
            +
              data.tar.gz: 9f2dd2c9e276a79d87c0f59a0d53f17d647d96928801aa1981d3b1985aee47a0f735730eb77ac8cd38688ed0d289fdc927b9f1d0f66b16af101b07e7d76338b7
         | 
    
        data/README.md
    CHANGED
    
    | @@ -7,12 +7,16 @@ It can be used standalone without the neo4j gem. | |
| 7 7 |  | 
| 8 8 | 
             
            ### Executing Cypher queries
         | 
| 9 9 |  | 
| 10 | 
            -
            To make a basic connection to Neo4j to execute Cypher queries, first choose an adaptor.  Adaptors for HTTP and Embedded mode (jRuby only) are available | 
| 10 | 
            +
            To make a basic connection to Neo4j to execute Cypher queries, first choose an adaptor.  Adaptors for HTTP, Bolt, and Embedded mode (jRuby only) are available.  You can create an adaptor like:
         | 
| 11 11 |  | 
| 12 12 | 
             
                http_adaptor = Neo4j::Core::CypherSession::Adaptors::HTTP.new('http://neo4j:pass@localhost:7474')
         | 
| 13 13 |  | 
| 14 14 | 
             
                # or
         | 
| 15 15 |  | 
| 16 | 
            +
                bolt_adaptor = Neo4j::Core::CypherSession::Adaptors::Bolt.new('http://neo4j:pass@localhost:7474', timeout: 10)
         | 
| 17 | 
            +
             | 
| 18 | 
            +
                # or
         | 
| 19 | 
            +
             | 
| 16 20 | 
             
                neo4j_adaptor = Neo4j::Core::CypherSession::Adaptors::Embedded.new('/file/path/to/graph.db')
         | 
| 17 21 |  | 
| 18 22 | 
             
            Once you have an adaptor you can create a session like so:
         | 
| @@ -56,7 +60,6 @@ When doing batched queries, there is also a shortcut for getting a new `Neo4j::C | |
| 56 60 | 
             
            ### 3.0+ Documentation:
         | 
| 57 61 |  | 
| 58 62 | 
             
             * http://neo4jrb.readthedocs.org/en/stable/
         | 
| 59 | 
            -
             * https://github.com/neo4jrb/neo4j-core/wiki
         | 
| 60 63 |  | 
| 61 64 | 
             
            ### 2.x Documentation
         | 
| 62 65 |  | 
    
        data/lib/neo4j-core/version.rb
    CHANGED
    
    
| @@ -185,7 +185,7 @@ module Neo4j | |
| 185 185 | 
             
                        @socket.send(message, 0)
         | 
| 186 186 | 
             
                      end
         | 
| 187 187 |  | 
| 188 | 
            -
                      def recvmsg(size, timeout =  | 
| 188 | 
            +
                      def recvmsg(size, timeout = timeout_option)
         | 
| 189 189 | 
             
                        Timeout.timeout(timeout) do
         | 
| 190 190 | 
             
                          @socket.recv(size).tap do |result|
         | 
| 191 191 | 
             
                            log_message :S, result
         | 
| @@ -228,6 +228,10 @@ module Neo4j | |
| 228 228 | 
             
                        [].tap { |r| while arg = unpacker.unpack_value!; r << arg; end }
         | 
| 229 229 | 
             
                      end
         | 
| 230 230 |  | 
| 231 | 
            +
                      def timeout_option
         | 
| 232 | 
            +
                        @options.fetch(:timeout) { 10 }
         | 
| 233 | 
            +
                      end
         | 
| 234 | 
            +
             | 
| 231 235 | 
             
                      # Represents messages sent to or received from the server
         | 
| 232 236 | 
             
                      class Message
         | 
| 233 237 | 
             
                        TYPE_CODES = {
         | 
    
        metadata
    CHANGED
    
    | @@ -1,14 +1,14 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: neo4j-core
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 8.0. | 
| 4 | 
            +
              version: 8.0.1
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - Andreas Ronge, Chris Grigg, Brian Underwood
         | 
| 8 8 | 
             
            autorequire: 
         | 
| 9 9 | 
             
            bindir: bin
         | 
| 10 10 | 
             
            cert_chain: []
         | 
| 11 | 
            -
            date: 2017-10- | 
| 11 | 
            +
            date: 2017-10-23 00:00:00.000000000 Z
         | 
| 12 12 | 
             
            dependencies:
         | 
| 13 13 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 14 14 | 
             
              name: faraday
         |