deeplink 0.1.3 → 0.1.4

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: 9ac83f203bee062497cc2ebca878eae22ebe1b7e
4
- data.tar.gz: 6789df0472b6e9772815f1df0e0226b526cac83e
3
+ metadata.gz: 035c24b7d19104ce514a3896b270fca8229806dd
4
+ data.tar.gz: 03d8485e0bef4e45d7af7bb35c1b5b20cb1b508b
5
5
  SHA512:
6
- metadata.gz: 267849b340e535d0d932881e052e08b55832bd397f9c8515be65bd0b32dba82db9d54b24160747f68dba7ead9b1202b06c53f6f31ec2cc1f94a89cfcdebccbd9
7
- data.tar.gz: 8177fafcda5010f18c6dbefd9f24808f169a2b9229b3aab7f128654aeca4a7c03941ed80db1cf12026ae4b016d9454a15ae8fc022faae95ab136cf69155dcc10
6
+ metadata.gz: e2b2a159696ff4563c92ca92982ee2cb38810b97bcaa06cae0533ce538432ac461176dd5e815931745c6e36bd19c725b71b69da0c141a62d453aed73eb837b36
7
+ data.tar.gz: 7f474c16e833ee4ecd8cc26c3249cd92259fc76791f92284d1ccb10a642040f2a9e4249f73060ad024e85e1a6a52973ee922749d54c22c961c95eec00debaddb
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.2.3
1
+ 2.3.0
data/.travis.yml CHANGED
@@ -1,5 +1,6 @@
1
1
  language: ruby
2
2
  rvm:
3
+ - 2.0.0-p648
3
4
  - 2.1.0
4
5
  - 2.2.2
5
6
  before_install: gem install bundler -v 1.10.6
data/lib/deeplink/link.rb CHANGED
@@ -113,7 +113,16 @@ module Deeplink
113
113
  def parse_query(query_str)
114
114
  return unless query_str
115
115
 
116
- query_str.scan(/([^&=]+)=([^&#{}]*)/).to_h
116
+ param_name_value_pairs = query_str.scan(/([^&=]+)=([^&#{}]*)/)
117
+
118
+ # We can't use just .to_h in param_name_value_pairs because if ruby < 2.1
119
+ array_to_h(param_name_value_pairs)
120
+ end
121
+
122
+ private
123
+
124
+ def array_to_h(array)
125
+ array.respond_to?(:to_h) ? array.to_h : Hash[*array.flatten]
117
126
  end
118
127
  end
119
128
  end
@@ -1,3 +1,3 @@
1
1
  module Deeplink
2
- VERSION = '0.1.3'
2
+ VERSION = '0.1.4'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: deeplink
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ricardo Otero
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-12-11 00:00:00.000000000 Z
11
+ date: 2016-04-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -142,9 +142,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
142
142
  version: '0'
143
143
  requirements: []
144
144
  rubyforge_project:
145
- rubygems_version: 2.4.5.1
145
+ rubygems_version: 2.5.1
146
146
  signing_key:
147
147
  specification_version: 4
148
148
  summary: Gem to manage deep links parsing.
149
149
  test_files: []
150
- has_rdoc: