phc_string_format 0.1.1 → 0.1.2

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: 373b8c4868684651da8c936757f35579e3ef3c77
4
- data.tar.gz: e529b9855fdb87423ecb7c18b27befbf00358043
3
+ metadata.gz: 5d24f9d993ce62fa3d49a823e0bf4fdb144be1ed
4
+ data.tar.gz: 8ba69bb49f216faa7c5638a2edc8873de8c3e123
5
5
  SHA512:
6
- metadata.gz: 95200c10a93e1b8e60576af7f48b4198004b0fb9496cb4d8ea389d1eaef367a8baac153268ba43b34fbc9ed855d6ad3ec563a8019230bc8cfa9917cd1a46c33b
7
- data.tar.gz: 2dd6b546b3f274c9431937ff4cb7850e4a2b2707a69f36e85dcdc910317c4a512d91a235b667c24c954e91a908a973f2af02625b3d6b675f8692b81625278157
6
+ metadata.gz: 53414162a36e30136aee3b24ca4ac37ead758ad6cdae47ee1f6b09eb845d09e7e3f23f9b5da13644e020eca668ea1c60b68b5819a6f2fa4d3513d79d7406ff17
7
+ data.tar.gz: 533806a52b408f924bba5729c1e92be490d686527f3efffdb75f79d90d215e73a791a017ac05134651db02ae6430642478c3f40d4ab9ac77bb31e3c0ad1bf078
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- phc_string_format (0.1.1)
4
+ phc_string_format (0.1.2)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -38,7 +38,7 @@ module PhcStringFormat
38
38
  end
39
39
 
40
40
  def self.parse_parameter_string(string)
41
- string.split(/,/).map {|e| e.split '='}.each_with_object({}) {|e, h| k, v = e; h[k]=v}
41
+ string.split(/,/).map {|e| e.split '='}.each_with_object({}) {|e, h| k, v = e; h[k.to_sym] = (/\A-?\d+(.\d+)?\Z/.match(v) ? v.to_i : v)}
42
42
  end
43
43
 
44
44
  def self.short_strict_encode64(bin)
@@ -1,3 +1,3 @@
1
1
  module PhcStringFormat
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phc_string_format
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - naokikimura