Skip to content

Commit 2077dce

Browse files
author
Suan-Aik Yeo
committed
use Ostruct#marshal_dump instead of #to_h to support Ruby 1.9.3
1 parent 0b70202 commit 2077dce

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ rvm:
1212
- 2.2.3
1313
- 2.1.7
1414
- 2.0.0
15+
- 1.9.3
1516

1617
env:
1718
- GRAPE_SWAGGER_VERSION=0.8.0

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
* Grape-swagger 0.7.2 is no longer supported - [@dblock](https://github.com/dblock).
66
* Implemented RuboCop, Ruby-style linter - [@dblock](https://github.com/dblock).
77
* [#31](https://github.com/ruby-grape/grape-swagger-rails/pull/31): Support Swagger-UI docExpansion option - [@maruware](https://github.com/maruware).
8+
* [#32](https://github.com/ruby-grape/grape-swagger-rails/pull/32): Fix Ruby 1.9.3 compatibility - [@suan](https://github.com/suan).
89
* Your contribution here.
910

1011
### 0.1.0 (February 5, 2015)

app/views/grape_swagger_rails/application/index.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!DOCTYPE html>
2-
<html data-swagger-options="<%= GrapeSwaggerRails.options.to_h.to_json %>">
2+
<html data-swagger-options="<%= GrapeSwaggerRails.options.marshal_dump.to_json %>">
33
<head>
44
<title><%= GrapeSwaggerRails.options.app_name || 'Swagger UI' %></title>
55
<link href='//fonts.googleapis.com/css?family=Droid+Sans:400,700' rel='stylesheet' type='text/css'/>

0 commit comments

Comments
 (0)