graphiti_spec_helpers 1.0.beta.3 → 1.0.beta.4

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
2
  SHA1:
3
- metadata.gz: 2df5b0a708725d2778698aad13eef534b1ab9ba7
4
- data.tar.gz: 2b701facab45ac164f83b8e921733ee1a6d04844
3
+ metadata.gz: 133ae38aebb30d45d6f16c5c449a30e1e3eba0ea
4
+ data.tar.gz: bf0c8c6157c3e4a89c075fa96f3703e831555fa5
5
5
  SHA512:
6
- metadata.gz: d9ff8d1a4e779c7f367150ce1c2e6e2e786fce38ae7f403ceecf77c32ca9d1c8ffabaadc4350f86b7e0361927e160d6923054dca6629c557a4536fc5cf6c5190
7
- data.tar.gz: 75c3bc6db8ea9d18a1c688faa2c50ebe70d72556f348899885c94ed0c2a9092bf2c40a8af15bef08f665b0d82416fb2d073d77cba7dcb0b67ff8db577dff04ad
6
+ metadata.gz: 7eb4d0b4e3df24b8919b2d95ccc040a71e3c1f3e070b3a451e003e38d8b09eaec9e7678ae1fa430909355240c03b4be39edb7932715d7363c2ad846e1754abd8
7
+ data.tar.gz: 97c90e3e948d8d04072f83c082d95d7f1b392c1d17cde862386b0fd9b7b0c465fa4aa2d8ebb2aecfaa55c5e0ddb61e5ce3141c68ceea57e76b366fa54bfa1f50
@@ -18,9 +18,12 @@ require 'graphiti_spec_helpers'
18
18
  end
19
19
 
20
20
  def graphiti_context
21
- ctx = OpenStruct.new
22
- ctx.current_user = current_user if respond_to?(:current_user)
23
- ctx
21
+ @graphiti_context ||= begin
22
+ ctx = OpenStruct.new
23
+ ctx.current_user = current_user if respond_to?(:current_user)
24
+ ctx.params = params
25
+ ctx
26
+ end
24
27
  end
25
28
 
26
29
  # If you need to set context:
@@ -1,3 +1,3 @@
1
1
  module GraphitiSpecHelpers
2
- VERSION = "1.0.beta.3"
2
+ VERSION = "1.0.beta.4"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: graphiti_spec_helpers
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.beta.3
4
+ version: 1.0.beta.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lee Richmond
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-09-23 00:00:00.000000000 Z
11
+ date: 2018-10-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: graphiti
@@ -153,7 +153,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
153
153
  version: 1.3.1
154
154
  requirements: []
155
155
  rubyforge_project:
156
- rubygems_version: 2.6.13
156
+ rubygems_version: 2.6.12
157
157
  signing_key:
158
158
  specification_version: 4
159
159
  summary: Spec helpers for Graphiti and JSONAPI