companies_house_hub 0.1.1 → 0.1.2

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
  SHA256:
3
- metadata.gz: c86759b60db04a511fc4032bba8893c5c038e1ece25fd619fc5bf36ba9d3c723
4
- data.tar.gz: 0af0d49515a6ff50ef524bee5c09197413662b0a56c83200ed4ce35cbce58aba
3
+ metadata.gz: 6608daeb53f13f6c798f6dda8ed0a80486ae6c15dab96774d5cdab362f118ffa
4
+ data.tar.gz: 01474a46739ab0adb9d0d7407ff06db5e84152e61979389b716471e77fab0951
5
5
  SHA512:
6
- metadata.gz: e3d8d79bb0ac051de83e906ed01b53ca917442ea05924eab841c9ec3156330d23f5f5b3091aec5b81ce09eafc4f089e5ba5cb876a60dc3f9f5f1bc6d42a0d9df
7
- data.tar.gz: ea281426979ff2bf93bc6d2c1e312a7c3e84788d396f1a787b65c4b9b629ceb201709c51b5f3df62c9b1d9e8a10ae5cf38c286c5bf8b97253955f61373ff7e88
6
+ metadata.gz: edbed1ee8366dd059f12155f60a2b16309f463ece770be6d1ef63ea6895e2688df6dc2b52902d1afa6da7bea66ada4067fa9f658bc1a1f96999b864778cfa24f
7
+ data.tar.gz: 4a0f3b5e2da61bdc0c25ea862c6f08f0e5f4372f85f6e5bd22ab3150d96fa9f8a0eb5336f8ef43c1ecacae7d98b28ba79ee433f64ccc1bf869166cab9fd0ee9e
@@ -13,11 +13,11 @@ module CompaniesHouseHub
13
13
  end
14
14
 
15
15
  def get(path, params)
16
- self.class.get(path, params)
16
+ self.class.get(path.strip, params)
17
17
  end
18
18
 
19
19
  def self.format_url(url, params)
20
- formatted = url.dup
20
+ formatted = url.dup.strip
21
21
 
22
22
  params.each { |key, value| formatted.sub!(":#{key}", value) }
23
23
 
@@ -35,7 +35,7 @@ module CompaniesHouseHub
35
35
  end
36
36
 
37
37
  def self.find(company_number, params = {})
38
- url = format_url(FIND_PATH, company_number: company_number.to_s)
38
+ url = format_url(FIND_PATH, company_number: company_number.to_s.strip)
39
39
 
40
40
  result = get(url, params)
41
41
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module CompaniesHouseHub
4
- VERSION = '0.1.1'
4
+ VERSION = '0.1.2'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: companies_house_hub
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ricardo Otero
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-06-22 00:00:00.000000000 Z
11
+ date: 2018-09-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday