sinja 1.0.0.pre2 → 1.1.0.pre1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +313 -107
- data/demo-app/README.md +58 -0
- data/demo-app/app.rb +8 -4
- data/demo-app/boot.rb +3 -1
- data/demo-app/classes/author.rb +18 -15
- data/demo-app/classes/comment.rb +11 -9
- data/demo-app/classes/post.rb +21 -16
- data/demo-app/classes/tag.rb +12 -8
- data/demo-app/database.rb +4 -6
- data/lib/sinja/config.rb +85 -76
- data/lib/sinja/helpers/relationships.rb +5 -3
- data/lib/sinja/helpers/sequel.rb +43 -0
- data/lib/sinja/helpers/serializers.rb +39 -20
- data/lib/sinja/relationship_routes/has_many.rb +9 -5
- data/lib/sinja/relationship_routes/has_one.rb +4 -4
- data/lib/sinja/resource.rb +19 -21
- data/lib/sinja/resource_routes.rb +33 -20
- data/lib/sinja/version.rb +1 -1
- data/lib/sinja.rb +137 -48
- data/sinja.gemspec +1 -1
- metadata +4 -4
- data/demo-app/test.rb +0 -17
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sinja
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.0.pre1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mike Pastore
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-12-
|
11
|
+
date: 2016-12-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -225,6 +225,7 @@ files:
|
|
225
225
|
- bin/console
|
226
226
|
- bin/setup
|
227
227
|
- demo-app/Gemfile
|
228
|
+
- demo-app/README.md
|
228
229
|
- demo-app/app.rb
|
229
230
|
- demo-app/base.rb
|
230
231
|
- demo-app/boot.rb
|
@@ -233,7 +234,6 @@ files:
|
|
233
234
|
- demo-app/classes/post.rb
|
234
235
|
- demo-app/classes/tag.rb
|
235
236
|
- demo-app/database.rb
|
236
|
-
- demo-app/test.rb
|
237
237
|
- lib/sinatra/jsonapi.rb
|
238
238
|
- lib/sinja.rb
|
239
239
|
- lib/sinja/config.rb
|
@@ -273,5 +273,5 @@ rubyforge_project:
|
|
273
273
|
rubygems_version: 2.5.2
|
274
274
|
signing_key:
|
275
275
|
specification_version: 4
|
276
|
-
summary: RESTful,
|
276
|
+
summary: RESTful, {json:api}-compliant web services in Sinatra
|
277
277
|
test_files: []
|
data/demo-app/test.rb
DELETED