companies_house_hub 0.1.5 → 0.1.6

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: 35fc481f5ebb3aa0af306168bc9c9fdbfd015c8dc450d2e6769835469d843ff6
4
- data.tar.gz: c10de118dc1766d712034abee82bf57420deba0dd307d90e1f056d984a1b2052
3
+ metadata.gz: 87deb56643adb8d9c64311cab90a144cce83461396798bccab070eeb538170bc
4
+ data.tar.gz: 6fd9dc47087a11fccc21c90e0d3a8d47d89f2672462eadbe1bcba294774df6ce
5
5
  SHA512:
6
- metadata.gz: fb3aafc06244cba5878e660e4b0d2d72f239ee8bec3ba4c37da6089037dad686097f00f4bde36678fd9cb8fe4435b87a5d7300b2f52e59939cf4b6f0293981ad
7
- data.tar.gz: 1f97195944a4f1c93ade95aaf9efbe872395a9fb8da4538dd6de0d2bd80ff685e3df972950fe2aec9c3808c71824250841ba995a3b08940bc79648f0f2149134
6
+ metadata.gz: 8b3264ff1d4bcc95661b2693b22da5bf0426bf0721dfc798acd023ff62a010e0ee09c831509f6c9a77d72fa2b31b56409e43ce395f326b8fbb1ae2cae402aa3a
7
+ data.tar.gz: d35abe06fd8a1ed547f400c0b2b1881c5d4f82eb3741e506e040d41d2515b805f0c0e0cfe1982e0f8ab03fe842313ab851cdb8169bd5604cc47869d2a865520f
@@ -3,9 +3,6 @@ require: rubocop-rspec
3
3
  Style/Documentation:
4
4
  Enabled: false
5
5
 
6
- Style/MixinUsage:
7
- Enabled: false
8
-
9
6
  Layout/LineLength:
10
7
  Max: 100
11
8
 
@@ -17,7 +17,7 @@ CompaniesHouseHub.configure do |config|
17
17
  end
18
18
 
19
19
  # Allow direct access to CompaniesHouseHub classes
20
- include CompaniesHouseHub
20
+ send(:include, CompaniesHouseHub)
21
21
 
22
22
  require 'pry'
23
23
  Pry.start
@@ -10,7 +10,7 @@ module CompaniesHouseHub
10
10
  FIND_PATH = '/company/:company_number'
11
11
 
12
12
  attr_reader :number, :name, :created_at, :address, :type, :jurisdiction, :has_been_liquidated
13
- attr_reader :status, :accounts, :full_address
13
+ attr_reader :status, :accounts, :confirmation_statement, :full_address
14
14
 
15
15
  alias company_number number
16
16
  alias company_name name
@@ -54,6 +54,7 @@ module CompaniesHouseHub
54
54
  @status = json.dig(:company_status)
55
55
  @type = json.dig(:type) || json.dig(:company_type)
56
56
  @accounts = json.dig(:accounts)
57
+ @confirmation_statement = json.dig(:confirmation_statement)
57
58
  @full_address = json.fetch(:address_snippet, @address.full)
58
59
  end
59
60
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module CompaniesHouseHub
4
- VERSION = '0.1.5'
4
+ VERSION = '0.1.6'
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.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ricardo Otero
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-01-13 00:00:00.000000000 Z
11
+ date: 2020-03-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday