add_to_calendar_links 0.4.7 → 0.4.8

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
  SHA256:
3
- metadata.gz: 495a1ab43eeb5602bfcdc9f5eee15799cab1c22a2ff2190f8fa2b0c84242c9e9
4
- data.tar.gz: 5cfd8e912a027a63f355dededbf5dd66c050b0adab9678d3285227c82191cfef
3
+ metadata.gz: d25bb2961c3f2488e412b0a32b5b35946c74fb110c15b000fdb0b5a92c23009c
4
+ data.tar.gz: 963495f17ace8c00ef7e4a2da8491198b30e9cc49a8bd73e0e57b55306a7e63e
5
5
  SHA512:
6
- metadata.gz: 1d48b9f117fc0dd0b1bb7dfedf5bc1a363e3da547904f964e4cc33bc9952d00a8b26d17b3f0d2e0dd22586172b43477a7d081c785ae99d7a96075c3dc864a1a9
7
- data.tar.gz: 766601c05aa976fd3692d300aa7e8f7ea2b4c649cd22d90e8b3aef574d9724dfffcf9159efdd417ae82043974fd909b3a5fd43c3defe69f9c8208dd04dd972f7
6
+ metadata.gz: 06a3eb64acb07022c2d25949d02c922d7dfd7068d29337279f4bed2f3adedc27a974c64bdc012c042f0fa83fbaebdb8a64ee2d9c8b7364247f13d1b7b0b5b894
7
+ data.tar.gz: ebf8303a344a70967d263d80b1560cac9a9a4fc673f5df1a6dd9add6401f0616ef02063a8d082f5f7ccb85ec219f90ebb6ae051d2b5503682fd04368e909c2ca
@@ -112,6 +112,7 @@ module AddToCalendarLinks
112
112
  end
113
113
  params[:SUMMARY] = strip_html_tags(title) #ical doesnt support html so remove all markup. Optional for other formats
114
114
  params[:URL] = url if url
115
+ description.gsub!(/\n/, "\\n")
115
116
  params[:DESCRIPTION] = strip_html_tags(description).strip if description
116
117
  if add_url_to_description && url
117
118
  if params[:DESCRIPTION]
@@ -337,7 +338,6 @@ module AddToCalendarLinks
337
338
  string.gsub!("&", "and")
338
339
  string.gsub!(" ", " ")
339
340
  string.gsub!(/<\/?[^>]*>/, "")
340
- string.gsub!(/\n/, "\\n")
341
341
  string.gsub!(/(\\n){2,}/, "\\n\\n")
342
342
  string.strip
343
343
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module AddToCalendarLinks
4
- VERSION = '0.4.7'
4
+ VERSION = '0.4.8'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: add_to_calendar_links
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.7
4
+ version: 0.4.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jared Turner