oneaccess 1.2.0 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.circleci/config.yml +24 -0
- data/.rubocop.yml +11 -29
- data/.rubocop_todo.yml +50 -0
- data/Gemfile +1 -1
- data/Gemfile.lock +9 -5
- data/Rakefile +4 -4
- data/docker-compose.yml +0 -5
- data/lib/oneaccess.rb +25 -24
- data/lib/oneaccess/api/api_base.rb +9 -9
- data/lib/oneaccess/api/v1_1/base.rb +1 -1
- data/lib/oneaccess/api/v1_1/entitlement/model/user_requests.rb +62 -0
- data/lib/oneaccess/api/v1_1/entitlement/organization/product_group.rb +10 -8
- data/lib/oneaccess/api/v1_1/entitlement/research/user_requests.rb +17 -15
- data/lib/oneaccess/api/v1_1/entitlement/user/product_group.rb +10 -8
- data/lib/oneaccess/api/v1_1/entitlement/user_subscription.rb +5 -5
- data/lib/oneaccess/api/v1_1/organizations.rb +2 -2
- data/lib/oneaccess/api/v1_1/references.rb +9 -9
- data/lib/oneaccess/api/v1_1/research.rb +7 -5
- data/lib/oneaccess/api/v1_1/symbology.rb +10 -8
- data/lib/oneaccess/api/v1_1/user.rb +3 -3
- data/lib/oneaccess/api/v3_0/base.rb +1 -1
- data/lib/oneaccess/api/v3_0/interactions.rb +8 -8
- data/lib/oneaccess/api/v3_0/providers.rb +8 -10
- data/lib/oneaccess/api/v3_0/references.rb +11 -11
- data/lib/oneaccess/configuration.rb +6 -6
- data/lib/oneaccess/data_object/address.rb +1 -1
- data/lib/oneaccess/data_object/city.rb +1 -1
- data/lib/oneaccess/data_object/company.rb +1 -1
- data/lib/oneaccess/data_object/company_light.rb +1 -1
- data/lib/oneaccess/data_object/contributor.rb +1 -1
- data/lib/oneaccess/data_object/country.rb +1 -1
- data/lib/oneaccess/data_object/global_region.rb +1 -1
- data/lib/oneaccess/data_object/inducement.rb +1 -1
- data/lib/oneaccess/data_object/industry.rb +1 -1
- data/lib/oneaccess/data_object/investor.rb +1 -1
- data/lib/oneaccess/data_object/meta.rb +1 -1
- data/lib/oneaccess/data_object/organization.rb +1 -1
- data/lib/oneaccess/data_object/organization_light.rb +1 -1
- data/lib/oneaccess/data_object/product_group.rb +1 -1
- data/lib/oneaccess/data_object/providers_user_details.rb +1 -1
- data/lib/oneaccess/data_object/providers_user_details_vendor.rb +1 -1
- data/lib/oneaccess/data_object/providers_users_details.rb +1 -1
- data/lib/oneaccess/data_object/region.rb +1 -1
- data/lib/oneaccess/data_object/representer/address.rb +3 -3
- data/lib/oneaccess/data_object/representer/city.rb +2 -2
- data/lib/oneaccess/data_object/representer/company.rb +12 -6
- data/lib/oneaccess/data_object/representer/contributor.rb +2 -2
- data/lib/oneaccess/data_object/representer/country.rb +10 -6
- data/lib/oneaccess/data_object/representer/global_region.rb +2 -2
- data/lib/oneaccess/data_object/representer/inducement.rb +6 -2
- data/lib/oneaccess/data_object/representer/industry.rb +5 -3
- data/lib/oneaccess/data_object/representer/investor.rb +1 -1
- data/lib/oneaccess/data_object/representer/meta.rb +2 -2
- data/lib/oneaccess/data_object/representer/providers_user_details.rb +4 -3
- data/lib/oneaccess/data_object/representer/providers_users_details.rb +4 -3
- data/lib/oneaccess/data_object/representer/research_document_info.rb +5 -3
- data/lib/oneaccess/data_object/representer/user.rb +10 -6
- data/lib/oneaccess/data_object/representer/user_entitlement_request.rb +19 -11
- data/lib/oneaccess/data_object/research_document_info.rb +1 -1
- data/lib/oneaccess/data_object/saml_info.rb +1 -1
- data/lib/oneaccess/data_object/sell_side_user_group_entitlement.rb +1 -1
- data/lib/oneaccess/data_object/user.rb +1 -1
- data/lib/oneaccess/data_object/user_entitlement_request.rb +1 -1
- data/lib/oneaccess/data_object/user_light.rb +1 -1
- data/lib/oneaccess/error/api_error.rb +2 -2
- data/lib/oneaccess/http/http_client.rb +10 -12
- data/lib/oneaccess/request/contributors_request_handler.rb +2 -2
- data/lib/oneaccess/request/investors_request_handler.rb +2 -2
- data/lib/oneaccess/response/api_error.rb +1 -1
- data/lib/oneaccess/response/buy_side_interactions_response.rb +2 -2
- data/lib/oneaccess/response/changed_users_response.rb +2 -2
- data/lib/oneaccess/response/companies_response.rb +2 -2
- data/lib/oneaccess/response/company_response.rb +2 -2
- data/lib/oneaccess/response/contributors_response.rb +2 -2
- data/lib/oneaccess/response/countries_response.rb +2 -2
- data/lib/oneaccess/response/inducement_response.rb +2 -2
- data/lib/oneaccess/response/industries_response.rb +2 -2
- data/lib/oneaccess/response/investors_response.rb +2 -2
- data/lib/oneaccess/response/organization_response.rb +1 -1
- data/lib/oneaccess/response/paginated_response.rb +1 -1
- data/lib/oneaccess/response/product_groups_response.rb +2 -2
- data/lib/oneaccess/response/providers_users_details_response.rb +2 -2
- data/lib/oneaccess/response/representer/buy_side_interactions_response.rb +1 -1
- data/lib/oneaccess/response/representer/changed_users_response.rb +1 -1
- data/lib/oneaccess/response/representer/companies_response.rb +6 -5
- data/lib/oneaccess/response/representer/company_response.rb +7 -6
- data/lib/oneaccess/response/representer/contributors_response.rb +9 -7
- data/lib/oneaccess/response/representer/countries_response.rb +6 -5
- data/lib/oneaccess/response/representer/inducement_response.rb +7 -6
- data/lib/oneaccess/response/representer/industries_response.rb +6 -5
- data/lib/oneaccess/response/representer/investors_response.rb +8 -6
- data/lib/oneaccess/response/representer/organization_response.rb +2 -2
- data/lib/oneaccess/response/representer/paginated_response.rb +1 -1
- data/lib/oneaccess/response/representer/product_groups_response.rb +6 -5
- data/lib/oneaccess/response/representer/providers_users_details_response.rb +3 -3
- data/lib/oneaccess/response/representer/research_document_response.rb +6 -5
- data/lib/oneaccess/response/representer/subscribe_to_updates_response.rb +1 -1
- data/lib/oneaccess/response/representer/user_entitlement_requests_response.rb +6 -5
- data/lib/oneaccess/response/representer/user_requests_response.rb +1 -1
- data/lib/oneaccess/response/representer/user_response.rb +2 -2
- data/lib/oneaccess/response/research_document_response.rb +2 -2
- data/lib/oneaccess/response/subscribe_to_updates_response.rb +2 -2
- data/lib/oneaccess/response/user_entitlement_requests_response.rb +2 -2
- data/lib/oneaccess/response/user_requests_response.rb +2 -2
- data/lib/oneaccess/response/user_response.rb +2 -2
- data/oneaccess.gemspec +24 -24
- metadata +17 -15
- data/circle.yml +0 -9
@@ -1,7 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require_relative
|
4
|
-
require_relative
|
3
|
+
require_relative '../../data_object/meta'
|
4
|
+
require_relative '../../data_object/investor'
|
5
5
|
|
6
6
|
module ONEAccess
|
7
7
|
module Response
|
@@ -9,10 +9,12 @@ module ONEAccess
|
|
9
9
|
class InvestorsResponse < Representable::Decorator
|
10
10
|
include Representable::JSON
|
11
11
|
|
12
|
-
property :meta,
|
13
|
-
|
14
|
-
|
15
|
-
|
12
|
+
property :meta,
|
13
|
+
decorator: DataObject::Representer::Meta,
|
14
|
+
class: DataObject::Meta
|
15
|
+
collection :data,
|
16
|
+
decorator: DataObject::Representer::Investor,
|
17
|
+
class: DataObject::Investor
|
16
18
|
end
|
17
19
|
end
|
18
20
|
end
|
@@ -1,15 +1,16 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require_relative
|
4
|
-
require_relative
|
3
|
+
require_relative './paginated_response'
|
4
|
+
require_relative '../../data_object/product_group'
|
5
5
|
|
6
6
|
module ONEAccess
|
7
7
|
module Response
|
8
8
|
module Representer
|
9
9
|
class ProductGroupsResponse < PaginatedResponse
|
10
|
-
collection :data,
|
11
|
-
|
12
|
-
|
10
|
+
collection :data,
|
11
|
+
as: :Data,
|
12
|
+
decorator: DataObject::Representer::ProductGroup,
|
13
|
+
class: DataObject::ProductGroup
|
13
14
|
end
|
14
15
|
end
|
15
16
|
end
|
@@ -1,14 +1,14 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require_relative
|
4
|
-
require_relative
|
3
|
+
require_relative './collection_response'
|
4
|
+
require_relative '../../data_object/providers_users_details'
|
5
5
|
|
6
6
|
module ONEAccess
|
7
7
|
module Response
|
8
8
|
module Representer
|
9
9
|
class ProvidersUsersDetailsResponse < CollectionResponse
|
10
10
|
items decorator: DataObject::Representer::ProvidersUsersDetails,
|
11
|
-
class:
|
11
|
+
class: DataObject::ProvidersUsersDetails
|
12
12
|
end
|
13
13
|
end
|
14
14
|
end
|
@@ -1,15 +1,16 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require_relative
|
4
|
-
require_relative
|
3
|
+
require_relative './base_response'
|
4
|
+
require_relative '../../data_object/research_document_info'
|
5
5
|
|
6
6
|
module ONEAccess
|
7
7
|
module Response
|
8
8
|
module Representer
|
9
9
|
class ResearchDocumentResponse < BaseResponse
|
10
|
-
property :data,
|
11
|
-
|
12
|
-
|
10
|
+
property :data,
|
11
|
+
as: :Data,
|
12
|
+
decorator: DataObject::Representer::ResearchDocumentInfo,
|
13
|
+
class: DataObject::ResearchDocumentInfo
|
13
14
|
end
|
14
15
|
end
|
15
16
|
end
|
@@ -1,15 +1,16 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require_relative
|
4
|
-
require_relative
|
3
|
+
require_relative './paginated_response'
|
4
|
+
require_relative '../../data_object/user_entitlement_request'
|
5
5
|
|
6
6
|
module ONEAccess
|
7
7
|
module Response
|
8
8
|
module Representer
|
9
9
|
class UserEntitlementRequestsResponse < PaginatedResponse
|
10
|
-
collection :data,
|
11
|
-
|
12
|
-
|
10
|
+
collection :data,
|
11
|
+
as: :Data,
|
12
|
+
decorator: DataObject::Representer::UserEntitlementRequest,
|
13
|
+
class: DataObject::UserEntitlementRequest
|
13
14
|
end
|
14
15
|
end
|
15
16
|
end
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require_relative
|
4
|
-
require_relative
|
3
|
+
require_relative './base_response'
|
4
|
+
require_relative './representer/research_document_response'
|
5
5
|
|
6
6
|
module ONEAccess
|
7
7
|
module Response
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require_relative
|
4
|
-
require_relative
|
3
|
+
require_relative './base_response'
|
4
|
+
require_relative './representer/subscribe_to_updates_response'
|
5
5
|
|
6
6
|
module ONEAccess
|
7
7
|
module Response
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require_relative
|
4
|
-
require_relative
|
3
|
+
require_relative './paginated_response'
|
4
|
+
require_relative './representer/user_entitlement_requests_response'
|
5
5
|
|
6
6
|
module ONEAccess
|
7
7
|
module Response
|
data/oneaccess.gemspec
CHANGED
@@ -1,31 +1,31 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
|
-
s.name
|
5
|
-
s.version
|
6
|
-
s.date
|
7
|
-
s.summary
|
8
|
-
s.description
|
9
|
-
s.homepage
|
10
|
-
s.authors
|
11
|
-
s.email
|
12
|
-
s.files
|
13
|
-
s.require_paths = [
|
14
|
-
s.license
|
4
|
+
s.name = 'oneaccess'
|
5
|
+
s.version = '1.3.0'
|
6
|
+
s.date = '2018-11-06'
|
7
|
+
s.summary = 'ONEAccess API wrapper'
|
8
|
+
s.description = 'Easily communicate with ONEAccess API'
|
9
|
+
s.homepage = 'https://github.com/AlphaExchange/oneaccess-rb'
|
10
|
+
s.authors = ['Alex Correia Santos']
|
11
|
+
s.email = ['alex@alpha-exchange.com']
|
12
|
+
s.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
13
|
+
s.require_paths = ['lib']
|
14
|
+
s.license = 'MIT'
|
15
15
|
|
16
|
-
s.required_ruby_version =
|
16
|
+
s.required_ruby_version = '>= 2.4'
|
17
17
|
|
18
|
-
s.add_development_dependency
|
19
|
-
s.add_development_dependency
|
20
|
-
s.add_development_dependency
|
21
|
-
s.add_development_dependency
|
22
|
-
s.add_development_dependency
|
23
|
-
s.add_development_dependency
|
24
|
-
s.add_development_dependency
|
25
|
-
s.add_development_dependency
|
26
|
-
s.add_development_dependency
|
18
|
+
s.add_development_dependency 'bundler', '~> 1.12'
|
19
|
+
s.add_development_dependency 'byebug'
|
20
|
+
s.add_development_dependency 'rake', '~> 11.3'
|
21
|
+
s.add_development_dependency 'rspec', '~> 3.6'
|
22
|
+
s.add_development_dependency 'rspec-its', '~> 1.2'
|
23
|
+
s.add_development_dependency 'simplecov'
|
24
|
+
s.add_development_dependency 'simplecov-console'
|
25
|
+
s.add_development_dependency 'va-ruby-style', '0.0.1'
|
26
|
+
s.add_development_dependency 'webmock', '~> 3.0.1'
|
27
27
|
|
28
|
-
s.add_runtime_dependency
|
29
|
-
s.add_runtime_dependency
|
30
|
-
s.add_runtime_dependency
|
28
|
+
s.add_runtime_dependency 'faraday', '~> 0.13'
|
29
|
+
s.add_runtime_dependency 'multi_json', '~> 1.12.0'
|
30
|
+
s.add_runtime_dependency 'representable', '~> 3.0.4'
|
31
31
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: oneaccess
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alex Correia Santos
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-11-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -81,21 +81,21 @@ dependencies:
|
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '1.2'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
|
-
name:
|
84
|
+
name: simplecov
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- - "
|
87
|
+
- - ">="
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: 0
|
89
|
+
version: '0'
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
|
-
- - "
|
94
|
+
- - ">="
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: 0
|
96
|
+
version: '0'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
|
-
name: simplecov
|
98
|
+
name: simplecov-console
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
101
|
- - ">="
|
@@ -109,19 +109,19 @@ dependencies:
|
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: '0'
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
|
-
name:
|
112
|
+
name: va-ruby-style
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
114
114
|
requirements:
|
115
|
-
- -
|
115
|
+
- - '='
|
116
116
|
- !ruby/object:Gem::Version
|
117
|
-
version:
|
117
|
+
version: 0.0.1
|
118
118
|
type: :development
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
|
-
- -
|
122
|
+
- - '='
|
123
123
|
- !ruby/object:Gem::Version
|
124
|
-
version:
|
124
|
+
version: 0.0.1
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
126
|
name: webmock
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
@@ -185,9 +185,11 @@ executables: []
|
|
185
185
|
extensions: []
|
186
186
|
extra_rdoc_files: []
|
187
187
|
files:
|
188
|
+
- ".circleci/config.yml"
|
188
189
|
- ".gitignore"
|
189
190
|
- ".rspec"
|
190
191
|
- ".rubocop.yml"
|
192
|
+
- ".rubocop_todo.yml"
|
191
193
|
- Dockerfile
|
192
194
|
- Gemfile
|
193
195
|
- Gemfile.lock
|
@@ -196,12 +198,12 @@ files:
|
|
196
198
|
- bin/bundle
|
197
199
|
- bin/rspec
|
198
200
|
- bin/rubocop
|
199
|
-
- circle.yml
|
200
201
|
- console
|
201
202
|
- docker-compose.yml
|
202
203
|
- lib/oneaccess.rb
|
203
204
|
- lib/oneaccess/api/api_base.rb
|
204
205
|
- lib/oneaccess/api/v1_1/base.rb
|
206
|
+
- lib/oneaccess/api/v1_1/entitlement/model/user_requests.rb
|
205
207
|
- lib/oneaccess/api/v1_1/entitlement/organization/product_group.rb
|
206
208
|
- lib/oneaccess/api/v1_1/entitlement/research/user_requests.rb
|
207
209
|
- lib/oneaccess/api/v1_1/entitlement/user/product_group.rb
|
@@ -337,7 +339,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
337
339
|
version: '0'
|
338
340
|
requirements: []
|
339
341
|
rubyforge_project:
|
340
|
-
rubygems_version: 2.
|
342
|
+
rubygems_version: 2.7.7
|
341
343
|
signing_key:
|
342
344
|
specification_version: 4
|
343
345
|
summary: ONEAccess API wrapper
|