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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 80fa2cd8b41f670f174e40d003eecd4e66a0cc5c
4
- data.tar.gz: d998c17cfb1fd8f24f13207059a9d23d5f362490
3
+ metadata.gz: f9357c72a58e40ac0202f887f9bd626c8a786251
4
+ data.tar.gz: 914d3d4c11b6e20d5bfc61b70f23afc2caa66dfa
5
5
  SHA512:
6
- metadata.gz: ae4367a7cff77a60023576e12691861543ad9034c51943e0f8a9432893faef2ec210437762978bd8892b4c1519d4cbc8bf34a30a07a2125b7993a0c3d2c61b93
7
- data.tar.gz: 02a2152d2d89104dc3523717a744a43a4b6e474eea9a3877a738b16fe5ee31c8e39ace770317a460fac0c1da6dc03442b629f67dfbc48df7e773965238e9070c
6
+ metadata.gz: 971997f2e93532879df1397a0396e0122f7e40483bb497585f10667054d77916f7b2554992ee8a7b5a77fa709f0b4dd2f893f58285d50bf3095efdd74064f79f
7
+ data.tar.gz: 38cbac6a862d675a7efdbae632b1efb20dbf444bd50dacc0c5d36f38483266cb2111308709a030f13332b1679366104baba19eade98d94951b09e26e16aafccc
data/Gemfile CHANGED
@@ -1,5 +1,5 @@
1
- source 'https://rubygems.org'
2
1
  #ruby=2.1.2@sharegem
2
+ source 'https://rubygems.org'
3
3
 
4
4
  # Specify your gem's dependencies in just_share.gemspec
5
5
  gemspec
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- just_share (1.0.3)
4
+ just_share (1.0.5)
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 = 4
4
+ PATCH = 5
5
5
  VERSION = "#{MAJOR}.#{MINOR}.#{PATCH}"
6
6
  end
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] unless params[:via].nil?
27
- @link = params[:link] unless params[:link].nil?
28
- @message = params[:message] unless params[:message].nil?
29
- @hash_tags = params[:hash_tags] unless params[:hash_tags].nil?
30
- @image_url = params[:image_url] unless params[:image_url].nil?
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
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-01-23 00:00:00.000000000 Z
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.2.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