lhs 13.2.1 → 13.2.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 844dc7267956b8837e74c91d1b1386593f0c9c93
4
- data.tar.gz: 845a81862d7888f0a7a3bbf814810285b9d3d905
3
+ metadata.gz: 817ac42fa13f753a81ae3cdb118c1603c69e621b
4
+ data.tar.gz: 9c25357f8dd19e34c89060cd8937e267b3d72d08
5
5
  SHA512:
6
- metadata.gz: 3bc45822558eba6546d6b7ee844e2fab5a7cfb1e69f86a663b2b3cf7aa80eb4aaa6b7e9032492f1fc9ca3c564a114c1aa9eae074dce8ec7829f35a8eacff6a90
7
- data.tar.gz: c45687db70958b6630a91f988faa987c190af7d9fca123687589fb7a9594d5cea6c5de01e079a0e90c3004b6ed965ea25dcc35933305010e2f4e3b9195f804b7
6
+ metadata.gz: d2d61991d9f8c997258796996c74221658f4c6d6e49fd99138794add22d60587ae54b4ef38fe0067fd9779d8b5f7c62a0cc76f907b029c428e18bb5881f21b8c
7
+ data.tar.gz: c50e17144b9e7dc502537524659fcdc2f52053697e9c031edb4e560b8fb2f80f3c7683b6b06b3c018a69ad768d82d90031a69cd7725753b08cc2701fe46936bd
data/README.md CHANGED
@@ -1112,6 +1112,16 @@ it 'displays contracts' do
1112
1112
  end
1113
1113
  ```
1114
1114
 
1115
+ ## Test support (caching)
1116
+
1117
+ Add to your spec_helper.rb:
1118
+
1119
+ ```ruby
1120
+ require 'lhs/test/request_cycle_cache'
1121
+ ```
1122
+
1123
+ This will initialize a MemoryStore cache for LHC::Caching interceptor and resets the cache before every test.
1124
+
1115
1125
  ## Where values hash
1116
1126
 
1117
1127
  Returns a hash of where conditions.
@@ -0,0 +1,5 @@
1
+ RSpec.configure do |config|
2
+ config.before(:each) do
3
+ LHS.config.request_cycle_cache.clear
4
+ end
5
+ end
data/lib/lhs/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module LHS
2
- VERSION = "13.2.1"
2
+ VERSION = "13.2.2"
3
3
  end
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: 13.2.1
4
+ version: 13.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - https://github.com/local-ch/lhs/graphs/contributors
@@ -244,6 +244,7 @@ files:
244
244
  - lib/lhs/proxy.rb
245
245
  - lib/lhs/railtie.rb
246
246
  - lib/lhs/record.rb
247
+ - lib/lhs/test/request_cycle_cache_helper.rb
247
248
  - lib/lhs/version.rb
248
249
  - script/ci/build.sh
249
250
  - spec/.DS_Store
@@ -416,7 +417,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
416
417
  requirements:
417
418
  - Ruby >= 2.3.0
418
419
  rubyforge_project:
419
- rubygems_version: 2.6.8
420
+ rubygems_version: 2.6.12
420
421
  signing_key:
421
422
  specification_version: 4
422
423
  summary: Rails gem providing an easy, active-record-like interface for http json services