From 2077dce68bd91b68c94ef81bbc781bba5081a2c1 Mon Sep 17 00:00:00 2001 From: Suan-Aik Yeo Date: Tue, 6 Oct 2015 11:17:04 -0400 Subject: [PATCH] use Ostruct#marshal_dump instead of #to_h to support Ruby 1.9.3 --- .travis.yml | 1 + CHANGELOG.md | 1 + app/views/grape_swagger_rails/application/index.html.erb | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 6cc35a2..e6699fc 100644 --- a/.travis.yml +++ b/.travis.yml @@ -12,6 +12,7 @@ rvm: - 2.2.3 - 2.1.7 - 2.0.0 + - 1.9.3 env: - GRAPE_SWAGGER_VERSION=0.8.0 diff --git a/CHANGELOG.md b/CHANGELOG.md index 40234d5..c7059be 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ * Grape-swagger 0.7.2 is no longer supported - [@dblock](https://github.com/dblock). * Implemented RuboCop, Ruby-style linter - [@dblock](https://github.com/dblock). * [#31](https://github.com/ruby-grape/grape-swagger-rails/pull/31): Support Swagger-UI docExpansion option - [@maruware](https://github.com/maruware). +* [#32](https://github.com/ruby-grape/grape-swagger-rails/pull/32): Fix Ruby 1.9.3 compatibility - [@suan](https://github.com/suan). * Your contribution here. ### 0.1.0 (February 5, 2015) diff --git a/app/views/grape_swagger_rails/application/index.html.erb b/app/views/grape_swagger_rails/application/index.html.erb index 08c081f..7978bc3 100644 --- a/app/views/grape_swagger_rails/application/index.html.erb +++ b/app/views/grape_swagger_rails/application/index.html.erb @@ -1,5 +1,5 @@ - + <%= GrapeSwaggerRails.options.app_name || 'Swagger UI' %>