yext-api 0.1.10 → 0.1.11

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
- SHA1:
3
- metadata.gz: fbc06efa89a05540b1aef06fe15a2bf75017ebbe
4
- data.tar.gz: 9994737d295d22c027db86de8bcbe4f1a5137b1f
2
+ SHA256:
3
+ metadata.gz: 79f491a325f8a7fe9babafb710683b254203480cf0079778fb4bc95f27f782f1
4
+ data.tar.gz: 2895fbcf074a7426a08fd774493fe99c629e66752b6a1ae24cccc471761d6007
5
5
  SHA512:
6
- metadata.gz: 246aea8152f7539956b873349e9209dca37ac5342bc5301e79942729654acc4ed0d9db4b462270769d9419ce941cb090e472e2f79e299b7b6202755a24d15204
7
- data.tar.gz: 5fadfd7db08fe5175919993469f28af00dd449fabfb6e470b362082d9595d32bd1d975e8c2ed3810f5df175b15503e03cf348bf3fcd309aa5eeb10ef4962289d
6
+ metadata.gz: 865eca22ad249420077c5e765a8aae0547b8940db876c78b81a20b37c006da8564332bf1906143ac50d4d913eed4845308165f407bd1e4121122b2ef9bdb9871
7
+ data.tar.gz: 9eea3c5b24427bca7eebb971e4f3acb117db6a7d2b81f16a9e2dc7b0e49563aea99f13e76d065b34253b401865bd687481169e4e296fe338220dedaf6b5cad7c
@@ -0,0 +1,53 @@
1
+ # Ruby CircleCI 2.0 configuration file
2
+ #
3
+ # Check https://circleci.com/docs/2.0/language-ruby/ for more details
4
+ #
5
+ version: 2
6
+ jobs:
7
+ build:
8
+ docker:
9
+ # specify the version you desire here
10
+ - image: circleci/ruby:2.6.3-node-browsers
11
+
12
+ # Specify service dependencies here if necessary
13
+ # CircleCI maintains a library of pre-built images
14
+ # documented at https://circleci.com/docs/2.0/circleci-images/
15
+ # - image: circleci/postgres:9.4
16
+
17
+ working_directory: ~/repo
18
+
19
+ steps:
20
+ - checkout
21
+
22
+ # Download and cache dependencies
23
+ - restore_cache:
24
+ keys:
25
+ - v1-dependencies-{{ checksum "Gemfile.lock" }}
26
+ # fallback to using the latest cache if no exact match is found
27
+ - v1-dependencies-
28
+
29
+ - run:
30
+ name: install dependencies
31
+ command: |
32
+ gem install bundler
33
+ bundle install --jobs=4 --retry=3 --path vendor/bundle
34
+ - save_cache:
35
+ paths:
36
+ - ./venv
37
+ key: v1-dependencies-{{ checksum "Gemfile.lock" }}
38
+
39
+ # run tests!
40
+ - run:
41
+ name: run tests
42
+ command: |
43
+ mkdir /tmp/test-results
44
+ bundle exec rspec --format progress \
45
+ --format RspecJunitFormatter \
46
+ --out /tmp/test-results/rspec.xml \
47
+ --format progress
48
+ # collect reports
49
+ - store_test_results:
50
+ path: /tmp/test-results
51
+ - store_artifacts:
52
+ path: /tmp/test-results
53
+ destination: test-results
@@ -1 +1 @@
1
- 2.3.1
1
+ 2.6.3
data/Gemfile CHANGED
@@ -7,6 +7,4 @@ git_source(:github) { |_repo_name| "https://github.com/CardTapp/yext-api" }
7
7
  # Specify your gem's dependencies in yext-api.gemspec
8
8
  gemspec
9
9
 
10
- gem "codecov"
11
10
  gem "gem-release"
12
- gem "simplecov"
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- yext-api (0.1.10)
4
+ yext-api (0.1.11)
5
5
  memoist (~> 0)
