graphiti 1.0.rc.25 → 1.0.rc.26
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.travis.yml +5 -1
- data/gemfiles/.bundle/config +2 -0
- data/lib/graphiti/util/serializer_attributes.rb +10 -2
- data/lib/graphiti/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 3914d079757237601c7908f6e1aa18ef2696eb95c5f5362b79c901da46c62676
|
4
|
+
data.tar.gz: 203b947f0bad1ed2ce4fb8538aa5e7e79e7ad727e8a068655b4a0219bbf0adab
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8e10a7536f8ecd7c88f0c32b736927c6eccc6786327c4da65565a06862acf0ea221593758cc3d9a95702c5fc98f4463666690ed0be07d6d399e41657b0a84c2e
|
7
|
+
data.tar.gz: 154f6a7cb34432fcf1b1361e8793123c2d4280838d4c91addc7f13c5736f6f351a9bba9cb4a2596550b4bc58fd98ab0e4985985d6724aaaed33532c483fb39a1
|
data/.travis.yml
CHANGED
@@ -31,13 +31,17 @@ matrix:
|
|
31
31
|
gemfile: gemfiles/rails_6.gemfile
|
32
32
|
- gemfile: gemfiles/rails_6.gemfile
|
33
33
|
rvm: 2.4
|
34
|
+
- gemfile: gemfiles/rails_4.gemfile
|
35
|
+
rvm: 2.5
|
36
|
+
- gemfile: gemfiles/rails_4.gemfile
|
37
|
+
rvm: 2.6
|
34
38
|
|
35
39
|
script:
|
36
40
|
- bundle exec $COMMAND
|
37
41
|
|
38
42
|
install: bundle install --retry=3 --jobs=3
|
39
43
|
before_install:
|
40
|
-
- gem install bundler -v '
|
44
|
+
- gem install bundler -v '1.17.3'
|
41
45
|
deploy:
|
42
46
|
provider: rubygems
|
43
47
|
api_key:
|
@@ -53,9 +53,17 @@ module Graphiti
|
|
53
53
|
end
|
54
54
|
|
55
55
|
def guard
|
56
|
-
|
56
|
+
method_name = @attr[:readable]
|
57
57
|
instance = @resource.new
|
58
|
-
|
58
|
+
|
59
|
+
-> {
|
60
|
+
method = instance.method(method_name)
|
61
|
+
if method.arity.zero?
|
62
|
+
instance.instance_eval(&method_name)
|
63
|
+
else
|
64
|
+
instance.instance_exec(@object, &method)
|
65
|
+
end
|
66
|
+
}
|
59
67
|
end
|
60
68
|
|
61
69
|
def guard?
|
data/lib/graphiti/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: graphiti
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.rc.
|
4
|
+
version: 1.0.rc.26
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lee Richmond
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-03-
|
11
|
+
date: 2019-03-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jsonapi-serializable
|
@@ -215,6 +215,7 @@ files:
|
|
215
215
|
- bin/rspec
|
216
216
|
- bin/setup
|
217
217
|
- exe/graphiti
|
218
|
+
- gemfiles/.bundle/config
|
218
219
|
- gemfiles/rails_4.gemfile
|
219
220
|
- gemfiles/rails_5.gemfile
|
220
221
|
- gemfiles/rails_6.gemfile
|
@@ -332,7 +333,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
332
333
|
version: 1.3.1
|
333
334
|
requirements: []
|
334
335
|
rubyforge_project:
|
335
|
-
rubygems_version: 2.6
|
336
|
+
rubygems_version: 2.7.6
|
336
337
|
signing_key:
|
337
338
|
specification_version: 4
|
338
339
|
summary: Easily build jsonapi.org-compatible APIs
|