scrivito_rich_snippet_widget 0.1.0 → 0.1.1
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: 62a1bba5d0e9907415483dbcdc60a46153d9b3df
|
4
|
+
data.tar.gz: 39eb4a135c7ffe44829fec1f97435805a8c10cd2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 24d1a8d5afe83af9fc74bdea3199fc3b2db2cbe81d5c9732f9e3e8726332b9a13bb7e2b2b2016acf6813a00b1651bd462f041afee2f8355a7149625899891d83
|
7
|
+
data.tar.gz: 1acfa7e12cd849d426b5dcb9f532d195b1dcc489185f4c5025587f885810a1fc559e7c7ea729e059636975f5d91f660767c4d84dcf87fec1e66c62be0a2b9c98
|
@@ -9,8 +9,8 @@ Array.prototype.unique = function() {
|
|
9
9
|
return a;
|
10
10
|
};
|
11
11
|
|
12
|
-
function rich_snippet_filter(filter, app_types
|
13
|
-
var types = ['Event', 'Offer', 'PostalAddress', 'Person', 'Organization', 'Product', 'Recipe', 'CreativeWork', 'JobPosting'].concat(app_types).unique();
|
12
|
+
function rich_snippet_filter(filter, app_types) {
|
13
|
+
var types = ['Event', 'Offer', 'PostalAddress', 'Person', 'Organization', 'Product', 'Recipe', 'CreativeWork', 'JobPosting'].concat(app_types || []).unique();
|
14
14
|
|
15
15
|
if(filter == undefined) {
|
16
16
|
return rich_snippet_all_options(types);
|
@@ -19,7 +19,7 @@ function rich_snippet_filter(filter, app_types=[]) {
|
|
19
19
|
return {
|
20
20
|
'_obj_class': {
|
21
21
|
'field': '_obj_class',
|
22
|
-
'options': rich_snippet_all_options(filter == 'all' ? types : filter.concat(app_types).unique())
|
22
|
+
'options': rich_snippet_all_options(filter == 'all' ? types : filter.concat(app_types || []).unique())
|
23
23
|
}
|
24
24
|
}
|
25
25
|
}
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: scrivito_rich_snippet_widget
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gert Geidel
|
@@ -68,7 +68,6 @@ files:
|
|
68
68
|
- app/views/rich_snippet_widget/details.html.erb
|
69
69
|
- app/views/rich_snippet_widget/show.html.erb
|
70
70
|
- app/views/rich_snippet_widget/thumbnail.html.erb
|
71
|
-
- config/routes.rb
|
72
71
|
- lib/scrivito_rich_snippet_widget.rb
|
73
72
|
- lib/scrivito_rich_snippet_widget/engine.rb
|
74
73
|
- lib/scrivito_rich_snippet_widget/version.rb
|
data/config/routes.rb
DELETED