pendulum 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/pendulum/command/apply/result_url.rb +7 -1
- data/lib/pendulum/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fc5be8a5a9ee22af8db653d00440f081c8c368d7
|
4
|
+
data.tar.gz: 38ad5a3d2c26a564c4067abf3507b1b431b253c3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d1db1129a5724d97b214bbf17b163de97d7e1ff75740c01f16e3446cfc738dcf5c342c65b2abc3cf70190c0c41bde228649ca9cdaa2cb79085c679fb9260c5a7
|
7
|
+
data.tar.gz: 0bafc9e48d4c623cff9b472b378b5c58c68a4a7cd0d32138beb3bcf9e8dd0fd33263f031d918e4d7f6369d95f5c821aede6f87d2f8f92f8a1bcc008510745e9f
|
@@ -35,13 +35,19 @@ module Pendulum::Command
|
|
35
35
|
return URI.parse(url) if ( url.empty? || url.include?('://') )
|
36
36
|
|
37
37
|
# use result
|
38
|
-
name, table
|
38
|
+
name, table = url.split(':', 2)
|
39
|
+
table, query = table.split('?', 2)
|
39
40
|
|
40
41
|
result = result_by(name)
|
41
42
|
return URI.parse(url) unless result
|
42
43
|
|
43
44
|
uri = URI.parse(result.url)
|
44
45
|
uri.path += "/#{table}"
|
46
|
+
if uri.query
|
47
|
+
uri.query += "&#{query}"
|
48
|
+
else
|
49
|
+
uri.query = query
|
50
|
+
end
|
45
51
|
uri
|
46
52
|
end
|
47
53
|
|
data/lib/pendulum/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pendulum
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- monochromegane
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-04-
|
11
|
+
date: 2016-04-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: td
|