Skip to content

Commit

Permalink
Merge pull request #31 from zuzannast/1.1.3-version
Browse files Browse the repository at this point in the history
1.1.3 version
  • Loading branch information
Zuzanna Stolińska authored May 21, 2019
2 parents b39ee0d + 85cf8e8 commit acaba51
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 58 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Include [swagger-ui](https://github.com/swagger-api/swagger-ui) as Rails engine

Swagger UI version | Rails version
------------------ | ----------------
2.2.10 | >= 4.2
2.2.10 | >= 4.2, <6

## Features
* Supports API documentation versioning / multiple APIs documentation
Expand Down Expand Up @@ -133,7 +133,7 @@ Here's an example use of [SwaggerUiEngine in Rails application](https://github.c

## Contributing

You're very much welcome to contribute to this repository. Start by creating a Github issue and describing your change thoroughly. If you decide to publish a pull request, please make sure it points to the latest versioned branch instead of master.
You're very much welcome to contribute to this repository. Start by creating a Github issue and describing your change thoroughly. If you decide to publish a pull request, please make sure it points to the latest versioned branch instead of master.

## License

Expand Down
3 changes: 0 additions & 3 deletions _config.yml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module SwaggerUiEngine
class SwaggerDocsController < ApplicationController
class SwaggerDocsController < SwaggerUiEngine::ApplicationController
include SwaggerUiEngine::ConfigParser
include SwaggerUiEngine::OauthConfigParser

Expand Down
2 changes: 2 additions & 0 deletions lib/swagger_ui_engine.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
require 'rails/engine'
require 'action_controller/railtie'
require 'swagger_ui_engine/engine'
require 'swagger_ui_engine/version'
require 'swagger_ui_engine/configuration'
Expand Down
9 changes: 5 additions & 4 deletions lib/swagger_ui_engine/engine.rb
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
require 'sass/rails'
require 'sassc/rails'

module SwaggerUiEngine
class Engine < ::Rails::Engine
isolate_namespace SwaggerUiEngine

config.to_prepare do
Rails.application.config.assets.precompile += %w(
Rails.application.config.assets.precompile += %w[
swagger_ui_engine/lib/typography.css
swagger_ui_engine/lib/reset.css
swagger_ui_engine/lib/screen.css
Expand All @@ -16,10 +16,11 @@ class Engine < ::Rails::Engine
swagger_ui_engine/favicon-32x32.png
swagger_ui_engine/favicon-16x16.png
swagger_ui_engine/lang/*.js
)
swagger_ui_engine/DroidSans-Bold.ttf
swagger_ui_engine/DroidSans.ttf
]

Rails.application.config.assets.paths << Rails.root.join('vendor', 'assets', 'fonts')
Rails.application.config.assets.precompile << /\.(?:svg|eot|woff|ttf)$/
end
end
end
4 changes: 2 additions & 2 deletions swagger_ui_engine.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ Gem::Specification.new do |s|
'CHANGELOG.md'
]

s.add_runtime_dependency 'rails', '>= 4.2'
s.add_runtime_dependency 'sass-rails'
s.add_runtime_dependency 'rails', '>= 4.2', '< 6'
s.add_runtime_dependency 'sassc-rails'
end
46 changes: 0 additions & 46 deletions test/dummy/config/environments/development.rb

This file was deleted.

1 change: 1 addition & 0 deletions test/dummy/config/environments/test.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
Rails.application.configure do
# Settings specified here will take precedence over those in config/application.rb.
config.active_support.test_order = :random

# The test environment is used exclusively to run your application's
# test suite. You never need to work with it otherwise. Remember that
Expand Down

0 comments on commit acaba51

Please sign in to comment.