6
6
  rails (> 4)
7
7
  spyke (~> 5)
@@ -68,12 +68,12 @@ GEM
68
68
  diff-lcs (1.3)
69
69
  docile (1.1.5)
70
70
  erubi (1.7.1)
71
- faraday (0.14.0)
71
+ faraday (1.0.1)
72
72
  multipart-post (>= 1.2, < 3)
73
- faraday_middleware (0.12.2)
74
- faraday (>= 0.7.4, < 1.0)
73
+ faraday_middleware (1.0.0)
74
+ faraday (~> 1.0)
75
75
  gem-release (1.0.0)
76
- globalid (0.4.1)
76
+ globalid (0.4.2)
77
77
  activesupport (>= 4.2.0)
78
78
  hashdiff (0.3.7)
79
79
  hashie (3.5.7)
@@ -85,22 +85,22 @@ GEM
85
85
  loofah (2.2.2)
86
86
  crass (~> 1.0.2)
87
87
  nokogiri (>= 1.5.9)
88
- mail (2.7.0)
88
+ mail (2.7.1)
89
89
  mini_mime (>= 0.1.1)
90
- marcel (0.3.2)
90
+ marcel (0.3.3)
91
91
  mimemagic (~> 0.3.2)
92
- memoist (0.16.0)
92
+ memoist (0.16.2)
93
93
  method_source (0.9.0)
94
- mimemagic (0.3.2)
95
- mini_mime (1.0.0)
96
- mini_portile2 (2.3.0)
94
+ mimemagic (0.3.4)
95
+ mini_mime (1.0.2)
96
+ mini_portile2 (2.4.0)
97
97
  minitest (5.11.3)
98
- multipart-post (2.0.0)
99
- nio4r (2.3.1)
100
- nokogiri (1.8.4)
101
- mini_portile2 (~> 2.3.0)
98
+ multipart-post (2.1.1)
99
+ nio4r (2.5.2)
100
+ nokogiri (1.10.8)
101
+ mini_portile2 (~> 2.4.0)
102
102
  public_suffix (3.0.1)
103
- rack (2.0.5)
103
+ rack (2.0.8)
104
104
  rack-test (1.0.0)
105
105
  rack (>= 1.0, < 3)
106
106
  rails (5.2.0)
@@ -127,7 +127,7 @@ GEM
127
127
  method_source
128
128
  rake (>= 0.8.7)
129
129
  thor (>= 0.18.1, < 2.0)
130
- rake (10.5.0)
130
+ rake (13.0.1)
131
131
  rspec (3.6.0)
132
132
  rspec-core (~> 3.6.0)
133
133
  rspec-expectations (~> 3.6.0)
@@ -149,6 +149,8 @@ GEM
149
149
  rspec-mocks (~> 3.6.0)
150
150
  rspec-support (~> 3.6.0)
151
151
  rspec-support (3.6.0)
152
+ rspec_junit_formatter (0.4.1)
153
+ rspec-core (>= 2, < 4, != 2.12.0)
152
154
  safe_yaml (1.0.4)
153
155
  simplecov (0.15.1)
154
156
  docile (~> 1.1.0)
@@ -157,16 +159,16 @@ GEM
157
159
  simplecov-html (0.10.2)
158
160
  simplecov-rcov (0.2.3)
159
161
  simplecov (>= 0.4.1)
160
- sprockets (3.7.2)
162
+ sprockets (4.0.0)
161
163
  concurrent-ruby (~> 1.0)
162
164
  rack (> 1, < 3)
163
165
  sprockets-rails (3.2.1)
164
166
  actionpack (>= 4.0)
165
167
  activesupport (>= 4.0)
166
168
  sprockets (>= 3.0.0)
167
- spyke (5.3.0)
168
- activemodel (>= 4.0.0, < 6.0)
169
- activesupport (>= 4.0.0, < 6.0)
169
+ spyke (5.3.4)
170
+ activemodel (>= 4.0.0)
171
+ activesupport (>= 4.0.0)
170
172
  addressable (>= 2.5.2)
