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 +4 -4
- data/Rakefile +6 -1
- data/lib/graphiti/rails/version.rb +1 -1
- data/lib/tasks/graphiti.rake +4 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 67a63788c6e7d8f499050adb18b2f7b7f5495eea70622d988e3d456f4126e94a
|
4
|
+
data.tar.gz: 35a4799fbbd289746c9488d9b719524f4ad88dfd052a0b5f05c4bb752c06604e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
data/lib/tasks/graphiti.rake
CHANGED
@@ -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
|
-
|
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.
|
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:
|
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:
|
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:
|
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.
|
254
|
+
rubygems_version: 3.3.3
|
255
255
|
signing_key:
|
256
256
|
specification_version: 4
|
257
257
|
summary: Rails integration for Graphiti
|