lhs 12.0.1 → 12.0.2

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
  SHA1:
3
- metadata.gz: f6dd72496ffd697f998423f63eb040d12da20c75
4
- data.tar.gz: 087da614313aa4626e2b0671a0071cdbc7c82922
3
+ metadata.gz: e9e01da17255873ea2f74771b7c9e18ac706685e
4
+ data.tar.gz: 246d5dbfe3a5153ec647130fe189d8b23c5cedcb
5
5
  SHA512:
6
- metadata.gz: 75374cd617e5b67ba372bdefc710e2f305b27e8639a5df27d4f21cd44cd93df14a13ab79d11ae2a333069a3686f16739e0b15298346d0cb860c8944d7a0cd8b5
7
- data.tar.gz: 566ebd60a00e7e7a68486bd77bc6431678bd42df5abcd680e1e4d775c7b321d88ac33d097576330195ecb97705aa74a68224547c3663051c40717c2fa695459e
6
+ metadata.gz: e134d95d294724ac11ad048a05db7bf37effec48eb7d98877225ba66cd1582549735559274a256c529d67bf43c87fda1341e0c02afcfc4d47287e729f26b62e3
7
+ data.tar.gz: 288bcc054d8ffac10d539c54298b56b882f065d53cdde0e5181f35a410d51cae908b34424b6f83344218a24c18880c6cbf25b63c00d1f55254d0c5aac7ff5eca
@@ -22,6 +22,7 @@ Gem::Specification.new do |s|
22
22
 
23
23
  s.add_dependency 'lhc', '>= 5.1.1'
24
24
  s.add_dependency 'activesupport', '> 4.2'
25
+ s.add_dependency 'activemodel'
25
26
 
26
27
  s.add_development_dependency 'rspec-rails', '>= 3.0.0'
27
28
  s.add_development_dependency 'rails', '>= 4.0.0'
data/lib/lhs.rb CHANGED
@@ -41,7 +41,7 @@ module LHS
41
41
  'lhs/record'
42
42
 
43
43
  include Configuration
44
- include AutoloadRecords
44
+ include AutoloadRecords if defined?(Rails)
45
45
 
46
46
  require 'lhs/record' # as lhs records in an application are directly inheriting it
47
47
 
@@ -1,4 +1,5 @@
1
1
  require 'active_support'
2
+ require 'active_support/core_ext/object'
2
3
 
3
4
  class LHS::Record
4
5
 
@@ -418,7 +419,7 @@ class LHS::Record
418
419
  interceptors = interceptors.unshift(LHS::Record::RequestCycleCache::Interceptor)
419
420
  options[:interceptors] = interceptors
420
421
  else
421
- warn(LHS::Record::REQUEST_CYCLE_CACHE_WARNING)
422
+ warn("[WARNING] Can't enable LHS::RequestCycleCache as LHC::Caching interceptor is not enabled/configured (see https://github.com/local-ch/lhc/blob/master/docs/interceptors/caching.md#caching-interceptor)!")
422
423
  end
423
424
  end
424
425
 
@@ -5,8 +5,6 @@ class LHS::Record
5
5
  module RequestCycleCache
6
6
  extend ActiveSupport::Concern
7
7
 
8
- REQUEST_CYCLE_CACHE_WARNING = "[WARNING] Can't enable LHS::RequestCycleCache as LHC::Caching interceptor is not enabled/configured (see https://github.com/local-ch/lhc/blob/master/docs/interceptors/caching.md#caching-interceptor)!".freeze
9
-
10
8
  class Interceptor < LHC::Interceptor
11
9
 
12
10
  VERSION = 1
@@ -1,3 +1,6 @@
1
+ require 'active_support/core_ext/module'
2
+ require 'active_support/core_ext/hash'
3
+
1
4
  # Like ActiveModel::Errors
2
5
  module LHS::Errors
3
6
  class Base
@@ -1,3 +1,3 @@
1
1
  module LHS
2
- VERSION = "12.0.1"
2
+ VERSION = "12.0.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: 12.0.1
4
+ version: 12.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - https://github.com/local-ch/lhs/graphs/contributors
@@ -38,6 +38,20 @@ dependencies:
38
38
  - - ">"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '4.2'
41
+ - !ruby/object:Gem::Dependency
42
+ name: activemodel
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
41
55
  - !ruby/object:Gem::Dependency
42
56
  name: rspec-rails
43
57
  requirement: !ruby/object:Gem::Requirement