omniauth-forge 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.git-hooks/pre_push/rubocop.rb +18 -0
- data/.gitignore +12 -0
- data/.overcommit.yml +17 -0
- data/.rspec +3 -0
- data/.rubocop-http---relaxed-ruby-style-rubocop-yml +153 -0
- data/.rubocop.yml +219 -0
- data/.travis.yml +6 -0
- data/CHANGELOG.md +0 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +9 -0
- data/Gemfile.lock +206 -0
- data/LICENSE.txt +21 -0
- data/README.md +57 -0
- data/Rakefile +8 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/examples/sinatra.rb +23 -0
- data/lib/omniauth-forge.rb +20 -0
- data/lib/omniauth/strategies/forge.rb +55 -0
- data/lib/omniauth_forge/version.rb +7 -0
- data/omniauth_forge.gemspec +56 -0
- metadata +403 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 030c57825f02ede7d28d7b5e0148f4d4f7ad889f4a663e40ad356696b3e0bfda
|
4
|
+
data.tar.gz: e981ae3f5c43d3453b402800b182f7becefc9d22ca49406f08811a87c37fed3f
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 448329592c1df2d6e731ef6b0e3ef13fa77fa6bb2e35a11bb23d8c67b7d8a5243076fbc5c33276e4ca7686d16c27af594b7412e2dc1a3674502b502e967c5d8b
|
7
|
+
data.tar.gz: 91cb66df43ddf40cb03e47310aa722c2b85a1d7b806b2ac48812bdc66a8fdee267fdffef9fd1898bffaa7e1b882462b7e7e20a3a49a6cfacd0d2daee5650ab48
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Overcommit
|
4
|
+
module Hook
|
5
|
+
module PrePush
|
6
|
+
# Runs `rubocop` on every files.
|
7
|
+
class Rubocop < Base
|
8
|
+
def run
|
9
|
+
result = execute(['rubocop', '-P'])
|
10
|
+
return :pass if result.success?
|
11
|
+
|
12
|
+
output = result.stdout + result.stderr
|
13
|
+
[:fail, output]
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
data/.gitignore
ADDED
data/.overcommit.yml
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
PreCommit:
|
2
|
+
RuboCop:
|
3
|
+
enabled: true
|
4
|
+
command: ['rubocop', '-P']
|
5
|
+
quiet: false
|
6
|
+
BundleOutdated:
|
7
|
+
enabled: true
|
8
|
+
BundleAudit:
|
9
|
+
enabled: true
|
10
|
+
command: ['bundle', 'audit', 'check', '--ignore', 'CVE-2015-9284']
|
11
|
+
PrePush:
|
12
|
+
RSpec:
|
13
|
+
enabled: true
|
14
|
+
command: ['rspec', '-f', 'p'] # Invoke within Bundler context
|
15
|
+
quiet: false
|
16
|
+
Rubocop:
|
17
|
+
enabled: true
|
data/.rspec
ADDED
@@ -0,0 +1,153 @@
|
|
1
|
+
# Relaxed.Ruby.Style
|
2
|
+
## Version 2.5
|
3
|
+
|
4
|
+
Style/Alias:
|
5
|
+
Enabled: false
|
6
|
+
StyleGuide: https://relaxed.ruby.style/#stylealias
|
7
|
+
|
8
|
+
Style/AsciiComments:
|
9
|
+
Enabled: false
|
10
|
+
StyleGuide: https://relaxed.ruby.style/#styleasciicomments
|
11
|
+
|
12
|
+
Style/BeginBlock:
|
13
|
+
Enabled: false
|
14
|
+
StyleGuide: https://relaxed.ruby.style/#stylebeginblock
|
15
|
+
|
16
|
+
Style/BlockDelimiters:
|
17
|
+
Enabled: false
|
18
|
+
StyleGuide: https://relaxed.ruby.style/#styleblockdelimiters
|
19
|
+
|
20
|
+
Style/CommentAnnotation:
|
21
|
+
Enabled: false
|
22
|
+
StyleGuide: https://relaxed.ruby.style/#stylecommentannotation
|
23
|
+
|
24
|
+
Style/Documentation:
|
25
|
+
Enabled: false
|
26
|
+
StyleGuide: https://relaxed.ruby.style/#styledocumentation
|
27
|
+
|
28
|
+
Layout/DotPosition:
|
29
|
+
Enabled: false
|
30
|
+
StyleGuide: https://relaxed.ruby.style/#layoutdotposition
|
31
|
+
|
32
|
+
Style/DoubleNegation:
|
33
|
+
Enabled: false
|
34
|
+
StyleGuide: https://relaxed.ruby.style/#styledoublenegation
|
35
|
+
|
36
|
+
Style/EndBlock:
|
37
|
+
Enabled: false
|
38
|
+
StyleGuide: https://relaxed.ruby.style/#styleendblock
|
39
|
+
|
40
|
+
Style/FormatString:
|
41
|
+
Enabled: false
|
42
|
+
StyleGuide: https://relaxed.ruby.style/#styleformatstring
|
43
|
+
|
44
|
+
Style/IfUnlessModifier:
|
45
|
+
Enabled: false
|
46
|
+
StyleGuide: https://relaxed.ruby.style/#styleifunlessmodifier
|
47
|
+
|
48
|
+
Style/Lambda:
|
49
|
+
Enabled: false
|
50
|
+
StyleGuide: https://relaxed.ruby.style/#stylelambda
|
51
|
+
|
52
|
+
Style/ModuleFunction:
|
53
|
+
Enabled: false
|
54
|
+
StyleGuide: https://relaxed.ruby.style/#stylemodulefunction
|
55
|
+
|
56
|
+
Style/MultilineBlockChain:
|
57
|
+
Enabled: false
|
58
|
+
StyleGuide: https://relaxed.ruby.style/#stylemultilineblockchain
|
59
|
+
|
60
|
+
Style/NegatedIf:
|
61
|
+
Enabled: false
|
62
|
+
StyleGuide: https://relaxed.ruby.style/#stylenegatedif
|
63
|
+
|
64
|
+
Style/NegatedWhile:
|
65
|
+
Enabled: false
|
66
|
+
StyleGuide: https://relaxed.ruby.style/#stylenegatedwhile
|
67
|
+
|
68
|
+
Style/NumericPredicate:
|
69
|
+
Enabled: false
|
70
|
+
StyleGuide: https://relaxed.ruby.style/#stylenumericpredicate
|
71
|
+
|
72
|
+
Style/ParallelAssignment:
|
73
|
+
Enabled: false
|
74
|
+
StyleGuide: https://relaxed.ruby.style/#styleparallelassignment
|
75
|
+
|
76
|
+
Style/PercentLiteralDelimiters:
|
77
|
+
Enabled: false
|
78
|
+
StyleGuide: https://relaxed.ruby.style/#stylepercentliteraldelimiters
|
79
|
+
|
80
|
+
Style/PerlBackrefs:
|
81
|
+
Enabled: false
|
82
|
+
StyleGuide: https://relaxed.ruby.style/#styleperlbackrefs
|
83
|
+
|
84
|
+
Style/Semicolon:
|
85
|
+
Enabled: false
|
86
|
+
StyleGuide: https://relaxed.ruby.style/#stylesemicolon
|
87
|
+
|
88
|
+
Style/SignalException:
|
89
|
+
Enabled: false
|
90
|
+
StyleGuide: https://relaxed.ruby.style/#stylesignalexception
|
91
|
+
|
92
|
+
Style/SingleLineBlockParams:
|
93
|
+
Enabled: false
|
94
|
+
StyleGuide: https://relaxed.ruby.style/#stylesinglelineblockparams
|
95
|
+
|
96
|
+
Style/SingleLineMethods:
|
97
|
+
Enabled: false
|
98
|
+
StyleGuide: https://relaxed.ruby.style/#stylesinglelinemethods
|
99
|
+
|
100
|
+
Layout/SpaceBeforeBlockBraces:
|
101
|
+
Enabled: false
|
102
|
+
StyleGuide: https://relaxed.ruby.style/#layoutspacebeforeblockbraces
|
103
|
+
|
104
|
+
Layout/SpaceInsideParens:
|
105
|
+
Enabled: false
|
106
|
+
StyleGuide: https://relaxed.ruby.style/#layoutspaceinsideparens
|
107
|
+
|
108
|
+
Style/SpecialGlobalVars:
|
109
|
+
Enabled: false
|
110
|
+
StyleGuide: https://relaxed.ruby.style/#stylespecialglobalvars
|
111
|
+
|
112
|
+
Style/StringLiterals:
|
113
|
+
Enabled: false
|
114
|
+
StyleGuide: https://relaxed.ruby.style/#stylestringliterals
|
115
|
+
|
116
|
+
Style/TrailingCommaInArguments:
|
117
|
+
Enabled: false
|
118
|
+
StyleGuide: https://relaxed.ruby.style/#styletrailingcommainarguments
|
119
|
+
|
120
|
+
Style/TrailingCommaInArrayLiteral:
|
121
|
+
Enabled: false
|
122
|
+
StyleGuide: https://relaxed.ruby.style/#styletrailingcommainarrayliteral
|
123
|
+
|
124
|
+
Style/TrailingCommaInHashLiteral:
|
125
|
+
Enabled: false
|
126
|
+
StyleGuide: https://relaxed.ruby.style/#styletrailingcommainhashliteral
|
127
|
+
|
128
|
+
Style/SymbolArray:
|
129
|
+
Enabled: false
|
130
|
+
StyleGuide: http://relaxed.ruby.style/#stylesymbolarray
|
131
|
+
|
132
|
+
Style/WhileUntilModifier:
|
133
|
+
Enabled: false
|
134
|
+
StyleGuide: https://relaxed.ruby.style/#stylewhileuntilmodifier
|
135
|
+
|
136
|
+
Style/WordArray:
|
137
|
+
Enabled: false
|
138
|
+
StyleGuide: https://relaxed.ruby.style/#stylewordarray
|
139
|
+
|
140
|
+
Lint/AmbiguousRegexpLiteral:
|
141
|
+
Enabled: false
|
142
|
+
StyleGuide: https://relaxed.ruby.style/#lintambiguousregexpliteral
|
143
|
+
|
144
|
+
Lint/AssignmentInCondition:
|
145
|
+
Enabled: false
|
146
|
+
StyleGuide: https://relaxed.ruby.style/#lintassignmentincondition
|
147
|
+
|
148
|
+
Layout/LineLength:
|
149
|
+
Enabled: false
|
150
|
+
|
151
|
+
Metrics:
|
152
|
+
Enabled: false
|
153
|
+
|
data/.rubocop.yml
ADDED
@@ -0,0 +1,219 @@
|
|
1
|
+
inherit_from:
|
2
|
+
- http://relaxed.ruby.style/rubocop.yml
|
3
|
+
|
4
|
+
require:
|
5
|
+
- rubocop-faker
|
6
|
+
- rubocop-performance
|
7
|
+
|
8
|
+
AllCops:
|
9
|
+
NewCops: enable
|
10
|
+
DisplayStyleGuide: true
|
11
|
+
DisplayCopNames: true
|
12
|
+
Exclude:
|
13
|
+
- 'db/schema.rb'
|
14
|
+
- 'bin/*'
|
15
|
+
- 'node_modules/**/*'
|
16
|
+
|
17
|
+
Naming/FileName:
|
18
|
+
Enabled: false
|
19
|
+
|
20
|
+
Gemspec/RequiredRubyVersion:
|
21
|
+
Enabled: false
|
22
|
+
|
23
|
+
Style/GlobalVars:
|
24
|
+
Enabled: false
|
25
|
+
|
26
|
+
Layout/DotPosition:
|
27
|
+
Enabled: true
|
28
|
+
EnforcedStyle: trailing
|
29
|
+
|
30
|
+
Style/TrailingCommaInHashLiteral:
|
31
|
+
Enabled: true
|
32
|
+
EnforcedStyleForMultiline: comma
|
33
|
+
|
34
|
+
Style/TrailingCommaInArrayLiteral:
|
35
|
+
Enabled: true
|
36
|
+
EnforcedStyleForMultiline: comma
|
37
|
+
|
38
|
+
Naming/ConstantName:
|
39
|
+
Enabled: false
|
40
|
+
|
41
|
+
Layout/MultilineArrayLineBreaks:
|
42
|
+
Enabled: true
|
43
|
+
|
44
|
+
Layout/MultilineHashKeyLineBreaks:
|
45
|
+
Enabled: true
|
46
|
+
|
47
|
+
Layout/MultilineMethodArgumentLineBreaks:
|
48
|
+
Enabled: true
|
49
|
+
|
50
|
+
Layout/FirstArrayElementLineBreak:
|
51
|
+
Enabled: true
|
52
|
+
|
53
|
+
Layout/FirstHashElementLineBreak:
|
54
|
+
Enabled: true
|
55
|
+
|
56
|
+
Layout/FirstMethodArgumentLineBreak:
|
57
|
+
Enabled: true
|
58
|
+
|
59
|
+
Layout/MultilineAssignmentLayout:
|
60
|
+
Enabled: true
|
61
|
+
|
62
|
+
Style/HashEachMethods:
|
63
|
+
Enabled: true
|
64
|
+
|
65
|
+
Style/HashTransformKeys:
|
66
|
+
Enabled: true
|
67
|
+
|
68
|
+
Style/HashTransformValues:
|
69
|
+
Enabled: true
|
70
|
+
|
71
|
+
Lint/RaiseException:
|
72
|
+
Enabled: true
|
73
|
+
|
74
|
+
Lint/StructNewOverride:
|
75
|
+
Enabled: true
|
76
|
+
|
77
|
+
Layout/SpaceAroundMethodCallOperator:
|
78
|
+
Enabled: true
|
79
|
+
|
80
|
+
Style/ExponentialNotation:
|
81
|
+
Enabled: true
|
82
|
+
|
83
|
+
# 0.83
|
84
|
+
Layout/EmptyLinesAroundAttributeAccessor:
|
85
|
+
Enabled: true
|
86
|
+
|
87
|
+
# 0.84
|
88
|
+
Lint/DeprecatedOpenSSLConstant:
|
89
|
+
Enabled: true
|
90
|
+
|
91
|
+
# 0.85
|
92
|
+
Lint/MixedRegexpCaptureTypes:
|
93
|
+
Enabled: true
|
94
|
+
|
95
|
+
Style/RedundantRegexpEscape:
|
96
|
+
Enabled: true
|
97
|
+
|
98
|
+
Style/RedundantRegexpCharacterClass:
|
99
|
+
Enabled: true
|
100
|
+
|
101
|
+
Style/SlicingWithRange:
|
102
|
+
Enabled: true
|
103
|
+
|
104
|
+
# 0.86
|
105
|
+
Style/RedundantFetchBlock:
|
106
|
+
Enabled: true
|
107
|
+
|
108
|
+
Style/BisectedAttrAccessor:
|
109
|
+
Enabled: true
|
110
|
+
|
111
|
+
Style/RedundantAssignment:
|
112
|
+
Enabled: true
|
113
|
+
|
114
|
+
# 0.87
|
115
|
+
Style/AccessorGrouping:
|
116
|
+
Enabled: true
|
117
|
+
|
118
|
+
# 0.88
|
119
|
+
Lint/DuplicateElsifCondition:
|
120
|
+
Enabled: true
|
121
|
+
|
122
|
+
Style/ArrayCoercion:
|
123
|
+
Enabled: true
|
124
|
+
|
125
|
+
Style/CaseLikeIf:
|
126
|
+
Enabled: true
|
127
|
+
|
128
|
+
Style/HashAsLastArrayItem:
|
129
|
+
Enabled: true
|
130
|
+
|
131
|
+
Style/HashLikeCase:
|
132
|
+
Enabled: true
|
133
|
+
|
134
|
+
Style/RedundantFileExtensionInRequire:
|
135
|
+
Enabled: true
|
136
|
+
|
137
|
+
# 0.89
|
138
|
+
Lint/BinaryOperatorWithIdenticalOperands:
|
139
|
+
Enabled: true
|
140
|
+
|
141
|
+
Lint/DuplicateRescueException:
|
142
|
+
Enabled: true
|
143
|
+
|
144
|
+
Lint/EmptyConditionalBody:
|
145
|
+
Enabled: true
|
146
|
+
|
147
|
+
Lint/FloatComparison:
|
148
|
+
Enabled: true
|
149
|
+
|
150
|
+
Lint/MissingSuper:
|
151
|
+
Enabled: true
|
152
|
+
|
153
|
+
Lint/OutOfRangeRegexpRef:
|
154
|
+
Enabled: true
|
155
|
+
|
156
|
+
Lint/SelfAssignment:
|
157
|
+
Enabled: true
|
158
|
+
|
159
|
+
Lint/TopLevelReturnWithArgument:
|
160
|
+
Enabled: true
|
161
|
+
|
162
|
+
Lint/UnreachableLoop:
|
163
|
+
Enabled: true
|
164
|
+
|
165
|
+
Style/ExplicitBlockArgument:
|
166
|
+
Enabled: true
|
167
|
+
|
168
|
+
Style/GlobalStdStream:
|
169
|
+
Enabled: true
|
170
|
+
|
171
|
+
Style/OptionalBooleanParameter:
|
172
|
+
Enabled: true
|
173
|
+
|
174
|
+
Style/SingleArgumentDig:
|
175
|
+
Enabled: true
|
176
|
+
|
177
|
+
Style/StringConcatenation:
|
178
|
+
Enabled: true
|
179
|
+
|
180
|
+
# Perf 1.7
|
181
|
+
Performance/AncestorsInclude:
|
182
|
+
Enabled: true
|
183
|
+
|
184
|
+
Performance/BigDecimalWithNumericArgument:
|
185
|
+
Enabled: true
|
186
|
+
|
187
|
+
Performance/RedundantSortBlock:
|
188
|
+
Enabled: true
|
189
|
+
|
190
|
+
Performance/RedundantStringChars:
|
191
|
+
Enabled: true
|
192
|
+
|
193
|
+
Performance/ReverseFirst:
|
194
|
+
Enabled: true
|
195
|
+
|
196
|
+
Performance/SortReverse:
|
197
|
+
Enabled: true
|
198
|
+
|
199
|
+
Performance/Squeeze:
|
200
|
+
Enabled: true
|
201
|
+
|
202
|
+
Performance/StringInclude:
|
203
|
+
Enabled: true
|
204
|
+
|
205
|
+
Layout/LineLength:
|
206
|
+
Enabled: true
|
207
|
+
Max: 120
|
208
|
+
AutoCorrect: true
|
209
|
+
IgnoredPatterns: ['^\s*#.*']
|
210
|
+
Exclude:
|
211
|
+
- Gemfile
|
212
|
+
- Guardfile
|
213
|
+
|
214
|
+
Metrics/BlockLength:
|
215
|
+
Exclude:
|
216
|
+
- 'spec/**/*.rb'
|
217
|
+
- 'Guardfile'
|
218
|
+
- 'config/routes.rb'
|
219
|
+
- 'config/environments/*.rb'
|
data/.travis.yml
ADDED
data/CHANGELOG.md
ADDED
File without changes
|
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 zaratan@hey.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 [https://contributor-covenant.org/version/1/4][version]
|
72
|
+
|
73
|
+
[homepage]: https://contributor-covenant.org
|
74
|
+
[version]: https://contributor-covenant.org/version/1/4/
|