uk_companies_house 0.1.3 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +0 -0
- data/.travis.yml +0 -0
- data/CODE_OF_CONDUCT.md +0 -0
- data/Gemfile +0 -0
- data/Gemfile.lock +3 -3
- data/LICENSE.txt +0 -0
- data/README.md +0 -0
- data/Rakefile +0 -0
- data/lib/uk_companies_house/client.rb +0 -0
- data/lib/uk_companies_house/company.rb +11 -8
- data/lib/uk_companies_house/officer.rb +0 -0
- data/lib/uk_companies_house/search.rb +0 -0
- data/lib/uk_companies_house/version.rb +1 -1
- data/lib/uk_companies_house.rb +0 -0
- data/uk_companies_house-0.1.1.gem +0 -0
- data/uk_companies_house-0.1.2.gem +0 -0
- data/uk_companies_house-0.1.3.gem +0 -0
- data/uk_companies_house.gemspec +0 -0
- metadata +3 -3
- data/lib/uk_companies_house/title, first_name, last_name, email, phone, positi +0 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8193047806d8dbcb6ceef67fe128f743d34b68f7c64400ef101111a9a9ff89b5
|
4
|
+
data.tar.gz: 7fb542d06c5f242d270605e28dfe01e50e7839c4688aa8d763a96aaf9a44a954
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2903dca53a9fd7efda4645c793ee95cab6291e6b7b05117dc483d31d3dc0fd5d5ae1253b52d858a3a2ae1bc07b97b2f84d49c67592c5039b44c715d33ccf5817
|
7
|
+
data.tar.gz: be6817aec7b3a637360551121f660293bd2f3ef7067040aabce006eb4eb0c0123c9c6253f1381804ac1379abfeb179099870454ee1fca6ddc40b7b7b76b7e25c
|
data/.gitignore
CHANGED
File without changes
|
data/.travis.yml
CHANGED
File without changes
|
data/CODE_OF_CONDUCT.md
CHANGED
File without changes
|
data/Gemfile
CHANGED
File without changes
|
data/Gemfile.lock
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
uk_companies_house (0.1.
|
4
|
+
uk_companies_house (0.1.4)
|
5
5
|
faraday
|
6
6
|
faraday_middleware
|
7
7
|
|
8
8
|
GEM
|
9
9
|
remote: https://rubygems.org/
|
10
10
|
specs:
|
11
|
-
faraday (0.15.
|
11
|
+
faraday (0.15.2)
|
12
12
|
multipart-post (>= 1.2, < 3)
|
13
13
|
faraday_middleware (0.12.2)
|
14
14
|
faraday (>= 0.7.4, < 1.0)
|
@@ -26,4 +26,4 @@ DEPENDENCIES
|
|
26
26
|
uk_companies_house!
|
27
27
|
|
28
28
|
BUNDLED WITH
|
29
|
-
1.16.
|
29
|
+
1.16.2
|
data/LICENSE.txt
CHANGED
File without changes
|
data/README.md
CHANGED
File without changes
|
data/Rakefile
CHANGED
File without changes
|
File without changes
|
@@ -30,8 +30,14 @@ module UkCompaniesHouse
|
|
30
30
|
end
|
31
31
|
|
32
32
|
# List of all company officers
|
33
|
-
def officers(company_number)
|
34
|
-
|
33
|
+
def officers(company_number, items_per_page = nil, start_index = nil, register_type = nil, order_by = nil, register_view = nil)
|
34
|
+
params = {}
|
35
|
+
params[:items_per_page] = items_per_page if items_per_page
|
36
|
+
params[:start_index] = start_index if start_index
|
37
|
+
params[:register_type] = register_type if register_type
|
38
|
+
params[:order_by] = order_by if order_by
|
39
|
+
params[:register_view] = register_view if register_view
|
40
|
+
client.get("company/#{company_number}/officers/", params)
|
35
41
|
end
|
36
42
|
|
37
43
|
# Get the filing history list of a company
|
@@ -42,12 +48,9 @@ module UkCompaniesHouse
|
|
42
48
|
# Get the filing history list of a company
|
43
49
|
def filing_history_list(company_number, category = nil, items_per_page = nil, start_index = nil)
|
44
50
|
params = {category: category}
|
45
|
-
if items_per_page
|
46
|
-
|
47
|
-
|
48
|
-
if start_index
|
49
|
-
params[:start_index] = start_index
|
50
|
-
end
|
51
|
+
params[:items_per_page] = items_per_page if items_per_page
|
52
|
+
params[:start_index] = start_index if start_index
|
53
|
+
|
51
54
|
client.get("company/#{company_number}/officers/", params)
|
52
55
|
end
|
53
56
|
|
File without changes
|
File without changes
|
data/lib/uk_companies_house.rb
CHANGED
File without changes
|
File without changes
|
File without changes
|
Binary file
|
data/uk_companies_house.gemspec
CHANGED
File without changes
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: uk_companies_house
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eugeniu Tambur
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-08-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -102,10 +102,10 @@ files:
|
|
102
102
|
- lib/uk_companies_house/company.rb
|
103
103
|
- lib/uk_companies_house/officer.rb
|
104
104
|
- lib/uk_companies_house/search.rb
|
105
|
-
- lib/uk_companies_house/title, first_name, last_name, email, phone, positi
|
106
105
|
- lib/uk_companies_house/version.rb
|
107
106
|
- uk_companies_house-0.1.1.gem
|
108
107
|
- uk_companies_house-0.1.2.gem
|
108
|
+
- uk_companies_house-0.1.3.gem
|
109
109
|
- uk_companies_house.gemspec
|
110
110
|
homepage: https://github.com/zinggg/uk_companies_house
|
111
111
|
licenses:
|
@@ -1,11 +0,0 @@
|
|
1
|
-
rails g model Contact title first_name last_name email phone position date_of_birth:date passport passport_number contact_type notes country:references
|
2
|
-
|
3
|
-
|
4
|
-
proof_address
|
5
|
-
postcode
|
6
|
-
|
7
|
-
rails g model Address address postcode country:references location latitude:float longitude:float
|
8
|
-
|
9
|
-
|
10
|
-
rails g model ContactAddresses address:references contact:references primary:boolean
|
11
|
-
rails g model CompanyAddresses address:references company:references primary:boolean type:integer:index
|