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: 9b17b15e82a095cf72eb05a914ced03c99f32d9c209b4a4e1c4e11c981a85f4c
4
- data.tar.gz: 9f0303112e9847a8797582894c7d109eb19aba94144bd6c692b4ce9a3f06ee83
3
+ metadata.gz: 901e6857c26a457c44d35d426b042bc1b697e728867980ae3fbfa5a603538026
4
+ data.tar.gz: c79f1df56929ec8f612f3efbf4fe8a3f767e3193cefc02f02cfa860602e3cf1e
5
5
  SHA512:
6
- metadata.gz: 30f6194e142c4e83414f7e7c8d425f4297c92be6043518d310cf763c7a990546835d5ef604390987daf1b41ad19f054be7b3d11078c76212fc6a842d0d0742d3
7
- data.tar.gz: 7306ff1a0d92ba35ea3992f3f5900d5bb6a90897918e8091006e174df90ab68c0261b885f27cc77795fd3b0a4cd5f180d43de35e361a998e84734ca5a5c0ecdc
6
+ metadata.gz: 809ae4fe85beeafc1fc720722a92197a5ffd0b248d19bd486a4acfd17283036e7ef321f65893ad3acc9cc2052c438ece6ea7d2e56b53b08b88b39943819c21a3
7
+ data.tar.gz: '08d18c6e3cd495b780c905abdb7d1c729cf013ced5e6510e1416f597954b9c0037710053a7cc562053c4a0ff89dae7d264dee2d505dba579ff82ca3176cf860f'
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- ruby-2.4.3
1
+ ruby-2.5.1
@@ -44,13 +44,13 @@ class LHS::Record
44
44
  endpoint
45
45
  end
46
46
 
47
- # Prevent clashing endpoints.
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 "Clashing endpoints! Cannot differentiate between #{existing_endpoint.url} and #{new_endpoint.url}"
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
@@ -1,3 +1,3 @@
1
1
  module LHS
2
- VERSION = '15.5.0'
2
+ VERSION = '15.5.1'
3
3
  end
@@ -39,7 +39,7 @@ describe LHS::Record do
39
39
  end
40
40
  end
41
41
 
42
- context 'clashing endpoints between super and subclass' do
42
+ context 'ambiguous endpoints between super and subclass' do
43
43
  before do
44
44
  class Base < LHS::Record
45
45
  endpoint 'records'
@@ -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 clashing endpoints' do
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(/Clashing endpoints/)
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(/Clashing endpoints/)
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.0
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-07-30 00:00:00.000000000 Z
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.6
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