carrot_rpc 0.2.3.pre → 0.2.3

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
  SHA1:
3
- metadata.gz: 8add259a5bc250a315ce9feefe6b37cf8e920d44
4
- data.tar.gz: 94a6f21f8b5cca40e4fd040564756c4d6b173bcb
3
+ metadata.gz: db8c95c8b6b864d2c0af65ec4387ec19f890c73a
4
+ data.tar.gz: 3ee199f732826c03aaaa9cdbd480da06a0f8fda8
5
5
  SHA512:
6
- metadata.gz: ffae0ddaf0342282814713c47487203008239979fb14c009f21c12a436dcc23fbc6c9395dcc0ad52dd034d5997f72d716f20f04ac5e8cc8a85b08e0ef85c0c0c
7
- data.tar.gz: a08ecc6881122adca9f7f34d77d172f5b20ef62b3590e8a5073be41dee8fc66e1678b3194cb90b9abc2335c849afa0bf7d1cf5e870373a105e62be5f94ccc6fb
6
+ metadata.gz: 8f69595a1d3fde344503ac5dc1c10b812fa805745d1c107a7bf60955f7b5f6fcff651c5537cf91973f945b98436d7c56394c3eebb081062878e1eefc0b59f323
7
+ data.tar.gz: f4cfde4d0993018cfecf9d6507e18e4496cda93fa5826d4ecbc663a56f331cc28ec0da96299e50d98f90c11dcbe69626d44779f5d113d6726d57ec9d661336ad
data/CHANGELOG.md CHANGED
@@ -3,18 +3,22 @@
3
3
  **Table of Contents** *generated with [DocToc](https://github.com/thlorenz/doctoc)*
4
4
 
5
5
  - [Changelog](#changelog)
6
- - [v0.2.1](#v021)
7
- - [Bug Fixes](#bug-fixes)
8
- - [v0.2.0](#v020)
6
+ - [v0.2.3](#v023)
9
7
  - [Enhancements](#enhancements)
8
+ - [Bug Fixes](#bug-fixes)
9
+ - [Upgrading](#upgrading)
10
+ - [v0.2.1](#v021)
10
11
  - [Bug Fixes](#bug-fixes-1)
11
- - [Incompatible Changes](#incompatible-changes)
12
- - [v0.1.2](#v012)
12
+ - [v0.2.0](#v020)
13
13
  - [Enhancements](#enhancements-1)
14
14
  - [Bug Fixes](#bug-fixes-2)
15
- - [v0.1.1](#v011)
15
+ - [Incompatible Changes](#incompatible-changes)
16
+ - [v0.1.2](#v012)
16
17
  - [Enhancements](#enhancements-2)
17
18
  - [Bug Fixes](#bug-fixes-3)
19
+ - [v0.1.1](#v011)
20
+ - [Enhancements](#enhancements-3)
21
+ - [Bug Fixes](#bug-fixes-4)
18
22
  - [Incompatible Changes](#incompatible-changes-1)
19
23
 
20
24
  <!-- END doctoc generated TOC please keep comment here to allow auto update -->
@@ -22,6 +26,44 @@
22
26
  # Changelog
23
27
  All significant changes in the project are documented here.
24
28
 
29
+ ## v0.2.3
30
+
31
+
32
+ ### Enhancements
33
+ * [#9](https://github.com/C-S-D/carrot_rpc/pull/9) - [KronicDeth](http://github.com/KronicDeth)
34
+ * `CarrotRpc::RpcServer` subclasses can `include CarrotRpc::RpcServer::JSONAPIResources` to get
35
+ [`JSONAPI::ActsAsResourceController`](https://github.com/cerebris/jsonapi-resources/blob/8e85d68dfbaf9181344c7618b0b29b4cfd362034/lib/jsonapi/acts_as_resource_controller.rb)
36
+ helper methods for processing JSONAPI requests in server methods.
37
+ * The primary entry point is `#process_request_params`, which expects an `ActionController::Parameters`
38
+ (to do strong parameters) with `:action` set to the method name and `:controller` set to the name of the
39
+ controller that corresponds to the `JSONAPI::Resource` subclass, such as `"api/v1/post"` to load `API::V1::PostResource`.
40
+ * You need to define the following methods:
41
+ * `base_url`
42
+ * `resource_klass`
43
+ * `CarrotRpc::RpcServer` subclasses, when including `CarrotRpc::Rpc::JSONAPIResources` can
44
+ `extend CarrotRpc::Rpc::JSONAPIResources::Actions` to gain access to an `actions` DSL that takes a
45
+ list of actions and defines methods that call `process_request_params` with the correct options.
46
+ * You need to define the following methods:
47
+ * `base_url`
48
+ * `controller`
49
+ * `resource_klass`
50
+
51
+ ### Bug Fixes
52
+ * [#9](https://github.com/C-S-D/carrot_rpc/pull/9) - [KronicDeth](http://github.com/KronicDeth)
53
+ * `CarrotRpc::Error` was moved from the incorrect `lib/carrot_rpc/rpc_server/error.rb`
54
+ path to the correct `lib/carrot_rpc/error.rb` path.
55
+ * `CarrotRpc::Error::Code` was moved from the incorrect `lib/carrot_rpc/rpc_server/error/code.rb`
56
+ path to the correct `lib/carrot_rpc/error/code.rb` path.
57
+
58
+ ### Upgrading
59
+ * [#9](https://github.com/C-S-D/carrot_rpc/pull/9) - [KronicDeth](http://github.com/KronicDeth)
60
+ * If you previously loaded `CarrotRpc::Error` directly with `require "carrot_rpc/rpc_server/error"` you now need to
61
+ `require "carrot_rpc/error"`, which is the corrected path. `CarrotRpc::Error` is autoloaded, so you don't need to require it.
62
+ * If you previously loaded `CarrotRpc::Error::Code` directly with `require "carrot_rpc/rpc_server/error/code"`
63
+ you now need to `require "carrot_rpc/error/code"`, which is the corrected path. `CarrotRpc::Error::Code` is
64
+ autoloaded, so you don't need to require it.
65
+
66
+
25
67
  ## v0.2.1
26
68
 
27
69
  ### Bug Fixes
data/CODE_OF_CONDUCT.md CHANGED
@@ -1,3 +1,4 @@
1
+
1
2
  # Contributor Code of Conduct
2
3
 
3
4
  As contributors and maintainers of this project, we pledge to respect all people who contribute through reporting issues, posting feature requests, updating documentation, submitting pull requests or patches, and other activities.
@@ -1,3 +1,3 @@
1
1
  module CarrotRpc
2
- VERSION = "0.2.3.pre".freeze
2
+ VERSION = "0.2.3".freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: carrot_rpc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3.pre
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Scott Hamilton
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-02-10 00:00:00.000000000 Z
12
+ date: 2016-02-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport
@@ -170,9 +170,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
170
170
  version: '2.2'
171
171
  required_rubygems_version: !ruby/object:Gem::Requirement
172
172
  requirements:
173
- - - ">"
173
+ - - ">="
174
174
  - !ruby/object:Gem::Version
175
- version: 1.3.1
175
+ version: '0'
176
176
  requirements: []
177
177
  rubyforge_project:
178
178
  rubygems_version: 2.4.5.1