oneaccess 1.2.0 → 1.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (109) hide show
  1. checksums.yaml +5 -5
  2. data/.circleci/config.yml +24 -0
  3. data/.rubocop.yml +11 -29
  4. data/.rubocop_todo.yml +50 -0
  5. data/Gemfile +1 -1
  6. data/Gemfile.lock +9 -5
  7. data/Rakefile +4 -4
  8. data/docker-compose.yml +0 -5
  9. data/lib/oneaccess.rb +25 -24
  10. data/lib/oneaccess/api/api_base.rb +9 -9
  11. data/lib/oneaccess/api/v1_1/base.rb +1 -1
  12. data/lib/oneaccess/api/v1_1/entitlement/model/user_requests.rb +62 -0
  13. data/lib/oneaccess/api/v1_1/entitlement/organization/product_group.rb +10 -8
  14. data/lib/oneaccess/api/v1_1/entitlement/research/user_requests.rb +17 -15
  15. data/lib/oneaccess/api/v1_1/entitlement/user/product_group.rb +10 -8
  16. data/lib/oneaccess/api/v1_1/entitlement/user_subscription.rb +5 -5
  17. data/lib/oneaccess/api/v1_1/organizations.rb +2 -2
  18. data/lib/oneaccess/api/v1_1/references.rb +9 -9
  19. data/lib/oneaccess/api/v1_1/research.rb +7 -5
  20. data/lib/oneaccess/api/v1_1/symbology.rb +10 -8
  21. data/lib/oneaccess/api/v1_1/user.rb +3 -3
  22. data/lib/oneaccess/api/v3_0/base.rb +1 -1
  23. data/lib/oneaccess/api/v3_0/interactions.rb +8 -8
  24. data/lib/oneaccess/api/v3_0/providers.rb +8 -10
  25. data/lib/oneaccess/api/v3_0/references.rb +11 -11
  26. data/lib/oneaccess/configuration.rb +6 -6
  27. data/lib/oneaccess/data_object/address.rb +1 -1
  28. data/lib/oneaccess/data_object/city.rb +1 -1
  29. data/lib/oneaccess/data_object/company.rb +1 -1
  30. data/lib/oneaccess/data_object/company_light.rb +1 -1
  31. data/lib/oneaccess/data_object/contributor.rb +1 -1
  32. data/lib/oneaccess/data_object/country.rb +1 -1
  33. data/lib/oneaccess/data_object/global_region.rb +1 -1
  34. data/lib/oneaccess/data_object/inducement.rb +1 -1
  35. data/lib/oneaccess/data_object/industry.rb +1 -1
  36. data/lib/oneaccess/data_object/investor.rb +1 -1
  37. data/lib/oneaccess/data_object/meta.rb +1 -1
  38. data/lib/oneaccess/data_object/organization.rb +1 -1
  39. data/lib/oneaccess/data_object/organization_light.rb +1 -1
  40. data/lib/oneaccess/data_object/product_group.rb +1 -1
  41. data/lib/oneaccess/data_object/providers_user_details.rb +1 -1
  42. data/lib/oneaccess/data_object/providers_user_details_vendor.rb +1 -1
  43. data/lib/oneaccess/data_object/providers_users_details.rb +1 -1
  44. data/lib/oneaccess/data_object/region.rb +1 -1
  45. data/lib/oneaccess/data_object/representer/address.rb +3 -3
  46. data/lib/oneaccess/data_object/representer/city.rb +2 -2
  47. data/lib/oneaccess/data_object/representer/company.rb +12 -6
  48. data/lib/oneaccess/data_object/representer/contributor.rb +2 -2
  49. data/lib/oneaccess/data_object/representer/country.rb +10 -6
  50. data/lib/oneaccess/data_object/representer/global_region.rb +2 -2
  51. data/lib/oneaccess/data_object/representer/inducement.rb +6 -2
  52. data/lib/oneaccess/data_object/representer/industry.rb +5 -3
  53. data/lib/oneaccess/data_object/representer/investor.rb +1 -1
  54. data/lib/oneaccess/data_object/representer/meta.rb +2 -2
  55. data/lib/oneaccess/data_object/representer/providers_user_details.rb +4 -3
  56. data/lib/oneaccess/data_object/representer/providers_users_details.rb +4 -3
  57. data/lib/oneaccess/data_object/representer/research_document_info.rb +5 -3
  58. data/lib/oneaccess/data_object/representer/user.rb +10 -6
  59. data/lib/oneaccess/data_object/representer/user_entitlement_request.rb +19 -11
  60. data/lib/oneaccess/data_object/research_document_info.rb +1 -1
  61. data/lib/oneaccess/data_object/saml_info.rb +1 -1
  62. data/lib/oneaccess/data_object/sell_side_user_group_entitlement.rb +1 -1
  63. data/lib/oneaccess/data_object/user.rb +1 -1
  64. data/lib/oneaccess/data_object/user_entitlement_request.rb +1 -1
  65. data/lib/oneaccess/data_object/user_light.rb +1 -1
  66. data/lib/oneaccess/error/api_error.rb +2 -2
  67. data/lib/oneaccess/http/http_client.rb +10 -12
  68. data/lib/oneaccess/request/contributors_request_handler.rb +2 -2
  69. data/lib/oneaccess/request/investors_request_handler.rb +2 -2
  70. data/lib/oneaccess/response/api_error.rb +1 -1
  71. data/lib/oneaccess/response/buy_side_interactions_response.rb +2 -2
  72. data/lib/oneaccess/response/changed_users_response.rb +2 -2
  73. data/lib/oneaccess/response/companies_response.rb +2 -2
  74. data/lib/oneaccess/response/company_response.rb +2 -2
  75. data/lib/oneaccess/response/contributors_response.rb +2 -2
  76. data/lib/oneaccess/response/countries_response.rb +2 -2
  77. data/lib/oneaccess/response/inducement_response.rb +2 -2
  78. data/lib/oneaccess/response/industries_response.rb +2 -2
  79. data/lib/oneaccess/response/investors_response.rb +2 -2
  80. data/lib/oneaccess/response/organization_response.rb +1 -1
  81. data/lib/oneaccess/response/paginated_response.rb +1 -1
  82. data/lib/oneaccess/response/product_groups_response.rb +2 -2
  83. data/lib/oneaccess/response/providers_users_details_response.rb +2 -2
  84. data/lib/oneaccess/response/representer/buy_side_interactions_response.rb +1 -1
  85. data/lib/oneaccess/response/representer/changed_users_response.rb +1 -1
  86. data/lib/oneaccess/response/representer/companies_response.rb +6 -5
  87. data/lib/oneaccess/response/representer/company_response.rb +7 -6
  88. data/lib/oneaccess/response/representer/contributors_response.rb +9 -7
  89. data/lib/oneaccess/response/representer/countries_response.rb +6 -5
  90. data/lib/oneaccess/response/representer/inducement_response.rb +7 -6
  91. data/lib/oneaccess/response/representer/industries_response.rb +6 -5
  92. data/lib/oneaccess/response/representer/investors_response.rb +8 -6
  93. data/lib/oneaccess/response/representer/organization_response.rb +2 -2
  94. data/lib/oneaccess/response/representer/paginated_response.rb +1 -1
  95. data/lib/oneaccess/response/representer/product_groups_response.rb +6 -5
  96. data/lib/oneaccess/response/representer/providers_users_details_response.rb +3 -3
  97. data/lib/oneaccess/response/representer/research_document_response.rb +6 -5
  98. data/lib/oneaccess/response/representer/subscribe_to_updates_response.rb +1 -1
  99. data/lib/oneaccess/response/representer/user_entitlement_requests_response.rb +6 -5
  100. data/lib/oneaccess/response/representer/user_requests_response.rb +1 -1
  101. data/lib/oneaccess/response/representer/user_response.rb +2 -2
  102. data/lib/oneaccess/response/research_document_response.rb +2 -2
  103. data/lib/oneaccess/response/subscribe_to_updates_response.rb +2 -2
  104. data/lib/oneaccess/response/user_entitlement_requests_response.rb +2 -2
  105. data/lib/oneaccess/response/user_requests_response.rb +2 -2
  106. data/lib/oneaccess/response/user_response.rb +2 -2
  107. data/oneaccess.gemspec +24 -24
  108. metadata +17 -15
  109. data/circle.yml +0 -9
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative "../../data_object/meta"
4
- require_relative "../../data_object/investor"
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, decorator: DataObject::Representer::Meta,
13
- class: DataObject::Meta
14
- collection :data, decorator: DataObject::Representer::Investor,
15
- class: DataObject::Investor
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,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative "./base_response"
4
- require_relative "../../data_object/organization"
3
+ require_relative './base_response'
4
+ require_relative '../../data_object/organization'
5
5
 