171
173
  faraday (>= 0.9.0, < 2.0)
172
174
  faraday_middleware (>= 0.9.1, < 2.0)
@@ -181,9 +183,9 @@ GEM
181
183
  addressable (>= 2.3.6)
182
184
  crack (>= 0.3.2)
183
185
  hashdiff
184
- websocket-driver (0.7.0)
186
+ websocket-driver (0.7.1)
185
187
  websocket-extensions (>= 0.1.0)
186
- websocket-extensions (0.1.3)
188
+ websocket-extensions (0.1.4)
187
189
 
188
190
  PLATFORMS
189
191
  ruby
@@ -194,9 +196,10 @@ DEPENDENCIES
194
196
  cornucopia
195
197
  gem-release
196
198
  hashie
197
- rake (~> 10)
199
+ rake (~> 13)
198
200
  rspec
199
201
  rspec-rails
202
+ rspec_junit_formatter (~> 0.4.1)
200
203
  simplecov
201
204
  simplecov-rcov
202
205
  vcr
@@ -204,4 +207,4 @@ DEPENDENCIES
204
207
  yext-api!
205
208
 
206
209
  BUNDLED WITH
207
- 1.16.4
210
+ 1.17.3
@@ -1,6 +1,10 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require "spyke"
4
+ require "memoist"
5
+ require "validation"
6
+ require "validation/validator"
7
+ require "validation/rule/not_empty"
4
8
  require "yext/api"
5
9
  require "yext/api/engine"
6
10
  require "yext/api/concerns/enum_all"
@@ -39,12 +43,12 @@ require "yext/api/concerns/default_scopes"
39
43
  require "yext/api/utils/api_base"
40
44
  require "yext/api/concerns/account_child"
41
45
  require "yext/api/concerns/account_relations"
42
- require "yext/api/live_api/location"
43
46
  require "yext/api/knowledge_api"
44
47
  require "yext/api/knowledge_api/account_settings/account"
45
- require "yext/api/validators/account_validator"
46
48
  require "yext/api/administrative_api"
47
49
  require "yext/api/administrative_api/account"
50
+ require "yext/api/live_api/location"
51
+ require "yext/api/validators/account_validator"
48
52
  require "yext/api/administrative_api/add_request"
49
53
  require "yext/api/administrative_api/service"
50
54
  require "yext/api/knowledge_api/account_settings/role"
@@ -56,6 +60,6 @@ require "yext/api/knowledge_api/optimization_tasks/optimization_link"
56
60
  require "yext/api/knowledge_api/optimization_tasks/optimization_task"
57
61
  require "yext/api/knowledge_api/powerlistings/listing"
58
62
  require "yext/api/knowledge_api/powerlistings/publisher"
59
- require "yext/api/application_controller"
60
- require "yext/api/agreements/add_request_controller"
61
- require "yext/api/powerlistings/listing_controller"
63
+ require_relative "../app/controllers/yext/api/application_controller"
64
+ require_relative "../app/controllers/yext/api/agreements/add_request_controller"
65
+ require_relative "../app/controllers/yext/api/powerlistings/listing_controller"
@@ -25,7 +25,8 @@ module Yext
25
25
  end
26
26
 
27
27
  def ensure_relation(klass)
28
- [Yext::Api::KnowledgeApi::AccountSettings::Account, Yext::Api::AdministrativeApi::Account].each do |account_class|
28
+ %w[Yext::Api::KnowledgeApi::AccountSettings::Account Yext::Api::AdministrativeApi::Account].each do |account_class_name|
29
+ account_class = account_class_name.constantize
29
30
  next if account_class.association?(klass)
30
31
 
31
32
  klass_uri = klass.instance_variable_get(:@uri)
@@ -115,7 +116,7 @@ module Yext
115
116
 
116
117
  # account_scope means that the scope will be applied to an Account rather than a
