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 +4 -4
- data/.ruby-version +1 -1
- data/.travis.yml +1 -0
- data/lib/deeplink/link.rb +10 -1
- data/lib/deeplink/version.rb +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 035c24b7d19104ce514a3896b270fca8229806dd
|
4
|
+
data.tar.gz: 03d8485e0bef4e45d7af7bb35c1b5b20cb1b508b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e2b2a159696ff4563c92ca92982ee2cb38810b97bcaa06cae0533ce538432ac461176dd5e815931745c6e36bd19c725b71b69da0c141a62d453aed73eb837b36
|
7
|
+
data.tar.gz: 7f474c16e833ee4ecd8cc26c3249cd92259fc76791f92284d1ccb10a642040f2a9e4249f73060ad024e85e1a6a52973ee922749d54c22c961c95eec00debaddb
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.
|
1
|
+
2.3.0
|
data/.travis.yml
CHANGED
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
|
-
|
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
|
data/lib/deeplink/version.rb
CHANGED
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.
|
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:
|
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.
|
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:
|