just_share 1.0.12 → 1.0.13

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: 70eb47dc4739bfa7433f71d26bedf8a1856c4aa1
4
- data.tar.gz: 120a754289b447087ce6e47865eb1f3be6ae5622
3
+ metadata.gz: 157f1596533933639f92d192331df8afa452de62
4
+ data.tar.gz: 9ab827c7caea4c2f08d68a09f41f891d9caab869
5
5
  SHA512:
6
- metadata.gz: 5cbb216318760e342e0480684e69aa38db140dae8ca8278b309ed1e1c874efa798bff96745b161ea95bd4f57153b7b3662daadfb8f27d64d3b3214bcebffe4ab
7
- data.tar.gz: 6121a739e4043cade42d4dea805c21dfc78f27a5db3e7578e00b916c267a2118e6db0c603cfeaffd650d512c193907b7a70c2978e3d21a194bd314cea204eb67
6
+ metadata.gz: 4acbdf271d6d793345bfd31ffd09c909e9c6d110f5ff0c974a7cfe22d1f0557647af8524badb1ca3eb631f5efcf7363683d51e5204db46e5775d75629afb8451
7
+ data.tar.gz: d0199fa4e03c2b7bcd2071504f772b80474dd7d23ac75e6b99f4e2830c875b509370bd36e7be358e4a45110a9f5faa10913f3728b65675d1b4329736e475f956
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- just_share (1.0.12)
4
+ just_share (1.0.13)
5
5
  colorize (~> 0.7.3, >= 0.7.3)
6
6
  multi_json (~> 1.10, >= 1.10.1)
7
7
  rest-client (~> 1.7, >= 1.7.2)
@@ -1,6 +1,6 @@
1
1
  module JustShare
2
2
  MAJOR = 1
3
3
  MINOR = 0
4
- PATCH = 12
4
+ PATCH = 13
5
5
  VERSION = "#{MAJOR}.#{MINOR}.#{PATCH}"
6
6
  end
data/lib/just_share.rb CHANGED
@@ -33,7 +33,12 @@ module JustShare
33
33
  begin
34
34
  social_network = "JustShare::#{params[:social].to_s.capitalize_humanized}".to_constant.new params
35
35
  rescue Exception => e
36
- e.to_s.index('Linkedin') ? params[:social] = 'linked-in' : return ''
36
+ if e.to_s.index('Linkedin').nil?
37
+ return ''
38
+ else
39
+ params[:social] = 'linked-in'
40
+ end
41
+
37
42
  social_network = "JustShare::#{params[:social].to_s.capitalize_humanized}".to_constant.new params
38
43
  end
39
44
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: just_share
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.12
4
+ version: 1.0.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ilton Garcia