lhs 15.5.0 → 15.5.1
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 901e6857c26a457c44d35d426b042bc1b697e728867980ae3fbfa5a603538026
|
4
|
+
data.tar.gz: c79f1df56929ec8f612f3efbf4fe8a3f767e3193cefc02f02cfa860602e3cf1e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 809ae4fe85beeafc1fc720722a92197a5ffd0b248d19bd486a4acfd17283036e7ef321f65893ad3acc9cc2052c438ece6ea7d2e56b53b08b88b39943819c21a3
|
7
|
+
data.tar.gz: '08d18c6e3cd495b780c905abdb7d1c729cf013ced5e6510e1416f597954b9c0037710053a7cc562053c4a0ff89dae7d264dee2d505dba579ff82ca3176cf860f'
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
ruby-2.
|
1
|
+
ruby-2.5.1
|
@@ -44,13 +44,13 @@ class LHS::Record
|
|
44
44
|
endpoint
|
45
45
|
end
|
46
46
|
|
47
|
-
# Prevent
|
47
|
+
# Prevent ambiguous endpoints
|
48
48
|
def sanity_check(new_endpoint)
|
49
49
|
endpoints.each do |existing_endpoint|
|
50
50
|
invalid = existing_endpoint.placeholders.sort == new_endpoint.placeholders.sort &&
|
51
51
|
existing_endpoint.url != new_endpoint.url
|
52
52
|
next unless invalid
|
53
|
-
raise "
|
53
|
+
raise "Ambiguous endpoints! Cannot differentiate between #{existing_endpoint.url} and #{new_endpoint.url}"
|
54
54
|
end
|
55
55
|
end
|
56
56
|
|
data/lib/lhs/version.rb
CHANGED
@@ -2,7 +2,7 @@ require 'rails_helper'
|
|
2
2
|
|
3
3
|
describe LHS::Record do
|
4
4
|
context 'misconfiguration of endpoints' do
|
5
|
-
it 'fails trying to add
|
5
|
+
it 'fails trying to add ambiguous endpoints' do
|
6
6
|
expect(
|
7
7
|
lambda {
|
8
8
|
class Record < LHS::Record
|
@@ -10,7 +10,7 @@ describe LHS::Record do
|
|
10
10
|
endpoint '{+datastore}/v2/reviews'
|
11
11
|
end
|
12
12
|
}
|
13
|
-
).to raise_error(/
|
13
|
+
).to raise_error(/Ambiguous endpoints/)
|
14
14
|
|
15
15
|
expect(
|
16
16
|
lambda {
|
@@ -19,7 +19,7 @@ describe LHS::Record do
|
|
19
19
|
endpoint '{+datastore}/v2/{campaign_id}/reviews'
|
20
20
|
end
|
21
21
|
}
|
22
|
-
).to raise_error(/
|
22
|
+
).to raise_error(/Ambiguous endpoints/)
|
23
23
|
end
|
24
24
|
end
|
25
25
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lhs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 15.5.
|
4
|
+
version: 15.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- https://github.com/local-ch/lhs/graphs/contributors
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-08-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activemodel
|
@@ -457,7 +457,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
457
457
|
requirements:
|
458
458
|
- Ruby >= 2.3.0
|
459
459
|
rubyforge_project:
|
460
|
-
rubygems_version: 2.7.
|
460
|
+
rubygems_version: 2.7.7
|
461
461
|
signing_key:
|
462
462
|
specification_version: 4
|
463
463
|
summary: Rails gem providing an easy, active-record-like interface for http json services
|