pragma-decorator 2.2.1 → 2.2.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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8bb3d13a9c56f66c118d61a10b39ec6c747085e668b56a43506d1e4a98df3642
|
4
|
+
data.tar.gz: 124016af425c1c97362816995a381d6fed4933c4f6a2b94aa7876a5dadbbb011
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 699a8306445e1849e2d4665f516747e0239fd4388abf27990efcfceaef6cfb71da37224a7418a2a8cbd8918cd60f9c4f82594b4e49c569848506a1e12ecf699a
|
7
|
+
data.tar.gz: 15d9195932dd144757582d004f32f0c4e2f873860944f1009160fe60bf55183b6b8fa394d62ef4779d0871d824000d68105d44ca307cd3060ba3b0ecc13b3f68
|
data/CHANGELOG.md
CHANGED
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
|
|
7
7
|
|
8
8
|
## [Unreleased]
|
9
9
|
|
10
|
+
## [2.2.2]
|
11
|
+
|
12
|
+
### Fixed
|
13
|
+
|
14
|
+
- Fixed an issue causing the PORO adapter to be loaded for all models
|
15
|
+
|
10
16
|
## [2.2.1]
|
11
17
|
|
12
18
|
### Changed
|
@@ -62,7 +68,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
|
|
62
68
|
|
63
69
|
First Pragma 2 release.
|
64
70
|
|
65
|
-
[Unreleased]: https://github.com/pragmarb/pragma-decorator/compare/v2.2.
|
71
|
+
[Unreleased]: https://github.com/pragmarb/pragma-decorator/compare/v2.2.2...HEAD
|
72
|
+
[2.2.1]: https://github.com/pragmarb/pragma-decorator/compare/v2.2.1...v2.2.2
|
66
73
|
[2.2.1]: https://github.com/pragmarb/pragma-decorator/compare/v2.2.0...v2.2.1
|
67
74
|
[2.2.0]: https://github.com/pragmarb/pragma-decorator/compare/v2.1.1...v2.2.0
|
68
75
|
[2.1.1]: https://github.com/pragmarb/pragma-decorator/compare/v2.1.0...v2.1.1
|
@@ -12,13 +12,14 @@ module Pragma
|
|
12
12
|
include Adaptor
|
13
13
|
|
14
14
|
class << self
|
15
|
-
# Returns whether the adapter supports the given
|
15
|
+
# Returns whether the adapter supports the given bond.
|
16
16
|
#
|
17
|
-
# @param
|
17
|
+
# @param bond [Bond] the bond to check
|
18
18
|
#
|
19
19
|
# @return [Boolean] whether the object is an instance of +ActiveRecord::Base+
|
20
|
-
def supports?(
|
21
|
-
Object.const_defined?('::ActiveRecord::Base') &&
|
20
|
+
def supports?(bond)
|
21
|
+
Object.const_defined?('::ActiveRecord::Base') &&
|
22
|
+
bond.model.is_a?(::ActiveRecord::Base)
|
22
23
|
end
|
23
24
|
end
|
24
25
|
|
@@ -13,14 +13,14 @@ module Pragma
|
|
13
13
|
include Adaptor
|
14
14
|
|
15
15
|
class << self
|
16
|
-
# Returns whether the adapter supports the
|
16
|
+
# Returns whether the adapter supports the bond.
|
17
17
|
#
|
18
18
|
# Since this is the default adapter, this always returns +true+.
|
19
19
|
#
|
20
|
-
# @param
|
20
|
+
# @param _bond [Bond] the bond to check
|
21
21
|
#
|
22
22
|
# @return [Boolean] always +true+
|
23
|
-
def supports?(
|
23
|
+
def supports?(_bond)
|
24
24
|
true
|
25
25
|
end
|
26
26
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pragma-decorator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.2.
|
4
|
+
version: 2.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alessandro Desantis
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-02-
|
11
|
+
date: 2018-02-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: roar
|