just_share 1.0.4 → 1.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/Gemfile.lock +1 -1
- data/lib/just_share/version.rb +1 -1
- data/lib/just_share.rb +5 -5
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f9357c72a58e40ac0202f887f9bd626c8a786251
|
4
|
+
data.tar.gz: 914d3d4c11b6e20d5bfc61b70f23afc2caa66dfa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 971997f2e93532879df1397a0396e0122f7e40483bb497585f10667054d77916f7b2554992ee8a7b5a77fa709f0b4dd2f893f58285d50bf3095efdd74064f79f
|
7
|
+
data.tar.gz: 38cbac6a862d675a7efdbae632b1efb20dbf444bd50dacc0c5d36f38483266cb2111308709a030f13332b1679366104baba19eade98d94951b09e26e16aafccc
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
data/lib/just_share/version.rb
CHANGED
data/lib/just_share.rb
CHANGED
@@ -23,11 +23,11 @@ module JustShare
|
|
23
23
|
# Facade method to create the links
|
24
24
|
def self.on(params={})
|
25
25
|
# SetUp the params if those attrs are empty
|
26
|
-
@via = params[:via]
|
27
|
-
@link = params[:link]
|
28
|
-
@message = params[:message]
|
29
|
-
@hash_tags = params[:hash_tags]
|
30
|
-
@image_url = params[:image_url]
|
26
|
+
@via = params[:via] || JustShare.via
|
27
|
+
@link = params[:link] || JustShare.link
|
28
|
+
@message = params[:message] || JustShare.message
|
29
|
+
@hash_tags = params[:hash_tags] || JustShare.hash_tags
|
30
|
+
@image_url = params[:image_url] || JustShare.image_url
|
31
31
|
|
32
32
|
# Dynamic instantiate the social network & get it generated link
|
33
33
|
social_network = "JustShare::#{params[:social].to_s.capitalize_humanized}".to_constant.new params
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: just_share
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ilton Garcia
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-03-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -220,7 +220,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
220
220
|
version: '0'
|
221
221
|
requirements: []
|
222
222
|
rubyforge_project:
|
223
|
-
rubygems_version: 2.
|
223
|
+
rubygems_version: 2.4.5
|
224
224
|
signing_key:
|
225
225
|
specification_version: 4
|
226
226
|
summary: Create share links to many social networks
|