graphiti 1.0.beta.7 → 1.0.beta.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/graphiti/tasks.rb +2 -7
- data/lib/graphiti/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4b175cdd3201d457052bcdbabc8352bb6efdd0dc
|
4
|
+
data.tar.gz: 8baef1493952ee4949b0640831c6d6d35631812f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3d65ddbeb161917a2dc1c495eaa8b83397ed0c706b48163e1dd3de97c15483ece83d1fde164cfb0a347fe84df6a0a2583c8d7987c2043674303053fd6f9cd77e
|
7
|
+
data.tar.gz: 9dd17ad77f9910fdef2a5b43043e2cc52583ca4085236a7ab4358a92d60331d93827ed09a72bce9cae41911c85cf044212e67961ca1d6652c8c6e9942363aa24
|
data/lib/graphiti/tasks.rb
CHANGED
@@ -1,10 +1,4 @@
|
|
1
1
|
namespace :graphiti do
|
2
|
-
include GraphitiSpecHelpers::Helpers
|
3
|
-
|
4
|
-
def response
|
5
|
-
session.response
|
6
|
-
end
|
7
|
-
|
8
2
|
def session
|
9
3
|
@session ||= ActionDispatch::Integration::Session.new(Rails.application)
|
10
4
|
end
|
@@ -26,6 +20,7 @@ namespace :graphiti do
|
|
26
20
|
end
|
27
21
|
path = "#{path}&debug=true" if debug
|
28
22
|
session.get("#{path}")
|
23
|
+
JSON.parse(session.response.body)
|
29
24
|
end
|
30
25
|
|
31
26
|
desc "Execute request without web server."
|
@@ -36,7 +31,7 @@ namespace :graphiti do
|
|
36
31
|
require 'pp'
|
37
32
|
path, debug = args[:path], args[:debug]
|
38
33
|
puts "Graphiti Request: #{path}"
|
39
|
-
make_request(path, debug)
|
34
|
+
json = make_request(path, debug)
|
40
35
|
pp json
|
41
36
|
Graphiti::Debugger.flush if debug
|
42
37
|
end
|
data/lib/graphiti/version.rb
CHANGED