lhs 19.5.0.pre.wherehref.1 → 19.5.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: a88315dc4d085a6e2721ff9b3c64099474c255fb7b38a359347f6b970bce0b8d
4
- data.tar.gz: 520edfda6e3f56e415e94433e18e2c0f8dd2f30f88aeb997a054b63c0ffa4fd5
3
+ metadata.gz: f710860a3f8422148310faddde72364d0fbf9916c79109b3a00df7c48e2de12d
4
+ data.tar.gz: 19fbb0d10e8a240c8312ed97776d0c15f6b03ef2b2bac9b54f0b0ccdb7236a47
5
5
  SHA512:
6
- metadata.gz: '0069a65afd0775a0b672a5ec9d2ac859141e8d04c52c575fd217f6062ddfb9b6190ddda551d386baa1159f8b397bd75c36792be5fb8e4609d3c7b8a40af6b885'
7
- data.tar.gz: 8f7e6060bbd95b062f827fa25ef1c6a57d8cbef128bf9fab4152b467adc680e1b773d250cc9b896dab5f71d3959c8ef0eecd951a8ffd68c11d12d16eaa12b382
6
+ metadata.gz: 05ce1a8bab26b8a39cacdb47a0625d5e00d00a69d4ecd0cfc9950951690ccddf726e10e3de6fdea3dfe9aa61d98195a931b57dc3a26d1a1e7c1143c193f28c52
7
+ data.tar.gz: fe24c182642d2c5c61e842176a99c5fc1b53656471082c4cabf8edbe8d8d1d3219cd7e10e9db40e1d87e4fad67fdaefb4436c84e7c3ab1b6ba59d7c144ec160a
data/README.md CHANGED
@@ -328,7 +328,20 @@ Record.where(accociation_id: '12345')
328
328
  GET https://service.example.com/accociation/12345/records
329
329
  ```
330
330
 
331
- If the provided parameter – `accociation_id` in this case – is part of the endpoint path, it will be injected into the path:
331
+ If the provided parameter – `accociation_id` in this case – is part of the endpoint path, it will be injected into the path.
332
+
333
+ You can also provide hrefs to fetch multiple records:
334
+
335
+ ```ruby
336
+ # app/controllers/some_controller.rb
337
+
338
+ Record.where('https://service.example.com/accociation/12345/records')
339
+
340
+ ```
341
+ ```
342
+ GET https://service.example.com/accociation/12345/records
343
+ ```
344
+
332
345
 
333
346
  #### Reuse/Dry where statements: Use scopes
334
347
 
@@ -7,7 +7,6 @@ module LHS
7
7
  extend ActiveSupport::Concern
8
8
 
9
9
  module ClassMethods
10
-
11
10
  def href?(input)
12
11
  input.is_a?(String) && %r{^https?://}.match(input).present?
13
12
  end
data/lib/lhs/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module LHS
4
- VERSION = '19.5.0.pre.wherehref.1'
4
+ VERSION = '19.5.0'
5
5
  end
@@ -32,7 +32,7 @@ describe LHS::Record do
32
32
  end
33
33
 
34
34
  context 'where with href' do
35
- let(:return_body) { [ email: 'steve@local.ch' ].to_json }
35
+ let(:return_body) { [email: 'steve@local.ch'].to_json }
36
36
 
37
37
  context 'chain initialization' do
38
38
  before do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lhs
3
3
  version: !ruby/object:Gem::Version
4
- version: 19.5.0.pre.wherehref.1
4
+ version: 19.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - https://github.com/local-ch/lhs/graphs/contributors
@@ -475,9 +475,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
475
475
  version: 2.3.0
476
476
  required_rubygems_version: !ruby/object:Gem::Requirement
477
477
  requirements:
478
- - - ">"
478
+ - - ">="
479
479
  - !ruby/object:Gem::Version
480
- version: 1.3.1
480
+ version: '0'
481
481
  requirements:
482
482
  - Ruby >= 2.3.0
483
483
  rubyforge_project: