people_doc 0.1.0
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 +7 -0
- data/.circleci/config.yml +45 -0
- data/.gitignore +11 -0
- data/.hound-rubocop.yml +323 -0
- data/.hound.yml +3 -0
- data/.rspec +3 -0
- data/.rubocop.yml +41 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +6 -0
- data/Gemfile.lock +96 -0
- data/LICENSE +21 -0
- data/README.md +81 -0
- data/Rakefile +10 -0
- data/bin/console +14 -0
- data/bin/setup +6 -0
- data/lib/people_doc/httparty_request.rb +68 -0
- data/lib/people_doc/response_handlers.rb +135 -0
- data/lib/people_doc/version.rb +5 -0
- data/lib/people_doc.rb +336 -0
- data/people_doc.gemspec +31 -0
- metadata +203 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: afc40e98ca8225ca851026b56da9a9051ba41162
|
4
|
+
data.tar.gz: 4e1f97ca23c5b27ef61f63e0a1062d1aa728ace9
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 69314d644641ea373300685b9d1e6d9081d4e4850d1bb3ccc6eda0af28a296d2a9a149191d56c8f6c303073fa1eb5a061d9a2ad6731bb763285f8b296e8d2341
|
7
|
+
data.tar.gz: e405350d17005b300503af94d59a39bd6effdde7945104ccd383353e12a807e471e9cbb9de3fe857e194d6c688fe5027e9e3ccfefccf84f66017583310c14223
|
@@ -0,0 +1,45 @@
|
|
1
|
+
version: 2
|
2
|
+
jobs:
|
3
|
+
build:
|
4
|
+
docker:
|
5
|
+
- image: circleci/ruby:2.5.1-node-browsers
|
6
|
+
working_directory: ~/repo
|
7
|
+
steps:
|
8
|
+
- checkout
|
9
|
+
- restore_cache:
|
10
|
+
keys:
|
11
|
+
- v1-dependencies-{{ checksum "Gemfile.lock" }}
|
12
|
+
# fallback to using the latest cache if no exact match is found
|
13
|
+
- v1-dependencies-
|
14
|
+
- run:
|
15
|
+
name: install dependencies
|
16
|
+
command: |
|
17
|
+
bundle install --jobs=4 --retry=3 --path vendor/bundle
|
18
|
+
- run:
|
19
|
+
name: Setup Code Climate test-reporter
|
20
|
+
command: |
|
21
|
+
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
|
22
|
+
chmod +x ./cc-test-reporter
|
23
|
+
- save_cache:
|
24
|
+
paths:
|
25
|
+
- ./vendor/bundle
|
26
|
+
key: v1-dependencies-{{ checksum "Gemfile.lock" }}
|
27
|
+
- run:
|
28
|
+
name: run tests
|
29
|
+
command: |
|
30
|
+
./cc-test-reporter before-build
|
31
|
+
mkdir /tmp/test-results
|
32
|
+
TEST_FILES="$(circleci tests glob "spec/**/*_spec.rb" | circleci tests split --split-by=timings)"
|
33
|
+
|
34
|
+
bundle exec rspec --format progress \
|
35
|
+
--format RspecJunitFormatter \
|
36
|
+
--out /tmp/test-results/rspec.xml \
|
37
|
+
--format progress \
|
38
|
+
-- \
|
39
|
+
$TEST_FILES
|
40
|
+
./cc-test-reporter after-build --coverage-input-type simplecov --exit-code $?
|
41
|
+
- store_test_results:
|
42
|
+
path: /tmp/test-results
|
43
|
+
- store_artifacts:
|
44
|
+
path: /tmp/test-results
|
45
|
+
destination: test-results
|
data/.gitignore
ADDED
data/.hound-rubocop.yml
ADDED
@@ -0,0 +1,323 @@
|
|
1
|
+
AllCops:
|
2
|
+
TargetRubyVersion: 2.4
|
3
|
+
Exclude:
|
4
|
+
- "vendor/**/*"
|
5
|
+
- "db/schema.rb"
|
6
|
+
UseCache: false
|
7
|
+
Layout/DotPosition:
|
8
|
+
Description: Checks the position of the dot in multi-line method calls.
|
9
|
+
StyleGuide: https://github.com/bbatsov/ruby-style-guide#consistent-multi-line-chains
|
10
|
+
Enabled: true
|
11
|
+
EnforcedStyle: trailing
|
12
|
+
SupportedStyles:
|
13
|
+
- leading
|
14
|
+
- trailing
|
15
|
+
Layout/EmptyLineAfterMagicComment:
|
16
|
+
Description: 'Add an empty line after magic comments to separate them from code.'
|
17
|
+
StyleGuide: '#separate-magic-comments-from-code'
|
18
|
+
Enabled: false
|
19
|
+
Lint/AmbiguousBlockAssociation:
|
20
|
+
Exclude:
|
21
|
+
- "spec/**/*"
|
22
|
+
Style/CollectionMethods:
|
23
|
+
Description: Preferred collection methods.
|
24
|
+
StyleGuide: https://github.com/bbatsov/ruby-style-guide#map-find-select-reduce-size
|
25
|
+
Enabled: true
|
26
|
+
PreferredMethods:
|
27
|
+
collect: map
|
28
|
+
collect!: map!
|
29
|
+
find: detect
|
30
|
+
find_all: select
|
31
|
+
reduce: inject
|
32
|
+
Naming/FileName:
|
33
|
+
Description: Use snake_case for source file names.
|
34
|
+
StyleGuide: https://github.com/bbatsov/ruby-style-guide#snake-case-files
|
35
|
+
Enabled: false
|
36
|
+
Exclude: []
|
37
|
+
Style/GuardClause:
|
38
|
+
Description: Check for conditionals that can be replaced with guard clauses
|
39
|
+
StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-nested-conditionals
|
40
|
+
Enabled: false
|
41
|
+
MinBodyLength: 1
|
42
|
+
Style/IfUnlessModifier:
|
43
|
+
Description: Favor modifier if/unless usage when you have a single-line body.
|
44
|
+
StyleGuide: https://github.com/bbatsov/ruby-style-guide#if-as-a-modifier
|
45
|
+
Enabled: false
|
46
|
+
Style/OptionHash:
|
47
|
+
Description: Don't use option hashes when you can use keyword arguments.
|
48
|
+
Enabled: false
|
49
|
+
Style/PercentLiteralDelimiters:
|
50
|
+
Description: Use `%`-literal delimiters consistently
|
51
|
+
StyleGuide: https://github.com/bbatsov/ruby-style-guide#percent-literal-braces
|
52
|
+
Enabled: false
|
53
|
+
PreferredDelimiters:
|
54
|
+
"%": "()"
|
55
|
+
"%i": "()"
|
56
|
+
"%q": "()"
|
57
|
+
"%Q": "()"
|
58
|
+
"%r": "{}"
|
59
|
+
"%s": "()"
|
60
|
+
"%w": "()"
|
61
|
+
"%W": "()"
|
62
|
+
"%x": "()"
|
63
|
+
Naming/PredicateName:
|
64
|
+
Description: Check the names of predicate methods.
|
65
|
+
StyleGuide: https://github.com/bbatsov/ruby-style-guide#bool-methods-qmark
|
66
|
+
Enabled: true
|
67
|
+
NamePrefix:
|
68
|
+
- is_
|
69
|
+
- has_
|
70
|
+
- have_
|
71
|
+
NamePrefixBlacklist:
|
72
|
+
- is_
|
73
|
+
Exclude:
|
74
|
+
- spec/**/*
|
75
|
+
Style/RaiseArgs:
|
76
|
+
Description: Checks the arguments passed to raise/fail.
|
77
|
+
StyleGuide: https://github.com/bbatsov/ruby-style-guide#exception-class-messages
|
78
|
+
Enabled: false
|
79
|
+
EnforcedStyle: exploded
|
80
|
+
SupportedStyles:
|
81
|
+
- compact
|
82
|
+
- exploded
|
83
|
+
Style/SignalException:
|
84
|
+
Description: Checks for proper usage of fail and raise.
|
85
|
+
StyleGuide: https://github.com/bbatsov/ruby-style-guide#fail-method
|
86
|
+
Enabled: true
|
87
|
+
EnforcedStyle: semantic
|
88
|
+
SupportedStyles:
|
89
|
+
- only_raise
|
90
|
+
- only_fail
|
91
|
+
- semantic
|
92
|
+
Style/SingleLineBlockParams:
|
93
|
+
Description: Enforces the names of some block params.
|
94
|
+
StyleGuide: https://github.com/bbatsov/ruby-style-guide#reduce-blocks
|
95
|
+
Enabled: false
|
96
|
+
Methods:
|
97
|
+
- reduce:
|
98
|
+
- a
|
99
|
+
- e
|
100
|
+
- inject:
|
101
|
+
- a
|
102
|
+
- e
|
103
|
+
Style/SingleLineMethods:
|
104
|
+
Description: Avoid single-line methods.
|
105
|
+
StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-single-line-methods
|
106
|
+
Enabled: false
|
107
|
+
AllowIfMethodIsEmpty: true
|
108
|
+
Style/StringLiterals:
|
109
|
+
Description: Checks if uses of quotes match the configured preference.
|
110
|
+
StyleGuide: https://github.com/bbatsov/ruby-style-guide#consistent-string-literals
|
111
|
+
Enabled: true
|
112
|
+
EnforcedStyle: double_quotes
|
113
|
+
SupportedStyles:
|
114
|
+
- single_quotes
|
115
|
+
- double_quotes
|
116
|
+
Style/StringLiteralsInInterpolation:
|
117
|
+
Description: Checks if uses of quotes inside expressions in interpolated strings
|
118
|
+
match the configured preference.
|
119
|
+
Enabled: true
|
120
|
+
EnforcedStyle: single_quotes
|
121
|
+
SupportedStyles:
|
122
|
+
- single_quotes
|
123
|
+
- double_quotes
|
124
|
+
Style/TrailingCommaInArguments:
|
125
|
+
Description: 'Checks for trailing comma in argument lists.'
|
126
|
+
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-trailing-array-commas'
|
127
|
+
Enabled: true
|
128
|
+
EnforcedStyleForMultiline: no_comma
|
129
|
+
Style/TrailingCommaInArrayLiteral:
|
130
|
+
Description: 'Checks for trailing comma in array literals.'
|
131
|
+
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-trailing-array-commas'
|
132
|
+
Enabled: true
|
133
|
+
EnforcedStyleForMultiline: no_comma
|
134
|
+
Style/TrailingCommaInHashLiteral:
|
135
|
+
Description: 'Checks for trailing comma in hash literals.'
|
136
|
+
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-trailing-array-commas'
|
137
|
+
Enabled: true
|
138
|
+
EnforcedStyleForMultiline: no_comma
|
139
|
+
Metrics/AbcSize:
|
140
|
+
Description: A calculated magnitude based on number of assignments, branches, and
|
141
|
+
conditions.
|
142
|
+
Enabled: false
|
143
|
+
Max: 15
|
144
|
+
Metrics/ClassLength:
|
145
|
+
Description: Avoid classes longer than 100 lines of code.
|
146
|
+
Enabled: false
|
147
|
+
CountComments: false
|
148
|
+
Max: 100
|
149
|
+
Metrics/ModuleLength:
|
150
|
+
CountComments: false
|
151
|
+
Max: 100
|
152
|
+
Description: Avoid modules longer than 100 lines of code.
|
153
|
+
Enabled: false
|
154
|
+
Metrics/CyclomaticComplexity:
|
155
|
+
Description: A complexity metric that is strongly correlated to the number of test
|
156
|
+
cases needed to validate a method.
|
157
|
+
Enabled: false
|
158
|
+
Max: 6
|
159
|
+
Metrics/MethodLength:
|
160
|
+
Description: Avoid methods longer than 10 lines of code.
|
161
|
+
StyleGuide: https://github.com/bbatsov/ruby-style-guide#short-methods
|
162
|
+
Enabled: false
|
163
|
+
CountComments: false
|
164
|
+
Max: 10
|
165
|
+
Metrics/ParameterLists:
|
166
|
+
Description: Avoid parameter lists longer than three or four parameters.
|
167
|
+
StyleGuide: https://github.com/bbatsov/ruby-style-guide#too-many-params
|
168
|
+
Enabled: false
|
169
|
+
Max: 5
|
170
|
+
CountKeywordArgs: true
|
171
|
+
Metrics/PerceivedComplexity:
|
172
|
+
Description: A complexity metric geared towards measuring complexity for a human
|
173
|
+
reader.
|
174
|
+
Enabled: false
|
175
|
+
Max: 7
|
176
|
+
Lint/AssignmentInCondition:
|
177
|
+
Description: Don't use assignment in conditions.
|
178
|
+
StyleGuide: https://github.com/bbatsov/ruby-style-guide#safe-assignment-in-condition
|
179
|
+
Enabled: false
|
180
|
+
AllowSafeAssignment: true
|
181
|
+
Style/InlineComment:
|
182
|
+
Description: Avoid inline comments.
|
183
|
+
Enabled: false
|
184
|
+
Naming/AccessorMethodName:
|
185
|
+
Description: Check the naming of accessor methods for get_/set_.
|
186
|
+
Enabled: false
|
187
|
+
Style/Alias:
|
188
|
+
Description: Use alias_method instead of alias.
|
189
|
+
StyleGuide: https://github.com/bbatsov/ruby-style-guide#alias-method
|
190
|
+
Enabled: false
|
191
|
+
Style/Documentation:
|
192
|
+
Description: Document classes and non-namespace modules.
|
193
|
+
Enabled: false
|
194
|
+
Style/DoubleNegation:
|
195
|
+
Description: Checks for uses of double negation (!!).
|
196
|
+
StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-bang-bang
|
197
|
+
Enabled: false
|
198
|
+
Style/EachWithObject:
|
199
|
+
Description: Prefer `each_with_object` over `inject` or `reduce`.
|
200
|
+
Enabled: false
|
201
|
+
Style/EmptyLiteral:
|
202
|
+
Description: Prefer literals to Array.new/Hash.new/String.new.
|
203
|
+
StyleGuide: https://github.com/bbatsov/ruby-style-guide#literal-array-hash
|
204
|
+
Enabled: false
|
205
|
+
Style/ModuleFunction:
|
206
|
+
Description: Checks for usage of `extend self` in modules.
|
207
|
+
StyleGuide: https://github.com/bbatsov/ruby-style-guide#module-function
|
208
|
+
Enabled: false
|
209
|
+
Style/OneLineConditional:
|
210
|
+
Description: Favor the ternary operator(?:) over if/then/else/end constructs.
|
211
|
+
StyleGuide: https://github.com/bbatsov/ruby-style-guide#ternary-operator
|
212
|
+
Enabled: false
|
213
|
+
Style/PerlBackrefs:
|
214
|
+
Description: Avoid Perl-style regex back references.
|
215
|
+
StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-perl-regexp-last-matchers
|
216
|
+
Enabled: false
|
217
|
+
Style/Send:
|
218
|
+
Description: Prefer `Object#__send__` or `Object#public_send` to `send`, as `send`
|
219
|
+
may overlap with existing methods.
|
220
|
+
StyleGuide: https://github.com/bbatsov/ruby-style-guide#prefer-public-send
|
221
|
+
Enabled: false
|
222
|
+
Style/SpecialGlobalVars:
|
223
|
+
Description: Avoid Perl-style global variables.
|
224
|
+
StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-cryptic-perlisms
|
225
|
+
Enabled: false
|
226
|
+
Style/VariableInterpolation:
|
227
|
+
Description: Don't interpolate global, instance and class variables directly in
|
228
|
+
strings.
|
229
|
+
StyleGuide: https://github.com/bbatsov/ruby-style-guide#curlies-interpolate
|
230
|
+
Enabled: false
|
231
|
+
Style/WhenThen:
|
232
|
+
Description: Use when x then ... for one-line cases.
|
233
|
+
StyleGuide: https://github.com/bbatsov/ruby-style-guide#one-line-cases
|
234
|
+
Enabled: false
|
235
|
+
Lint/EachWithObjectArgument:
|
236
|
+
Description: Check for immutable argument given to each_with_object.
|
237
|
+
Enabled: true
|
238
|
+
Lint/HandleExceptions:
|
239
|
+
Description: Don't suppress exception.
|
240
|
+
StyleGuide: https://github.com/bbatsov/ruby-style-guide#dont-hide-exceptions
|
241
|
+
Enabled: false
|
242
|
+
Lint/LiteralAsCondition:
|
243
|
+
Description: Checks of literals used in conditions.
|
244
|
+
Enabled: false
|
245
|
+
Lint/LiteralInInterpolation:
|
246
|
+
Description: Checks for literals used in interpolation.
|
247
|
+
Enabled: false
|
248
|
+
|
249
|
+
##################### Rails ##################################
|
250
|
+
|
251
|
+
Rails/ActionFilter:
|
252
|
+
Description: 'Enforces consistent use of action filter methods.'
|
253
|
+
Enabled: true
|
254
|
+
Rails/Date:
|
255
|
+
Description: >-
|
256
|
+
Checks the correct usage of date aware methods,
|
257
|
+
such as Date.today, Date.current etc.
|
258
|
+
Enabled: true
|
259
|
+
Rails/Delegate:
|
260
|
+
Description: 'Prefer delegate method for delegations.'
|
261
|
+
Enabled: true
|
262
|
+
Rails/Exit:
|
263
|
+
Description: >-
|
264
|
+
Favor `fail`, `break`, `return`, etc. over `exit` in
|
265
|
+
application or library code outside of Rake files to avoid
|
266
|
+
exits during unit testing or running in production.
|
267
|
+
Enabled: true
|
268
|
+
Rails/FindBy:
|
269
|
+
Description: 'Prefer find_by over where.first.'
|
270
|
+
StyleGuide: 'https://github.com/bbatsov/rails-style-guide#find_by'
|
271
|
+
Enabled: true
|
272
|
+
Rails/FindEach:
|
273
|
+
Description: 'Prefer all.find_each over all.find.'
|
274
|
+
StyleGuide: 'https://github.com/bbatsov/rails-style-guide#find-each'
|
275
|
+
Enabled: true
|
276
|
+
Rails/HasAndBelongsToMany:
|
277
|
+
Description: 'Prefer has_many :through to has_and_belongs_to_many.'
|
278
|
+
StyleGuide: 'https://github.com/bbatsov/rails-style-guide#has-many-through'
|
279
|
+
Enabled: true
|
280
|
+
Rails/HttpPositionalArguments:
|
281
|
+
Description: 'Rails 5 only, disabled to keep Hound quiet'
|
282
|
+
Enabled: false
|
283
|
+
Rails/NotNullColumn:
|
284
|
+
Description: 'Do not add a NOT NULL column without a default value'
|
285
|
+
Enabled: false
|
286
|
+
Rails/Output:
|
287
|
+
Description: 'Checks for calls to puts, print, etc.'
|
288
|
+
Enabled: true
|
289
|
+
Rails/OutputSafety:
|
290
|
+
Description: 'The use of `html_safe` or `raw` may be a security risk.'
|
291
|
+
Enabled: true
|
292
|
+
Rails/PluralizationGrammar:
|
293
|
+
Description: 'Checks for incorrect grammar when using methods like `3.day.ago`.'
|
294
|
+
Enabled: true
|
295
|
+
Rails/ReadWriteAttribute:
|
296
|
+
Description: >-
|
297
|
+
Checks for read_attribute(:attr) and
|
298
|
+
write_attribute(:attr, val).
|
299
|
+
StyleGuide: 'https://github.com/bbatsov/rails-style-guide#read-attribute'
|
300
|
+
Enabled: true
|
301
|
+
Rails/RequestReferer:
|
302
|
+
Description: 'Use consistent syntax for request.referer.'
|
303
|
+
Enabled: true
|
304
|
+
Rails/SafeNavigation:
|
305
|
+
Description: "Use Ruby's safe navigation operator (`&.`) instead of `try!`"
|
306
|
+
Enabled: true
|
307
|
+
Rails/ScopeArgs:
|
308
|
+
Description: 'Checks the arguments of ActiveRecord scopes.'
|
309
|
+
Enabled: true
|
310
|
+
Rails/TimeZone:
|
311
|
+
Description: 'Checks the correct usage of time zone aware methods.'
|
312
|
+
StyleGuide: 'https://github.com/bbatsov/rails-style-guide#time'
|
313
|
+
Reference: 'http://danilenko.org/2012/7/6/rails_timezones'
|
314
|
+
Enabled: true
|
315
|
+
Rails/UniqBeforePluck:
|
316
|
+
Description: 'Prefer the use of uniq or distinct before pluck.'
|
317
|
+
Enabled: true
|
318
|
+
Rails/Validation:
|
319
|
+
Description: 'Use validates :attribute, hash of validations.'
|
320
|
+
Enabled: true
|
321
|
+
Security/JSONLoad:
|
322
|
+
Description : 'Prefer usage of JSON.parse'
|
323
|
+
Enabled: true
|
data/.hound.yml
ADDED
data/.rspec
ADDED
data/.rubocop.yml
ADDED
@@ -0,0 +1,41 @@
|
|
1
|
+
inherit_from:
|
2
|
+
- .hound-rubocop.yml
|
3
|
+
|
4
|
+
AllCops:
|
5
|
+
TargetRubyVersion: 2.4
|
6
|
+
Exclude:
|
7
|
+
- bin/*
|
8
|
+
Layout/DotPosition:
|
9
|
+
Description: Checks the position of the dot in multi-line method calls.
|
10
|
+
StyleGuide: https://github.com/bbatsov/ruby-style-guide#consistent-multi-line-chains
|
11
|
+
Enabled: true
|
12
|
+
EnforcedStyle: leading
|
13
|
+
SupportedStyles:
|
14
|
+
- leading
|
15
|
+
- trailing
|
16
|
+
Metrics/BlockLength:
|
17
|
+
Enabled: false
|
18
|
+
Style/AndOr:
|
19
|
+
Description: Use &&/|| instead of and/or.
|
20
|
+
StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-and-or-or
|
21
|
+
Enabled: true
|
22
|
+
EnforcedStyle: conditionals
|
23
|
+
SupportedStyles:
|
24
|
+
- always
|
25
|
+
- conditionals
|
26
|
+
Style/ClassAndModuleChildren:
|
27
|
+
Enabled: true
|
28
|
+
EnforcedStyle: nested
|
29
|
+
SupportedStyles:
|
30
|
+
- compact
|
31
|
+
- nested
|
32
|
+
Style/MultilineIfModifier:
|
33
|
+
Enabled: false
|
34
|
+
Style/StringLiterals:
|
35
|
+
Description: Checks if uses of quotes match the configured preference.
|
36
|
+
StyleGuide: https://github.com/bbatsov/ruby-style-guide#consistent-string-literals
|
37
|
+
Enabled: true
|
38
|
+
EnforcedStyle: single_quotes
|
39
|
+
SupportedStyles:
|
40
|
+
- single_quotes
|
41
|
+
- double_quotes
|
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,74 @@
|
|
1
|
+
# Contributor Covenant Code of Conduct
|
2
|
+
|
3
|
+
## Our Pledge
|
4
|
+
|
5
|
+
In the interest of fostering an open and welcoming environment, we as
|
6
|
+
contributors and maintainers pledge to making participation in our project and
|
7
|
+
our community a harassment-free experience for everyone, regardless of age, body
|
8
|
+
size, disability, ethnicity, gender identity and expression, level of experience,
|
9
|
+
nationality, personal appearance, race, religion, or sexual identity and
|
10
|
+
orientation.
|
11
|
+
|
12
|
+
## Our Standards
|
13
|
+
|
14
|
+
Examples of behavior that contributes to creating a positive environment
|
15
|
+
include:
|
16
|
+
|
17
|
+
* Using welcoming and inclusive language
|
18
|
+
* Being respectful of differing viewpoints and experiences
|
19
|
+
* Gracefully accepting constructive criticism
|
20
|
+
* Focusing on what is best for the community
|
21
|
+
* Showing empathy towards other community members
|
22
|
+
|
23
|
+
Examples of unacceptable behavior by participants include:
|
24
|
+
|
25
|
+
* The use of sexualized language or imagery and unwelcome sexual attention or
|
26
|
+
advances
|
27
|
+
* Trolling, insulting/derogatory comments, and personal or political attacks
|
28
|
+
* Public or private harassment
|
29
|
+
* Publishing others' private information, such as a physical or electronic
|
30
|
+
address, without explicit permission
|
31
|
+
* Other conduct which could reasonably be considered inappropriate in a
|
32
|
+
professional setting
|
33
|
+
|
34
|
+
## Our Responsibilities
|
35
|
+
|
36
|
+
Project maintainers are responsible for clarifying the standards of acceptable
|
37
|
+
behavior and are expected to take appropriate and fair corrective action in
|
38
|
+
response to any instances of unacceptable behavior.
|
39
|
+
|
40
|
+
Project maintainers have the right and responsibility to remove, edit, or
|
41
|
+
reject comments, commits, code, wiki edits, issues, and other contributions
|
42
|
+
that are not aligned to this Code of Conduct, or to ban temporarily or
|
43
|
+
permanently any contributor for other behaviors that they deem inappropriate,
|
44
|
+
threatening, offensive, or harmful.
|
45
|
+
|
46
|
+
## Scope
|
47
|
+
|
48
|
+
This Code of Conduct applies both within project spaces and in public spaces
|
49
|
+
when an individual is representing the project or its community. Examples of
|
50
|
+
representing a project or community include using an official project e-mail
|
51
|
+
address, posting via an official social media account, or acting as an appointed
|
52
|
+
representative at an online or offline event. Representation of a project may be
|
53
|
+
further defined and clarified by project maintainers.
|
54
|
+
|
55
|
+
## Enforcement
|
56
|
+
|
57
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
58
|
+
reported by contacting the project team at joe@westernmilling.com. All
|
59
|
+
complaints will be reviewed and investigated and will result in a response that
|
60
|
+
is deemed necessary and appropriate to the circumstances. The project team is
|
61
|
+
obligated to maintain confidentiality with regard to the reporter of an incident.
|
62
|
+
Further details of specific enforcement policies may be posted separately.
|
63
|
+
|
64
|
+
Project maintainers who do not follow or enforce the Code of Conduct in good
|
65
|
+
faith may face temporary or permanent repercussions as determined by other
|
66
|
+
members of the project's leadership.
|
67
|
+
|
68
|
+
## Attribution
|
69
|
+
|
70
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
|
71
|
+
available at [http://contributor-covenant.org/version/1/4][version]
|
72
|
+
|
73
|
+
[homepage]: http://contributor-covenant.org
|
74
|
+
[version]: http://contributor-covenant.org/version/1/4/
|
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,96 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
people_doc (0.1.0)
|
5
|
+
httparty
|
6
|
+
|
7
|
+
GEM
|
8
|
+
remote: https://rubygems.org/
|
9
|
+
specs:
|
10
|
+
activesupport (5.2.0)
|
11
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
12
|
+
i18n (>= 0.7, < 2)
|
13
|
+
minitest (~> 5.1)
|
14
|
+
tzinfo (~> 1.1)
|
15
|
+
addressable (2.5.2)
|
16
|
+
public_suffix (>= 2.0.2, < 4.0)
|
17
|
+
ast (2.4.0)
|
18
|
+
concurrent-ruby (1.0.5)
|
19
|
+
crack (0.4.3)
|
20
|
+
safe_yaml (~> 1.0.0)
|
21
|
+
diff-lcs (1.3)
|
22
|
+
docile (1.3.0)
|
23
|
+
factory_bot (4.8.2)
|
24
|
+
activesupport (>= 3.0.0)
|
25
|
+
faker (1.8.7)
|
26
|
+
i18n (>= 0.7)
|
27
|
+
hashdiff (0.3.7)
|
28
|
+
httparty (0.16.2)
|
29
|
+
multi_xml (>= 0.5.2)
|
30
|
+
i18n (1.0.1)
|
31
|
+
concurrent-ruby (~> 1.0)
|
32
|
+
json (2.1.0)
|
33
|
+
minitest (5.11.3)
|
34
|
+
multi_xml (0.6.0)
|
35
|
+
parallel (1.12.1)
|
36
|
+
parser (2.5.1.0)
|
37
|
+
ast (~> 2.4.0)
|
38
|
+
powerpack (0.1.1)
|
39
|
+
public_suffix (3.0.2)
|
40
|
+
rainbow (3.0.0)
|
41
|
+
rake (10.5.0)
|
42
|
+
rspec (3.7.0)
|
43
|
+
rspec-core (~> 3.7.0)
|
44
|
+
rspec-expectations (~> 3.7.0)
|
45
|
+
rspec-mocks (~> 3.7.0)
|
46
|
+
rspec-core (3.7.1)
|
47
|
+
rspec-support (~> 3.7.0)
|
48
|
+
rspec-expectations (3.7.0)
|
49
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
50
|
+
rspec-support (~> 3.7.0)
|
51
|
+
rspec-mocks (3.7.0)
|
52
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
53
|
+
rspec-support (~> 3.7.0)
|
54
|
+
rspec-support (3.7.1)
|
55
|
+
rspec_junit_formatter (0.3.0)
|
56
|
+
rspec-core (>= 2, < 4, != 2.12.0)
|
57
|
+
rubocop (0.54.0)
|
58
|
+
parallel (~> 1.10)
|
59
|
+
parser (>= 2.5)
|
60
|
+
powerpack (~> 0.1)
|
61
|
+
rainbow (>= 2.2.2, < 4.0)
|
62
|
+
ruby-progressbar (~> 1.7)
|
63
|
+
unicode-display_width (~> 1.0, >= 1.0.1)
|
64
|
+
ruby-progressbar (1.9.0)
|
65
|
+
safe_yaml (1.0.4)
|
66
|
+
simplecov (0.16.1)
|
67
|
+
docile (~> 1.1)
|
68
|
+
json (>= 1.8, < 3)
|
69
|
+
simplecov-html (~> 0.10.0)
|
70
|
+
simplecov-html (0.10.2)
|
71
|
+
thread_safe (0.3.6)
|
72
|
+
tzinfo (1.2.5)
|
73
|
+
thread_safe (~> 0.1)
|
74
|
+
unicode-display_width (1.3.2)
|
75
|
+
webmock (3.4.0)
|
76
|
+
addressable (>= 2.3.6)
|
77
|
+
crack (>= 0.3.2)
|
78
|
+
hashdiff
|
79
|
+
|
80
|
+
PLATFORMS
|
81
|
+
ruby
|
82
|
+
|
83
|
+
DEPENDENCIES
|
84
|
+
bundler (~> 1.16)
|
85
|
+
factory_bot
|
86
|
+
faker
|
87
|
+
people_doc!
|
88
|
+
rake (~> 10.0)
|
89
|
+
rspec (~> 3.0)
|
90
|
+
rspec_junit_formatter
|
91
|
+
rubocop (= 0.54.0)
|
92
|
+
simplecov
|
93
|
+
webmock
|
94
|
+
|
95
|
+
BUNDLED WITH
|
96
|
+
1.16.1
|
data/LICENSE
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
MIT License
|
2
|
+
|
3
|
+
Copyright (c) 2018 Western Milling
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
SOFTWARE.
|