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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: e884b31c1356a0471c275c586c112935b69872da
4
- data.tar.gz: 25eeb1ca3e2186817db8484953cbac18224218b6
2
+ SHA256:
3
+ metadata.gz: 3914d079757237601c7908f6e1aa18ef2696eb95c5f5362b79c901da46c62676
4
+ data.tar.gz: 203b947f0bad1ed2ce4fb8538aa5e7e79e7ad727e8a068655b4a0219bbf0adab
5
5
  SHA512:
6
- metadata.gz: 8d02eeef86bd4c3762dfa56d78fca03612aed3471ae7718e0ec68fedae6349837938fcc18355bdb15b0fac4512b9144c6dea769ec6a04eaa7c1ec9e39a2812a5
7
- data.tar.gz: a3260d15370a82010a353fec35c597de65bf66b355747fe3ba80a4be098e0a47c0f876ffa5b40c4ccd9c732ab443d4f9a110bc36619c9691434a9d500a8b62fb
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 '< 2'
44
+ - gem install bundler -v '1.17.3'
41
45
  deploy:
42
46
  provider: rubygems
43
47
  api_key:
@@ -0,0 +1,2 @@
1
+ ---
2
+ BUNDLE_RETRY: "1"
@@ -53,9 +53,17 @@ module Graphiti
53
53
  end
54
54
 
55
55
  def guard
56
- guard_method = @attr[:readable]
56
+ method_name = @attr[:readable]
57
57
  instance = @resource.new
58
- -> { instance.instance_eval(&guard_method) }
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?
@@ -1,3 +1,3 @@
1
1
  module Graphiti
2
- VERSION = "1.0.rc.25"
2
+ VERSION = "1.0.rc.26"
3
3
  end
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.25
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-16 00:00:00.000000000 Z
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.13
336
+ rubygems_version: 2.7.6
336
337
  signing_key:
337
338
  specification_version: 4
338
339
  summary: Easily build jsonapi.org-compatible APIs