apipie-rails 0.8.2 → 0.9.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 +4 -4
- data/.github/workflows/rubocop-challenger.yml +28 -0
- data/.rubocop.yml +37 -0
- data/.rubocop_todo.yml +2001 -0
- data/CHANGELOG.md +14 -0
- data/README.rst +2 -2
- data/Rakefile +0 -5
- data/apipie-rails.gemspec +10 -7
- data/lib/apipie/dsl_definition.rb +3 -3
- data/lib/apipie/extractor/writer.rb +2 -2
- data/lib/apipie/generator/generator.rb +2 -0
- data/lib/apipie/generator/swagger/swagger.rb +2 -0
- data/lib/apipie/generator/swagger/type.rb +16 -0
- data/lib/apipie/generator/swagger/type_extractor.rb +70 -0
- data/lib/apipie/generator/swagger/warning.rb +77 -0
- data/lib/apipie/generator/swagger/warning_writer.rb +48 -0
- data/lib/apipie/method_description/api.rb +12 -0
- data/lib/apipie/method_description/apis_service.rb +82 -0
- data/lib/apipie/method_description.rb +1 -46
- data/lib/apipie/swagger_generator.rb +76 -81
- data/lib/apipie/validator.rb +4 -0
- data/lib/apipie/version.rb +1 -1
- data/lib/apipie-rails.rb +9 -1
- data/lib/generators/apipie/install/install_generator.rb +1 -1
- data/lib/generators/apipie/views_generator.rb +1 -1
- data/lib/tasks/apipie.rake +2 -2
- data/spec/dummy/Rakefile +1 -1
- data/spec/dummy/components/test_engine/test_engine.gemspec +1 -1
- data/spec/dummy/config/application.rb +1 -1
- data/spec/dummy/config/boot.rb +2 -2
- data/spec/dummy/config/environment.rb +1 -1
- data/spec/dummy/config/routes.rb +1 -0
- data/spec/dummy/config.ru +1 -1
- data/spec/dummy/script/rails +2 -2
- data/spec/lib/application_spec.rb +1 -1
- data/spec/lib/extractor/writer_spec.rb +7 -5
- data/spec/lib/generator/swagger/type_extractor_spec.rb +61 -0
- data/spec/lib/generator/swagger/warning_spec.rb +51 -0
- data/spec/lib/generator/swagger/warning_writer_spec.rb +59 -0
- data/spec/lib/method_description/apis_service_spec.rb +60 -0
- data/spec/lib/rake_spec.rb +1 -1
- data/spec/lib/swagger/rake_swagger_spec.rb +4 -4
- data/spec/spec_helper.rb +4 -4
- metadata +39 -38
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c7d31dc4de8810bc43e818a9d26074a02ed00c2e7fcaec3add9283f595e29c5e
|
4
|
+
data.tar.gz: 7db1cd2f0f3be99a5c0507e8914b7ca1f27542df2e02cdc9275b7cd35371d384
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cd5be5e705f47e1b61849acc946d417526f172affafc8a2742e0dbf89a6fbdbb2ce553d0232cb03edb6ecabad7534d1a37a07bfa58ef336bc6416df8e77196f5
|
7
|
+
data.tar.gz: 7d51ceedcffc6cbea6a857bb4dc905a4122d11909ff5fef8ca0c040f77a3678e55e1df9af389612ce16abd19cc5caa6633bfe597dfb7a1ab09c1228973fad267
|
@@ -0,0 +1,28 @@
|
|
1
|
+
name: "RuboCop Challenge"
|
2
|
+
|
3
|
+
on:
|
4
|
+
schedule:
|
5
|
+
- cron: '30 23 * * 1,3,5' # Monday, Wednesday, Friday at 23:30 UTC
|
6
|
+
|
7
|
+
jobs:
|
8
|
+
create-pr:
|
9
|
+
name: Create Pull Request
|
10
|
+
runs-on: ubuntu-latest
|
11
|
+
env:
|
12
|
+
BUNDLE_GEMFILE: gemfiles/Gemfile.rails50
|
13
|
+
steps:
|
14
|
+
- uses: actions/checkout@v2
|
15
|
+
- name: Set up Ruby 2.7
|
16
|
+
uses: ruby/setup-ruby@v1
|
17
|
+
with:
|
18
|
+
ruby-version: 2.7.6
|
19
|
+
- name: Install bundler
|
20
|
+
run: gem install bundler
|
21
|
+
- name: Install gems
|
22
|
+
run: bundle install --jobs 4 --retry 3
|
23
|
+
- name: Set git configuration
|
24
|
+
run: git config remote.origin.url "git@github.com:Apipie/apipie-rails.git"
|
25
|
+
- name: Create RuboCop challenge pull request
|
26
|
+
env:
|
27
|
+
GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
28
|
+
run: bundle exec rubocop_challenger go --base-branch=master --email=rubocop@payrollhero.com --name="Rubocop Challenger" --mode=random
|
data/.rubocop.yml
ADDED
@@ -0,0 +1,37 @@
|
|
1
|
+
require:
|
2
|
+
- rubocop-rails
|
3
|
+
- rubocop-rspec
|
4
|
+
- rubocop-performance
|
5
|
+
|
6
|
+
inherit_from: .rubocop_todo.yml
|
7
|
+
|
8
|
+
Rails:
|
9
|
+
Enabled: true
|
10
|
+
|
11
|
+
AllCops:
|
12
|
+
NewCops: enable
|
13
|
+
|
14
|
+
Layout/LineLength:
|
15
|
+
Max: 140
|
16
|
+
Exclude:
|
17
|
+
- app/controllers/apipie/apipies_controller.rb
|
18
|
+
- lib/apipie/extractor/writer.rb
|
19
|
+
- lib/apipie/param_description.rb
|
20
|
+
- lib/apipie/response_description_adapter.rb
|
21
|
+
- lib/apipie/swagger_generator.rb
|
22
|
+
- lib/apipie/errors.rb
|
23
|
+
- lib/apipie/rspec/response_validation_helper.rb
|
24
|
+
- spec/controllers/users_controller_spec.rb
|
25
|
+
- spec/dummy/app/controllers/twitter_example_controller.rb
|
26
|
+
- spec/dummy/config/initializers/secret_token.rb
|
27
|
+
- spec/lib/application_spec.rb
|
28
|
+
- spec/lib/param_description_spec.rb
|
29
|
+
- spec/lib/swagger/response_validation_spec.rb
|
30
|
+
- spec/spec_helper.rb
|
31
|
+
|
32
|
+
Naming/PredicateName:
|
33
|
+
AllowedMethods:
|
34
|
+
- have_field?
|
35
|
+
|
36
|
+
Style/NumericPredicate:
|
37
|
+
Enabled: false
|