dor-services-client 1.5.1 → 1.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/dor/services/client.rb +5 -0
- data/lib/dor/services/client/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4d1dee5577322be09cabbcbb773ac112d5ce931fd1607e77d030e6a6675aae8b
|
4
|
+
data.tar.gz: c7f6ce0549cd4710484d4b25538acb8f2a7924254d693cca98e5700c809bec5b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8039ee3ee1c35d6ed5eacbf97872abe8fc01663df69e9864aad178bcac730ec6e4f4d5dd8a04d74aa79afe6fa35e9ea83cb74d0a7430c2a49dd02ecb9c2e84fe
|
7
|
+
data.tar.gz: 6509e01c5a243ad19da854ffbdf8e84ea75fcf6cffd81c9bf2f7b7173bd7da4a6d71e64c0a968eba5797079549d524be08ca23d7b4856aecf95b2856e6d9eb29
|
data/lib/dor/services/client.rb
CHANGED
@@ -83,8 +83,13 @@ module Dor
|
|
83
83
|
# causes the adapter not to be set. Thus, everything breaks.
|
84
84
|
conn.adapter Faraday.default_adapter
|
85
85
|
conn.basic_auth username, password if username && password
|
86
|
+
conn.headers[:user_agent] = user_agent
|
86
87
|
end
|
87
88
|
end
|
89
|
+
|
90
|
+
def user_agent
|
91
|
+
"dor-services-client #{Dor::Services::Client::VERSION}"
|
92
|
+
end
|
88
93
|
end
|
89
94
|
end
|
90
95
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dor-services-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Justin Coyne
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date: 2019-03-
|
12
|
+
date: 2019-03-13 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activesupport
|