introspective_grape 0.4.3 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (40) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/lint.yml +23 -0
  3. data/.github/workflows/test.yml +18 -0
  4. data/.rubocop.yml +84 -1173
  5. data/.ruby-version +1 -1
  6. data/CHANGELOG.md +19 -0
  7. data/Gemfile +3 -5
  8. data/README.md +95 -63
  9. data/Rakefile +1 -6
  10. data/introspective_grape.gemspec +63 -51
  11. data/lib/introspective_grape/api.rb +167 -136
  12. data/lib/introspective_grape/camel_snake.rb +5 -3
  13. data/lib/introspective_grape/create_helpers.rb +3 -5
  14. data/lib/introspective_grape/doc.rb +19 -5
  15. data/lib/introspective_grape/filters.rb +98 -83
  16. data/lib/introspective_grape/formatter/camel_json.rb +2 -3
  17. data/lib/introspective_grape/helpers.rb +55 -48
  18. data/lib/introspective_grape/snake_params.rb +1 -2
  19. data/lib/introspective_grape/traversal.rb +33 -31
  20. data/lib/introspective_grape/validators.rb +23 -23
  21. data/lib/introspective_grape/version.rb +3 -1
  22. data/spec/dummy/Gemfile +5 -4
  23. data/spec/dummy/app/api/api_helpers.rb +1 -1
  24. data/spec/dummy/app/api/dummy/company_api.rb +1 -1
  25. data/spec/dummy/app/api/dummy/project_api.rb +1 -0
  26. data/spec/dummy/app/api/dummy/sessions.rb +1 -1
  27. data/spec/dummy/app/api/dummy_api.rb +8 -2
  28. data/spec/dummy/app/assets/config/manifest.js +4 -0
  29. data/spec/dummy/app/models/user.rb +1 -1
  30. data/spec/dummy/config/database.yml +1 -1
  31. data/spec/rails_helper.rb +1 -1
  32. metadata +147 -42
  33. data/.coveralls.yml +0 -2
  34. data/.travis.yml +0 -40
  35. data/bin/rails +0 -12
  36. data/gemfiles/Gemfile.rails.5.0.0 +0 -14
  37. data/gemfiles/Gemfile.rails.5.0.1 +0 -14
  38. data/gemfiles/Gemfile.rails.5.1.0 +0 -14
  39. data/gemfiles/Gemfile.rails.5.2.0 +0 -14
  40. data/gemfiles/Gemfile.rails.master +0 -14
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dd8453af52e6616722a7899ace0e7b79c9e4129dea63565c99f8f7ba94f77ee9
4
- data.tar.gz: 0e2c0a47ab78f79d37d9a9fec9c861c82421303205084b9168eff6f3a239af2a
3
+ metadata.gz: d15f31a850811633ad737c414309293b36b8cacb15508468e5155a5b6aec2bed
4
+ data.tar.gz: 17b3a773228928342af7c692f2ac62352cd1bcdda2695351cae9cf56c449fc82
5
5
  SHA512:
6
- metadata.gz: b51e598d1078c423c809c68f75cb52079920ac06f4d4cc634814575c8f24af28296e05bc0de1e77383ece29ef30f03ce90c14d203dda51c6ad510a1fafadb7a3
7
- data.tar.gz: d2916cb32f455dba2f083661c6c90a9190c54b9c10b8f5c8dc1c159f11a1a4227ae54c6b9878beb39a4cca7631095fc1539c4c0437dfc89a239880c854671dae
6
+ metadata.gz: acf6d1def5d4df6c3438e67d1743c6dfe86a00b44044ce8b709e7800bca20096180084a0bb994b77535c4a956997df25c4dde8349f63b7831d17fe494e900c04
7
+ data.tar.gz: 509de38fd9a074d493caf0389bdb10d8bfad3fe4a145e3f1c2a9ff30b33d2efc2fbfa466f6e743d081fa678035f05214b8c71f6305562f34a65faac530f1c96b
@@ -0,0 +1,23 @@
1
+ name: lint
2
+ on: push
3
+
4
+ jobs:
5
+ linters:
6
+ name: Linters
7
+ runs-on: ubuntu-latest
8
+ steps:
9
+ - name: Checkout code
10
+ uses: actions/checkout@v2
11
+
12
+ - name: Setup Ruby and install gems
13
+ uses: ruby/setup-ruby@v1
14
+ with:
15
+ bundler-cache: true
16
+
17
+ - name: Run linters
18
+ run: |
19
+ bundle exec rubocop --parallel
20
+ - name: Run security checks
21
+ run: |
22
+ bundle exec bundler-audit --update
23
+ bundle exec brakeman -q -w2
@@ -0,0 +1,18 @@
1
+ name: test
2
+ on: push
3
+
4
+ jobs:
5
+ tests:
6
+ name: Tests
7
+ runs-on: ubuntu-latest
8
+ steps:
9
+ - name: Checkout code
10
+ uses: actions/checkout@v2
11
+
12
+ - name: Setup Ruby and install gems
13
+ uses: ruby/setup-ruby@v1
14
+ with:
15
+ bundler-cache: true
16
+
17
+ - name: Run tests
18
+ run: bundle exec rspec