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: d024961dd44531e5fc83853a46d62d0eef211ced
4
- data.tar.gz: c0e9ae78eee6695cb150756a135d37c9b27f6938
3
+ metadata.gz: 8b4eb18ecf5a5e92e31618c26cbd9ab4ef88422a
4
+ data.tar.gz: 4142e0276e53176ce72137bc8d18125c6e6d97e7
5
5
  SHA512:
6
- metadata.gz: 9313178ae9dd6e51f1718be347805338c62cb862fd048dcbd4f63573c1907bf2f9a2f4b90844f08b0c7a4ad6ec3105a8b76b36097cf25a0c08c02930d51fcfa4
7
- data.tar.gz: de7174917d8732adbe2901a944f03d057224ba3fdaa4b57bcdd5dbd2fd69e6225f44fd25058c7b186be559de831066bf2c3354468b520fa21a46b6e50a769d03
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 do
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
@@ -1,3 +1,3 @@
1
1
  module SocialSharePrivacy
2
- VERSION = "0.2.2"
2
+ VERSION = "0.2.3"
3
3
  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.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