rest_framework 0.0.12 → 0.0.13

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: 8c3691667e86ee77e9d15a1732d0013687a2e63a062a4ff01d1c6d8cc66f45fc
4
- data.tar.gz: 6bcab926c283feb9a0643a06eab750f941882e5b56b294c59794f64a966883bb
3
+ metadata.gz: 1c74e7a6e690c22a72a04bb4fd30132b845ef108890c8140673300ca2c047f2a
4
+ data.tar.gz: 317f484c3bf46554b5664bc30d20c611e404c4893725c77a84372ebac8e7ca82
5
5
  SHA512:
6
- metadata.gz: 204e0b5ea7b46710968a6274791f9e0f676db34f4eaefa1cf831fe8f9e4ab1f076a24b0375ef0554e1c4b57db3d1787adeebc31c4201da40b504aded51ca097b
7
- data.tar.gz: 7e46ed5bbe61832045207664d679ecf394aead2928cdd78a1b29873087b78130546fd80595fe443680d5c26eebfa8bf5f23246b56a9a4a83e801c7763c024c76
6
+ metadata.gz: 2e4dbb91f448068ab3115184518f75a633708e562268863b12f81838a2bcd3a5c344af9390e2238210a52e1070b1d2a2dd51f4b23bc2e51fdd1773e6c702b137
7
+ data.tar.gz: 21a18513bfc9682fd57e01d46f63b9172864bbbbd140c8d060c22e28df5896352c547b05fceda4914ac89da7d8c76e56469ace66f7987e30e85c6d24d66b2b35
@@ -1 +1 @@
1
- 0.0.12
1
+ 0.0.13
@@ -69,14 +69,14 @@ module RESTFramework
69
69
  end
70
70
  return ActionDispatch::Routing::RoutesInspector.new(Rails.application.routes.routes).format(
71
71
  formatter.new
72
- ).lines[1..].map { |r| r.split.last(3) }.map { |r|
72
+ ).lines.drop(1).map { |r| r.split.last(3) }.map { |r|
73
73
  {verb: r[0], path: r[1], action: r[2]}
74
74
  }.select { |r| r[:path].start_with?(request.path) }
75
75
  end
76
76
 
77
77
  # Helper alias for `respond_to`/`render`. `payload` should be already serialized to Ruby
78
78
  # primitives.
79
- def api_response(payload=nil, html_kwargs: nil, json_kwargs: nil, xml_kwargs: nil, **kwargs)
79
+ def api_response(payload, html_kwargs: nil, json_kwargs: nil, xml_kwargs: nil, **kwargs)
80
80
  html_kwargs ||= {}
81
81
  json_kwargs ||= {}
82
82
  xml_kwargs ||= {}
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rest_framework
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.12
4
+ version: 0.0.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gregory N. Schmit
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-10-09 00:00:00.000000000 Z
11
+ date: 2020-10-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails