social_share_privacy 0.1.5 → 0.1.6

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.
@@ -1,3 +1,3 @@
1
1
  module SocialSharePrivacy
2
- VERSION = "0.1.5"
2
+ VERSION = "0.1.6"
3
3
  end
@@ -1,4 +1,3 @@
1
- <% require 'uri' %>
2
1
  /*
3
2
  * jquery.socialshareprivacy.js | 2 Klicks fuer mehr Datenschutz
4
3
  *
@@ -86,40 +85,40 @@
86
85
  'services' : {
87
86
  'facebook' : {
88
87
  'status' : 'on',
89
- 'txt_info' : '<%= URI.escape(I18n.t('social_share_privacy.facebook.txt_info')) %>',
90
- 'txt_fb_off' : '<%= URI.escape(I18n.t('social_share_privacy.facebook.txt_off')) %>',
91
- 'txt_fb_on' : '<%= URI.escape(I18n.t('social_share_privacy.facebook.txt_on')) %>',
88
+ 'txt_info' : '<%= h(I18n.t('social_share_privacy.facebook.txt_info')) %>',
89
+ 'txt_fb_off' : '<%= h(I18n.t('social_share_privacy.facebook.txt_off')) %>',
90
+ 'txt_fb_on' : '<%= h(I18n.t('social_share_privacy.facebook.txt_on')) %>',
92
91
  'perma_option' : 'on',
93
- 'display_name' : '<%= URI.escape(I18n.t('social_share_privacy.facebook.display_name')) %>',
92
+ 'display_name' : '<%= h(I18n.t('social_share_privacy.facebook.display_name')) %>',
94
93
  'referrer_track' : '',
95
94
  'language' : '<%= I18n.locale.to_s %>',
96
95
  'action' : 'recommend'
97
96
  },
98
97
  'twitter' : {
99
98
  'status' : 'on',
100
- 'txt_info' : '<%= URI.escape(I18n.t('social_share_privacy.twitter.txt_info')) %>',
101
- 'txt_twitter_off' : '<%= URI.escape(I18n.t('social_share_privacy.twitter.txt_off')) %>',
102
- 'txt_twitter_on' : '<%= URI.escape(I18n.t('social_share_privacy.twitter.txt_on')) %>',
99
+ 'txt_info' : '<%= h(I18n.t('social_share_privacy.twitter.txt_info')) %>',
100
+ 'txt_twitter_off' : '<%= h(I18n.t('social_share_privacy.twitter.txt_off')) %>',
101
+ 'txt_twitter_on' : '<%= h(I18n.t('social_share_privacy.twitter.txt_on')) %>',
103
102
  'perma_option' : 'on',
104
- 'display_name' : '<%= URI.escape(I18n.t('social_share_privacy.twitter.display_name')) %>',
103
+ 'display_name' : '<%= h(I18n.t('social_share_privacy.twitter.display_name')) %>',
105
104
  'referrer_track' : '',
106
105
  'tweet_text' : getTweetText,
107
106
  'language' : '<%= I18n.locale.to_s %>'
108
107
  },
109
108
  'gplus' : {
110
109
  'status' : 'on',
111
- 'txt_info' : '<%= URI.escape(I18n.t('social_share_privacy.gplus.txt_info')) %>',
112
- 'txt_gplus_off' : '<%= URI.escape(I18n.t('social_share_privacy.gplus.txt_off')) %>',
113
- 'txt_gplus_on' : '<%= URI.escape(I18n.t('social_share_privacy.gplus.txt_on')) %>',
110
+ 'txt_info' : '<%= h(I18n.t('social_share_privacy.gplus.txt_info')) %>',
111
+ 'txt_gplus_off' : '<%= h(I18n.t('social_share_privacy.gplus.txt_off')) %>',
112
+ 'txt_gplus_on' : '<%= h(I18n.t('social_share_privacy.gplus.txt_on')) %>',
114
113
  'perma_option' : 'on',
115
- 'display_name' : '<%= URI.escape(I18n.t('social_share_privacy.gplus.display_name')) %>',
114
+ 'display_name' : '<%= h(I18n.t('social_share_privacy.gplus.display_name')) %>',
116
115
  'referrer_track' : '',
117
116
  'language' : '<%= I18n.locale.to_s %>'
118
117
  }
119
118
  },
120
119
  'info_link' : 'http://www.heise.de/ct/artikel/2-Klicks-fuer-mehr-Datenschutz-1333879.html',
121
- 'txt_help' : '<%= URI.escape(I18n.t('social_share_privacy.txt_help')) %>',
122
- 'settings_perma' : '<%= URI.escape(I18n.t('social_share_privacy.settings_perma')) %>'
120
+ 'txt_help' : '<%= h(I18n.t('social_share_privacy.txt_help')) %>',
121
+ 'settings_perma' : '<%= h(I18n.t('social_share_privacy.settings_perma')) %>'
123
122
  'cookie_path' : '/',
124
123
  'cookie_domain' : document.location.host,
125
124
  'cookie_expires' : '365',
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: social_share_privacy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: