Skip to content

Commit a97c985

Browse files
committed
Initial commit from code generation
0 parents  commit a97c985

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+6719
-0
lines changed

.github/workflows/test.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Test
2+
on: [pull_request]
3+
4+
jobs:
5+
build-and-test:
6+
name: Build and Test
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: Check out code
10+
uses: actions/checkout@v2
11+
12+
- name: Setup Ruby
13+
uses: ruby/setup-ruby@v1
14+
with:
15+
ruby-version: 2.6.x
16+
17+
- name: Install Ruby Dependencies
18+
run: bundle install --path vendor/bundle
19+
20+
- name: Run RSpec
21+
run: bundle exec rspec
22+
23+
- name: Build Gem
24+
run: gem build patch_ruby.gemspec
25+
26+
- name: Install Gem
27+
run: gem install patch_ruby.gemspec

.gitignore

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# Generated by: https://openapi-generator.tech
2+
#
3+
4+
*.gem
5+
*.rbc
6+
/.config
7+
/coverage/
8+
/InstalledFiles
9+
/pkg/
10+
/spec/reports/
11+
/spec/examples.txt
12+
/test/tmp/
13+
/test/version_tmp/
14+
/tmp/
15+
16+
## Specific to RubyMotion:
17+
.dat*
18+
.repl_history
19+
build/
20+
21+
## Documentation cache and generated files:
22+
/.yardoc/
23+
/_yardoc/
24+
/doc/
25+
/rdoc/
26+
27+
## Environment normalization:
28+
/.bundle/
29+
/vendor/bundle
30+
/lib/bundler/man/
31+
32+
# for a library or gem, you might want to ignore these files since the code is
33+
# intended to run in multiple environments; otherwise, check them in:
34+
# Gemfile.lock
35+
# .ruby-version
36+
# .ruby-gemset
37+
38+
# unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
39+
.rvmrc
40+
41+
# OpenAPI generator ignores are defined alongside the generation scripts
42+
.openapi-generator-ignore
43+
/.openapi-generator/

.rspec

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
--color
2+
--require spec_helper

.rubocop.yml

Lines changed: 148 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,148 @@
1+
# This file is based on https://github.com/rails/rails/blob/master/.rubocop.yml (MIT license)
2+
# Automatically generated by OpenAPI Generator (https://openapi-generator.tech)
3+
AllCops:
4+
TargetRubyVersion: 2.4
5+
# RuboCop has a bunch of cops enabled by default. This setting tells RuboCop
6+
# to ignore them, so only the ones explicitly set in this file are enabled.
7+
DisabledByDefault: true
8+
Exclude:
9+
- '**/templates/**/*'
10+
- '**/vendor/**/*'
11+
- 'actionpack/lib/action_dispatch/journey/parser.rb'
12+
13+
# Prefer &&/|| over and/or.
14+
Style/AndOr:
15+
Enabled: true
16+
17+
# Align `when` with `case`.
18+
Layout/CaseIndentation:
19+
Enabled: true
20+
21+
# Align comments with method definitions.
22+
Layout/CommentIndentation:
23+
Enabled: true
24+
25+
Layout/ElseAlignment:
26+
Enabled: true
27+
28+
Layout/EmptyLineAfterMagicComment:
29+
Enabled: true
30+
31+
# In a regular class definition, no empty lines around the body.
32+
Layout/EmptyLinesAroundClassBody:
33+
Enabled: true
34+
35+
# In a regular method definition, no empty lines around the body.
36+
Layout/EmptyLinesAroundMethodBody:
37+
Enabled: true
38+
39+
# In a regular module definition, no empty lines around the body.
40+
Layout/EmptyLinesAroundModuleBody:
41+
Enabled: true
42+
43+
Layout/FirstArgumentIndentation:
44+
Enabled: true
45+
46+
# Use Ruby >= 1.9 syntax for hashes. Prefer { a: :b } over { :a => :b }.
47+
Style/HashSyntax:
48+
Enabled: false
49+
50+
# Method definitions after `private` or `protected` isolated calls need one
51+
# extra level of indentation.
52+
Layout/IndentationConsistency:
53+
Enabled: true
54+
EnforcedStyle: indented_internal_methods
55+
56+
# Two spaces, no tabs (for indentation).
57+
Layout/IndentationWidth:
58+
Enabled: true
59+
60+
Layout/LeadingCommentSpace:
61+
Enabled: true
62+
63+
Layout/SpaceAfterColon:
64+
Enabled: true
65+
66+
Layout/SpaceAfterComma:
67+
Enabled: true
68+
69+
Layout/SpaceAroundEqualsInParameterDefault:
70+
Enabled: true
71+
72+
Layout/SpaceAroundKeyword:
73+
Enabled: true
74+
75+
Layout/SpaceAroundOperators:
76+
Enabled: true
77+
78+
Layout/SpaceBeforeComma:
79+
Enabled: true
80+
81+
Layout/SpaceBeforeFirstArg:
82+
Enabled: true
83+
84+
Style/DefWithParentheses:
85+
Enabled: true
86+
87+
# Defining a method with parameters needs parentheses.
88+
Style/MethodDefParentheses:
89+
Enabled: true
90+
91+
Style/FrozenStringLiteralComment:
92+
Enabled: false
93+
EnforcedStyle: always
94+
95+
# Use `foo {}` not `foo{}`.
96+
Layout/SpaceBeforeBlockBraces:
97+
Enabled: true
98+
99+
# Use `foo { bar }` not `foo {bar}`.
100+
Layout/SpaceInsideBlockBraces:
101+
Enabled: true
102+
103+
# Use `{ a: 1 }` not `{a:1}`.
104+
Layout/SpaceInsideHashLiteralBraces:
105+
Enabled: true
106+
107+
Layout/SpaceInsideParens:
108+
Enabled: true
109+
110+
# Check quotes usage according to lint rule below.
111+
#Style/StringLiterals:
112+
# Enabled: true
113+
# EnforcedStyle: single_quotes
114+
115+
# Detect hard tabs, no hard tabs.
116+
Layout/Tab:
117+
Enabled: true
118+
119+
# Blank lines should not have any spaces.
120+
Layout/TrailingEmptyLines:
121+
Enabled: true
122+
123+
# No trailing whitespace.
124+
Layout/TrailingWhitespace:
125+
Enabled: false
126+
127+
# Use quotes for string literals when they are enough.
128+
Style/RedundantPercentQ:
129+
Enabled: true
130+
131+
# Align `end` with the matching keyword or starting expression except for
132+
# assignments, where it should be aligned with the LHS.
133+
Layout/EndAlignment:
134+
Enabled: true
135+
EnforcedStyleAlignWith: variable
136+
AutoCorrect: true
137+
138+
# Use my_method(my_arg) not my_method( my_arg ) or my_method my_arg.
139+
Lint/RequireParentheses:
140+
Enabled: true
141+
142+
Style/RedundantReturn:
143+
Enabled: true
144+
AllowMultipleReturnValues: true
145+
146+
Style/Semicolon:
147+
Enabled: true
148+
AllowAsExpressionSeparator: true

