orientdb-binary 0.8.0 → 0.8.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 988aa38dedf3895ac5a72eb6c2fd68b50b112f6d
4
- data.tar.gz: 39c85446e40a94648491c6cd5c6182326413d80c
3
+ metadata.gz: 704a1ca514bbb1c2be0c571c21716a830e5ee240
4
+ data.tar.gz: bc7c11104c6c0f00bc5a62054fb96805959069e2
5
5
  SHA512:
6
- metadata.gz: 4bb5ad2d394629ec76db3488d0f36e7dacae43f7441705d65c6ede2ae9cf75bb62c7d27e79c14ba591d8b7f67da3d7399961cc09c734d2dfed2509aa6fef83d1
7
- data.tar.gz: b6b0484860ae2b328e46b010bb11a565ccbe2c0278da607cd4f7ba38f13819f0a9d383e1a7e8944c05b6cb29bc271e18765da2b16218e721b2cac98230b45a63
6
+ metadata.gz: 177e4b6b105bf7a53f86ed5d557331b6367941a4b5e5dae9aba68622cc02bd1ab451053aecb7424f5a19c4f7ef18fb8880ea6ae26036e557df88523d29710c7e
7
+ data.tar.gz: 7cea36aac9a315a5232070f109098871e3e2662c2c1cc916657514b1109f84fd3d705f89e09dc6764c0174ab9fc8c9e16c10ae9c378afd77aece76f1b6118bd1
@@ -1,5 +1,5 @@
1
1
  module OrientdbBinary
2
- VERSION = "0.8.0"
2
+ VERSION = "0.8.1"
3
3
  NAME = "OrientDB Binary Protocol Ruby Client"
4
4
  PROTOCOL_VERSION = 20
5
5
  end
@@ -16,14 +16,18 @@ module Orientdb
16
16
  end
17
17
 
18
18
  def parse_rid(rid)
19
- match = rid.match(/^[#]?(?<cluster>-?\d+):(?<position>\d+)$/)
19
+ match = rid.match(/^[#]?(?<cluster>-?\d+):(?<position>-?\d+)$/)
20
20
  @cluster = match[:cluster].to_i
21
21
  @position = match[:position].to_i
22
22
  self
23
23
  end
24
24
 
25
25
  def to_s
26
- "##{cluster}:#{position}"
26
+ unless cluster && position
27
+ "nil"
28
+ else
29
+ "##{cluster}:#{position}"
30
+ end
27
31
  end
28
32
 
29
33
  def temporary?
@@ -35,4 +39,4 @@ module Orientdb
35
39
  end
36
40
 
37
41
  end
38
- end
42
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: orientdb-binary
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michal Ostrowski
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-03-01 00:00:00.000000000 Z
11
+ date: 2014-03-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler