ishapi 0.1.8.72 → 0.1.8.73
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 12af39c1280346d903a873c8346053ac03fc90f1
|
4
|
+
data.tar.gz: cd8c25a451178205fa63e5a2af2e318e234e0137
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 17b858b804c775c9d76b814df944ad3af6ec8cb72365b93c7095c050d512d05d10ea2fbab9b12dead041d860ebffb7b0bf8e86a36145fb1ee562e6d99641afb1
|
7
|
+
data.tar.gz: ce1925d071148e73eca801e1e6d237b72e3350b18ac9454363425b0d87e7616c39ac78f6fcac8dbbbf341b3af60f640f27e4c52f9415d089f5fc4691e60e469d
|
@@ -11,5 +11,14 @@ json.reports do
|
|
11
11
|
json.name report.name
|
12
12
|
json.reportname report.name_seo
|
13
13
|
json.description report.descr
|
14
|
+
|
15
|
+
if report.photo
|
16
|
+
json.photo do
|
17
|
+
json.thumb_url report.photo.photo.url :thumb
|
18
|
+
json.small_url report.photo.photo.url :small
|
19
|
+
json.large_url report.photo.photo.url :large
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
14
23
|
end
|
15
24
|
end
|
@@ -11,7 +11,12 @@ json.array! @reports do |report|
|
|
11
11
|
json.subhead report.subhead
|
12
12
|
json.description report.descr
|
13
13
|
if report.photo
|
14
|
-
json.photo report.photo.photo.url( :thumb )
|
14
|
+
json.photo report.photo.photo.url( :thumb ) # @deprecated 20180417
|
15
|
+
json.photos do
|
16
|
+
json.thumb_url report.photo.photo.url( :thumb )
|
17
|
+
json.small_url report.photo.photo.url( :small )
|
18
|
+
json.large_url report.photo.photo.url( :large )
|
19
|
+
end
|
15
20
|
end
|
16
21
|
end
|
17
22
|
|
@@ -24,6 +24,23 @@ json.cache! key do
|
|
24
24
|
|
25
25
|
json.subhead @report.subhead
|
26
26
|
json.description @report.descr
|
27
|
+
|
28
|
+
if @report.photo
|
29
|
+
json.photo do
|
30
|
+
json.thumb_url @report.photo.photo.url :thumb
|
31
|
+
json.small_url @report.photo.photo.url :small
|
32
|
+
json.large_url @report.photo.photo.url :large
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
27
36
|
|
37
|
+
# @deprecated, but specs use this _vp_ 20180423
|
38
|
+
if @report.photo
|
39
|
+
json.photo do
|
40
|
+
json.thumb_url @report.photo.photo.url :thumb
|
41
|
+
json.small_url @report.photo.photo.url :small
|
42
|
+
json.large_url @report.photo.photo.url :large
|
43
|
+
end
|
28
44
|
end
|
45
|
+
|
29
46
|
end
|
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.
|
4
|
+
version: 0.1.8.73
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- piousbox
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-04-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|