marfa 0.5.3 → 0.5.4

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: 1aca8dad0c47806a5823b6296d139735ab42e121
4
- data.tar.gz: edeb6cc773df525b6988c2ffef7863c07eefa08b
3
+ metadata.gz: fded6d57e7e8913d1c694355c1da6ffd09be9d2f
4
+ data.tar.gz: 81acbf44e1d75d9bb45bcfffd7bf47108a235ce7
5
5
  SHA512:
6
- metadata.gz: bc303e2600f78b4b5518989927486e8d3fa8baaf8525bdd95374403fc11b85425b506da0c0a7601461f0ba1a00745dd2e9be76f920cc071314f1ac660fc7f9bc
7
- data.tar.gz: df2e0569c73596ab7cd2cd62bdea4bb71cba33464356be438aebd48e790e0fb0291f902f31a07d46e0f7a9b1a1cb9d0de7b2523e38cea470e7fa4ea5450cf5e0
6
+ metadata.gz: c94d24f9ece756e6cf8bf94ea860b8880b7c8f8b515737b546a39f71ca67a40aeaef1cd58c09e87a66b5cfaa61d21163500bda7b9a040a691737233e2ba89682
7
+ data.tar.gz: b783e105c2630e049a9df94ce6b1102e6f2bcadef6ed249928b552d776a1ffd4256f6b3b4796c492832d505758bdc4a12f4ec5121fb6b3c74ee7f93d5829b3e6
@@ -35,6 +35,7 @@ module Marfa
35
35
  # self.get_raw_data({ path: 'category/list' })
36
36
  # @return [Hash]
37
37
  def self.get_raw_data(params)
38
+ params[:query] = params[:query].delete_if { |k, v| v.nil? } unless params[:query].nil?
38
39
  result = {}
39
40
  path = params[:path]
40
41
  cache_key = "data_#{path}#{params[:query]}".scan(/[a-zA-Zа-яА-Я0-9]+/).join('_')
@@ -61,6 +62,7 @@ module Marfa
61
62
  # @param params [Hash] - options hash
62
63
  # @return [Hash]
63
64
  def self.get_raw_data_with_pagination(params)
65
+ params[:query] = params[:query].delete_if { |k, v| v.nil? } unless params[:query].nil?
64
66
  result = {}
65
67
  path = params[:path]
66
68
  cache_key = "data_with_pagination_#{path}#{params[:query]}".scan(/[a-zA-Zа-яА-Я0-9]+/).join('_')
data/lib/marfa/version.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  # Version constant
2
2
  module Marfa
3
3
  # The version constant for the current version of Marfa
4
- VERSION = '0.5.3' unless defined?(Marfa::VERSION)
4
+ VERSION = '0.5.4' unless defined?(Marfa::VERSION)
5
5
 
6
6
  # The current Marfa version.
7
7
  # @return [String] The version number
data/marfa.gemspec CHANGED
@@ -3,7 +3,7 @@
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = 'marfa'
6
- s.version = '0.5.3'
6
+ s.version = '0.5.4'
7
7
  s.required_ruby_version = '>= 2.3.0'
8
8
  s.platform = Gem::Platform::RUBY
9
9
  s.date = Time.now.strftime('%Y-%m-%d')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: marfa
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.3
4
+ version: 0.5.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Max Krechetov
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2017-06-26 00:00:00.000000000 Z
13
+ date: 2017-07-03 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: haml