hal_api-rails 0.4.0 → 0.4.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: d68594ae3d9d3462393361b4e6786b9feffc6027f87ba0c2dab45b93b13d2a42
4
- data.tar.gz: 822071d21ec62886a92db335aa33a04b18098640e6a06df5fc0fc5061056b9b4
3
+ metadata.gz: ed5a3084cfaaca9c13bbda1c1bf057110469a49a3cce9f57dee5bdc6a65ee937
4
+ data.tar.gz: fa84c28dd30b11455c2f3d1350b1d229cd0ade874d400cb86454f9e0def4e509
5
5
  SHA512:
6
- metadata.gz: 57eec1594b15f83ded10dc34e521057ba29d894df67086cbabc1bdca786b77475ae95d23ed1ee8d68a79837a9a3ebda815cdfd80fe122baa8aaf3af78e9fd749
7
- data.tar.gz: 6c80c27f1e4a9c6e8dc464901224cc1de2a7b95bb65f37045d67e55c44930c3c22dd22144342d9e928be63614e69a286dbb644e02891c70ea77c7fcfebf17a48
6
+ metadata.gz: a47f6659d39e02398b9a133b1d3b8185af7c6a4f129931cef91ad96cc9b1148f229b70607c8a7ae64d34eb52cdeec272725f584a99cba46f654604120c3ea72d
7
+ data.tar.gz: 9bd7ee64509e4f8cd06701a0f65b9de5fd3774df09f30751e3772123d3c7fb65890f15983c6f92238c3c22a4ec501c9563c2d39a043738997c296de46e616c62
data/README.md CHANGED
@@ -2,9 +2,8 @@
2
2
 
3
3
  [![Build Status](https://travis-ci.org/PRX/hal_api-rails.svg?branch=master)](https://travis-ci.org/PRX/hal_api-rails)
4
4
 
5
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/hal_api/rails`. To experiment with that code, run `bin/console` for an interactive prompt.
6
-
7
- TODO: Delete this and the text above, and describe your gem
5
+ Welcome to hal_api-rails. This is a binding between the responders /
6
+ roar / roar-rails gems and the the PRX HAL api.
8
7
 
9
8
  ## Installation
10
9
 
@@ -14,6 +13,12 @@ Add this line to your application's Gemfile:
14
13
  gem 'hal_api-rails'
15
14
  ```
16
15
 
16
+ Then add a gem for paging through ActiveRecord result sets:
17
+ ```ruby
18
+ gem 'kaminari'
19
+ ```
20
+
21
+
17
22
  And then execute:
18
23
 
19
24
  $ bundle
@@ -72,7 +72,8 @@ module HalApi::Controller::Actions
72
72
  def valid_params_for_action(action)
73
73
  (params.permit(*self.class.valid_params_list(action)) || {}).tap do |p|
74
74
  p[:zoom] = zoom_param if zoom_param
75
- end
75
+ end.
76
+ to_h
76
77
  end
77
78
 
78
79
  def zoom_param
@@ -1,5 +1,5 @@
1
1
  module HalApi
2
2
  module Rails
3
- VERSION = "0.4.0"
3
+ VERSION = "0.4.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hal_api-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Rhoden
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2019-06-25 00:00:00.000000000 Z
12
+ date: 2019-07-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activemodel