Skip to content

Commit c607486

Browse files
authored
[P4M-331] Update forked rspec_api_documentation gem
2 parents 90f84c8 + d32bf17 commit c607486

File tree

15 files changed

+108
-206
lines changed

15 files changed

+108
-206
lines changed

.github/dependabot.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "github-actions"
4+
directory: "/"
5+
schedule:
6+
# Check for updates to GitHub Actions every weekday
7+
interval: "daily"
8+
- package-ecosystem: bundler
9+
directory: "/"
10+
schedule:
11+
interval: daily
12+
time: "11:00"
13+
open-pull-requests-limit: 10

.github/workflows/ci.yml

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
---
2+
3+
name: CI
4+
5+
on: [push, pull_request]
6+
7+
jobs:
8+
test:
9+
name: "Testing"
10+
runs-on: ubuntu-latest
11+
strategy:
12+
fail-fast: false
13+
matrix:
14+
include:
15+
# Recent Rubies and Rails
16+
- ruby-version: '3.2'
17+
- ruby-version: '3.1'
18+
- ruby-version: '3.0'
19+
- ruby-version: '2.7'
20+
- ruby-version: '2.6'
21+
- ruby-version: '2.6'
22+
- ruby-version: '2.7'
23+
- ruby-version: '2.6'
24+
# Old Rubies and Rails
25+
- ruby-version: '2.5'
26+
bundler: '1'
27+
- ruby-version: '2.4'
28+
bundler: '1'
29+
- ruby-version: '2.4'
30+
bundler: '1'
31+
# Failing with a stack trace in active support
32+
# - ruby-version: '2.4'
33+
# rails-version: '4.1'
34+
# bundler: '1'
35+
36+
continue-on-error: "${{ endsWith(matrix.ruby-version, 'head') }}"
37+
38+
env:
39+
CI: "1"
40+
41+
steps:
42+
- name: "Checkout Code"
43+
uses: "actions/checkout@v4"
44+
timeout-minutes: 5
45+
with:
46+
fetch-depth: 0
47+
48+
# - name: Install required libs
49+
# run: |
50+
# sudo apt-get -yqq install libsqlite3-dev
51+
52+
- name: "Build Ruby"
53+
uses: ruby/setup-ruby@v1
54+
with:
55+
ruby-version: "${{ matrix.ruby-version }}"
56+
bundler: "${{ matrix.bundler || 2 }}"
57+
bundler-cache: true
58+
# env:
59+
# RAILS_VERSION: ${{ matrix.rails-version }}
60+
61+
- name: "Run tests"
62+
run: |
63+
bundle exec rake
64+
# env:
65+
# RAILS_VERSION: ${{ matrix.rails-version }}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@ example/public/docs
99
*.swp
1010
/html/
1111
/.idea
12+
Gemfile.lock

.travis.yml

Lines changed: 0 additions & 13 deletions
This file was deleted.

Gemfile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
source 'http://rubygems.org'
22

33
gemspec
4-
5-
gem 'inch'

Gemfile.lock

Lines changed: 0 additions & 160 deletions
This file was deleted.

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
[![Build Status](https://travis-ci.org/zipmark/rspec_api_documentation.svg?branch=master)](https://travis-ci.org/zipmark/rspec_api_documentation)
2-
[![Dependency Status](https://gemnasium.com/badges/github.com/zipmark/rspec_api_documentation.svg)](https://gemnasium.com/github.com/zipmark/rspec_api_documentation)
31
[![Code Climate](https://codeclimate.com/github/zipmark/rspec_api_documentation/badges/gpa.svg)](https://codeclimate.com/github/zipmark/rspec_api_documentation)
42
[![Inline docs](https://inch-ci.org/github/zipmark/rspec_api_documentation.svg?branch=master)](https://inch-ci.org/github/zipmark/rspec_api_documentation)
53
[![Gem Version](https://badge.fury.io/rb/rspec_api_documentation.svg)](https://badge.fury.io/rb/rspec_api_documentation)
@@ -185,6 +183,7 @@ RspecApiDocumentation.configure do |config|
185183
config.configurations_dir = Rails.root.join("doc", "configurations", "api")
186184

187185
# Output folder
186+
# **WARNING*** All contents of the configured directory will be cleared, use a dedicated directory.
188187
config.docs_dir = Rails.root.join("doc", "api")
189188

190189
# An array of output format(s).
@@ -238,6 +237,7 @@ RspecApiDocumentation.configure do |config|
238237
config.define_group :public do |config|
239238
# By default the group's doc_dir is a subfolder under the parent group, based
240239
# on the group's name.
240+
# **WARNING*** All contents of the configured directory will be cleared, use a dedicated directory.
241241
config.docs_dir = Rails.root.join("doc", "api", "public")
242242

243243
# Change the filter to only include :public examples

features/oauth2_mac_client.feature

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ Feature: Use OAuth2 MAC client as a test client
22
Background:
33
Given a file named "app_spec.rb" with:
44
"""
5+
require "webmock/rspec"
56
require "rspec_api_documentation"
67
require "rspec_api_documentation/dsl"
78
require "rack/builder"

features/readme.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
[![Travis status](https://secure.travis-ci.org/zipmark/rspec_api_documentation.png)](https://secure.travis-ci.org/zipmark/rspec_api_documentation)
2-
[![Gemnasium status](https://gemnasium.com/zipmark/rspec_api_documentation.png)](https://gemnasium.com/zipmark/rspec_api_documentation)
3-
41
http://github.com/zipmark/rspec_api_documentation
52

63
# RSpec API Doc Generator

lib/rspec_api_documentation.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
require 'active_support'
22
require 'active_support/inflector'
3+
require 'active_support/core_ext/array/extract_options'
34
require 'active_support/core_ext/hash/conversions'
45
require 'active_support/core_ext/hash/deep_merge'
6+
require 'active_support/core_ext/hash/keys'
57
require 'cgi'
68
require 'json'
79

0 commit comments

Comments
 (0)