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 +4 -4
- data/lib/neo4j-core.rb +1 -0
- data/lib/neo4j-core/version.rb +1 -1
- data/lib/neo4j-server/cypher_session.rb +1 -1
- data/lib/neo4j-server/resource.rb +2 -2
- data/lib/neo4j/session.rb +11 -0
- 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: 96ecdf63a61b304ea758fc9870e106f9ae4e9b7f
|
4
|
+
data.tar.gz: c17a81a6e81c6e09955cdcc163908f0abf503292
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 04e232c88e18f857d16bc985825941c696cf3ed4854b85a48b6106d8947fb460c0ba5b3c1fbefe2a7cffa39148db42e5c9052d9e7a4f008f2dd02244c8615abb
|
7
|
+
data.tar.gz: e2937aafe17eac82b99e6bb0d59582b7b299fa284266fc253ce5d505a7374e67c87d7e3befbfb313462c1682e0f8722781302e1397efe545f2edb61a20172fdf
|
data/lib/neo4j-core.rb
CHANGED
data/lib/neo4j-core/version.rb
CHANGED
@@ -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
|
data/lib/neo4j/session.rb
CHANGED
@@ -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.
|
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-
|
11
|
+
date: 2014-10-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|