6
6
  module ONEAccess
7
7
  module Response
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative "./base_response"
3
+ require_relative './base_response'
4
4
 
5
5
  module ONEAccess
6
6
  module Response
@@ -1,15 +1,16 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative "./paginated_response"
4
- require_relative "../../data_object/product_group"
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, as: :Data,
11
- decorator: DataObject::Representer::ProductGroup,
12
- class: DataObject::ProductGroup
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 "./collection_response"
4
- require_relative "../../data_object/providers_users_details"
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: DataObject::ProvidersUsersDetails
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 "./base_response"
4
- require_relative "../../data_object/research_document_info"
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, as: :Data,
11
- decorator: DataObject::Representer::ResearchDocumentInfo,
12
- class: DataObject::ResearchDocumentInfo
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,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative "./base_response"
3
+ require_relative './base_response'
4
4
 
5
5
  module ONEAccess
6
6
  module Response
@@ -1,15 +1,16 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative "./paginated_response"
4
- require_relative "../../data_object/user_entitlement_request"
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, as: :Data,
11
- decorator: DataObject::Representer::UserEntitlementRequest,
12
- class: DataObject::UserEntitlementRequest
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,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative "./base_response"
3
+ require_relative './base_response'
4
4
 
5
5
  module ONEAccess
