just_share 1.0.6 → 1.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7c6f2bfb012a64c8379f003f15e88cfa41b8ce2e
4
- data.tar.gz: cbc589917c46356bebd981d64a7aec782c388993
3
+ metadata.gz: 21233559003eaf2bd3fa9b39dfa82bc69643e515
4
+ data.tar.gz: 7710c80dc17d89418e8f05f085cf74452ead3ebc
5
5
  SHA512:
6
- metadata.gz: 0edc63b848c39b44bed3f22730b0ce9fdbaeafd8e430c581fb3356f62eb1d4a82ef5a7e5bc12493bef02b91bcac8f1cafe20fdf3684d51aa80dcf69e241be7bd
7
- data.tar.gz: 03189b2f51f4f7ef83c5ef73e8c7a774f38e9f6fbe3f1b29aa7f60f22ccd47cd8aae94a1ade0a9bdf947f997a78c0b4d6a971b041ade931dbd202639981e6dfd
6
+ metadata.gz: 03a493d675f98b7d0048188021f534afee518fe1bc43d15be1056d6182528ef7f8431f9679e8c036769c2f74efe498f8c2bbd685a6d7a4e6bedb32d9903d57b0
7
+ data.tar.gz: fad439b323352dc432b05354e766a882ebc58c7639725d417737bd197258674cca68bd4866250699534178891a2fc395260c9d702a1933765d6040a9a3d85022
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- just_share (1.0.6)
4
+ just_share (1.0.7)
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 = 6
4
+ PATCH = 7
5
5
  VERSION = "#{MAJOR}.#{MINOR}.#{PATCH}"
6
6
  end
data/lib/just_share.rb CHANGED
@@ -36,10 +36,7 @@ module JustShare
36
36
 
37
37
  # Convert it array to a simple String to be a GET HTTP param
38
38
  def self.array_to_str_params input_array
39
- input_array= []
40
- aux_array = input_array.split(',') if input_array.is_a?String
41
- input_array = aux_array
42
- if aux_array.is_a?String then return input_array elsif !aux_array.nil? then input_array = aux_array end
39
+ input_array = input_array.split(',') if input_array.is_a?String
43
40
  return_str = '' # init
44
41
  input_array.each { |item| return_str="#{return_str}#{item}," }
45
42
  return_str = return_str.chomp(',') if return_str.last == ','
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.6
4
+ version: 1.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ilton Garcia