caprese 0.3.23.1 → 0.3.24

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: 1098bcddb95860b6cb9f309d4a2a719cec72a1f7
4
- data.tar.gz: bc9860ce235ee7cf153d862d73aac5f859e200e0
3
+ metadata.gz: 5ab60011a9ebcc4df7f6db15aa5fddaf4d45e17e
4
+ data.tar.gz: 1fc4b7e07dd201f6630cf313c0a8b509b02ee2ed
5
5
  SHA512:
6
- metadata.gz: 1345d3971792416872b52d0e967d7f80f627458324f0de31b6108824d2088cfbf70076e720d3db4e14c5c942d3083b8fecc58804c60f1aee3fafce26b5aac27c
7
- data.tar.gz: fa3f04155d0dbcfff54f55f1f57ce29afae18a47b96b78e324ef804e7f98b1cb2557991d7d61786e9f7a926c9e01258091390054bb365b89b8fe756679a34541
6
+ metadata.gz: b9c5bd9541636bc733733ae8d1f06be612e73f37b665a784d2ed69b0c9640c134e60c1629a867711e8ce104306348c2c289bc3baffe5b1e25a493e3b16ee2960
7
+ data.tar.gz: b7cf51285324c5647cfd5827e8089cc56e647362feccd61f0a0f36fcfd410a6d9beabb1f42aff54f0176a225ce7663568b3c97b662eebf1da48c5ad66fc7227b
data/CHANGELOG.md CHANGED
@@ -133,3 +133,7 @@
133
133
  ## 0.3.23.1
134
134
 
135
135
  * Actually require AMS 0.10.5 (lol)
136
+
137
+ ## 0.3.24
138
+
139
+ * Add `Caprese.config.isolated_namespace` to enable Caprese to work with isolate_namespace Engines
@@ -15,6 +15,8 @@ module Caprese
15
15
  def version_module(suffix = nil)
16
16
  name = (self.is_a?(Class) ? self : self.class).name.deconstantize
17
17
 
18
+ name = name.gsub("#{Caprese.config.isolated_namespace}::", '') if Caprese.config.isolated_namespace
19
+
18
20
  name + (suffix ? "::#{suffix}" : '')
19
21
  end
20
22
 
@@ -1,3 +1,3 @@
1
1
  module Caprese
2
- VERSION = '0.3.23.1'
2
+ VERSION = '0.3.24'
3
3
  end
data/lib/caprese.rb CHANGED
@@ -33,4 +33,8 @@ module Caprese
33
33
 
34
34
  # The maximum size of any page queried
35
35
  config.max_page_size ||= 100
36
+
37
+ # If true, Caprese will trim the isolated namespace module of the engine off the front of output
38
+ # from methods contained in Versioning module
39
+ config.isolated_namespace ||= nil
36
40
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: caprese
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.23.1
4
+ version: 0.3.24
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nick Landgrebe
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: exe
12
12
  cert_chain: []
13
- date: 2017-05-24 00:00:00.000000000 Z
13
+ date: 2017-05-29 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: active_model_serializers