intranet-pictures 1.0.0 → 1.0.1
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 42beab994981aa7bc689ea5ad6f5dd7adad424b46c9f13b33ecc55ad89199b5d
|
4
|
+
data.tar.gz: f4a3214ca9a29331c28f2080c2c8265ed8ba8ba31eb2565b5206704b8bb53552
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fa46c519503498af50e612ce4bc14040134a939732753e0eaa98144b37d88485fcbb40f176b42e0c154a82275cca18c9cb2fcb8ce3ad9a0366c855495d5b5d3c
|
7
|
+
data.tar.gz: 98effc28029acce7b7932299e9371d40092977309774bddaf77b101923ae5c9df176eb9ed4fcca8cf1a0ccdc6036fb3e0c5604fc45bfa580ee7095685bf0487b
|
@@ -16,13 +16,19 @@ en:
|
|
16
16
|
city: 'Cities'
|
17
17
|
region: 'Regions'
|
18
18
|
country: 'Countries'
|
19
|
+
album: 'Albums'
|
20
|
+
category: 'Categories'
|
19
21
|
recents:
|
20
22
|
event: 'Latest events'
|
21
23
|
city: 'Cities visited recently'
|
22
24
|
region: 'Regions visited recently'
|
23
25
|
country: 'Countries visited recently'
|
26
|
+
album: 'Latest pictures albums'
|
27
|
+
category: 'Categories updated recently'
|
24
28
|
browse_by:
|
25
29
|
event: 'Browse pictures by event'
|
26
30
|
city: 'Browse pictures by city'
|
27
31
|
region: 'Browse pictures by region'
|
28
32
|
country: 'Browse pictures by country'
|
33
|
+
album: 'Browse pictures by album'
|
34
|
+
category: 'Browse pictures by category'
|
@@ -16,13 +16,19 @@ fr:
|
|
16
16
|
city: 'Villes'
|
17
17
|
region: 'Régions'
|
18
18
|
country: 'Pays'
|
19
|
+
album: 'Albums'
|
20
|
+
category: 'Catégories'
|
19
21
|
recents:
|
20
22
|
event: 'Événements récents'
|
21
23
|
city: 'Dernières villes visitées'
|
22
24
|
region: 'Dernières régions visitées'
|
23
25
|
country: 'Derniers pays visités'
|
26
|
+
album: 'Albums photos récents'
|
27
|
+
category: 'Catégories mises à jour récemment'
|
24
28
|
browse_by:
|
25
29
|
event: 'Parcourir les images par événement'
|
26
30
|
city: 'Parcourir les images par ville'
|
27
31
|
region: 'Parcourir les images par région'
|
28
32
|
country: 'Parcourir les images par pays'
|
33
|
+
album: 'Parcourir les images par album'
|
34
|
+
category: 'Parcourir les images par catégorie'
|
@@ -101,20 +101,22 @@ RSpec.describe Intranet::Pictures::Responder do
|
|
101
101
|
expect(code).to eql(206)
|
102
102
|
expect(mime).to eql('text/html')
|
103
103
|
expect(content).to eql(
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
104
|
+
{
|
105
|
+
content: "<section>\n<h2>My Gallery</h2>\n" \
|
106
|
+
"<ul class='breadcrumb'>\n" \
|
107
|
+
"<li>\n<a href='/index.html'>#{I18n.t('nav.home')}</a>\n</li>\n" \
|
108
|
+
"<li>#{I18n.t('pictures.menu')}</li>\n" \
|
109
|
+
"<li>My Gallery</li>\n" \
|
110
|
+
"</ul>\n\n" \
|
111
|
+
"<h3>#{I18n.t('pictures.recents.group2')}</h3>\n" \
|
112
|
+
"<ul class='groups'>\n" \
|
113
|
+
"<li title='Group 2, Title 2'>\n<a onclick='openImagesGallery("group2=group2_title2&sort_by=datetime");'>\n<figure>\n<div style='background-image: url("api/group/group2?group2=group2_title2")'></div>\n<figcaption>\nGroup 2, Title 2\n<br>\n<em>brief_text_2</em>\n</figcaption>\n</figure>\n</a>\n</li>\n" \
|
114
|
+
"<li title='Group 2, Title 1'>\n<a onclick='openImagesGallery("group2=group2_title1&sort_by=datetime");'>\n<figure>\n<div style='background-image: url("api/group/group2?group2=group2_title1")'></div>\n<figcaption>\nGroup 2, Title 1\n</figcaption>\n</figure>\n</a>\n</li>\n" \
|
115
|
+
"</ul>\n" \
|
116
|
+
"<p class='see_more'>\n<a href='browse_group2.html?sort_by=value&sort_order=desc'>#{I18n.t('pictures.see_more')}</a>\n</p>\n" \
|
117
|
+
"</section>\n" + photoswipe_markup,
|
118
|
+
title: 'My Gallery'
|
119
|
+
}
|
118
120
|
)
|
119
121
|
|
120
122
|
# Nominal case with limit
|
@@ -124,20 +126,22 @@ RSpec.describe Intranet::Pictures::Responder do
|
|
124
126
|
expect(code).to eql(206)
|
125
127
|
expect(mime).to eql('text/html')
|
126
128
|
expect(content).to eql(
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
129
|
+
{
|
130
|
+
content: "<section>\n<h2>My Gallery</h2>\n" \
|
131
|
+
"<ul class='breadcrumb'>\n" \
|
132
|
+
"<li>\n<a href='/index.html'>#{I18n.t('nav.home')}</a>\n</li>\n" \
|
133
|
+
"<li>#{I18n.t('pictures.menu')}</li>\n" \
|
134
|
+
"<li>My Gallery</li>\n" \
|
135
|
+
"</ul>\n\n" \
|
136
|
+
"<h3>#{I18n.t('pictures.recents.group2')}</h3>\n" \
|
137
|
+
"<ul class='groups'>\n" \
|
138
|
+
"<li title='Group 2, Title 3'>\n<a onclick='openImagesGallery("group2=group2_title3&sort_by=datetime");'>\n<figure>\n<div style='background-image: url("api/group/group2?group2=group2_title3")'></div>\n<figcaption>\nGroup 2, Title 3\n</figcaption>\n</figure>\n</a>\n</li>\n" \
|
139
|
+
"<li title='Group 2, Title 1'>\n<a onclick='openImagesGallery("group2=group2_title1&sort_by=datetime");'>\n<figure>\n<div style='background-image: url("api/group/group2?group2=group2_title1")'></div>\n<figcaption>\nGroup 2, Title 1\n</figcaption>\n</figure>\n</a>\n</li>\n" \
|
140
|
+
"</ul>\n" \
|
141
|
+
"<p class='see_more'>\n<a href='browse_group2.html?sort_by=value'>#{I18n.t('pictures.see_more')}</a>\n</p>\n" \
|
142
|
+
"</section>\n" + photoswipe_markup,
|
143
|
+
title: 'My Gallery'
|
144
|
+
}
|
141
145
|
)
|
142
146
|
|
143
147
|
# Nominal case without limit
|
@@ -147,20 +151,22 @@ RSpec.describe Intranet::Pictures::Responder do
|
|
147
151
|
expect(code).to eql(206)
|
148
152
|
expect(mime).to eql('text/html')
|
149
153
|
expect(content).to eql(
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
154
|
+
{
|
155
|
+
content: "<section>\n<h2>My Gallery</h2>\n" \
|
156
|
+
"<ul class='breadcrumb'>\n" \
|
157
|
+
"<li>\n<a href='/index.html'>#{I18n.t('nav.home')}</a>\n</li>\n" \
|
158
|
+
"<li>#{I18n.t('pictures.menu')}</li>\n" \
|
159
|
+
"<li>My Gallery</li>\n" \
|
160
|
+
"</ul>\n\n" \
|
161
|
+
"<h3>#{I18n.t('pictures.recents.group2')}</h3>\n" \
|
162
|
+
"<ul class='groups'>\n" \
|
163
|
+
"<li title='Group 2, Title 3'>\n<a onclick='openImagesGallery("group2=group2_title3&sort_by=datetime");'>\n<figure>\n<div style='background-image: url("api/group/group2?group2=group2_title3")'></div>\n<figcaption>\nGroup 2, Title 3\n</figcaption>\n</figure>\n</a>\n</li>\n" \
|
164
|
+
"<li title='Group 2, Title 2'>\n<a onclick='openImagesGallery("group2=group2_title2&sort_by=datetime");'>\n<figure>\n<div style='background-image: url("api/group/group2?group2=group2_title2")'></div>\n<figcaption>\nGroup 2, Title 2\n<br>\n<em>brief_text_2</em>\n</figcaption>\n</figure>\n</a>\n</li>\n" \
|
165
|
+
"<li title='Group 2, Title 1'>\n<a onclick='openImagesGallery("group2=group2_title1&sort_by=datetime");'>\n<figure>\n<div style='background-image: url("api/group/group2?group2=group2_title1")'></div>\n<figcaption>\nGroup 2, Title 1\n</figcaption>\n</figure>\n</a>\n</li>\n" \
|
166
|
+
"</ul>\n" \
|
167
|
+
"</section>\n" + photoswipe_markup,
|
168
|
+
title: 'My Gallery'
|
169
|
+
}
|
164
170
|
)
|
165
171
|
|
166
172
|
# Incorrect recents specification
|
@@ -180,20 +186,22 @@ RSpec.describe Intranet::Pictures::Responder do
|
|
180
186
|
expect(code).to eql(206)
|
181
187
|
expect(mime).to eql('text/html')
|
182
188
|
expect(content).to eql(
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
189
|
+
{
|
190
|
+
content: "<section>\n<h2>My Gallery</h2>\n" \
|
191
|
+
"<ul class='breadcrumb'>\n" \
|
192
|
+
"<li>\n<a href='/index.html'>#{I18n.t('nav.home')}</a>\n</li>\n" \
|
193
|
+
"<li>#{I18n.t('pictures.menu')}</li>\n" \
|
194
|
+
"<li>My Gallery</li>\n" \
|
195
|
+
"</ul>\n\n" \
|
196
|
+
"<h3>#{I18n.t('pictures.browse_by.group2')}</h3>\n" \
|
197
|
+
"<ul class='groups wide'>\n" \
|
198
|
+
"<li title='Group 2, Title 1'>\n<a href='browse_group1.html?sort_by=uri&group2=group2_title1'>\n<figure>\n<div style='background-image: url("api/group/group2?group2=group2_title1")'></div>\n<figcaption>\nGroup 2, Title 1\n</figcaption>\n</figure>\n</a>\n</li>\n" \
|
199
|
+
"<li title='Group 2, Title 2'>\n<a href='browse_group1.html?sort_by=uri&group2=group2_title2'>\n<figure>\n<div style='background-image: url("api/group/group2?group2=group2_title2")'></div>\n<figcaption>\nGroup 2, Title 2\n<br>\n<em>brief_text_2</em>\n</figcaption>\n</figure>\n</a>\n</li>\n" \
|
200
|
+
"<li title='Group 2, Title 3'>\n<a href='browse_group1.html?sort_by=uri&group2=group2_title3'>\n<figure>\n<div style='background-image: url("api/group/group2?group2=group2_title3")'></div>\n<figcaption>\nGroup 2, Title 3\n</figcaption>\n</figure>\n</a>\n</li>\n" \
|
201
|
+
"</ul>\n" \
|
202
|
+
"</section>\n",
|
203
|
+
title: 'My Gallery'
|
204
|
+
}
|
197
205
|
)
|
198
206
|
|
199
207
|
# Nominal case with recents
|
@@ -205,25 +213,27 @@ RSpec.describe Intranet::Pictures::Responder do
|
|
205
213
|
expect(code).to eql(206)
|
206
214
|
expect(mime).to eql('text/html')
|
207
215
|
expect(content).to eql(
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
216
|
+
{
|
217
|
+
content: "<section>\n<h2>My Gallery</h2>\n" \
|
218
|
+
"<ul class='breadcrumb'>\n" \
|
219
|
+
"<li>\n<a href='/index.html'>#{I18n.t('nav.home')}</a>\n</li>\n" \
|
220
|
+
"<li>#{I18n.t('pictures.menu')}</li>\n" \
|
221
|
+
"<li>My Gallery</li>\n" \
|
222
|
+
"</ul>\n\n" \
|
223
|
+
"<h3>#{I18n.t('pictures.recents.group2')}</h3>\n" \
|
224
|
+
"<ul class='groups'>\n" \
|
225
|
+
"<li title='Group 2, Title 3'>\n<a onclick='openImagesGallery("group2=group2_title3&sort_by=datetime");'>\n<figure>\n<div style='background-image: url("api/group/group2?group2=group2_title3")'></div>\n<figcaption>\nGroup 2, Title 3\n</figcaption>\n</figure>\n</a>\n</li>\n" \
|
226
|
+
"<li title='Group 2, Title 2'>\n<a onclick='openImagesGallery("group2=group2_title2&sort_by=datetime");'>\n<figure>\n<div style='background-image: url("api/group/group2?group2=group2_title2")'></div>\n<figcaption>\nGroup 2, Title 2\n<br>\n<em>brief_text_2</em>\n</figcaption>\n</figure>\n</a>\n</li>\n" \
|
227
|
+
"<li title='Group 2, Title 1'>\n<a onclick='openImagesGallery("group2=group2_title1&sort_by=datetime");'>\n<figure>\n<div style='background-image: url("api/group/group2?group2=group2_title1")'></div>\n<figcaption>\nGroup 2, Title 1\n</figcaption>\n</figure>\n</a>\n</li>\n" \
|
228
|
+
"</ul>\n" \
|
229
|
+
"<h3>#{I18n.t('pictures.browse_by.group1')}</h3>\n" \
|
230
|
+
"<ul class='groups wide'>\n" \
|
231
|
+
"<li title='Group 1, Title 2'>\n<a href='browse_group2.html?sort_by=value&sort_order=desc&group1=group1_title2'>\n<figure>\n<div style='background-image: url("api/group/group1?group1=group1_title2")'></div>\n<figcaption>\nGroup 1, Title 2\n</figcaption>\n</figure>\n</a>\n</li>\n" \
|
232
|
+
"<li title='Group 1, Title 1'>\n<a href='browse_group2.html?sort_by=value&sort_order=desc&group1=group1_title1'>\n<figure>\n<div style='background-image: url("api/group/group1?group1=group1_title1")'></div>\n<figcaption>\nGroup 1, Title 1\n<br>\n<em>brief_text_1</em>\n</figcaption>\n</figure>\n</a>\n</li>\n" \
|
233
|
+
"</ul>\n" \
|
234
|
+
"</section>\n" + photoswipe_markup,
|
235
|
+
title: 'My Gallery'
|
236
|
+
}
|
227
237
|
)
|
228
238
|
end
|
229
239
|
end
|
@@ -236,19 +246,21 @@ RSpec.describe Intranet::Pictures::Responder do
|
|
236
246
|
expect(code).to eql(206)
|
237
247
|
expect(mime).to eql('text/html')
|
238
248
|
expect(content).to eql(
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
249
|
+
{
|
250
|
+
content: "<section>\n<h2>My Gallery</h2>\n" \
|
251
|
+
"<ul class='breadcrumb'>\n" \
|
252
|
+
"<li>\n<a href='/index.html'>#{I18n.t('nav.home')}</a>\n</li>\n" \
|
253
|
+
"<li>#{I18n.t('pictures.menu')}</li>\n" \
|
254
|
+
"<li>\n<a href='index.html'>My Gallery</a>\n</li>\n" \
|
255
|
+
"<li>#{I18n.t('pictures.nav.group1')}</li>\n" \
|
256
|
+
"</ul>\n\n" \
|
257
|
+
"<ul class='groups'>\n" \
|
258
|
+
"<li title='Group 1, Title 1'>\n<a onclick='openImagesGallery("group1=group1_title1&sort_by=datetime");'>\n<figure>\n<div style='background-image: url("api/group/group1?group1=group1_title1")'></div>\n<figcaption>\nGroup 1, Title 1\n<br>\n<em>brief_text_1</em>\n</figcaption>\n</figure>\n</a>\n</li>\n" \
|
259
|
+
"<li title='Group 1, Title 2'>\n<a onclick='openImagesGallery("group1=group1_title2&sort_by=datetime");'>\n<figure>\n<div style='background-image: url("api/group/group1?group1=group1_title2")'></div>\n<figcaption>\nGroup 1, Title 2\n</figcaption>\n</figure>\n</a>\n</li>\n" \
|
260
|
+
"</ul>\n" \
|
261
|
+
"</section>\n" + photoswipe_markup,
|
262
|
+
title: 'My Gallery'
|
263
|
+
}
|
252
264
|
)
|
253
265
|
|
254
266
|
# Existing group, valid selector, valid sort order
|
@@ -257,19 +269,21 @@ RSpec.describe Intranet::Pictures::Responder do
|
|
257
269
|
expect(code).to eql(206)
|
258
270
|
expect(mime).to eql('text/html')
|
259
271
|
expect(content).to eql(
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
272
|
+
{
|
273
|
+
content: "<section>\n<h2>My Gallery</h2>\n" \
|
274
|
+
"<ul class='breadcrumb'>\n" \
|
275
|
+
"<li>\n<a href='/index.html'>#{I18n.t('nav.home')}</a>\n</li>\n" \
|
276
|
+
"<li>#{I18n.t('pictures.menu')}</li>\n" \
|
277
|
+
"<li>\n<a href='index.html'>My Gallery</a>\n</li>\n" \
|
278
|
+
"<li>#{I18n.t('pictures.nav.group2')} (Group 1, Title 1)</li>\n" \
|
279
|
+
"</ul>\n\n" \
|
280
|
+
"<ul class='groups'>\n" \
|
281
|
+
"<li title='Group 2, Title 3'>\n<a onclick='openImagesGallery("group1=group1_title1&group2=group2_title3&sort_by=datetime");'>\n<figure>\n<div style='background-image: url("api/group/group2?group2=group2_title3")'></div>\n<figcaption>\nGroup 2, Title 3\n</figcaption>\n</figure>\n</a>\n</li>\n" \
|
282
|
+
"<li title='Group 2, Title 2'>\n<a onclick='openImagesGallery("group1=group1_title1&group2=group2_title2&sort_by=datetime");'>\n<figure>\n<div style='background-image: url("api/group/group2?group2=group2_title2")'></div>\n<figcaption>\nGroup 2, Title 2\n<br>\n<em>brief_text_2</em>\n</figcaption>\n</figure>\n</a>\n</li>\n" \
|
283
|
+
"</ul>\n" \
|
284
|
+
"</section>\n" + photoswipe_markup,
|
285
|
+
title: 'My Gallery'
|
286
|
+
}
|
273
287
|
)
|
274
288
|
|
275
289
|
# Invalid selector
|
@@ -278,16 +292,18 @@ RSpec.describe Intranet::Pictures::Responder do
|
|
278
292
|
expect(code).to eql(206)
|
279
293
|
expect(mime).to eql('text/html')
|
280
294
|
expect(content).to eql(
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
|
295
|
+
{
|
296
|
+
content: "<section>\n<h2>My Gallery</h2>\n" \
|
297
|
+
"<ul class='breadcrumb'>\n" \
|
298
|
+
"<li>\n<a href='/index.html'>#{I18n.t('nav.home')}</a>\n</li>\n" \
|
299
|
+
"<li>#{I18n.t('pictures.menu')}</li>\n" \
|
300
|
+
"<li>\n<a href='index.html'>My Gallery</a>\n</li>\n" \
|
301
|
+
"<li>#{I18n.t('pictures.nav.group2')} (bar)</li>\n" \
|
302
|
+
"</ul>\n\n" \
|
303
|
+
"<ul class='groups'>\n</ul>\n" \
|
304
|
+
"</section>\n" + photoswipe_markup,
|
305
|
+
title: 'My Gallery'
|
306
|
+
}
|
291
307
|
)
|
292
308
|
|
293
309
|
# Invalid group type
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: intranet-pictures
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ebling Mis
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-03-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: intranet-core
|