117
118
  # relation off of an Account.
118
- args[:id] = args.delete(:account_id) if account_scope
119
+ args[:id] = args.delete(:account_id) if account_scope
119
120
 
120
121
  args
121
122
  end
@@ -4,8 +4,9 @@ module Yext
4
4
  module Api
5
5
  module Validators
6
6
  # A Validator for account updates to verify that the update is valid.
7
- class AccountValidator < Validation::Validator
8
- include Validation
7
+ class AccountValidator < ::Validation::Validator
8
+ include ::Validation
9
+ extend ::Validation::Rules
9
10
 
10
11
  def initialize(obj)
11
12
  # Ensure that the accountId field exists by cloning the Account and setting it.
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Yext
4
4
  module Api
5
- VERSION = "0.1.10"
5
+ VERSION = "0.1.11"
6
6
  end
7
7
  end
@@ -39,8 +39,9 @@ Gem::Specification.new do |spec|
39
39
  spec.add_development_dependency "codecov"
40
40
  spec.add_development_dependency "cornucopia"
41
41
  spec.add_development_dependency "hashie"
42
- spec.add_development_dependency "rake", "~> 10"
42
+ spec.add_development_dependency "rake", "~> 13"
43
43
  spec.add_development_dependency "rspec"
44
+ spec.add_development_dependency "rspec_junit_formatter", "~> 0.4.1"
44
45
  spec.add_development_dependency "rspec-rails"
45
46
  spec.add_development_dependency "simplecov"
46
47
  spec.add_development_dependency "simplecov-rcov"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yext-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.10
4
+ version: 0.1.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - CardTapp
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-12-19 00:00:00.000000000 Z
11
+ date: 2020-07-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: memoist
@@ -128,14 +128,14 @@ dependencies:
128
128
  requirements:
129
129
  - - "~>"
130
130
  - !ruby/object:Gem::Version
131
- version: '10'
131
+ version: '13'
132
132
  type: :development
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
136
  - - "~>"
137
137
  - !ruby/object:Gem::Version
138
- version: '10'
138
+ version: '13'
139
139
  - !ruby/object:Gem::Dependency
140
140
  name: rspec
141
141
  requirement: !ruby/object:Gem::Requirement
@@ -150,6 +150,20 @@ dependencies:
150
150
  - - ">="
151
151
  - !ruby/object:Gem::Version
152
152
  version: '0'
153
+ - !ruby/object:Gem::Dependency
154
+ name: rspec_junit_formatter
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - "~>"
158
+ - !ruby/object:Gem::Version
159
+ version: 0.4.1
160
+ type: :development
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - "~>"
165
+ - !ruby/object:Gem::Version
166
+ version: 0.4.1
153
167
  - !ruby/object:Gem::Dependency
154
168
  name: rspec-rails
155
169
  requirement: !ruby/object:Gem::Requirement
@@ -227,6 +241,7 @@ executables: []
227
241
  extensions: []
228
242
  extra_rdoc_files: []
229
243
  files:
244
+ - ".circleci/config.yml"
230
245
  - ".gitignore"
231
246
  - ".rspec"
232
247
  - ".rubocop.yml"
@@ -249,7 +264,7 @@ files:
249
264
  - config/initializers/valid.rb
250
265
  - config/routes.rb
251
266
  - lib/config/api.yml
252
- - lib/yext.rb
267
+ - lib/yext-api.rb
253
268
  - lib/yext/api.rb
254
269
  - lib/yext/api/administrative_api.rb
255
270
  - lib/yext/api/administrative_api/account.rb
@@ -328,8 +343,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
328
343
  - !ruby/object:Gem::Version
329
344
  version: '0'
330
345
  requirements: []
331
- rubyforge_project:
332
- rubygems_version: 2.5.1
346
+ rubygems_version: 3.0.3
333
347
  signing_key:
334
348
  specification_version: 4
335
349
  summary: An interface gem to the Yext API.