6
6
  module Response
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative "./base_response"
4
- require_relative "../../data_object/user"
3
+ require_relative './base_response'
4
+ require_relative '../../data_object/user'
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 "./base_response"
4
- require_relative "./representer/research_document_response"
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 "./base_response"
4
- require_relative "./representer/subscribe_to_updates_response"
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 "./paginated_response"
4
- require_relative "./representer/user_entitlement_requests_response"
3
+ require_relative './paginated_response'
4
+ require_relative './representer/user_entitlement_requests_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 "./base_response"
4
- require_relative "./representer/user_requests_response"
3
+ require_relative './base_response'
4
+ require_relative './representer/user_requests_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 "./base_response"
4
- require_relative "./representer/user_response"
3
+ require_relative './base_response'
4
+ require_relative './representer/user_response'
5
5
 
6
6
  module ONEAccess
7
7
  module Response
@@ -1,31 +1,31 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  Gem::Specification.new do |s|
4
- s.name = "oneaccess"
5
- s.version = "1.2.0"
6
- s.date = "2018-07-03"
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"
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 = ">= 2.4"
16
+ s.required_ruby_version = '>= 2.4'
17
17
 
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 "rubocop", "~> 0.55.0"
24
- s.add_development_dependency "simplecov"
25
- s.add_development_dependency "simplecov-console"
26
- s.add_development_dependency "webmock", "~> 3.0.1"
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 "faraday", "~> 0.13"
29
- s.add_runtime_dependency "multi_json", "~> 1.12.0"
30
- s.add_runtime_dependency "representable", "~> 3.0.4"
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.2.0
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-07-03 00:00:00.000000000 Z
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: rubocop
84
+ name: simplecov
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - "~>"
87
+ - - ">="
88
88
  - !ruby/object:Gem::Version
89
- version: 0.55.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.55.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: simplecov-console
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: '0'
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: '0'
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.5.2
342
+ rubygems_version: 2.7.7
341
343
  signing_key:
342
344
  specification_version: 4
343
345
  summary: ONEAccess API wrapper
data/circle.yml DELETED
@@ -1,9 +0,0 @@
1
- machine:
2
- ruby:
3
- version: 2.4.3
4
- test:
5
- override:
6
- - bundle exec rake
7
- - bundle exec rspec
8
- post:
9
- - bundle exec rubocop