octoshark 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d10a2b8a447790535e9be0663c9d1acc6957d910
4
- data.tar.gz: c39b418126b47da9297c24d6d13587262a7d5f49
3
+ metadata.gz: f8eac1fa769be042b9c258530c49c05ef91723ab
4
+ data.tar.gz: 1852cb828c3babdcdcb79298e4619581bb72b216
5
5
  SHA512:
6
- metadata.gz: 78c66eeb430047ecc67499f8d3ad9d44a9eec1e2f7c88c889427c309286d99c1860c1a6c9d3a6815a95323db3993c485991370cd3e786cd3b1f9f3c8acd3095c
7
- data.tar.gz: 91016b143ce9fa9179ac1376905df68d32dc4980989e31d2bed926641457d4f34d752ef5d6e267ded3d15f034e9e1697625b5522232e21fa45287e3a3995dd5e
6
+ metadata.gz: 535e065d62a6cd01e38d6d993e25a02f182a0dfa07df4b3150de13418caabeaf325531bd3560005b62e6e002e39b2835fcea701621d5454c03e01a16916cd325
7
+ data.tar.gz: 026dee2bd0e09b7f5ea1c3c2300727ff224f6820e51cc562cec57bd33ad92765267e760957168841054dcb76fd0391d19c4dfc99588092c1c49fdd7487887a39
@@ -66,7 +66,7 @@ module Octoshark
66
66
  end
67
67
 
68
68
  def identifier
69
- @identifier ||= "octoshark_#{Process.pid}"
69
+ @identifier ||= "octoshark_#{object_id}"
70
70
  end
71
71
 
72
72
  private
@@ -1,3 +1,3 @@
1
1
  module Octoshark
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
@@ -25,6 +25,14 @@ describe Octoshark::ConnectionManager do
25
25
  end
26
26
  end
27
27
 
28
+ describe "#identifier" do
29
+ it "has unique identifiers" do
30
+ manager1 = Octoshark::ConnectionManager.new
31
+ manager2 = Octoshark::ConnectionManager.new
32
+ expect(manager1.identifier).to_not eq(manager2.identifier)
33
+ end
34
+ end
35
+
28
36
  describe "#current_connection" do
29
37
  it "returns last used connection as current one" do
30
38
  manager = Octoshark::ConnectionManager.new(configs)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: octoshark
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dalibor Nasevic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-06-15 00:00:00.000000000 Z
11
+ date: 2015-11-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -174,4 +174,3 @@ test_files:
174
174
  - spec/support/config.yml.template
175
175
  - spec/support/config.yml.travis
176
176
  - spec/support/helpers.rb
177
- has_rdoc: