just_share 1.0.10 → 1.0.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/just_share/version.rb +1 -1
- data/lib/just_share.rb +7 -1
- data/spec/just_share/just_share_spec.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6f59e9e53849d07d3eb93f8349876c49c11413ab
|
4
|
+
data.tar.gz: 1b0ed33abf976da2da3fa0ce236c1660570cff2a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ff30075a5ad7428c4a1346e26907ed6ac4137a321964e89df945ce21fe6e1c2ccee34f7ba5f8c57bcd5ba1723fd8021d856bae047f4c12350e60f7f184ad4119
|
7
|
+
data.tar.gz: 9df69e1c2019b66ba50230de6e648ce9608ccb2268ec3c98efdf1acfa88047badc27bd308cd1781dbf4f125a1cc0e93a2635eda3824fbbca34cbc719311d37a5
|
data/Gemfile.lock
CHANGED
data/lib/just_share/version.rb
CHANGED
data/lib/just_share.rb
CHANGED
@@ -30,7 +30,13 @@ module JustShare
|
|
30
30
|
@image_url = params[:image_url] || JustShare.image_url
|
31
31
|
|
32
32
|
# Dynamic instantiate the social network & get it generated link
|
33
|
-
|
33
|
+
begin
|
34
|
+
social_network = "JustShare::#{params[:social].to_s.capitalize_humanized}".to_constant.new params
|
35
|
+
rescue Exception => e
|
36
|
+
params[:social] = 'linked-in' if e.to_s.index('Linkedin')
|
37
|
+
social_network = "JustShare::#{params[:social].to_s.capitalize_humanized}".to_constant.new params
|
38
|
+
end
|
39
|
+
|
34
40
|
social_network.get_post_link
|
35
41
|
end
|
36
42
|
|