laximo 0.6.0 → 0.6.1

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: 4fcfbd57c0d9ef6284903aafa0de563f8a55a447
4
- data.tar.gz: 8af6e937f01403fc698c01730844538bcfb30af2
3
+ metadata.gz: e338a88ae51e7d0e2241ffc5a664d32e40a9ab22
4
+ data.tar.gz: b1536a91695f130e644def1594c7029e4ce88554
5
5
  SHA512:
6
- metadata.gz: 90fb0f07fb837e466cdb9df2e736ac9eb684e54d832bb2d9702812fb7383c1cd471af11c6e46376321db49585bdc2a16de80bf55a767d7bac18953f3b80e02d4
7
- data.tar.gz: d9492e42c82f47283a7a6b69f0ebb84fe8b98b148a46759d18e007eca6f5e8fdcace6c28e9935720cfcbb4f25527ade67e3e96371ed609d7c98859bf6ce08125
6
+ metadata.gz: 7a8a0ff00221b465f6aef65f63e6aaa68f0c82ec4ddbdb18b6f13ed30bf0b679b3dfdc68e659936cd3907a3caa589588678fee25f99f44be45c53b4fde67cb55
7
+ data.tar.gz: dcb4eaa246ece522445f2126142fe291c7ef4e9971d04b7f1822272cae5fb179337f82ea3ab667413f4331e469f968341470f6d7546d5cd08a2712ddbea90fe2
data/lib/laximo/query.rb CHANGED
@@ -13,7 +13,7 @@ module Laximo
13
13
  def locale(v = nil)
14
14
 
15
15
  @str = nil
16
- @locale = v.blank? ? '' : ":Locale=#{escape(v)}"
16
+ @query[:Locale] = escape(v)
17
17
  self
18
18
 
19
19
  end # locale
@@ -196,13 +196,14 @@ module Laximo
196
196
 
197
197
  return @str unless @str.nil?
198
198
 
199
- @str = "#{@func_name}#{@locale}"
199
+ @str = ''
200
200
 
201
201
  @query.each { |key, value|
202
202
  @str << "|#{key}=#{value}"
203
203
  }
204
204
 
205
- @str
205
+ @str[0] = ''
206
+ @str = "#{@func_name}:#{@str}"
206
207
 
207
208
  end # to_s
208
209
 
@@ -1,6 +1,6 @@
1
1
  # encoding: utf-8
2
2
  module Laximo
3
3
 
4
- VERSION = '0.6.0'.freeze
4
+ VERSION = '0.6.1'.freeze
5
5
 
6
6
  end # Laximo
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: laximo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ivan Pilyaev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-05-03 00:00:00.000000000 Z
11
+ date: 2016-05-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri