uri_config 0.0.11 → 0.0.12

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: 26c570098fd866246259d48546e09c7cc2372cd4
4
- data.tar.gz: 527aebc4d0a5587ff7e3792fd562938af814274c
3
+ metadata.gz: 0f0675c9f1c3bb689d94c4ae96029e2c9439183c
4
+ data.tar.gz: 2a9bb33f0be8e11a08f09a445315cad1621ecf3e
5
5
  SHA512:
6
- metadata.gz: df17aec07d709f3b182d60f4767805b0bcd9f0bd76a98b4c74992c7945f81c7050d3a77f17af53a2ca9d05907f46cb168ea074ed578ca46cc421c20cd639b111
7
- data.tar.gz: accaddadc9d4b5f71401f7285e2c92e41000ee54ff0b07e0ac6db992626abc7bf9b1a9a5bd9b20043265d7ffc442de2b7fe92404abed0b2c9d8aca15cdd82cd0
6
+ metadata.gz: 0b925e2c0201f2b564e3bc92c50a0453465652bf9da69003382f1ef9d7c5164d227dd5b13b27a0b167da13bd1047ff03d6436d1945df715d408792ffcedb95da
7
+ data.tar.gz: c49ab439580a54e3970af2b79f6f03e8d8390b25535062a9077629e1295ac138c0df324161bd30164a4bca9cbc947e96f01e1fb1fc016bbd85b5bcc0d06281ab
@@ -67,6 +67,10 @@ module URIConfig
67
67
  uri.path
68
68
  end
69
69
 
70
+ def scheme
71
+ uri.scheme
72
+ end
73
+
70
74
  def base_uri
71
75
  uri.dup.tap do |uri|
72
76
  uri.user = nil
@@ -1,3 +1,3 @@
1
1
  module URIConfig
2
- VERSION = "0.0.11".freeze
2
+ VERSION = "0.0.12".freeze
3
3
  end
data/spec/config_spec.rb CHANGED
@@ -5,10 +5,10 @@ module URIConfig
5
5
  subject { described_class.new(url) }
6
6
 
7
7
  {
8
- "https://TESTMERCHANT1:abcd1234abcd@secure.ap.tnspayments.com" => {
8
+ "https://TESTMERCHANT1:abcd1234abcd@secure.ap.tnspayments.com/gateway" => {
9
9
  :username => 'TESTMERCHANT1',
10
10
  :password => 'abcd1234abcd',
11
- :base_uri => 'https://secure.ap.tnspayments.com',
11
+ :base_uri => 'https://secure.ap.tnspayments.com/gateway',
12
12
  },
13
13
  "https://foo:bar@us-west-2.amazonaws.com/namespace" => {
14
14
  :username => "foo",
@@ -23,6 +23,7 @@ module URIConfig
23
23
  "https://example.com:8080" => {
24
24
  :host => "example.com",
25
25
  :port => 8080,
26
+ :scheme => "https",
26
27
  },
27
28
  }.each do |url, components|
28
29
  context "with a URL of #{url}" do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: uri_config
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.11
4
+ version: 0.0.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonathon M. Abbott
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-07-19 00:00:00.000000000 Z
11
+ date: 2017-03-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -109,7 +109,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
109
109
  version: '0'
110
110
  requirements: []
111
111
  rubyforge_project:
112
- rubygems_version: 2.5.1
112
+ rubygems_version: 2.5.2
113
113
  signing_key:
114
114
  specification_version: 4
115
115
  summary: extract configuration from URIs