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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1757afed1c5c5dd9df775798ab52914fc9363466
4
- data.tar.gz: c1d6819b7a9dce13135272232e902e4b92b90b74
3
+ metadata.gz: fc5be8a5a9ee22af8db653d00440f081c8c368d7
4
+ data.tar.gz: 38ad5a3d2c26a564c4067abf3507b1b431b253c3
5
5
  SHA512:
6
- metadata.gz: a22447d8d5bb8c889dac69ea1862f6e5dffa6d339b952c0124e150e1493b9ea6c1709d3fdbfed949932842e3f10f295baf50295690afb101b2c532df76bde4ff
7
- data.tar.gz: 494298dd98416c09675baabcb023a69c648db2b6077a4da359bdff1a1a73add76c04c1b48810a7f209c266eedda59f5c94e50c9a5a367f3ef9291b2da9cb178e
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 = url.split(':', 2)
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
 
@@ -1,3 +1,3 @@
1
1
  module Pendulum
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
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.2
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-14 00:00:00.000000000 Z
11
+ date: 2016-04-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: td