parliament-utils 0.8.7 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.ruby-version +1 -1
- data/lib/parliament/utils/helpers/parliament_helper.rb +5 -2
- data/lib/parliament/utils/version.rb +1 -1
- 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: dc4a06941ea0dea090c59a94a451411e507b0286
|
4
|
+
data.tar.gz: 175819e752aa2584803059792de65808d33d3437
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f24e4ab9875fa9abe90779da5cbdab723e3097aba1b2bfeabdbd7ad41ecd62e87b566baf5528305d0041af71173f7b647fd96c8f93551941dd252bacac7fcedc
|
7
|
+
data.tar.gz: e83122d7a8c75636140dfa6a94ff3aaa7ac909f48ee565f10b6735031fe80225c8d355ec8e1fbe7c409b8e1d74477fb8cd07a052c2436d84b2a7e030effc7234
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.
|
1
|
+
2.5
|
@@ -6,8 +6,11 @@ module Parliament
|
|
6
6
|
module Helpers
|
7
7
|
module ParliamentHelper
|
8
8
|
def self.parliament_request(request_id = nil, request_number = 1)
|
9
|
-
headers = {
|
10
|
-
|
9
|
+
headers = {}.tap do |headers|
|
10
|
+
headers['Ocp-Apim-Subscription-Key'] = ENV['PARLIAMENT_AUTH_TOKEN']
|
11
|
+
headers['Api-Version'] = ENV['PARLIAMENT_API_VERSION'] if ENV['PARLIAMENT_API_VERSION']
|
12
|
+
headers['Request-Id'] = "#{request_id}#{request_number}" if request_id
|
13
|
+
end
|
11
14
|
|
12
15
|
Parliament::Request::UrlRequest.new(
|
13
16
|
builder: Parliament::Builder::NTripleResponseBuilder,
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: parliament-utils
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.9.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rebecca Appleyard
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-07-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: parliament-ruby
|