wcc-api 0.3.1 → 0.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/lib/wcc/api/active_record_shim.rb +69 -0
- data/lib/wcc/api/rest_client/builder.rb +82 -0
- data/lib/wcc/api/rest_client/response.rb +26 -13
- data/lib/wcc/api/rest_client/typhoeus_adapter.rb +54 -25
- data/lib/wcc/api/rest_client.rb +165 -11
- data/lib/wcc/api/version.rb +1 -1
- data/wcc-api.gemspec +6 -5
- metadata +48 -42
- data/.circleci/config.yml +0 -41
- data/.env.example +0 -0
- data/.gitignore +0 -14
- data/.rspec +0 -2
- data/.rubocop.yml +0 -190
- data/.rubocop_todo.yml +0 -63
- data/Gemfile +0 -6
- data/Rakefile +0 -3
- data/bin/rspec +0 -18
- data/spec/fixtures/contentful/entries.json +0 -80
- data/spec/spec_helper.rb +0 -29
- data/spec/support/fixtures_helper.rb +0 -8
- data/spec/wcc/api/rest_client_spec.rb +0 -266
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: wcc-api
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.5.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Watermark Dev
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2022-04-18 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: wcc-base
|
|
@@ -25,53 +25,75 @@ dependencies:
|
|
|
25
25
|
- !ruby/object:Gem::Version
|
|
26
26
|
version: '0'
|
|
27
27
|
- !ruby/object:Gem::Dependency
|
|
28
|
-
name:
|
|
28
|
+
name: dotenv
|
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
|
30
30
|
requirements:
|
|
31
31
|
- - "~>"
|
|
32
32
|
- !ruby/object:Gem::Version
|
|
33
|
-
version:
|
|
33
|
+
version: 0.10.0
|
|
34
34
|
type: :development
|
|
35
35
|
prerelease: false
|
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
|
37
37
|
requirements:
|
|
38
38
|
- - "~>"
|
|
39
39
|
- !ruby/object:Gem::Version
|
|
40
|
-
version:
|
|
40
|
+
version: 0.10.0
|
|
41
41
|
- !ruby/object:Gem::Dependency
|
|
42
|
-
name:
|
|
42
|
+
name: faraday
|
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
|
44
44
|
requirements:
|
|
45
45
|
- - "~>"
|
|
46
46
|
- !ruby/object:Gem::Version
|
|
47
|
-
version: 0.
|
|
47
|
+
version: '0.9'
|
|
48
48
|
type: :development
|
|
49
49
|
prerelease: false
|
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
|
51
51
|
requirements:
|
|
52
52
|
- - "~>"
|
|
53
53
|
- !ruby/object:Gem::Version
|
|
54
|
-
version: 0.
|
|
54
|
+
version: '0.9'
|
|
55
55
|
- !ruby/object:Gem::Dependency
|
|
56
|
-
name:
|
|
56
|
+
name: guard
|
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
|
58
58
|
requirements:
|
|
59
|
-
- - "
|
|
59
|
+
- - "~>"
|
|
60
60
|
- !ruby/object:Gem::Version
|
|
61
|
-
version: '
|
|
62
|
-
|
|
61
|
+
version: '2.15'
|
|
62
|
+
type: :development
|
|
63
|
+
prerelease: false
|
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
65
|
+
requirements:
|
|
66
|
+
- - "~>"
|
|
63
67
|
- !ruby/object:Gem::Version
|
|
64
|
-
version: '
|
|
68
|
+
version: '2.15'
|
|
69
|
+
- !ruby/object:Gem::Dependency
|
|
70
|
+
name: guard-rspec
|
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
|
72
|
+
requirements:
|
|
73
|
+
- - "~>"
|
|
74
|
+
- !ruby/object:Gem::Version
|
|
75
|
+
version: '4.7'
|
|
65
76
|
type: :development
|
|
66
77
|
prerelease: false
|
|
67
78
|
version_requirements: !ruby/object:Gem::Requirement
|
|
68
79
|
requirements:
|
|
69
|
-
- - "
|
|
80
|
+
- - "~>"
|
|
70
81
|
- !ruby/object:Gem::Version
|
|
71
|
-
version: '
|
|
72
|
-
|
|
82
|
+
version: '4.7'
|
|
83
|
+
- !ruby/object:Gem::Dependency
|
|
84
|
+
name: guard-rubocop
|
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
|
86
|
+
requirements:
|
|
87
|
+
- - "~>"
|
|
73
88
|
- !ruby/object:Gem::Version
|
|
74
|
-
version: '3
|
|
89
|
+
version: '1.3'
|
|
90
|
+
type: :development
|
|
91
|
+
prerelease: false
|
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
93
|
+
requirements:
|
|
94
|
+
- - "~>"
|
|
95
|
+
- !ruby/object:Gem::Version
|
|
96
|
+
version: '1.3'
|
|
75
97
|
- !ruby/object:Gem::Dependency
|
|
76
98
|
name: httplog
|
|
77
99
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -132,16 +154,16 @@ dependencies:
|
|
|
132
154
|
name: rubocop
|
|
133
155
|
requirement: !ruby/object:Gem::Requirement
|
|
134
156
|
requirements:
|
|
135
|
-
- -
|
|
157
|
+
- - '='
|
|
136
158
|
- !ruby/object:Gem::Version
|
|
137
|
-
version:
|
|
159
|
+
version: 0.69.0
|
|
138
160
|
type: :development
|
|
139
161
|
prerelease: false
|
|
140
162
|
version_requirements: !ruby/object:Gem::Requirement
|
|
141
163
|
requirements:
|
|
142
|
-
- -
|
|
164
|
+
- - '='
|
|
143
165
|
- !ruby/object:Gem::Version
|
|
144
|
-
version:
|
|
166
|
+
version: 0.69.0
|
|
145
167
|
- !ruby/object:Gem::Dependency
|
|
146
168
|
name: typhoeus
|
|
147
169
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -174,23 +196,14 @@ description: Holds common code used in our applications that host APIs and those
|
|
|
174
196
|
consume them.
|
|
175
197
|
email:
|
|
176
198
|
- dev@watermark.org
|
|
177
|
-
executables:
|
|
178
|
-
- rspec
|
|
199
|
+
executables: []
|
|
179
200
|
extensions: []
|
|
180
201
|
extra_rdoc_files: []
|
|
181
202
|
files:
|
|
182
|
-
- ".circleci/config.yml"
|
|
183
|
-
- ".env.example"
|
|
184
|
-
- ".gitignore"
|
|
185
|
-
- ".rspec"
|
|
186
|
-
- ".rubocop.yml"
|
|
187
|
-
- ".rubocop_todo.yml"
|
|
188
|
-
- Gemfile
|
|
189
203
|
- LICENSE.txt
|
|
190
204
|
- README.md
|
|
191
|
-
- Rakefile
|
|
192
|
-
- bin/rspec
|
|
193
205
|
- lib/wcc/api.rb
|
|
206
|
+
- lib/wcc/api/active_record_shim.rb
|
|
194
207
|
- lib/wcc/api/base_query.rb
|
|
195
208
|
- lib/wcc/api/controller_helpers.rb
|
|
196
209
|
- lib/wcc/api/json.rb
|
|
@@ -198,6 +211,7 @@ files:
|
|
|
198
211
|
- lib/wcc/api/railtie.rb
|
|
199
212
|
- lib/wcc/api/rest_client.rb
|
|
200
213
|
- lib/wcc/api/rest_client/api_error.rb
|
|
214
|
+
- lib/wcc/api/rest_client/builder.rb
|
|
201
215
|
- lib/wcc/api/rest_client/http_adapter.rb
|
|
202
216
|
- lib/wcc/api/rest_client/response.rb
|
|
203
217
|
- lib/wcc/api/rest_client/typhoeus_adapter.rb
|
|
@@ -207,10 +221,6 @@ files:
|
|
|
207
221
|
- lib/wcc/api/rspec/pagination_examples.rb
|
|
208
222
|
- lib/wcc/api/version.rb
|
|
209
223
|
- lib/wcc/api/view_helpers.rb
|
|
210
|
-
- spec/fixtures/contentful/entries.json
|
|
211
|
-
- spec/spec_helper.rb
|
|
212
|
-
- spec/support/fixtures_helper.rb
|
|
213
|
-
- spec/wcc/api/rest_client_spec.rb
|
|
214
224
|
- wcc-api.gemspec
|
|
215
225
|
homepage: https://github.com/watermarkchurch/wcc-api
|
|
216
226
|
licenses:
|
|
@@ -232,13 +242,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
232
242
|
version: '0'
|
|
233
243
|
requirements: []
|
|
234
244
|
rubyforge_project:
|
|
235
|
-
rubygems_version: 2.6.
|
|
245
|
+
rubygems_version: 2.7.6.3
|
|
236
246
|
signing_key:
|
|
237
247
|
specification_version: 4
|
|
238
248
|
summary: Holds common code used in our applications that host APIs and those that
|
|
239
249
|
consume them.
|
|
240
|
-
test_files:
|
|
241
|
-
- spec/fixtures/contentful/entries.json
|
|
242
|
-
- spec/spec_helper.rb
|
|
243
|
-
- spec/support/fixtures_helper.rb
|
|
244
|
-
- spec/wcc/api/rest_client_spec.rb
|
|
250
|
+
test_files: []
|
data/.circleci/config.yml
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
version: 2
|
|
2
|
-
jobs:
|
|
3
|
-
build:
|
|
4
|
-
docker:
|
|
5
|
-
- image: circleci/ruby:2.3.3-node
|
|
6
|
-
steps:
|
|
7
|
-
- checkout
|
|
8
|
-
# Restore bundle cache
|
|
9
|
-
- restore_cache:
|
|
10
|
-
key: gem-{{ checksum "wcc-api.gemspec" }}
|
|
11
|
-
|
|
12
|
-
# copy env
|
|
13
|
-
- run: cp .env.example .env
|
|
14
|
-
|
|
15
|
-
# Bundle install dependencies
|
|
16
|
-
- run: bundle install --path /tmp/vendor/bundle
|
|
17
|
-
|
|
18
|
-
# Store bundle cache
|
|
19
|
-
- save_cache:
|
|
20
|
-
key: gem-{{ checksum "wcc-api.gemspec" }}
|
|
21
|
-
paths:
|
|
22
|
-
- /tmp/vendor/bundle
|
|
23
|
-
|
|
24
|
-
# run rubocop
|
|
25
|
-
- type: shell
|
|
26
|
-
command: |
|
|
27
|
-
bundle exec rubocop
|
|
28
|
-
|
|
29
|
-
# Run rspec in parallel
|
|
30
|
-
- type: shell
|
|
31
|
-
command: |
|
|
32
|
-
bundle exec rspec --profile 10 \
|
|
33
|
-
--format RspecJunitFormatter \
|
|
34
|
-
--out test_results/rspec.xml \
|
|
35
|
-
--format documentation \
|
|
36
|
-
--order rand \
|
|
37
|
-
$(circleci tests glob "spec/**/*_spec.rb" | circleci tests split --split-by=timings)
|
|
38
|
-
|
|
39
|
-
# Save test results for timing analysis
|
|
40
|
-
- store_test_results:
|
|
41
|
-
path: test_results
|
data/.env.example
DELETED
|
File without changes
|
data/.gitignore
DELETED
data/.rspec
DELETED
data/.rubocop.yml
DELETED
|
@@ -1,190 +0,0 @@
|
|
|
1
|
-
inherit_from: .rubocop_todo.yml
|
|
2
|
-
|
|
3
|
-
AllCops:
|
|
4
|
-
DisplayCopNames: true
|
|
5
|
-
TargetRubyVersion: 2.3
|
|
6
|
-
Exclude:
|
|
7
|
-
# generated by rails/binstubs
|
|
8
|
-
- 'bin/**/*'
|
|
9
|
-
|
|
10
|
-
# generated by guard
|
|
11
|
-
- 'Guardfile'
|
|
12
|
-
|
|
13
|
-
# 3rd party
|
|
14
|
-
- 'vendor/**/*'
|
|
15
|
-
- 'lib/**/*'
|
|
16
|
-
|
|
17
|
-
Style/Documentation:
|
|
18
|
-
Enabled: false
|
|
19
|
-
|
|
20
|
-
Style/BlockDelimiters:
|
|
21
|
-
Exclude:
|
|
22
|
-
# we like the `let(:foo) {}` syntax in specs
|
|
23
|
-
- 'spec/**/*.rb'
|
|
24
|
-
|
|
25
|
-
Style/ClassAndModuleChildren:
|
|
26
|
-
EnforcedStyle: compact
|
|
27
|
-
|
|
28
|
-
Style/FormatStringToken:
|
|
29
|
-
EnforcedStyle: template
|
|
30
|
-
|
|
31
|
-
Style/RegexpLiteral:
|
|
32
|
-
Enabled: false
|
|
33
|
-
|
|
34
|
-
Metrics/BlockLength:
|
|
35
|
-
Exclude:
|
|
36
|
-
# spec files that might have a big describe
|
|
37
|
-
- 'spec/**/*.rb'
|
|
38
|
-
|
|
39
|
-
Style/BracesAroundHashParameters:
|
|
40
|
-
Enabled: false
|
|
41
|
-
|
|
42
|
-
Lint/AssignmentInCondition:
|
|
43
|
-
Enabled: false
|
|
44
|
-
|
|
45
|
-
Style/EmptyMethod:
|
|
46
|
-
EnforcedStyle: expanded
|
|
47
|
-
|
|
48
|
-
Style/Alias:
|
|
49
|
-
EnforcedStyle: prefer_alias_method
|
|
50
|
-
|
|
51
|
-
Style/NumericPredicate:
|
|
52
|
-
EnforcedStyle: comparison
|
|
53
|
-
|
|
54
|
-
Layout/AlignParameters:
|
|
55
|
-
EnforcedStyle: with_fixed_indentation
|
|
56
|
-
|
|
57
|
-
Layout/IndentHash:
|
|
58
|
-
EnforcedStyle: consistent
|
|
59
|
-
|
|
60
|
-
Layout/AlignHash:
|
|
61
|
-
# allow coder to get around alignment rules by explicitly defining the hash param
|
|
62
|
-
EnforcedLastArgumentHashStyle: ignore_explicit
|
|
63
|
-
|
|
64
|
-
Layout/MultilineMethodCallIndentation:
|
|
65
|
-
EnforcedStyle: indented
|
|
66
|
-
|
|
67
|
-
Layout/MultilineOperationIndentation:
|
|
68
|
-
EnforcedStyle: indented
|
|
69
|
-
|
|
70
|
-
Rails:
|
|
71
|
-
Enabled: true
|
|
72
|
-
|
|
73
|
-
# These are all the cops that are disabled in the default configuration.
|
|
74
|
-
|
|
75
|
-
Layout/FirstArrayElementLineBreak:
|
|
76
|
-
Description: >-
|
|
77
|
-
Checks for a line break before the first element in a
|
|
78
|
-
multi-line array.
|
|
79
|
-
Enabled: true
|
|
80
|
-
|
|
81
|
-
Layout/FirstHashElementLineBreak:
|
|
82
|
-
Description: >-
|
|
83
|
-
Checks for a line break before the first element in a
|
|
84
|
-
multi-line hash.
|
|
85
|
-
Enabled: true
|
|
86
|
-
|
|
87
|
-
Layout/FirstMethodArgumentLineBreak:
|
|
88
|
-
Description: >-
|
|
89
|
-
Checks for a line break before the first argument in a
|
|
90
|
-
multi-line method call.
|
|
91
|
-
Enabled: false
|
|
92
|
-
|
|
93
|
-
Layout/FirstMethodParameterLineBreak:
|
|
94
|
-
Description: >-
|
|
95
|
-
Checks for a line break before the first parameter in a
|
|
96
|
-
multi-line method parameter definition.
|
|
97
|
-
Enabled: true
|
|
98
|
-
|
|
99
|
-
Layout/MultilineAssignmentLayout:
|
|
100
|
-
Description: 'Check for a newline after the assignment operator in multi-line assignments.'
|
|
101
|
-
StyleGuide: '#indent-conditional-assignment'
|
|
102
|
-
Enabled: true
|
|
103
|
-
|
|
104
|
-
Rails/SaveBang:
|
|
105
|
-
Description: 'Identifies possible cases where Active Record save! or related should be used.'
|
|
106
|
-
StyleGuide: 'https://github.com/bbatsov/rails-style-guide#save-bang'
|
|
107
|
-
Enabled: false
|
|
108
|
-
|
|
109
|
-
Style/AutoResourceCleanup:
|
|
110
|
-
Description: 'Suggests the usage of an auto resource cleanup version of a method (if available).'
|
|
111
|
-
Enabled: true
|
|
112
|
-
|
|
113
|
-
Style/CollectionMethods:
|
|
114
|
-
Description: 'Preferred collection methods.'
|
|
115
|
-
StyleGuide: '#map-find-select-reduce-size'
|
|
116
|
-
Enabled: true
|
|
117
|
-
|
|
118
|
-
Style/Copyright:
|
|
119
|
-
Description: 'Include a copyright notice in each file before any code.'
|
|
120
|
-
Enabled: false
|
|
121
|
-
|
|
122
|
-
Style/DocumentationMethod:
|
|
123
|
-
Description: 'Public methods.'
|
|
124
|
-
Enabled: false
|
|
125
|
-
Exclude:
|
|
126
|
-
- 'spec/**/*'
|
|
127
|
-
- 'test/**/*'
|
|
128
|
-
|
|
129
|
-
Style/ImplicitRuntimeError:
|
|
130
|
-
Description: >-
|
|
131
|
-
Use `raise` or `fail` with an explicit exception class and
|
|
132
|
-
message, rather than just a message.
|
|
133
|
-
Enabled: true
|
|
134
|
-
|
|
135
|
-
Style/InlineComment:
|
|
136
|
-
Description: 'Avoid trailing inline comments.'
|
|
137
|
-
Enabled: true
|
|
138
|
-
|
|
139
|
-
Style/MethodCallWithArgsParentheses:
|
|
140
|
-
Description: 'Use parentheses for method calls with arguments.'
|
|
141
|
-
StyleGuide: '#method-invocation-parens'
|
|
142
|
-
Enabled: false
|
|
143
|
-
|
|
144
|
-
Style/MethodCalledOnDoEndBlock:
|
|
145
|
-
Description: 'Avoid chaining a method call on a do...end block.'
|
|
146
|
-
StyleGuide: '#single-line-blocks'
|
|
147
|
-
# TODO: enable after fixing todos
|
|
148
|
-
Enabled: false
|
|
149
|
-
Exclude:
|
|
150
|
-
- 'spec/**/*'
|
|
151
|
-
|
|
152
|
-
Style/MissingElse:
|
|
153
|
-
Description: >-
|
|
154
|
-
Require if/case expressions to have an else branches.
|
|
155
|
-
If enabled, it is recommended that
|
|
156
|
-
Style/UnlessElse and Style/EmptyElse be enabled.
|
|
157
|
-
This will conflict with Style/EmptyElse if
|
|
158
|
-
Style/EmptyElse is configured to style "both"
|
|
159
|
-
Enabled: false
|
|
160
|
-
EnforcedStyle: both
|
|
161
|
-
SupportedStyles:
|
|
162
|
-
# if - warn when an if expression is missing an else branch
|
|
163
|
-
# case - warn when a case expression is missing an else branch
|
|
164
|
-
# both - warn when an if or case expression is missing an else branch
|
|
165
|
-
- if
|
|
166
|
-
- case
|
|
167
|
-
- both
|
|
168
|
-
|
|
169
|
-
Style/OptionHash:
|
|
170
|
-
Description: "Don't use option hashes when you can use keyword arguments."
|
|
171
|
-
Enabled: true
|
|
172
|
-
|
|
173
|
-
Style/ReturnNil:
|
|
174
|
-
Description: 'Use return instead of return nil.'
|
|
175
|
-
Enabled: true
|
|
176
|
-
|
|
177
|
-
Style/Send:
|
|
178
|
-
Description: 'Prefer `Object#__send__` or `Object#public_send` to `send`, as `send` may overlap with existing methods.'
|
|
179
|
-
StyleGuide: '#prefer-public-send'
|
|
180
|
-
Enabled: true
|
|
181
|
-
Exclude:
|
|
182
|
-
- 'spec/**/*'
|
|
183
|
-
|
|
184
|
-
Style/StringMethods:
|
|
185
|
-
Description: 'Checks if configured preferred methods are used over non-preferred.'
|
|
186
|
-
Enabled: false
|
|
187
|
-
|
|
188
|
-
Style/SingleLineBlockParams:
|
|
189
|
-
Description: 'Enforces the names of some block params.'
|
|
190
|
-
Enabled: false
|
data/.rubocop_todo.yml
DELETED
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
# This configuration was generated by
|
|
2
|
-
# `rubocop --auto-gen-config`
|
|
3
|
-
# on 2019-02-11 12:22:05 -0600 using RuboCop version 0.64.0.
|
|
4
|
-
# The point is for the user to remove these configuration records
|
|
5
|
-
# one by one as the offenses are removed from the code base.
|
|
6
|
-
# Note that changes in the inspected code, or installation of new
|
|
7
|
-
# versions of RuboCop, may require this file to be generated again.
|
|
8
|
-
|
|
9
|
-
# Offense count: 2
|
|
10
|
-
Metrics/AbcSize:
|
|
11
|
-
Max: 56
|
|
12
|
-
|
|
13
|
-
# Offense count: 1
|
|
14
|
-
# Configuration parameters: CountComments, ExcludedMethods.
|
|
15
|
-
# ExcludedMethods: refine
|
|
16
|
-
Metrics/BlockLength:
|
|
17
|
-
Max: 31
|
|
18
|
-
|
|
19
|
-
# Offense count: 4
|
|
20
|
-
# Configuration parameters: CountComments, ExcludedMethods.
|
|
21
|
-
Metrics/MethodLength:
|
|
22
|
-
Max: 25
|
|
23
|
-
|
|
24
|
-
# Offense count: 2
|
|
25
|
-
# Configuration parameters: NamePrefix, NamePrefixBlacklist, NameWhitelist, MethodDefinitionMacros.
|
|
26
|
-
# NamePrefix: is_, has_, have_
|
|
27
|
-
# NamePrefixBlacklist: is_, has_, have_
|
|
28
|
-
# NameWhitelist: is_a?
|
|
29
|
-
# MethodDefinitionMacros: define_method, define_singleton_method
|
|
30
|
-
Naming/PredicateName:
|
|
31
|
-
Exclude:
|
|
32
|
-
- 'spec/**/*'
|
|
33
|
-
- 'lib/wcc/api/json/pagination.rb'
|
|
34
|
-
|
|
35
|
-
# Offense count: 5
|
|
36
|
-
# Cop supports --auto-correct.
|
|
37
|
-
# Configuration parameters: AutoCorrect, EnforcedStyle.
|
|
38
|
-
# SupportedStyles: nested, compact
|
|
39
|
-
Style/ClassAndModuleChildren:
|
|
40
|
-
Exclude:
|
|
41
|
-
- 'lib/wcc/api/railtie.rb'
|
|
42
|
-
- 'lib/wcc/api/rest_client/http_adapter.rb'
|
|
43
|
-
- 'lib/wcc/api/rest_client/typhoeus_adapter.rb'
|
|
44
|
-
- 'lib/wcc/api/version.rb'
|
|
45
|
-
|
|
46
|
-
# Offense count: 2
|
|
47
|
-
# Cop supports --auto-correct.
|
|
48
|
-
Style/IfUnlessModifier:
|
|
49
|
-
Exclude:
|
|
50
|
-
- 'lib/wcc/api/json/pagination.rb'
|
|
51
|
-
|
|
52
|
-
# Offense count: 1
|
|
53
|
-
# Configuration parameters: SuspiciousParamNames.
|
|
54
|
-
# SuspiciousParamNames: options, opts, args, params, parameters
|
|
55
|
-
Style/OptionHash:
|
|
56
|
-
Exclude:
|
|
57
|
-
- 'lib/wcc/api/controller_helpers.rb'
|
|
58
|
-
|
|
59
|
-
# Offense count: 11
|
|
60
|
-
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
|
|
61
|
-
# URISchemes: http, https
|
|
62
|
-
Metrics/LineLength:
|
|
63
|
-
Max: 142
|
data/Gemfile
DELETED
data/Rakefile
DELETED
data/bin/rspec
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env ruby
|
|
2
|
-
# frozen_string_literal: true
|
|
3
|
-
|
|
4
|
-
#
|
|
5
|
-
# This file was generated by Bundler.
|
|
6
|
-
#
|
|
7
|
-
# The application 'rspec' is installed as part of a gem, and
|
|
8
|
-
# this file is here to facilitate running it.
|
|
9
|
-
#
|
|
10
|
-
|
|
11
|
-
require 'pathname'
|
|
12
|
-
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile',
|
|
13
|
-
Pathname.new(__FILE__).realpath)
|
|
14
|
-
|
|
15
|
-
require 'rubygems'
|
|
16
|
-
require 'bundler/setup'
|
|
17
|
-
|
|
18
|
-
load Gem.bin_path('rspec-core', 'rspec')
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"sys": {
|
|
3
|
-
"type": "Array"
|
|
4
|
-
},
|
|
5
|
-
"total": 63,
|
|
6
|
-
"skip": 0,
|
|
7
|
-
"limit": 2,
|
|
8
|
-
"items": [
|
|
9
|
-
{
|
|
10
|
-
"sys": {
|
|
11
|
-
"space": {
|
|
12
|
-
"sys": {
|
|
13
|
-
"type": "Link",
|
|
14
|
-
"linkType": "Space",
|
|
15
|
-
"id": "hw5pse7y1ojx"
|
|
16
|
-
}
|
|
17
|
-
},
|
|
18
|
-
"id": "6xJzDTX2HCo0u4QKIuGCOu",
|
|
19
|
-
"type": "Entry",
|
|
20
|
-
"createdAt": "2018-11-02T19:09:46.884Z",
|
|
21
|
-
"updatedAt": "2018-11-02T19:09:46.884Z",
|
|
22
|
-
"environment": {
|
|
23
|
-
"sys": {
|
|
24
|
-
"id": "gburgett",
|
|
25
|
-
"type": "Link",
|
|
26
|
-
"linkType": "Environment"
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
"revision": 1,
|
|
30
|
-
"contentType": {
|
|
31
|
-
"sys": {
|
|
32
|
-
"type": "Link",
|
|
33
|
-
"linkType": "ContentType",
|
|
34
|
-
"id": "menuButton"
|
|
35
|
-
}
|
|
36
|
-
},
|
|
37
|
-
"locale": "en-US"
|
|
38
|
-
},
|
|
39
|
-
"fields": {
|
|
40
|
-
"text": "What We Believe",
|
|
41
|
-
"externalLink": "http://www.watermark.org/fort-worth/about/beliefs"
|
|
42
|
-
}
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
"sys": {
|
|
46
|
-
"space": {
|
|
47
|
-
"sys": {
|
|
48
|
-
"type": "Link",
|
|
49
|
-
"linkType": "Space",
|
|
50
|
-
"id": "hw5pse7y1ojx"
|
|
51
|
-
}
|
|
52
|
-
},
|
|
53
|
-
"id": "5yozzvgItUSYu4eI8yQ0ee",
|
|
54
|
-
"type": "Entry",
|
|
55
|
-
"createdAt": "2018-11-02T19:09:51.627Z",
|
|
56
|
-
"updatedAt": "2018-11-02T19:09:51.627Z",
|
|
57
|
-
"environment": {
|
|
58
|
-
"sys": {
|
|
59
|
-
"id": "gburgett",
|
|
60
|
-
"type": "Link",
|
|
61
|
-
"linkType": "Environment"
|
|
62
|
-
}
|
|
63
|
-
},
|
|
64
|
-
"revision": 1,
|
|
65
|
-
"contentType": {
|
|
66
|
-
"sys": {
|
|
67
|
-
"type": "Link",
|
|
68
|
-
"linkType": "ContentType",
|
|
69
|
-
"id": "section-block-text"
|
|
70
|
-
}
|
|
71
|
-
},
|
|
72
|
-
"locale": "en-US"
|
|
73
|
-
},
|
|
74
|
-
"fields": {
|
|
75
|
-
"internalTitle": "Frisco - Life Stage: Kids' Ministry",
|
|
76
|
-
"body": "## Kids' Ministry\n\nKids' Ministry is availible for infants and children through 5th grade at both 9 AM and 11 AM services. "
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
]
|
|
80
|
-
}
|
data/spec/spec_helper.rb
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
SPEC_DIR = File.dirname(__FILE__)
|
|
4
|
-
FIXTURES_DIR = File.join(SPEC_DIR, 'fixtures')
|
|
5
|
-
|
|
6
|
-
$LOAD_PATH.unshift File.join(SPEC_DIR, '..', 'lib')
|
|
7
|
-
$LOAD_PATH.unshift SPEC_DIR
|
|
8
|
-
|
|
9
|
-
require 'dotenv'
|
|
10
|
-
Dotenv.load
|
|
11
|
-
|
|
12
|
-
require 'webmock/rspec'
|
|
13
|
-
Dir['./spec/support/**/*.rb'].sort.each { |f| require f }
|
|
14
|
-
|
|
15
|
-
require 'wcc/api'
|
|
16
|
-
|
|
17
|
-
RSpec.configure do |config|
|
|
18
|
-
config.expect_with :rspec do |expectations|
|
|
19
|
-
expectations.include_chain_clauses_in_custom_matcher_descriptions = true
|
|
20
|
-
end
|
|
21
|
-
|
|
22
|
-
config.mock_with :rspec do |mocks|
|
|
23
|
-
mocks.verify_partial_doubles = true
|
|
24
|
-
end
|
|
25
|
-
|
|
26
|
-
config.shared_context_metadata_behavior = :apply_to_host_groups
|
|
27
|
-
|
|
28
|
-
config.include FixturesHelper
|
|
29
|
-
end
|