dock_test 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: 8df485fce515216c5708b86194832e7d86b4f86c
4
- data.tar.gz: df50712cf65788a3abe2bbf4206bc7fa94325c4a
3
+ metadata.gz: 6f3ca99579f463d3514eee71647549f91f816964
4
+ data.tar.gz: 26f7abf350ec047beba038dff1f9e68735b6f42b
5
5
  SHA512:
6
- metadata.gz: 80d74479fa3106f0aaaa56a3a39a4e049dab36bf2306c9c5281b514a62ef18e0bc547c8f3d88cf5577907b15629733be3d834ac0288512af25c57edb155c1134
7
- data.tar.gz: 0a43901742776345a2936b6d5534b0dd8b6d8774e2ee9951c435c678e6f6ff6559c37b43389b2b84d94ef3a3fe9e86cbf68ed469cdf9ff5fbae1485ae01f7d3e
6
+ metadata.gz: 7b98b2a987c1b9c32a3aedad706e1bebe754a2ce1d01daf33e923fb5b13c526b7b3cb3254addac6f9c0b56538a4f6e26813aeaa08d73eeaff24f83bf9b729673
7
+ data.tar.gz: 65c78178e7022e14d27fb689a3aca84624b7db133f02e000642bce9de0b0781966c3abee1f174627cdbf0d8fddd9c05d6b2180ade8f58aafe41b80c8254c6dc0
@@ -64,6 +64,10 @@ module DockTest
64
64
  @last_response
65
65
  end
66
66
 
67
+ def last_response_json
68
+ MultiJson.load last_response
69
+ end
70
+
67
71
  def last_request
68
72
  @last_request
69
73
  end
@@ -74,9 +78,13 @@ module DockTest
74
78
 
75
79
  # cleanse and combine url and path to retrieve a valid full url
76
80
  def full_url(url, path)
77
- url = url[0..1] if url.end_with?('/')
78
- path = path[1..-1] if path.start_with?('/')
79
- "#{url}/#{path}"
81
+ if path.start_with?('http')
82
+ path
83
+ else
84
+ url = url[0..1] if url.end_with?('/')
85
+ path = path[1..-1] if path.start_with?('/')
86
+ "#{url}/#{path}"
87
+ end
80
88
  end
81
89
  end
82
90
  end
@@ -1,3 +1,3 @@
1
1
  module DockTest
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: dock_test
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
  - Jack Xu
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-07-29 00:00:00.000000000 Z
11
+ date: 2014-07-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: multi_json