rest_my_case 1.10.1 → 1.10.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: 2c8fcfcdfef03f7d258b3ccd34e73c919adfb285
4
- data.tar.gz: b647c1d6d9a57071f36480a0cc410df2ad0a8b80
3
+ metadata.gz: 22f267e935ce86030f76045e80be9f8f1b8a7cbe
4
+ data.tar.gz: 51ce1a78e1e386272b6e564faa67528415c0e4ca
5
5
  SHA512:
6
- metadata.gz: bff3902db329514d14c1957a5d0d0140e139a0e9b92cb2c0a32aed4cc962a3a6acca3b067813427855b7d564b65d83e3b9e7b13c168554ca6f3acad28d220117
7
- data.tar.gz: 8dd1ffb6a3f9d7a2744667502260c0eac64ac951e63c12b62b983cc333348c8fdbe6b8a2556f45bd15d9b3ff1f65a2125fd70ea6a3107b8f0aed62a7f7dc2302
6
+ metadata.gz: 77014d8144587425b18aaf490cfcd9260fc82cc0d714b2e957587c74701abb5e05d7629ac322993a522e148ae6ff9ff9ba9aeb59cd8d72c2839fc218b806a63e
7
+ data.tar.gz: dc2258b1525f0e8285fccf1fbb738e36814432a669fdd0a1c2cccb9c84cad957d9d229a1ea3a257282f0717754f7ceaf69abe79c5bdd34b3f3b9d028bcc7d2db
@@ -2,8 +2,10 @@ module RestMyCase
2
2
 
3
3
  module HttpStatus
4
4
 
5
+ include Status
6
+
5
7
  def self.included(parent_class)
6
- parent_class.include Status
8
+ return unless parent_class.respond_to? :trial_court
7
9
 
8
10
  parent_class.trial_court.context_class = Context::HttpStatus
9
11
  end
@@ -3,6 +3,8 @@ module RestMyCase
3
3
  module Status
4
4
 
5
5
  def self.included(parent_class)
6
+ return unless parent_class.respond_to? :trial_court
7
+
6
8
  parent_class.trial_court.context_class = Context::Status
7
9
  end
8
10
 
@@ -1,5 +1,5 @@
1
1
  module RestMyCase
2
2
 
3
- VERSION = '1.10.1'
3
+ VERSION = '1.10.2'
4
4
 
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rest_my_case
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.10.1
4
+ version: 1.10.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - goncalvesjoao