Gemfile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
source 'https://rubygems.org'
2+
3+
gemspec
4+
5+
group :development, :test do
6+
gem 'rake', '~> 13.0.1'
7+
gem 'pry-byebug'
8+
gem 'rubocop', '~> 0.66.0'
9+
end

Gemfile.lock

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
PATH
2+
remote: .
3+
specs:
4+
patch_ruby (1.0.0)
5+
json (~> 2.1, >= 2.1.0)
6+
typhoeus (~> 1.0, >= 1.0.1)
7+
8+
GEM
9+
remote: https://rubygems.org/
10+
specs:
11+
ast (2.4.1)
12+
byebug (11.1.3)
13+
coderay (1.1.3)
14+
diff-lcs (1.4.3)
15+
ethon (0.12.0)
16+
ffi (>= 1.3.0)
17+
ffi (1.13.1)
18+
jaro_winkler (1.5.4)
19+
json (2.3.0)
20+
method_source (1.0.0)
21+
parallel (1.19.2)
22+
parser (2.7.1.4)
23+
ast (~> 2.4.1)
24+
pry (0.13.1)
25+
coderay (~> 1.1)
26+
method_source (~> 1.0)
27+
pry-byebug (3.9.0)
28+
byebug (~> 11.0)
29+
pry (~> 0.13.0)
30+
psych (3.1.0)
31+
rainbow (3.0.0)
32+
rake (13.0.1)
33+
rspec (3.9.0)
34+
rspec-core (~> 3.9.0)
35+
rspec-expectations (~> 3.9.0)
36+
rspec-mocks (~> 3.9.0)
37+
rspec-core (3.9.2)
38+
rspec-support (~> 3.9.3)
39+
rspec-expectations (3.9.2)
40+
diff-lcs (>= 1.2.0, < 2.0)
41+
rspec-support (~> 3.9.0)
42+
rspec-mocks (3.9.1)
43+
diff-lcs (>= 1.2.0, < 2.0)
44+
rspec-support (~> 3.9.0)
45+
rspec-support (3.9.3)
46+
rubocop (0.66.0)
47+
jaro_winkler (~> 1.5.1)
48+
parallel (~> 1.10)
49+
parser (>= 2.5, != 2.5.1.1)
50+
psych (>= 3.1.0)
51+
rainbow (>= 2.2.2, < 4.0)
52+
ruby-progressbar (~> 1.7)
53+
unicode-display_width (>= 1.4.0, < 1.6)
54+
ruby-progressbar (1.10.1)
55+
typhoeus (1.4.0)
56+
ethon (>= 0.9.0)
57+
unicode-display_width (1.5.0)
58+
59+
PLATFORMS
60+
ruby
61+
62+
DEPENDENCIES
63+
patch_ruby!
64+
pry-byebug
65+
rake (~> 13.0.1)
66+
rspec (~> 3.6, >= 3.6.0)
67+
rubocop (~> 0.66.0)
68+
69+
BUNDLED WITH
70+
1.17.2

0 commit comments

Comments
 (0)