Skip to content

Commit 9a8c561

Browse files
committed
sexy way with rails engine v 0.0.3
1 parent 6db8bff commit 9a8c561

File tree

31 files changed

+6814
-66
lines changed

31 files changed

+6814
-66
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,4 @@ spec/reports
1515
test/tmp
1616
test/version_tmp
1717
tmp
18+
.idea

Gemfile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
source 'https://rubygems.org'
22

33
# Specify your gem's dependencies in grape-swagger-rails.gemspec
4-
gemspec
5-
6-
gem 'grape-swagger', git: 'git://github.com/jhecking/grape-swagger.git' # fix post requests
4+
gemspec

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# Grape::Swagger::Rails
1+
# GrapeSwaggerRails
22

3-
grape-swagger Ruby on Rails integration
3+
Swagger UI as Rails Engine for grape-swagger gem
44

55
## Installation
66

@@ -16,9 +16,9 @@ Or install it yourself as:
1616

1717
$ gem install grape-swagger-rails
1818

19-
## Usage
19+
## Usage: add this line to your routes.rb
2020

21-
rails g grape_swagger:install
21+
mount GrapeSwaggerRails::Engine => '/apidoc'
2222

2323
## Contributing
2424

770 Bytes
Loading
9.04 KB
Loading
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
// This is a manifest file that'll be compiled into application.js, which will include all the files
2+
// listed below.
3+
//
4+
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
5+
// or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
6+
//
7+
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
8+
// the compiled file.
9+
//
10+
// WARNING: THE FIRST BLANK LINE MARKS THE END OF WHAT'S TO BE PROCESSED, ANY BLANK LINE SHOULD
11+
// GO AFTER THE REQUIRES BELOW.
12+
//
13+
//= require grape_swagger_rails/jquery-1.8.0.min.js
14+
//= require grape_swagger_rails/jquery.slideto.min.js
15+
//= require grape_swagger_rails/jquery.wiggle.min.js
16+
//= require grape_swagger_rails/jquery.ba-bbq.min.js
17+
//= require grape_swagger_rails/handlebars-1.0.rc.1.js
18+
//= require grape_swagger_rails/underscore-min.js
19+
//= require grape_swagger_rails/backbone-min.js
20+
//= require grape_swagger_rails/swagger.js
21+
//= require grape_swagger_rails/swagger-ui.js
22+
//= require grape_swagger_rails/highlight.7.3.pack.js

app/assets/javascripts/grape_swagger_rails/backbone-min.js

Lines changed: 38 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)