neo4j-core 3.0.2 → 3.0.3

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: 568ed58ce13513e0128272a5247d5c8c1497a226
4
- data.tar.gz: 5d2a6f2e27679c89e31c328222947e9420a6855c
3
+ metadata.gz: 96ecdf63a61b304ea758fc9870e106f9ae4e9b7f
4
+ data.tar.gz: c17a81a6e81c6e09955cdcc163908f0abf503292
5
5
  SHA512:
6
- metadata.gz: 0b521c271e96dd512f1be7c6b7e4d6c4a4cde2350c3a78f7222c98870ad5163881a22065d3d0e468cf563328ad6798c583a1350ed5971cc7439b673f2998e668
7
- data.tar.gz: 347b3d9718d7849bcfd3eafc92af88e5c85453e1fc5ab6930e68e3ee0a1b819bc9b15a138f7af3841003edd89d40c1e9b26948edb7347f7611488a54220de724
6
+ metadata.gz: 04e232c88e18f857d16bc985825941c696cf3ed4854b85a48b6106d8947fb460c0ba5b3c1fbefe2a7cffa39148db42e5c9052d9e7a4f008f2dd02244c8615abb
7
+ data.tar.gz: e2937aafe17eac82b99e6bb0d59582b7b299fa284266fc253ce5d505a7374e67c87d7e3befbfb313462c1682e0f8722781302e1397efe545f2edb61a20172fdf
@@ -26,3 +26,4 @@ else
26
26
  module Neo4j::Embedded
27
27
  end
28
28
  end
29
+
@@ -1,5 +1,5 @@
1
1
  module Neo4j
2
2
  module Core
3
- VERSION = "3.0.2"
3
+ VERSION = "3.0.3"
4
4
  end
5
5
  end
@@ -26,7 +26,7 @@ module Neo4j::Server
26
26
  b.use Faraday::Adapter::NetHttpPersistent
27
27
  # b.adapter Faraday.default_adapter
28
28
  end
29
- conn.headers = {'Content-Type' => 'application/json'}
29
+ conn.headers = {'Content-Type' => 'application/json', 'User-Agent' => ::Neo4j::Session.user_agent_string}
30
30
  conn
31
31
  end
32
32
 
@@ -49,7 +49,7 @@ module Neo4j
49
49
  end
50
50
 
51
51
  def resource_headers
52
- {'Content-Type' => 'application/json', 'Accept' => 'application/json'}
52
+ {'Content-Type' => 'application/json', 'Accept' => 'application/json', 'User-Agent' => ::Neo4j::Session.user_agent_string}
53
53
  end
54
54
 
55
55
  def resource_url_id(url = resource_url)
@@ -61,4 +61,4 @@ module Neo4j
61
61
  end
62
62
  end
63
63
  end
64
- end
64
+ end
@@ -150,6 +150,17 @@ module Neo4j
150
150
  end
151
151
  end
152
152
 
153
+ def user_agent_string
154
+ gem, version = if defined?(::Neo4j::ActiveNode)
155
+ ['neo4j', ::Neo4j::VERSION]
156
+ else
157
+ ['neo4j-core', ::Neo4j::Core::VERSION]
158
+ end
159
+
160
+
161
+ "#{gem} gem/#{version} (https://github.com/neo4jrb/#{gem})"
162
+ end
163
+
153
164
  # @private
154
165
  def add_listener(&listener)
155
166
  self._listeners << listener
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: 3.0.2
4
+ version: 3.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andreas Ronge
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-23 00:00:00.000000000 Z
11
+ date: 2014-10-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty