apes 1.0.2 → 1.0.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 +5 -5
- data/README.md +6 -15
- data/lib/apes/version.rb +1 -1
- metadata +3 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: 2ef9a48fce78826a551766ce6091bfe2b7bb4cf77d7629b6506664533299def9
|
|
4
|
+
data.tar.gz: faa432f731cacf7bbbb0438551ce7b5a2fe7a2a4377c5d5b72113435445ea27e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 41fc4333a3c0fb4e6b2f5d64fba2320320c1b9be9089ce75b5129a4e2305847dc4237a0ca69956196f5c7d3108b060b1d961ff16633f5504faa26037ee731581
|
|
7
|
+
data.tar.gz: 1a486e5e847793ee7e7fe3c23362c0fcb8479013967eabdc0af92a1023b6bf584a20379aeee0eb5aba22bb99b65e5059beb184d4f8bb56c1d53cb00447791604
|
data/README.md
CHANGED
|
@@ -1,23 +1,14 @@
|
|
|
1
1
|
# apes
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
[](https://gemnasium.com/ShogunPanda/apes)
|
|
5
|
-
[](http://travis-ci.org/ShogunPanda/apes)
|
|
6
|
-
[](https://coveralls.io/github/ShogunPanda/apes)
|
|
7
|
-
|
|
8
|
-
## END OF DEVELOPMENT NOTICE
|
|
9
|
-
|
|
10
|
-
# This gem has been discontinued.
|
|
3
|
+
## END OF DEVELOPMENT NOTICE - This gem has been discontinued
|
|
11
4
|
|
|
12
5
|
A tiny JSON API framework for Ruby on Rails.
|
|
13
6
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
# Introduction
|
|
7
|
+
## Usage
|
|
17
8
|
|
|
18
9
|
Apes makes it easy to deal with [JSON API](http://jsonapi.org/) by abstracting all the oddities of the specification.
|
|
19
10
|
|
|
20
|
-
|
|
11
|
+
### Routes
|
|
21
12
|
|
|
22
13
|
There's no requirement at all here, but a good start point for your routes might be the following:
|
|
23
14
|
|
|
@@ -34,7 +25,7 @@ Rails.application.routes.draw do
|
|
|
34
25
|
end
|
|
35
26
|
```
|
|
36
27
|
|
|
37
|
-
|
|
28
|
+
### Controller
|
|
38
29
|
|
|
39
30
|
Once your controller inherits from `Apes::Controller`, you can implement a CRUD in virtually no time:
|
|
40
31
|
|
|
@@ -85,7 +76,7 @@ class Appointment < ApplicationRecord
|
|
|
85
76
|
end
|
|
86
77
|
```
|
|
87
78
|
|
|
88
|
-
|
|
79
|
+
### Model
|
|
89
80
|
|
|
90
81
|
If your model imports `Apes::Model`, it will earn two extra nice things: additional validations and enhanced search.
|
|
91
82
|
|
|
@@ -123,7 +114,7 @@ You can customize which fields is searching on by defining the constants `SECOND
|
|
|
123
114
|
|
|
124
115
|
Note that UUID are always matched against the `id` column.
|
|
125
116
|
|
|
126
|
-
|
|
117
|
+
### View
|
|
127
118
|
|
|
128
119
|
There's nothing much to say here. `Apes::Controller` handles views and error rendering.
|
|
129
120
|
|
data/lib/apes/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: apes
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Shogun
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2019-12-11 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: lazier
|
|
@@ -214,8 +214,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
214
214
|
- !ruby/object:Gem::Version
|
|
215
215
|
version: '0'
|
|
216
216
|
requirements: []
|
|
217
|
-
|
|
218
|
-
rubygems_version: 2.6.8
|
|
217
|
+
rubygems_version: 3.0.3
|
|
219
218
|
signing_key:
|
|
220
219
|
specification_version: 4
|
|
221
220
|
summary: A tiny JSON API framework for Ruby on Rails.
|
|
@@ -233,4 +232,3 @@ test_files:
|
|
|
233
232
|
- spec/apes/urls_parser_spec.rb
|
|
234
233
|
- spec/apes/validators_spec.rb
|
|
235
234
|
- spec/spec_helper.rb
|
|
236
|
-
has_rdoc:
|