social_share_privacy 0.2.2 → 0.2.3
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: 8b4eb18ecf5a5e92e31618c26cbd9ab4ef88422a
|
4
|
+
data.tar.gz: 4142e0276e53176ce72137bc8d18125c6e6d97e7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 15bc84aee32a5472a3a17b91046fda81c5ddda1b9f0bc300849f04b8ca876f507d9710e9377e9314aa072880bfdb2c9fab9f67a1de237732ac81081792bd43da
|
7
|
+
data.tar.gz: 95c04327f12c904dada11932b3b9bff564c0795e02e54372d7d612fb0d0a079a60c54b296704b72930b6927501da1c697172d647ba32910e3bcc3d8c4193bc9f
|
@@ -1,13 +1,10 @@
|
|
1
1
|
module SocialSharePrivacyHelper
|
2
2
|
def social_buttons
|
3
|
+
binding.pry
|
3
4
|
options = SocialSharePrivacy.config.eval(request).to_s
|
4
5
|
result = []
|
5
6
|
result << '<div class="social_buttons"></div>'
|
6
|
-
result << javascript_tag
|
7
|
-
result << 'jQuery(document).ready(function($) {'
|
8
|
-
result << " $('.social_buttons').socialSharePrivacy(#{options});"
|
9
|
-
result << "});"
|
10
|
-
end
|
7
|
+
result << javascript_tag("jQuery(document).ready(function($) { $('.social_buttons').socialSharePrivacy(#{options}) });")
|
11
8
|
raw(result.join("\n"))
|
12
9
|
end
|
13
10
|
end
|
@@ -7,6 +7,10 @@ module SocialSharePrivacy
|
|
7
7
|
copy_file "en_social_share_privacy.yml", "config/locales/en_social_share_privacy.yml"
|
8
8
|
copy_file "de_social_share_privacy.yml", "config/locales/de_social_share_privacy.yml"
|
9
9
|
end
|
10
|
+
|
11
|
+
def copy_initializer
|
12
|
+
copy_file "social_share_privacy.rb", "config/initializers/social_share_privacy.rb"
|
13
|
+
end
|
10
14
|
end
|
11
15
|
end
|
12
16
|
end
|
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.2.
|
4
|
+
version: 0.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Joakim Reinert
|
@@ -52,7 +52,6 @@ files:
|
|
52
52
|
- lib/social_share_privacy.rb
|
53
53
|
- lib/social_share_privacy/version.rb
|
54
54
|
- lib/generators/templates/social_share_privacy.rb
|
55
|
-
- lib/generators/templates/helpers/social_share_privacy_helper.rb
|
56
55
|
- lib/generators/templates/en_social_share_privacy.yml
|
57
56
|
- lib/generators/templates/de_social_share_privacy.yml
|
58
57
|
- lib/generators/social_share_privacy/install_generator.rb
|
File without changes
|