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: f51102a6c203e57414807e885c092fb2bc404b9e
4
- data.tar.gz: f693bec6f0c865338ea4bc65ec1a3b463e4dec3e
3
+ metadata.gz: 62a1bba5d0e9907415483dbcdc60a46153d9b3df
4
+ data.tar.gz: 39eb4a135c7ffe44829fec1f97435805a8c10cd2
5
5
  SHA512:
6
- metadata.gz: f78542fe3ae6372ae6f7ac9808f3d0b9c786d52ca9be3b5a5e77e69bd911130ca0bd1fd8b7f77f87a1c7dac27f0dcd3c2b59cc17c85e7f513c7b0ecb47c157f1
7
- data.tar.gz: 6933e82d5906f753a829e4b0a9c34831d18426a4154d16a5f005ae5290f879a04c77a4373459ce0b5aa903a7c6eb3157ab8bc1535e0a0880ece4886188893fc7
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
  }
@@ -1,3 +1,3 @@
1
1
  module ScrivitoRichSnippetWidget
2
- VERSION = '0.1.0'
2
+ VERSION = '0.1.1'
3
3
  end
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.0
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
@@ -1,2 +0,0 @@
1
- ScrivitoRichSnippetWidget::Engine.routes.draw do
2
- end