lhs 19.5.0.pre.wherehref.1 → 19.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +14 -1
- data/lib/lhs/concerns/is_href.rb +0 -1
- data/lib/lhs/version.rb +1 -1
- data/spec/record/where_spec.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f710860a3f8422148310faddde72364d0fbf9916c79109b3a00df7c48e2de12d
|
4
|
+
data.tar.gz: 19fbb0d10e8a240c8312ed97776d0c15f6b03ef2b2bac9b54f0b0ccdb7236a47
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
|
data/lib/lhs/concerns/is_href.rb
CHANGED
data/lib/lhs/version.rb
CHANGED
data/spec/record/where_spec.rb
CHANGED
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
|
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:
|
480
|
+
version: '0'
|
481
481
|
requirements:
|
482
482
|
- Ruby >= 2.3.0
|
483
483
|
rubyforge_project:
|