grape-markdown 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.rubocop.yml +21 -5
- data/.travis.yml +5 -4
- data/Gemfile +0 -14
- data/Guardfile +2 -2
- data/Rakefile +2 -2
- data/grape-markdown.gemspec +17 -10
- data/lib/grape-markdown/configuration.rb +12 -12
- data/lib/grape-markdown/document.rb +5 -5
- data/lib/grape-markdown/parameter.rb +8 -10
- data/lib/grape-markdown/resource.rb +3 -3
- data/lib/grape-markdown/route.rb +14 -12
- data/lib/grape-markdown/templates/document.md.erb +1 -1
- data/lib/grape-markdown/templates/properties.md.erb +1 -1
- data/lib/grape-markdown/version.rb +1 -1
- data/spec/grape-markdown/configuration_spec.rb +1 -1
- data/spec/grape-markdown/resource_spec.rb +3 -1
- data/spec/support/config_context.rb +1 -1
- data/spec/support/sample_api.rb +7 -7
- metadata +33 -34
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: fad2d95102ccd08211b6b9480baf46c7752fe4879ba1f3c9c977d4a983f36460
|
4
|
+
data.tar.gz: c8b13453a61502541bd5a02e91f47a291dc7526fc7bde4ee50ca3212fdf6f777
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '09ef287f763ae561735f4ea622f70ce0194ee72a70fc3779384d66c0fb223e52c86b6a9e9ba58250ffc2f0fac56a9e836933cf6094b38f37fc0d941d0456c8b6'
|
7
|
+
data.tar.gz: 8fc77e96d6566ab94a645d8edf5bb3497b5a51c7bdb81397212b0d09a8996bdedbb88813d4fcee26eafa87a6b24ace29ada1d32fe47bda9e18e828be052aff07
|
data/.rubocop.yml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
AllCops:
|
2
|
+
TargetRubyVersion: 2.2
|
2
3
|
Excludes:
|
3
|
-
-
|
4
|
-
- vendor/**
|
4
|
+
- vendor/**/*
|
5
5
|
- bin/**
|
6
6
|
|
7
7
|
Documentation:
|
@@ -12,7 +12,23 @@ Encoding:
|
|
12
12
|
# no need to always specify encoding
|
13
13
|
Enabled: false
|
14
14
|
|
15
|
-
|
16
|
-
|
17
|
-
|
15
|
+
Metrics/BlockLength:
|
16
|
+
Exclude:
|
17
|
+
- grape-markdown.gemspec
|
18
|
+
- spec/**/*
|
18
19
|
|
20
|
+
Naming/FileName:
|
21
|
+
Exclude:
|
22
|
+
- lib/grape-markdown.rb
|
23
|
+
|
24
|
+
Performance/StringReplacement:
|
25
|
+
Enabled: false
|
26
|
+
|
27
|
+
Style/FrozenStringLiteralComment:
|
28
|
+
Enabled: false
|
29
|
+
|
30
|
+
Style/PercentLiteralDelimiters:
|
31
|
+
PreferredDelimiters:
|
32
|
+
default: ()
|
33
|
+
"%i": ()
|
34
|
+
"%w": ()
|
data/.travis.yml
CHANGED
data/Gemfile
CHANGED
@@ -2,17 +2,3 @@ source 'https://rubygems.org'
|
|
2
2
|
|
3
3
|
# Specify your gem's dependencies in grape-markdown.gemspec
|
4
4
|
gemspec
|
5
|
-
|
6
|
-
gem 'grape', github: 'intridea/grape'
|
7
|
-
|
8
|
-
group :development, :test do
|
9
|
-
gem 'coveralls', '~> 0.7'
|
10
|
-
gem 'rspec', '~> 2.14'
|
11
|
-
gem 'bundler', '~> 1.5'
|
12
|
-
gem 'rake', '~> 10.0'
|
13
|
-
gem 'rubocop', '~> 0.18'
|
14
|
-
gem 'pry', '~> 0.9'
|
15
|
-
gem 'guard', '~> 2.4'
|
16
|
-
gem 'guard-rspec', '~> 4.2'
|
17
|
-
gem 'guard-bundler', '~> 2.0'
|
18
|
-
end
|
data/Guardfile
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
# More info at https://github.com/guard/guard#readme
|
2
2
|
|
3
|
-
guard 'rspec', :
|
3
|
+
guard 'rspec', version: 2 do
|
4
4
|
watch(%r{^spec/.+_spec\.rb$})
|
5
5
|
watch(%r{^lib/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
|
6
|
-
watch('spec/spec_helper.rb') {
|
6
|
+
watch('spec/spec_helper.rb') { 'spec/' }
|
7
7
|
end
|
8
8
|
|
9
9
|
guard 'bundler' do
|
data/Rakefile
CHANGED
@@ -11,9 +11,9 @@ end
|
|
11
11
|
|
12
12
|
require 'rainbow/ext/string' unless String.respond_to?(:color)
|
13
13
|
require 'rubocop/rake_task'
|
14
|
-
|
14
|
+
RuboCop::RakeTask.new(:rubocop)
|
15
15
|
|
16
|
-
task default:
|
16
|
+
task default: %i(rubocop spec)
|
17
17
|
|
18
18
|
task :console do
|
19
19
|
require 'pry'
|
data/grape-markdown.gemspec
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
# coding: utf-8
|
2
|
-
|
2
|
+
|
3
|
+
lib = File.expand_path('lib', __dir__)
|
3
4
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
5
|
require 'grape-markdown/version'
|
5
6
|
|
@@ -8,25 +9,31 @@ Gem::Specification.new do |spec|
|
|
8
9
|
spec.version = GrapeMarkdown::VERSION
|
9
10
|
spec.authors = ['John Allen']
|
10
11
|
spec.email = ['john@threedogconsulting.com']
|
11
|
-
spec.summary = %q{Allows for generating a Markdown document from you Grape API}
|
12
|
-
spec.description = %q{Auto generates Markdown from the docuementation that is created by your Grape API}
|
13
12
|
spec.homepage = 'https://github.com/connexio-labs/grape-markdown'
|
14
13
|
spec.license = 'MIT'
|
15
14
|
|
15
|
+
spec.summary = <<-SUMMARY
|
16
|
+
Allows for generating a Markdown document from you Grape API
|
17
|
+
SUMMARY
|
18
|
+
|
19
|
+
spec.description = <<-DESCRIPTION
|
20
|
+
Auto generates Markdown from the docuementation that is created by your Grape API}
|
21
|
+
DESCRIPTION
|
22
|
+
|
16
23
|
spec.files = `git ls-files -z`.split("\x0")
|
17
24
|
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
18
25
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
26
|
spec.require_paths = ['lib']
|
20
27
|
|
21
|
-
spec.add_runtime_dependency 'grape', '
|
28
|
+
spec.add_runtime_dependency 'grape', '>= 1.1.0'
|
22
29
|
|
23
|
-
spec.add_development_dependency 'coveralls', '~> 0.7'
|
24
|
-
spec.add_development_dependency 'rspec', '~> 2.14'
|
25
30
|
spec.add_development_dependency 'bundler', '~> 1.5'
|
26
|
-
spec.add_development_dependency '
|
27
|
-
spec.add_development_dependency 'rubocop', '~> 0.18'
|
28
|
-
spec.add_development_dependency 'pry', '~> 0.9'
|
31
|
+
spec.add_development_dependency 'coveralls', '~> 0.7'
|
29
32
|
spec.add_development_dependency 'guard', '~> 2.4'
|
30
|
-
spec.add_development_dependency 'guard-rspec', '~> 4.2'
|
31
33
|
spec.add_development_dependency 'guard-bundler', '~> 2.0'
|
34
|
+
spec.add_development_dependency 'guard-rspec', '~> 4.2'
|
35
|
+
spec.add_development_dependency 'pry', '~> 0.9'
|
36
|
+
spec.add_development_dependency 'rake', '~> 10.0'
|
37
|
+
spec.add_development_dependency 'rspec', '~> 2.14'
|
38
|
+
spec.add_development_dependency 'rubocop', '~> 0.60.0'
|
32
39
|
end
|
@@ -1,14 +1,14 @@
|
|
1
1
|
module GrapeMarkdown
|
2
2
|
class Configuration
|
3
|
-
SETTINGS =
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
3
|
+
SETTINGS = %i(
|
4
|
+
name
|
5
|
+
description
|
6
|
+
request_headers
|
7
|
+
response_headers
|
8
|
+
example_id_type
|
9
|
+
resource_exclusion
|
10
|
+
include_root
|
11
|
+
).freeze
|
12
12
|
|
13
13
|
class << self
|
14
14
|
attr_accessor(*SETTINGS)
|
@@ -34,14 +34,14 @@ module GrapeMarkdown
|
|
34
34
|
end
|
35
35
|
|
36
36
|
def supported_id_types
|
37
|
-
|
37
|
+
%i(integer uuid bson)
|
38
38
|
end
|
39
39
|
|
40
40
|
def example_id_type=(value)
|
41
|
-
|
41
|
+
raise UnsupportedIDType unless supported_id_types.include?(value)
|
42
42
|
|
43
43
|
if value.to_sym == :bson && !Object.const_defined?('BSON')
|
44
|
-
|
44
|
+
raise BSONNotDefinied
|
45
45
|
end
|
46
46
|
|
47
47
|
@example_id_type = value
|
@@ -18,7 +18,7 @@ module GrapeMarkdown
|
|
18
18
|
end
|
19
19
|
|
20
20
|
def write
|
21
|
-
|
21
|
+
raise 'Not yet supported'
|
22
22
|
end
|
23
23
|
|
24
24
|
def routes
|
@@ -29,8 +29,8 @@ module GrapeMarkdown
|
|
29
29
|
|
30
30
|
def resources
|
31
31
|
@resources ||= begin
|
32
|
-
grouped_routes = routes.group_by(&:route_name).reject do |name,
|
33
|
-
resource_exclusion.include?(name.parameterize
|
32
|
+
grouped_routes = routes.group_by(&:route_name).reject do |name, _routes|
|
33
|
+
resource_exclusion.include?(name.parameterize.underscore.to_sym)
|
34
34
|
end
|
35
35
|
|
36
36
|
grouped_routes.map { |name, routes| Resource.new(name, routes) }
|
@@ -38,7 +38,7 @@ module GrapeMarkdown
|
|
38
38
|
end
|
39
39
|
|
40
40
|
def properties_table(resource)
|
41
|
-
render(properties_template, resource.
|
41
|
+
render(properties_template, resource.route_binding)
|
42
42
|
end
|
43
43
|
|
44
44
|
def formatted_request_headers
|
@@ -50,7 +50,7 @@ module GrapeMarkdown
|
|
50
50
|
end
|
51
51
|
|
52
52
|
def show_request_sample?(route)
|
53
|
-
%w(PUT POST).include?(route.
|
53
|
+
%w(PUT POST).include?(route.request_method)
|
54
54
|
end
|
55
55
|
|
56
56
|
private
|
@@ -2,7 +2,7 @@ module GrapeMarkdown
|
|
2
2
|
class Parameter
|
3
3
|
attr_reader :route, :full_name, :name, :settings
|
4
4
|
|
5
|
-
delegate :route_name, :
|
5
|
+
delegate :route_name, :namespace, to: :route
|
6
6
|
delegate :requirement, :type, :documentation, :desc, to: :settings
|
7
7
|
delegate :example, to: :documentation, allow_nil: true
|
8
8
|
|
@@ -25,20 +25,18 @@ module GrapeMarkdown
|
|
25
25
|
|
26
26
|
options[:requirement] = options[:required] ? 'required' : 'optional'
|
27
27
|
|
28
|
-
|
28
|
+
JSON.parse(options.to_json, object_class: OpenStruct)
|
29
29
|
end
|
30
30
|
|
31
|
-
def default_options(
|
31
|
+
def default_options(_options)
|
32
32
|
model = name.include?('_id') ? name.gsub('_id', '') : route.route_name
|
33
33
|
|
34
34
|
{
|
35
|
-
required:
|
36
|
-
requirement:
|
37
|
-
type:
|
38
|
-
desc:
|
39
|
-
documentation:
|
40
|
-
example: GrapeMarkdown::Configuration.generate_id
|
41
|
-
}
|
35
|
+
required: true,
|
36
|
+
requirement: 'required',
|
37
|
+
type: 'uuid',
|
38
|
+
desc: "the `id` of the `#{model}`",
|
39
|
+
documentation: { example: GrapeMarkdown::Configuration.generate_id }
|
42
40
|
}
|
43
41
|
end
|
44
42
|
end
|
@@ -14,13 +14,13 @@ module GrapeMarkdown
|
|
14
14
|
end
|
15
15
|
|
16
16
|
def namespaced
|
17
|
-
@namespaced ||= routes.group_by(&:
|
17
|
+
@namespaced ||= routes.group_by(&:namespace).map do |_, routes|
|
18
18
|
Resource.new(name, routes)
|
19
19
|
end
|
20
20
|
end
|
21
21
|
|
22
22
|
def paths
|
23
|
-
@paths ||= routes.group_by(&:route_path_without_format).map do |
|
23
|
+
@paths ||= routes.group_by(&:route_path_without_format).map do |_, routes|
|
24
24
|
Resource.new(name, routes)
|
25
25
|
end
|
26
26
|
end
|
@@ -46,7 +46,7 @@ module GrapeMarkdown
|
|
46
46
|
methods = %w(POST PUT)
|
47
47
|
|
48
48
|
potential = routes.select do |route|
|
49
|
-
methods.include?(route.
|
49
|
+
methods.include?(route.request_method) && route.route_params.present?
|
50
50
|
end
|
51
51
|
|
52
52
|
if potential.present?
|
data/lib/grape-markdown/route.rb
CHANGED
@@ -2,14 +2,16 @@ module GrapeMarkdown
|
|
2
2
|
class Route < SimpleDelegator
|
3
3
|
# would like to rely on SimpleDelegator but Grape::Route uses
|
4
4
|
# method_missing for these methods :'(
|
5
|
-
delegate
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
5
|
+
delegate(
|
6
|
+
:namespace,
|
7
|
+
:path,
|
8
|
+
:request_method,
|
9
|
+
:route_description,
|
10
|
+
to: '__getobj__'
|
11
|
+
)
|
10
12
|
|
11
13
|
def root_resource
|
12
|
-
|
14
|
+
namespace.split('/').reject(&:empty?).first
|
13
15
|
end
|
14
16
|
|
15
17
|
def root_resource_title
|
@@ -17,13 +19,13 @@ module GrapeMarkdown
|
|
17
19
|
end
|
18
20
|
|
19
21
|
def route_params
|
20
|
-
@route_params ||= __getobj__.
|
22
|
+
@route_params ||= __getobj__.params.sort.map do |param|
|
21
23
|
Parameter.new(self, *param)
|
22
24
|
end
|
23
25
|
end
|
24
26
|
|
25
27
|
def route_name
|
26
|
-
|
28
|
+
namespace.split('/').last ||
|
27
29
|
route_path.match('\/(\w*?)[\.\/\(]').captures.first
|
28
30
|
end
|
29
31
|
|
@@ -33,7 +35,7 @@ module GrapeMarkdown
|
|
33
35
|
|
34
36
|
def route_short_description
|
35
37
|
description = <<-DESCRIPTION.gsub(/^\s*/, '').gsub(/\n/, ' ').squeeze
|
36
|
-
#{
|
38
|
+
#{request_method.titleize} a
|
37
39
|
#{list? ? 'list of ' : ' '}
|
38
40
|
#{list? ? route_title : route_title.singularize}
|
39
41
|
DESCRIPTION
|
@@ -44,7 +46,7 @@ module GrapeMarkdown
|
|
44
46
|
end
|
45
47
|
|
46
48
|
def route_path_without_format
|
47
|
-
|
49
|
+
path.gsub(/\((.*?)\)/, '')
|
48
50
|
end
|
49
51
|
|
50
52
|
def route_type
|
@@ -52,7 +54,7 @@ module GrapeMarkdown
|
|
52
54
|
end
|
53
55
|
|
54
56
|
def list?
|
55
|
-
|
57
|
+
request_method == 'GET' && !path.include?(':id')
|
56
58
|
end
|
57
59
|
|
58
60
|
def route_binding
|
@@ -62,7 +64,7 @@ module GrapeMarkdown
|
|
62
64
|
private
|
63
65
|
|
64
66
|
def request_body?
|
65
|
-
!%w(GET DELETE).include?(
|
67
|
+
!%w(GET DELETE).include?(request_method)
|
66
68
|
end
|
67
69
|
|
68
70
|
def parent?
|
@@ -4,11 +4,11 @@
|
|
4
4
|
|
5
5
|
<% resources.each do |resource| %>
|
6
6
|
# <%= resource.title %>
|
7
|
-
<%= properties_table(resource) %>
|
8
7
|
<% resource.namespaced.each do |grouped_resource| %>
|
9
8
|
<% grouped_resource.paths.each do |resource_by_path| %>
|
10
9
|
<% resource_by_path.routes.each do |route| %>
|
11
10
|
## <%= route.route_short_description %>
|
11
|
+
<%= properties_table(route) %>
|
12
12
|
<% end %>
|
13
13
|
<% end %>
|
14
14
|
<% end %>
|
@@ -42,7 +42,7 @@ describe GrapeMarkdown::Configuration do
|
|
42
42
|
end
|
43
43
|
|
44
44
|
context 'headers' do
|
45
|
-
|
45
|
+
%i(request_headers response_headers).each do |type|
|
46
46
|
context type do
|
47
47
|
it 'is an array' do
|
48
48
|
expect(subject.send(type)).to be_a(Array)
|
@@ -15,7 +15,9 @@ describe GrapeMarkdown::Resource do
|
|
15
15
|
it 'response generation is delegated to a generator' do
|
16
16
|
expect(subject.sample_generator).to receive(:response)
|
17
17
|
|
18
|
-
subject.sample_response(
|
18
|
+
subject.sample_response(
|
19
|
+
GrapeMarkdown::Route.new(Grape::Router::Route.new('GET', '/'))
|
20
|
+
)
|
19
21
|
end
|
20
22
|
end
|
21
23
|
end
|
@@ -1,7 +1,7 @@
|
|
1
1
|
shared_context 'configuration' do
|
2
2
|
let(:name) { 'some api v1' }
|
3
3
|
let(:description) { 'some blueprint description' }
|
4
|
-
let(:resource_exclusion) {
|
4
|
+
let(:resource_exclusion) { %i(admin swagger_docs) }
|
5
5
|
|
6
6
|
let(:request_headers) do
|
7
7
|
[{ 'Accept-Charset' => 'utf-8' }]
|
data/spec/support/sample_api.rb
CHANGED
@@ -11,11 +11,11 @@ class SampleApi < Grape::API
|
|
11
11
|
desc 'create a widget'
|
12
12
|
params do
|
13
13
|
requires :name,
|
14
|
-
type:
|
14
|
+
type: String,
|
15
15
|
desc: 'the widgets name',
|
16
16
|
documentation: { example: 'super widget' }
|
17
17
|
optional :description,
|
18
|
-
type:
|
18
|
+
type: String,
|
19
19
|
desc: 'the widgets name',
|
20
20
|
documentation: { example: 'the best widget ever made' }
|
21
21
|
end
|
@@ -24,10 +24,10 @@ class SampleApi < Grape::API
|
|
24
24
|
|
25
25
|
desc 'update a widget'
|
26
26
|
params do
|
27
|
-
optional :name, type:
|
28
|
-
optional :description, type:
|
27
|
+
optional :name, type: String, desc: 'the widgets name'
|
28
|
+
optional :description, type: String, desc: 'the widgets name'
|
29
29
|
end
|
30
|
-
put
|
30
|
+
put ':id' do
|
31
31
|
end
|
32
32
|
end
|
33
33
|
|
@@ -35,7 +35,7 @@ class SampleApi < Grape::API
|
|
35
35
|
desc 'create a sprocket for a specific widget'
|
36
36
|
params do
|
37
37
|
requires :name,
|
38
|
-
type:
|
38
|
+
type: String,
|
39
39
|
desc: 'the widgets name',
|
40
40
|
documentation: { example: 'super widget' }
|
41
41
|
end
|
@@ -45,7 +45,7 @@ class SampleApi < Grape::API
|
|
45
45
|
desc 'updates a sprocket for a specific widget'
|
46
46
|
params do
|
47
47
|
requires :name,
|
48
|
-
type:
|
48
|
+
type: String,
|
49
49
|
desc: 'the widgets name',
|
50
50
|
documentation: { example: 'super widget' }
|
51
51
|
end
|
metadata
CHANGED
@@ -1,99 +1,99 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: grape-markdown
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- John Allen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-11-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: grape
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 1.1.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: 1.1.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
28
|
+
name: bundler
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '1.5'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
40
|
+
version: '1.5'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
42
|
+
name: coveralls
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
47
|
+
version: '0.7'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
54
|
+
version: '0.7'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
|
-
name:
|
56
|
+
name: guard
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '
|
61
|
+
version: '2.4'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: '
|
68
|
+
version: '2.4'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
|
-
name:
|
70
|
+
name: guard-bundler
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: '
|
75
|
+
version: '2.0'
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: '
|
82
|
+
version: '2.0'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
|
-
name:
|
84
|
+
name: guard-rspec
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
87
|
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: '
|
89
|
+
version: '4.2'
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
94
|
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: '
|
96
|
+
version: '4.2'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: pry
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
@@ -109,49 +109,49 @@ dependencies:
|
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: '0.9'
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
|
-
name:
|
112
|
+
name: rake
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
114
114
|
requirements:
|
115
115
|
- - "~>"
|
116
116
|
- !ruby/object:Gem::Version
|
117
|
-
version: '
|
117
|
+
version: '10.0'
|
118
118
|
type: :development
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
122
|
- - "~>"
|
123
123
|
- !ruby/object:Gem::Version
|
124
|
-
version: '
|
124
|
+
version: '10.0'
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
|
-
name:
|
126
|
+
name: rspec
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
128
128
|
requirements:
|
129
129
|
- - "~>"
|
130
130
|
- !ruby/object:Gem::Version
|
131
|
-
version: '
|
131
|
+
version: '2.14'
|
132
132
|
type: :development
|
133
133
|
prerelease: false
|
134
134
|
version_requirements: !ruby/object:Gem::Requirement
|
135
135
|
requirements:
|
136
136
|
- - "~>"
|
137
137
|
- !ruby/object:Gem::Version
|
138
|
-
version: '
|
138
|
+
version: '2.14'
|
139
139
|
- !ruby/object:Gem::Dependency
|
140
|
-
name:
|
140
|
+
name: rubocop
|
141
141
|
requirement: !ruby/object:Gem::Requirement
|
142
142
|
requirements:
|
143
143
|
- - "~>"
|
144
144
|
- !ruby/object:Gem::Version
|
145
|
-
version:
|
145
|
+
version: 0.60.0
|
146
146
|
type: :development
|
147
147
|
prerelease: false
|
148
148
|
version_requirements: !ruby/object:Gem::Requirement
|
149
149
|
requirements:
|
150
150
|
- - "~>"
|
151
151
|
- !ruby/object:Gem::Version
|
152
|
-
version:
|
153
|
-
description: Auto generates Markdown from the docuementation that is created
|
154
|
-
Grape API
|
152
|
+
version: 0.60.0
|
153
|
+
description: " Auto generates Markdown from the docuementation that is created
|
154
|
+
by your Grape API}\n"
|
155
155
|
email:
|
156
156
|
- john@threedogconsulting.com
|
157
157
|
executables: []
|
@@ -207,7 +207,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
207
207
|
version: '0'
|
208
208
|
requirements: []
|
209
209
|
rubyforge_project:
|
210
|
-
rubygems_version: 2.
|
210
|
+
rubygems_version: 2.7.6
|
211
211
|
signing_key:
|
212
212
|
specification_version: 4
|
213
213
|
summary: Allows for generating a Markdown document from you Grape API
|
@@ -220,4 +220,3 @@ test_files:
|
|
220
220
|
- spec/spec_helper.rb
|
221
221
|
- spec/support/config_context.rb
|
222
222
|
- spec/support/sample_api.rb
|
223
|
-
has_rdoc:
|