ishapi 0.1.8.72 → 0.1.8.73

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: 705dff8da8e55538f06c7a8e15785e6efcdf993e
4
- data.tar.gz: c9778c0721654945770ef533b6a145499a2cfda3
3
+ metadata.gz: 12af39c1280346d903a873c8346053ac03fc90f1
4
+ data.tar.gz: cd8c25a451178205fa63e5a2af2e318e234e0137
5
5
  SHA512:
6
- metadata.gz: 6f05c6fcf4d9910ddb9fa4d58f2ec0af43c16f3a5cd2080830ef9345eb58b78e1edb656d2678bb94846cf8678ae4526e246420af96483ddb2ec34ecfdb897b87
7
- data.tar.gz: 242e3e9b87aaa103af257e5dfa503451525664e7a9f06528d3312aaa45ada884692b6857ff7389df0a289f6f4c3f93131245cbeb43ae4a4277053b2ed9519052
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.72
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-03-19 00:00:00.000000000 Z
11
+ date: 2018-04-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails