graphiti-rails 0.3.0 → 0.4.0

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
  SHA256:
3
- metadata.gz: bce137505cdca25b658def15e2bfde137b6cf16b7a80aaae9c21218c8ada8f59
4
- data.tar.gz: f48bbbb85727bffa2367ca8f409574787fc2809c18115027c0c228208c8549a5
3
+ metadata.gz: 67a63788c6e7d8f499050adb18b2f7b7f5495eea70622d988e3d456f4126e94a
4
+ data.tar.gz: 35a4799fbbd289746c9488d9b719524f4ad88dfd052a0b5f05c4bb752c06604e
5
5
  SHA512:
6
- metadata.gz: 28d90e3f09621739f7e743000114c478ee75520dc484baa36e28fe450f6a1f2ac85d084e2e25961d7347cc21c56f8a77019efb5146638591a6b760a218f42868
7
- data.tar.gz: 9da0d55120df21ec87e99d5746c827f999d2c1efe92f568e03930f06edb5cf4b010ffb01a5b41ec19c15f6b86eb71dbd40837e7d6b9a58427b7a82f0d00c9a6f
6
+ metadata.gz: fe9f5da5a0ec25ce89c6e06080391bd6d7093221fdd59003f10b8939a48b80fadd7d290356b83e8d8cf4bb2359c1c13e22a948f37369e9917bb50f59235d9788
7
+ data.tar.gz: ccd6afbdfcfc83061f0d8a0f3e0f60e89b70fbc85bf4e61de467315c7fce98a763fe269b92bcca499bee3b9884915e3cd8208859896981127fa0cc5cae34da11
data/Rakefile CHANGED
@@ -7,6 +7,7 @@ end
7
7
  require 'yard'
8
8
  require 'rspec/core/rake_task'
9
9
  require 'bundler/gem_tasks'
10
+ require 'rails/version'
10
11
 
11
12
  YARD::Rake::YardocTask.new
12
13
 
@@ -14,7 +15,11 @@ RSpec::Core::RakeTask.new(:spec) do |t|
14
15
  t.rspec_opts = "--order random"
15
16
  end
16
17
 
17
- APP_RAKEFILE = File.expand_path("spec/dummy/Rakefile", __dir__)
18
+ if Rails::VERSION::MAJOR < 7
19
+ APP_RAKEFILE = File.expand_path("spec/rails5/dummy/Rakefile", __dir__)
20
+ else
21
+ APP_RAKEFILE = File.expand_path("spec/rails7/dummy/Rakefile", __dir__)
22
+ end
18
23
  load "rails/tasks/engine.rake"
19
24
 
20
25
  task default: :spec
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Graphiti
4
4
  module Rails
5
- VERSION = '0.3.0'
5
+ VERSION = '0.4.0'
6
6
  end
7
7
  end
@@ -22,7 +22,10 @@ namespace :graphiti do
22
22
  end
23
23
  path = "#{path}&debug=true" if debug
24
24
  handle_request_exceptions do
25
- session.get(path.to_s)
25
+ headers = {
26
+ "Authorization": ENV['AUTHORIZATION_HEADER']
27
+ }.compact
28
+ session.get(path.to_s, headers: headers)
26
29
  end
27
30
  JSON.parse(session.response.body)
28
31
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: graphiti-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Wagenet
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-05-11 00:00:00.000000000 Z
11
+ date: 2022-02-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: graphiti
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 0.3.0
33
+ version: '1.0'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 0.3.0
40
+ version: '1.0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: railties
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -251,7 +251,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
251
251
  - !ruby/object:Gem::Version
252
252
  version: '0'
253
253
  requirements: []
254
- rubygems_version: 3.2.15
254
+ rubygems_version: 3.3.3
255
255
  signing_key:
256
256
  specification_version: 4
257
257
  summary: Rails integration for Graphiti