ishapi 0.1.8.157 → 0.1.8.161

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
  SHA256:
3
- metadata.gz: 2ef82397f73230341a9eb9b0b5775568c25c102e9a1f86863022bb9b08bb2006
4
- data.tar.gz: 3b341765539250121ca07733bb337f3b74e2fa7dbda45e22268136e1e942664f
3
+ metadata.gz: ceedcb320e4c54ce7266018ee527778921f9d8c026db2ddebda1bbba1ff644c4
4
+ data.tar.gz: 5cab2210c23259864f3ab2b26dff5972e1b3325bcf6afffa56abb2dd553082e7
5
5
  SHA512:
6
- metadata.gz: a16446d1cdb7e5782319f3f3a0e657538fcb7984c017cb0f6b6f1d59ea1d72617b611ae37adaba4c446eefec2890becd12092c979ea334f7f6589c9825d3cf8c
7
- data.tar.gz: 6887ee7845f45f8d379389fa8ce018b60759b6bbfbad5c2483200cefebb0fb8ff88d484c21d06abed4cfca3daa091b92853ba992394bdc75ebc8eafa1ed9e3df
6
+ metadata.gz: af6ca19fdc68d01e11e69ec5cdb2f1763f7f3105fc50211b84af33e694457bcbb3cc22e208584ce0984baa58d788c06d3a860d35a53b685a718391f02c7acb92
7
+ data.tar.gz: f8d5084151e39b07507a4448c470c05f7dfff5f773c2934cc2f151bb5ec136e37a289d1719f07c9fae2f66ed88638776c25d917fc8391a42f553343d2e1479d6
@@ -4,7 +4,7 @@
4
4
 
5
5
  ## @TODO: make sure that _show.jbuilder and show.jbuilder are reasonably deduped
6
6
 
7
- this_key = [ map, params.permit! ]
7
+ this_key = [ map.id, map.updated_at, params.permit! ]
8
8
  json.cache! this_key do
9
9
  json.map do
10
10
  json.id map.id.to_s
@@ -16,6 +16,13 @@ json.cache! this_key do
16
16
 
17
17
  if @map.map
18
18
  json.partial! 'ishapi/maps/show', map: @map.map
19
+ json.config JSON.parse @map.parent.config
20
+ json.labels JSON.parse @map.parent.labels
21
+ else
22
+ ## I removed json parsing from here! _vp_ 2021-10-14
23
+ ## I added json parsing here! _vo_ 2021-10-19
24
+ json.config JSON.parse @map.config
25
+ json.labels JSON.parse @map.labels
19
26
  end
20
27
 
21
28
  json.breadcrumbs do
@@ -26,16 +33,6 @@ json.cache! this_key do
26
33
  end
27
34
  end
28
35
 
29
- ## I removed json parsing from here! _vp_ 2021-10-14
30
- ## I added json parsing here! _vo_ 2021-10-19
31
- if @map.parent_slug.present?
32
- json.config JSON.parse @map.parent.config
33
- json.labels JSON.parse @map.parent.labels
34
- else
35
- json.config JSON.parse @map.config
36
- json.labels JSON.parse @map.labels
37
- end
38
-
39
36
  json.partial! 'ishapi/markers/index', map: @map
40
37
 
41
38
  if @newsitems
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ishapi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8.157
4
+ version: 0.1.8.161
5
5
  platform: ruby
6
6
  authors:
7
7
  - piousbox
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-10-27 00:00:00.000000000 Z
11
+ date: 2021-11-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails