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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 11f4dfdf374726956bc74b43f5963af395401a18caf799bf4d03d4e5df8c9c2d
4
- data.tar.gz: 5f300197aaff93c4fecf8ba8567246abd36b89af672eb9498fdbebe5f7073fd2
3
+ metadata.gz: 4d1dee5577322be09cabbcbb773ac112d5ce931fd1607e77d030e6a6675aae8b
4
+ data.tar.gz: c7f6ce0549cd4710484d4b25538acb8f2a7924254d693cca98e5700c809bec5b
5
5
  SHA512:
6
- metadata.gz: 4d4c11288cdf203e172279a17b60243b8c6f52043db891002d79b3bfc3acd59e329e5f9a85eb375ca46c9155a902fee407b2682306faa2e3f2c3ab9ac27057ed
7
- data.tar.gz: de6d4b80acb9e253847ed553f7a0d816e4c65f223996246ab1e7bd8ec85fbe1c05625148f08367afe423c4f206f6c60238643bd541a60a3811fd662109b051fd
6
+ metadata.gz: 8039ee3ee1c35d6ed5eacbf97872abe8fc01663df69e9864aad178bcac730ec6e4f4d5dd8a04d74aa79afe6fa35e9ea83cb74d0a7430c2a49dd02ecb9c2e84fe
7
+ data.tar.gz: 6509e01c5a243ad19da854ffbdf8e84ea75fcf6cffd81c9bf2f7b7173bd7da4a6d71e64c0a968eba5797079549d524be08ca23d7b4856aecf95b2856e6d9eb29
@@ -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
@@ -3,7 +3,7 @@
3
3
  module Dor
4
4
  module Services
5
5
  class Client
6
- VERSION = '1.5.1'
6
+ VERSION = '1.6.0'
7
7
  end
8
8
  end
9
9
  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.5.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-05 00:00:00.000000000 Z
12
+ date: 2019-03-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport