jsonapi-swagger 0.9.0 → 0.9.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ca788a5cb82d20869ddb1d61bc35f7f70a96a087d5f5063710b5c9e7d903aff7
4
- data.tar.gz: e02238b6ed49ce8b7402853bfb234571580e35a2f5a46eef351272cbe403a618
3
+ metadata.gz: b33fbdc3abde3d3feef92bd3f18837c06aebccc8adebcc9a63c21b69e560fb83
4
+ data.tar.gz: adc773296ba23da06b2c8f5aef706dce4699bf1c0ed7546d8a0670acdae9eff7
5
5
  SHA512:
6
- metadata.gz: e7a7e2e7ac26bf503e9b9a9119f4739585b5a8a4475f8ee3638e7d94c1177991c4ba0836e6d8f02a825ad9ae7f53cf60691e19cd2feaa525dee3c65e72084b84
7
- data.tar.gz: 1d887fc8de0108a6e6b6bcaff773bb16219bdfabc9a51c7a4aade3324b8982468ee796bd6972acdad3d0b9c10f06c005140627314663b37cb1970f910e9ee947
6
+ metadata.gz: 9eb6e30c42b8c3add73d71845432cd67d1fd56836e63468236325cfcd0c142232f71acf83d9d0f7ec374304c5774259e9fe6c82acae929b5c3659612627b1507
7
+ data.tar.gz: 851b90447dbb4b63078c71603de74847a7b6087407afc9d3693b1e402e500011f76828a366afea080f8084118a10e5fb19c122e101b98deed200e1d973b28476
@@ -154,15 +154,15 @@ module Jsonapi
154
154
  return relation.name if relation.respond_to?(:name)
155
155
  end
156
156
 
157
- def t(key, options={})
158
- content = tt(key, options)
157
+ def t(key, **options)
158
+ content = tt(key, **options)
159
159
  safe_encode(content)
160
160
  end
161
161
 
162
- def tt(key, options={})
162
+ def tt(key, **options)
163
163
  options[:scope] = :jsonapi_swagger
164
164
  options[:default] = key.to_s.humanize
165
- I18n.t(key, options)
165
+ I18n.t(key, **options)
166
166
  end
167
167
 
168
168
  def safe_encode(content)
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Jsonapi
4
4
  module Swagger
5
- VERSION = '0.9.0'
5
+ VERSION = '0.9.1'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jsonapi-swagger
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - YingRui Lu