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: 8a89663f2c146dfaccaddf296ff7ea5566b59f6d0b271af10a5a70f750374bc0
4
- data.tar.gz: 6165637c124fa28f02182eb992b59eaa6cfc636e9095ab00d45fc176ffa75396
3
+ metadata.gz: 8bb3d13a9c56f66c118d61a10b39ec6c747085e668b56a43506d1e4a98df3642
4
+ data.tar.gz: 124016af425c1c97362816995a381d6fed4933c4f6a2b94aa7876a5dadbbb011
5
5
  SHA512:
6
- metadata.gz: 87f17f141628bb5f50e5e33365291279fda43a1ce88a7f9448132100d6cbb24359ecdaa879f730739ee71f015e5f03e9040606e45229230214090aa12c992f40
7
- data.tar.gz: c318c18bf0107c119978b8505fa7406c0123793c757b6eb93bb6cfb66cc87c564d6152e7e95aa750c5e5ad7c076bd810288350794b085f98200107497950653f
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.1...HEAD
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 model.
15
+ # Returns whether the adapter supports the given bond.
16
16
  #
17
- # @param model [Object] the model to check
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?(model)
21
- Object.const_defined?('::ActiveRecord::Base') && model.is_a?(::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 model.
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 _model [Object] the model to check
20
+ # @param _bond [Bond] the bond to check
21
21
  #
22
22
  # @return [Boolean] always +true+
23
- def supports?(_model)
23
+ def supports?(_bond)
24
24
  true
25
25
  end
26
26
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Pragma
4
4
  module Decorator
5
- VERSION = '2.2.1'
5
+ VERSION = '2.2.2'
6
6
  end
7
7
  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.1
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-23 00:00:00.000000000 Z
11
+ date: 2018-02-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: roar